Skip to content

Learning When Skills Work: Boundary-Aware Composition for LLM Agents

Dingyu Zhang, Jiaxin Qi, Yao Tong, Yan Cui, Yuhua Zheng, Jianqiang Huang

cs.AI

Abstract

Skill optimization enhances agent capabilities by iteratively refining reusable skill instructions from execution feedback. Guided by distinct strategies and priorities, different optimization methods yield specialized skills that each excel at specific behaviors. Skill composition has therefore been explored to consolidate these skills into a unified one. However, existing composition approaches suffer from three critical problems: instruction conflicts, behavioral granularity mismatches, and context-insensitive behavior transfer. To resolve these problems, we propose History-Based Behavior Transfer (HBT), a framework for conditional skill composition. First, HBT selects a main skill from a set of candidate optimized skills to establish a coherent structural foundation. Second, it isolates behavioral differences from the remaining optimized skills and links them to task-level gains and regressions in their optimization histories. Finally, by contrasting these beneficial and detrimental outcomes, HBT infers explicit applicability conditions for each candidate behavior and integrates the resulting condition-behavior pairs into the main skill for selective activation. Extensive evaluations across diverse benchmarks and skill optimizers demonstrate that HBT consistently outperforms both the best single optimized skills and existing composition baselines. Further ablations on historical evidence and conditional gating confirm the effectiveness of HBT in achieving reliable skill composition.

Create a lesson

Metadata

Comments
16 pages, 4 figures, 12 tables