When Do Repetition Loops Lock? Truncation Sampling, Bounded Penalties, and a Blind Spot in DRY
Not on the map. Why?
Abstract (arXiv)
Language models sometimes repeat verbatim until the generation limit. We study the exit rather than the entrance: given that a span has already been repeated n times, when is escape still possible? Along the loop the context is deterministic, so the probability that a loop survives m more repetitions is, under any sampler, a product of per-step continuation probabilities computable from one forward pass. A lock, where this probability stays exactly one, is its limiting case. Pure sampling never locks; top-p with threshold π>1/2 locks a position exactly when the continuation probability reaches π. A bounded penalty can leave a position locked; a penalty that outgrows the model's preference for the loop over unseen tokens guarantees escape under top-p. The same analysis shows a blind spot in the widely deployed DRY sampler: its sequence breakers cap the penalty at λ bg-1-a for loops whose longest breaker-free run has g tokens. On eleven open models, 61% of locked units with g=6 stay locked under DRY and 0.2% with g=8. In free generation with llama.cpp, all 199 loops that survive DRY, on six models, have g≤ 7. We propose a count term that grows exponentially with the number of verbatim recurrences, up to its look-back window, and closes this blind spot. Added to DRY (DRY-C), it cuts loops in 1,800 structured generations on five models from 167 to 34, and loops reaching the length limit from 150 to 0, with reasoning accuracy and item coverage on par with DRY. DRY's own length term costs 2.5 to 14.2 points of accuracy on GSM8K and MATH-500; used in its place, the count term keeps the default sampler's accuracy and leaves one of the 1,800 generations at the limit.
Key facts. Cited by 1 paper in the map (data through 26 Nov 2026). Builds on 29 of its 42 references that are in the map. Submitted 17 Oct 2026.
Builds on
29 of 42 references.
References · 29
- 2024The Llama 3 Herd of Modelscited by 16,114
- 2016Pointer Sentinel Mixture Modelscited by 3,345
- 2019The Curious Case of Neural Text Degenerationcited by 3,022
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 799
- 2025Phi-4-Mini Technical Report: Compact yet Powerful Multimodal Language Models via Mixture-of-LoRAscited by 613
- 2019Neural Text Generation with Unlikelihood Trainingcited by 522
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 370
- 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 255
- 2022A Contrastive Framework for Neural Text Generationcited by 231
- 2024Turning Up the Heat: Min-p Sampling for Creative and Coherent LLM Outputscited by 164
- 2022Truncation Sampling as Language Model Desmoothingcited by 133
17 more
- 2022Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generationcited by 106
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 87
- 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 41
- 2025Wait, Wait, Wait... Why Do Reasoning Models Loop?cited by 35
- 2023Closing the Curious Case of Neural Text Degenerationcited by 33
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 11
- 2026Feedback That Backfires: Why Small Language Model Agents Repeat the Call They Just Watched Failcited by 8
- 2025Word Salad Chopper: Reasoning Models Waste A Ton Of Decoding Budget On Useless Repetitions, Self-Knowinglycited by 7
- 2025Antislop: A Comprehensive Framework for Identifying and Eliminating Repetitive Patterns in Language Modelscited by 5
- 2026Breaking the Likelihood Trap: Variance-Calibrated Modulation for Large Language Model Decodingcited by 3
- 2025Solving LLM Repetition Problem in Production: A Comprehensive Study of Multiple Solutionscited by 2
- 2026When Can One Neuron Fix Repetition Loops in LLMs?cited by 2
- 2026XTC: Head-Aware Sampling by Excluding Top Choicescited by 2
- 2026Don't Repeat Yourself: Stopping Verbatim Loops at Sampling Timecited by 2
- 2025LZ Penalty: An information-theoretic repetition penalty for autoregressive language modelscited by 1
- 2026Gauge dependence and structured-output corruption in sign-branched repetition penalties: measurements across models, inference stacks, and alternative repetition controlscited by 1
- 2026Calibrated e-CUSUM Decoding for Quantized Reasoning Models: Why Token Log-Probability Is the Wrong Observable for Decoding Monitorscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.