cs.CLAug 23, 2026

When Not to Imitate: Boundary-Aware Skill Memory for Reliable Tool-Use LLM Agents

Authors: Zihan Lin, Zhenyu Chen, Jiawen Wei, Xiaohan Wang, Jie Cao, Jiajun Chai, Wei Lin, Guojun Yin, 

Organizations: Meituan · School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences · MAIS&NLPR, Institute of Automation, Chinese Academy of Sciences · Zhongguancun Academy

Abstract

Extracting skills from past successes is critical for the efficient evolution of Large Language Model (LLM) agents. Prevailing agent self-evolution paradigms typically rely on a core assumption: equipping LLMs with skill memories derived from successful trajectories will monotonically improve their problem-solving capabilities. However, probe analyses reveal that extracting skills solely from successful trajectories traps the model in a Skill Imitation Trap. For tasks that resemble past successes but require different tools, retrieving more skills paradoxically increases the model's confidence in wrong tool calls---procedure skills raise the wrong-tool margin by 47%47\% over a memory-free baseline. To overcome this limitation, we propose Boundary-Aware Skill Memory (BASM), which augments each skill with explicit boundary fields---applicability conditions, risk cues, avoidance rules, and recovery notes. These fields transform each retrieved skill from an unconditional action template into state-conditioned guidance: the agent applies the skill when its conditions hold, suppresses inapplicable tool calls when they do not, and issues targeted repairs when execution fails. Across three agent benchmarks and four model scales, BASM consistently outperforms success-distilled skill-memory baselines: it improves task success rate by up to 23.8%23.8\% on AppWorld, accuracy by up to 5.0%5.0\% on BFCL, and reduces attack success rate by 4.6%4.6\% on AgentDojo, while simultaneously reducing average AppWorld steps by up to 6.6%6.6\% relative to the memory-free baseline.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Demystifying Agent Skills: Why They Work-Until They Don't

    Aug 14, 2026Zhiyuan Jiang, Fangrui Huang, Hanwen Xing +6LLM Agent Skill EvaluationLLM Agents

  2. Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills

    Mar 26, 2026Jingwei Ni, Yihao Liu, Xinpeng Liu +7LLM Agent Skill LearningLLM Agent Self-Improvement

  3. SKILL-KD: Contrastive Skill Distillation for LLM Agents

    Jul 30, 2026Qiming Shi, Yibo Dou, Jiawen Zhu +5Skill DistillationLLM Agent Skill Learning