cs.AIAug 20, 2026

Optimal Skill Selection for LLM Agents with Provable Bicriteria Guarantees

Authors: Yu Chen, Ruishuo Chen, Xun Wang, Zhuoran Li, Longbo Huang

Organizations: Institute for Interdisciplinary Information Sciences, Tsinghua University

Abstract

Loading reusable skill documents into a bounded context window has become a primary way large language model (LLM) agents acquire task-specific capabilities, which makes skill selection a first-order determinant of task performance and token cost. Yet current agents score skills independently by semantic relevance and assemble the set by top-kk or greedy packing, with no quality guarantee or cost awareness on the selected set. Redundant or poorly chosen skills then waste scarce context tokens and can even degrade performance. In this paper, we present a theory-grounded and practical framework for budgeted skill selection. We give the first model of how skill sets shape execution outcomes, capturing complementary capability coverage and diminishing returns from redundancy through a monotone submodular benefit, while accounting for context degradation with a linear token penalty under a hard budget. Based on this model, we develop Best Prefix Selection (BPS), a polynomial-time algorithm, and prove, to our knowledge, the first performance guarantee for skill selection: a bicriteria (1−1/e,1)(1-1/e,1) approximation whose benefit coefficient is optimal in polynomial time. We construct a controlled testbed based on BigCodeBench to isolate the effect of skill selection on execution success. On it, BPS with a learned capability encoder reaches a success rate of 0.65, and the strongest baselines need at least 28% more tokens to reach 0.60.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. SkillSelect-Serve: QoS-Aware Budgeted Skill Service Recommendation for LLM Agents

    May 8, 2026Jingyuan Zheng, Dongjing Wang, Xin Zhang +7LLM Agent Skill RetrievalLLM Agents

  2. SkillsInjector: Dynamic Skill Context Construction for LLM Agents

    May 28, 2026Yanchao Li, Wanhao Liu, Ben Gao +5Tool-Augmented Language Model AgentsLLM Agent Skill Learning

  3. SkillFocus: Evolving Agent Skills via Capability Decomposition

    Sep 28, 2026Ning Wang, Zhiren Gong, Bingdong Li +2LLM Agent Skill LearningTask Decomposition