When Not to Imitate: Boundary-Aware Skill Memory for Reliable Tool-Use LLM Agents
Zihan LinZhenyu ChenJWJiawen WeiXiaohan WangJie CaoJCJiajun ChaiWei Lin
Guojun Yin
Ran He Zihan Lin
Zhenyu Chen
JWJiawen Wei
Xiaohan Wang
Jie Cao
JCJiajun Chai
Wei Lin

Guojun Yin

Ran He
+9
A common assumption in LLM agent self-evolution is that equipping agents with skills distilled from successful trajectories monotonically improves performance. However, the authors identify a "Skill Imitation Trap": for tasks resembling past successes but requiring different tools, retrieving more procedural skills increases confidence in wrong tool calls, raising the wrong-tool margin by 47% over a memory-free baseline. To address this, they propose Boundary-Aware Skill Memory (BASM), which augments each skill with explicit boundary fields (applicability conditions, risk cues, avoidance rules, and recovery notes). This transforms skills from unconditional templates into state-conditioned guidance, enabling the agent to apply, suppress, or repair tool calls depending on context. Across three benchmarks and four model scales, BASM outperforms success-distilled baselines, improving task success rate by up to 23.8% on AppWorld, accuracy by up to 5.0% on BFCL, and reducing attack success rate by 4.6% on AgentDojo, while reducing average AppWorld steps by up to 6.6%.

arXiv ·
· August 23, 2026