🤖 AI Summary
Existing static skill injection methods struggle to align with task-specific requirements, often degrading the performance of large language model agents despite expanding the skill library. This work proposes SkillsInjector, the first approach to model skill injection as a dynamic process through a two-stage adaptive mechanism that jointly optimizes skill selection, budget allocation, and descriptive presentation. A context-aware planner dynamically determines the number of skills required for a given task, while a set-aware renderer optimizes the ordering and formulation of skill descriptions. Evaluated on tau2-bench, SkillsBench, and ALFWorld, SkillsInjector outperforms the strongest baselines by 3.9, 6.1, and 7.3 percentage points, respectively, demonstrating the efficacy of dynamically constructing skill-augmented contexts.
📝 Abstract
LLM agents now draw on growing skill libraries to handle complex tasks. However, injecting more skills does not always improve task completion and can even degrade it. Existing methods still treat skill injection as a static step, selecting skills with fixed criteria, fixing the budget in advance, and leaving descriptions unchanged. We argue that this static treatment can undermine the utility of skills, because which skills are exposed, how many are included, and how they are presented all affect downstream performance. We propose SkillsInjector, a two-stage adaptive method that jointly addresses these decisions. First, a context planner learns execution-grounded skill preferences and admits an adaptive number of skills for each task. A set-aware renderer then tailors how selected descriptions are presented relative to their co-injected neighbors. Across tau2-bench, SkillsBench, and ALFWorld, SkillsInjector achieves the highest score, improving over the strongest baseline by 3.9, 6.1, and 7.3 percentage points, respectively. Ablation studies show that skill selection, adaptive budgeting, and set-aware rendering each contribute to the gain. These results show that skill-augmented agents benefit from optimizing the injected context itself. Code will be released upon publication