When Self-Evolution Backfires: Pre-Commit Gating against Skill Contamination in LLM Agents

Linfang Shang, Ming Xu, Yiding Sun, Tianle Xia, Lingxiang Hu +2 more
8/6/2026
cs.AIcs.CL

No confident code implementation found for this paper.

Abstract

Self-evolving agents accumulate capability by distilling reusable skills from their execution trajectories, but we find this process is not monotonic: past a critical pool size, newly added skills degrade performance instead of improving it. We formalize this capability-contamination phase transition and trace it to a structural cause: once a defective skill enters the decision context, it becomes reference material for distilling later skills, forming cross-round contamination chains.

Show full abstract

We further show the contamination is structurally irreversible: removing a source skill after the fact cannot erase the flawed reasoning its descendants have already inherited, so post-hoc rollback recovers only a small fraction of the lost performance. This makes skill admission a pre-commit necessity rather than a post-hoc fix, and motivates Verifier-as-Gatekeeper (VaG): a progressive trust hierarchy whose three heterogeneous critics - structural validity, behavioral harmlessness, and semantic consistency - filter each skill individually, coupled with a marginal-gain subset selection that removes combinatorial contamination at the top tier before skills reach the runtime context. On Terminal-Bench 2, unconditional accumulation rises to a peak and then degrades, giving back most of its gains as the pool keeps growing, and post-hoc removal of the culprit skills recovers only a small part of the drop - the empirical signature of irreversibility. In contrast, VaG improves every round, reaching 72% pass@1 with a pool roughly 5x smaller, and its frozen skill pool transfers positively to four other backbones and a second benchmark without re-evolution. Ablations confirm the three critics are complementary and mutually non-substitutable, each intercepting a largely disjoint class of harmful skills.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shang2026when,
  title  = {When Self-Evolution Backfires: Pre-Commit Gating against Skill Contamination in LLM Agents},
  author = {Linfang Shang and Ming Xu and Yiding Sun and Tianle Xia and Lingxiang Hu and Lan Xu and Ning Zheng},
  year   = {2026},
  eprint = {2608.05810},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.05810v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.05810.svg)](https://codeofpaper.com/paper/2608.05810)

Discussion