Why a freshly released coding model feels like a hot knife through butter on day one, yet after weeks of autonomously extending the same repository begins to feel 'nerfed'—growing more confident in its tokens even as systemic correctness erodes.
Across 60 GPU runs on a 16-step multi-file Python benchmark (LedgerFlow-Mod), replacing human history with smoke-tested autonomous commits (without rollback) contracts repository cross-entropy ( nats on Qwen-14B) and drops raw pre-processor predictive token entropy by −21.0% pooled (−21.8% on 7B, −19.7% on 14B; −20.6% in Suite 1), yet unlatched task accuracy falls −12.5 pp (8/8 trajectories, , post-hoc 3-outcome Holm ) even as Qwen-14B’s isolated single-file accuracy rises (65.6%–68.8% vs. 50.0%). Four controlled Authorship × Correctness regimes disentangle bugs from self-authorship: injecting six subtle human bugs lowers correctness without triggering contraction (modestly raising by +0.013–0.014 nats and ticking predictive entropy slightly upward), whereas self-authored commits contract both—hiding compounding defects behind rising local token confidence.
- 01Raw Predictive Entropy
- -21.0%
- 02Local vs. Systemic Split
- 68.8% vs 42.2%
- 03Human Bugs vs. Self Bugs
- Opposite Sign
Pooled raw T=0 drop (-21.8% 7B, -19.7% 14B; -20.6% Suite 1, 8/8 runs, p = 0.0078)
Qwen-14B isolated single-file pass rises (65.6% v4 / 68.8% v3) while full-repo pass drops
Human bugs nudge ΔNLL up (+0.013–0.014); self-authored commits contract ΔNLL (-0.125)
Why a Model That Cuts Like a Hot Knife on Day One Can Feel 'Nerfed' Three Weeks Later #
Spend a month shipping code with autonomous coding agents and you will hear the same complaint across many engineering teams: a newly released model feels like a hot knife through butter on day one inside a clean human codebase—yet two or three weeks later, after the agent has authored a large share of the repo itself, that exact same checkpoint starts feeling ‘nerfed,’ brittle, and stuck in repetitive failure loops. While a controlled 16-task study cannot prove what causes every multi-week frontier production failure, our experiments isolate a concrete weight-frozen mechanism that offers a sharp hypothesis for how this happens.
In traditional training-time model collapse, recursive synthetic data rewrites the model’s weights. In stateful software engineering, model weights stay strictly frozen—yet the context window evolves into a self-authored environment. On LedgerFlow-Mod (16 coupled Python ledger modules), replacing human reference files with smoke-tested autonomous commits (without rollback) causes Qwen2.5-Coder-14B to contract repository cross-entropy from 0.5853 to 0.4566 nats/token and drop raw pre-processor predictive token entropy by -19.7% (0.0921 -> 0.0739; -21.0% pooled across 7B and 14B).
The deepest twist is the local-versus-systemic split. Evaluated in isolation (swapping clean human upstream files back beneath the model’s exact late-step patches), Qwen2.5-Coder-14B actually becomes more accurate at late single-file edits (68.8% in Suite 1 / 65.6% in Suite 2 vs. 50.0% on human history). Yet evaluated against the full accumulated repository, unlatched task accuracy drops -12.5 percentage points across 8/8 pooled trajectories (2 models, 1 benchmark; exact two-sided , primary-family Holm ). The model grows comfortable inside its own idioms while silently losing grip on cross-file invariants.
Five Ordered Trajectories Across 16 Sequential Commits #
Tracking repository cross-entropy step-by-step on Qwen2.5-Coder-14B (raw pre-processor logits) reveals five cleanly ordered strata. Clean human history stays flat near 0.57–0.59 nats/token across all 16 tasks. Injecting six subtle human bugs (human_defective) nudges cross-entropy upward above clean human code at every step (0.6045 by step 16). By contrast, every AI-authored regime drops sharply over steps 2–5 and stays persistently contracted through step 16—descending from oracle model_correct (0.5275), through cross-family DeepSeek-6.7B history (0.5161), down to smoke-tested self_defective (0.4566).
16-Step Repository Cross-Entropy Trajectory (Qwen2.5-Coder-14B, Raw Logits)
Mean corpus negative log-likelihood H(Q_t, P_θ) across steps 1–16. Human defects raise NLL slightly above clean human code; every AI-authored history drops sharply at steps 2–5.
Human Bugs Do Not Trigger Contraction; Self-Authored Commits Hide Rot Behind Low Entropy #
A natural skepticism toward sequential coding collapse is whether entropy drops simply because prior code is buggy. Our Suite 2 controlled Authorship × Correctness regimes test this directly using raw pre-processor logits (output_logits=True):
- Human defects do not reproduce self-authored contraction. Injecting six subtle edge-case bugs into human commits (
human_defective, each passing smoke tests while failing hidden integration tests) cuts unlatched task pass rate on both7B(31.2% -> 25.0%) and14B(56.2% -> 43.8%) and collapses cumulative late pass to0%—yet nudges repository cross-entropyupward (+0.0140nats on7B,+0.0126nats on14Babove clean human history) with a slight upward tick in raw predictive entropy (+2.6%/+0.9%). Even flawed human edits remain out-of-distribution relative to and keep model surprisal elevated. - Clean self-authorship contracts cross-entropy on 14B (with honest 7B caveats). When an omniscient hidden-test oracle commits only verified model patches (
model_correct),14Breaches68%mean self-authorship (75%seed 1,12%–38%human fallback), contracts to-0.0550(-0.0919seed 1), and preserves50.0%late and cumulative correctness. On the weaker7Bmodel,50%–56%fallback caps self-authorship at43%and yields noisier outcomes (H_probe = 0.1417,cum_l = 20.8%), making14Bour cleaner diagnostic. - Why cumulative pass latches at 0%. Both
7Band14Bfail Step 1 (s01_allocate) even on clean starter context. Inhuman_history, Step 1 is reset to the clean human reference before Step 2 (31.2%/56.2%overall pass); in smoke-tested autonomous runs without rollback, Step 1’s broken module persists and latches cumulative pass at0%. That is why unlatchedtask_allandiso_latevs.task_allare our primary correctness metrics.
Why Neither Model Swaps Nor Entropy-Seeking Decoding Substitute for Strong Tests #
We tested two natural mitigations: swapping to a different model family and entropy-restoring Best-of-K decoding.
First, in a symmetric cross-family handoff between Qwen2.5-Coder-14B and DeepSeek-Coder-6.7B (3 paired seeds each), self-authorship remained the lowest-entropy regime on both models—yet reading the other LLM family’s code still contracted cross-entropy and predictive entropy sharply relative to human history (DeepSeek on Qwen-14B: , vs. human 0.1566; Qwen-14B on DeepSeek: , vs. human 0.0921). Distinct coding LLMs appear to share a convergent low-entropy synthetic-code manifold.
Second, selecting smoke-passing candidates that maximize corpus-divergence novelty (max_ent_corpus_div, ) reliably restores greedy predictive entropy (+0.0261 nats over compute-matched greedy_bok at , 8/8 runs, ; +58.9% on 14B), yet does not rescue hidden-suite accuracy—and in fact trails plain self_generated on late-task correctness ( 15.6% vs. 25.0% on 7B; 28.1% vs. 46.9% on 14B) due to lower smoke-pass rates ( 20%–48%). Inference-time diversity counters predictive narrowing, but durable long-horizon reliability requires strong exogenous specification tests and human-in-the-loop diversity.
(Together with our companion Zerg AI study on Cross-Architecture Activation Delta Alignment, this work probes how model geometry interacts with its operating distribution—both across long agent horizons and across distinct model families.)
Raw Pre-Processor Predictive Token Entropy Across Regimes (Suite 2, Qwen-14B & 7B)
Mean greedy probe Shannon entropy (nats/token, raw output_logits=True). Human defects do not contract entropy; self-authorship contracts it ~20%.
Read the full technical report for derivations, ablations, and complete tables, or explore datasets, models, runs, and raw downloads on Zerg Platform.
References #
- [1] I. Shumailov, Z. Shumaylov, Y. Zhao, N. Papernot, R. Anderson, Y. Gal(2024).AI Models Collapse When Trained on Recursively Generated Data ↗ Nature, 631:755–759.
- [2] G. Orlanski, D. Roy, A. Yun, C. Shin, A. Gu, A. Ge, D. Adila, N. Roberts, F. Sala, A. Albarghouthi(2026).SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks ↗ arXiv:2603.24755 (March 2026).
- [3] J. Chen, X. Xu, H. Wei, C. Chen, B. Zhao(2026).SWE-CI: Evaluating Agent Capabilities in Maintaining Codebases via Continuous Integration ↗ arXiv:2603.03823 (March 2026).
- [4] K. N. A. Shastry, G. Senrayan, S. Satapara, P. Panda, C. Devaguptapu(2026).Beyond Isolated Tasks: A Framework for Evaluating Coding Agents on Sequential Software Evolution (SWE-STEPS) ↗ arXiv:2604.03035 (April 2026).
- [5] S. Patel, B. L. Hou, A. Purohit, K. Xu, J. Pan, H. He, V. Chen(2026).Is Agent Code Less Maintainable Than Human Code? (CodeThread) ↗ arXiv:2606.21804 (June 2026).
- [6] Q. Jin, L. Tung, K. Li, Q. Shi et al.(2026).ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenance ↗ EMNLP 2026 · arXiv:2607.02606.
- [7] R. Pan, J. Zhang, L. Wu, Y. Zhang, H. Zhang, L. Zhang(2026).Do Modifications Made by Coding Agents Make Subsequent Software Maintenance Harder? (SWE-Maintain) ↗ arXiv:2610.14768 (October 2026).
- [8] X. Zeng, Z. Liu, Z. Lin(2026).Multi-step SWE: Can Coding Agents Keep Building on Their Own Code Over Long Horizons? ↗ arXiv:2611.07166 (November 2026).
- [9] A. Aspuru-Guzik, V. Bernales(2026).Where the Tokens Go: Heat, Entropy and Error in Agentic Coding ↗ arXiv:2611.23375 (November 2026).
- [10] A. Panickssery, S. R. Bowman, S. Feng(2024).LLM Evaluators Recognize and Favor Their Own Generations ↗ NeurIPS 2024.
- [11] S. Alemohammad, J. Casco-Rodriguez, L. Luzi et al.(2024).Self-Consuming Generative Models Go MAD ↗ ICLR 2024.
- [12] E. Dohmatob, Y. Feng, P. Yang, F. Charton, J. Kempe(2024).A Tale of Tails: Model Collapse as a Change of Scaling Laws ↗ ICML 2024.
- [13] C. E. Jimenez, J. Yang, A. Wettig, S. Yao et al.(2024).SWE-bench: Can Language Models Resolve Real-World GitHub Issues? ↗ ICLR 2024.
- [14] Zerg AI(2026).Agentic Entropic Collapse — Open Datasets, 60 L40S Runs & Downloadable CSV/JSON Bundles (Suite 1 + Suite 2) ↗ Zerg Platform Research Archive.
Citation #
@techreport{zergai2026aec,
title={Agentic Entropic Collapse: Confidence--Correctness Decoupling and In-Context Self-Conditioning in Stateful Coding Agents},
author={{Zerg AI}},
year={2026},
institution={Zerg AI Research},
url={https://zergscholar.com/site/agentic-entropic-collapse}
}