Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation
Not on the map. Why?
Abstract (arXiv)
While large-scale neural language models, such as GPT2 and BART, have achieved impressive results on various text generation tasks, they tend to get stuck in undesirable sentence-level loops with maximization-based decoding algorithms (textite.g., greedy search). This phenomenon is counter-intuitive since there are few consecutive sentence-level repetitions in human corpora (e.g., 0.02% in Wikitext-103). To investigate the underlying reasons for generating consecutive sentence-level repetitions, we study the relationship between the probabilities of the repetitive tokens and their previous repetitions in the context. Through our quantitative experiments, we find that 1) Language models have a preference to repeat the previous sentence; 2) The sentence-level repetitions have a textitself-reinforcement effect: the more times a sentence is repeated in the context, the higher the probability of continuing to generate that sentence; 3) The sentences with higher initial probabilities usually have a stronger self-reinforcement effect. Motivated by our findings, we propose a simple and effective training method DITTO (PseuunderlineDo-RepetunderlineITion PenalizaunderlineTiunderlineOn), where the model learns to penalize probabilities of sentence-level repetitions from pseudo repetitive data. Although our method is motivated by mitigating repetitions, experiments show that DITTO not only mitigates the repetition issue without sacrificing perplexity, but also achieves better generation quality. Extensive experiments on open-ended text generation (Wikitext-103) and text summarization (CNN/DailyMail) demonstrate the generality and effectiveness of our method.
Key facts. Cited by 90 papers in the map (data through 7 Oct 2026). Builds on 37 of its 44 references that are in the map. First posted on arXiv 6 Jun 2022.
Builds on
37 of 44 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019The Curious Case of Neural Text Degenerationcited by 2,881
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
- 2018Hierarchical Neural Story Generationcited by 1,182
- 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
25 more
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
- 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
- 2019Text Summarization with Pretrained Encoderscited by 553
- 2019Neural Text Generation with Unlikelihood Trainingcited by 489
- 2020Towards a Human-like Open-Domain Chatbotcited by 467
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
- 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
- 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
- 2022A Contrastive Framework for Neural Text Generationcited by 224
- 2020ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-trainingcited by 221
- 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
- 2018Learning to Write with Cooperative Discriminatorscited by 119
- 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
- 2016A Simple, Fast Diverse Decoding Algorithm for Neural Generationcited by 58
- 2020Consistency of a Recurrent Language Model With Respect to Incomplete Decodingcited by 54
- 2021Long Text Generation by Modeling Sentence-Level and Discourse-Level Coherencecited by 45
- 2020PALM: Pre-training an Autoencoding&Autoregressive Language Model for Context-conditioned Generationcited by 42
- 2020ERNIE-GEN: An Enhanced Multi-Flow Pre-training and Fine-tuning Framework for Natural Language Generationcited by 39
- 2019Exposure Bias versus Self-Recovery: Are Distortions Really Incremental for Autoregressive Text Generation?cited by 33
- 2021Mask Attention Networks: Rethinking and Strengthen Transformercited by 28
- 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
- 2022On the probability-quality paradox in language generationcited by 16
Built on by
Citing papers per year: 2022: 3; 2023: 21; 2024: 18; 2025: 19; 2026: 29.
90 papers.
Sort:
By area:
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 367
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2024T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Modelscited by 66
- 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2023PLANNER: Generating Diversified Paragraph via Latent Language Diffusion Modelcited by 56
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
- 2024VideoLLM Knows When to Speak: Enhancing Time-Sensitive Video Comprehension with Video-Text Duet Interaction Formatcited by 44
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
- 2024True Knowledge Comes from Practice: Aligning LLMs with Embodied Environments via Reinforcement Learningcited by 36
- 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
38 more
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
- 2023Understanding In-Context Learning from Repetitionscited by 27
- 2023Why Does Zero-Shot Cross-Lingual Generation Fail? An Explanation and a Solutioncited by 22
- 2024Repetition Neurons: How Do Language Models Produce Repetitions?cited by 22
- 2024Improving Open-Ended Text Generation via Adaptive Decodingcited by 21
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiencycited by 21
- 2025OThink-R1: Intrinsic Fast/Slow Thinking Mode Switching for Over-Reasoning Mitigationcited by 17
- 2023A Frustratingly Simple Decoding Method for Neural Text Generationcited by 16
- 2023Structural Priming Demonstrates Abstract Grammatical Representations in Multilingual Language Modelscited by 16
- 2024SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Modelscited by 16
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasingcited by 14
- 2023Penalty Decoding: Well Suppress the Self-Reinforcement Effect in Open-Ended Text Generationcited by 13
- 2024No Free Lunch Theorem for Privacy-Preserving LLM Inferencecited by 13
- 2025Chronological Thinking in Full-Duplex Spoken Dialogue Language Modelscited by 13
- 2023Object Recognition as Next Token Predictioncited by 12
- 2024DiscDiff: Latent Diffusion Model for DNA Sequence Generationcited by 12
- 2024Adversarial Representation Engineering: A General Model Editing Framework for Large Language Modelscited by 12
- 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Modelscited by 10
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Modelscited by 10
- 2024The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generationcited by 9
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 9
- 2023Language Model Decoding as Direct Metrics Optimizationcited by 8
- 2026Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrowcited by 8
- 2023KoRC: Knowledge oriented Reading Comprehension Benchmark for Deep Text Understandingcited by 7
- 2023Towards an On-device Agent for Text Rewritingcited by 7
- 2024JumpCoder: Go Beyond Autoregressive Coder via Online Modificationcited by 7
- 2025LoopLLM: Transferable Energy-Latency Attacks in LLMs via Repetitive Generationcited by 7
- 2026ShortOPD: Recovering Pruned LLMs with Short-to-Long On-Policy Distillationcited by 7
- 2023Error Norm Truncation: Robust Training in the Presence of Data Noise for Text Generation Modelscited by 6
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 6
- 2023ZeroGen: Zero-shot Multimodal Controllable Text Generation with Multiple Oraclescited by 5
- 2025Communication is All You Need: Persuasion Dataset Construction via Multi-LLM Communicationcited by 5
- 2025What Happens During the Loss Plateau? Understanding Abrupt Learning in Transformerscited by 5
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learningcited by 5
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
- 2025On the Empirical Power of Goodness-of-Fit Tests in Watermark Detectioncited by 5
- 2026HSD: Training-Free Acceleration for Document Parsing Vision-Language Models with Hierarchical Speculative Decodingcited by 5
50 most cited of 90 All 90 (JSON)
- 2026Invent a Dataset: Measuring dataset generation abilities with zero seed1 Oct 2026
- 2026Initialization Improves LLM-Driven Discovery30 Sep 2026
- 2026Uncovering Uncontrolled Repetition through Residual Stream Dynamics30 Sep 2026
- 2026Absorbed in Inertia: Activation Analysis for Computer-Use Agents29 Sep 2026
- 2026Simplex Diffusion Models28 Sep 2026
- 2026Target-Language Generation in Multilingual Models: Activation Steering and Optimal Control15 Sep 2026
- 2026FOCUS & RePAIR: Mitigating Text Degeneration via Token-Level Guidance for Pruned Large Language Models27 Aug 2026
- 2026Feedback That Backfires: Why Small Language Model Agents Repeat the Call They Just Watched Fail24 Aug 2026
- 2026Don't Repeat Yourself: Stopping Verbatim Loops at Sampling Time24 Aug 2026
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corpora10 Aug 2026
- 2026Do LLM Debates Repeat Arguments Differently Across Languages?26 Jul 2026
- 2026ShortOPD: Recovering Pruned LLMs with Short-to-Long On-Policy Distillation14 Jul 2026
38 more
- 2026Geometric Reciprocity: Unlocking Self-Supervision for Stereoscopic Video Generation6 Jul 2026
- 2026Low Perplexity is Repetition: A One-Dimensional Self-Conditioning Attractor in Continuous Diffusion LMs1 Jul 2026
- 2026When More Becomes Less: Position-Dependent Repetition Effects in Language Models24 Jun 2026
- 2026Dense Coordinate-List Fine-Tuning Induces a Controllable Interference Surface in Vision-Language Models12 Jun 2026
- 2026When Can One Neuron Fix Repetition Loops in LLMs?9 Jun 2026
- 2026OmniGen-AR: AutoRegressive Any-to-Image Generation8 Jun 2026
- 2026Tackling the Root of Misinformation by Teaching Laypeople about Logical Fallacies via Socratic Questioning and Critical Argumentation31 May 2026
- 2026Self-Attention as a Covariance Readout: A Unified View of In-Context Learning and Repetition11 May 2026
- 2026Escaping Mode Collapse in LLM Generation via Geometric Regulation1 May 2026
- 2026LoopGuard: Breaking Self-Reinforcing Attention Loops via Dynamic KV Cache Intervention11 Apr 2026
- 2026Resource Consumption Threats in Large Language Models17 Mar 2026
- 2026HSD: Training-Free Acceleration for Document Parsing Vision-Language Models with Hierarchical Speculative Decoding13 Feb 2026
- 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammars31 Jan 2026
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspective28 Jan 2026
- 2026Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrow22 Jan 2026
- 2026LLM Flow Processes for Text-Conditioned Regression5 Jan 2026
- 2026MORE: Multi-Objective Adversarial Attacks on Speech Recognition5 Jan 2026
- 2025Solving LLM Repetition Problem in Production: A Comprehensive Study of Multiple Solutions4 Dec 2025
- 2025Enhancing Instruction-Following Capabilities in Seq2Seq Models: DoLA Adaptations for T53 Dec 2025
- 2025LoopLLM: Transferable Energy-Latency Attacks in LLMs via Repetitive Generation11 Nov 2025
- 2025On the Empirical Power of Goodness-of-Fit Tests in Watermark Detection4 Oct 2025
- 2025Chronological Thinking in Full-Duplex Spoken Dialogue Language Models2 Oct 2025
- 2025Efficient On-Device Agents via Adaptive Context Management24 Sep 2025
- 2025Enhancing Project-Specific Code Completion by Inferring Internal API Information28 Jul 2025
- 2025Analyzing and Mitigating Repetitions in Trip Recommendation26 Jul 2025
- 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learning10 Jul 2025
- 2025What Happens During the Loss Plateau? Understanding Abrupt Learning in Transformers16 Jun 2025
- 2025OThink-R1: Intrinsic Fast/Slow Thinking Mode Switching for Over-Reasoning Mitigation3 Jun 2025
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Models22 May 2025
- 2025Induction Head Toxicity Mechanistically Explains Repetition Curse in Large Language Models17 May 2025
- 2025Code Copycat Conundrum: Demystifying Repetition in LLM-based Code Generation17 Apr 2025
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMs5 Apr 2025
- 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language models1 Apr 2025
- 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasing21 Feb 2025
- 2025Communication is All You Need: Persuasion Dataset Construction via Multi-LLM Communication13 Feb 2025
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiency7 Feb 2025
- 2024The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generation5 Dec 2024
- 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novels3 Dec 2024
50 newest of 90 All 90 (JSON)
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiencycited by 21
- 2025OThink-R1: Intrinsic Fast/Slow Thinking Mode Switching for Over-Reasoning Mitigationcited by 17
- 2025Chronological Thinking in Full-Duplex Spoken Dialogue Language Modelscited by 13
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Modelscited by 10
- 2023The Inner Sentiments of a Thoughtcited by 4
- 2025Chronological Thinking in Full-Duplex Spoken Dialogue Language Models2 Oct 2025
- 2025OThink-R1: Intrinsic Fast/Slow Thinking Mode Switching for Over-Reasoning Mitigation3 Jun 2025
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Models22 May 2025
- 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiency7 Feb 2025
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaboration30 Sep 2023
- 2023The Inner Sentiments of a Thought4 Jul 2023
- 2023PLANNER: Generating Diversified Paragraph via Latent Language Diffusion Modelcited by 56
- 2024DiscDiff: Latent Diffusion Model for DNA Sequence Generationcited by 12
- 2026Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrowcited by 8
- 2026Low Perplexity is Repetition: A One-Dimensional Self-Conditioning Attractor in Continuous Diffusion LMscited by 2
- 2026Simplex Diffusion Modelscited by 1
- 2026Simplex Diffusion Models28 Sep 2026
- 2026Low Perplexity is Repetition: A One-Dimensional Self-Conditioning Attractor in Continuous Diffusion LMs1 Jul 2026
- 2026Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrow22 Jan 2026
- 2024DiscDiff: Latent Diffusion Model for DNA Sequence Generation8 Feb 2024
- 2023PLANNER: Generating Diversified Paragraph via Latent Language Diffusion Model5 Jun 2023
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
- 2026HSD: Training-Free Acceleration for Document Parsing Vision-Language Models with Hierarchical Speculative Decodingcited by 5
- 2026Dense Coordinate-List Fine-Tuning Induces a Controllable Interference Surface in Vision-Language Modelscited by 0
- 2026Dense Coordinate-List Fine-Tuning Induces a Controllable Interference Surface in Vision-Language Models12 Jun 2026
- 2026HSD: Training-Free Acceleration for Document Parsing Vision-Language Models with Hierarchical Speculative Decoding13 Feb 2026
- 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspective28 Jan 2026
- 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 367
- 2024T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Modelscited by 66
- 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
- 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
- 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
- 2024VideoLLM Knows When to Speak: Enhancing Time-Sensitive Video Comprehension with Video-Text Duet Interaction Formatcited by 44
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
- 2024True Knowledge Comes from Practice: Aligning LLMs with Embodied Environments via Reinforcement Learningcited by 36
- 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
- 2023Understanding In-Context Learning from Repetitionscited by 27
12 most cited of 70 All 70 (JSON)
- 2026Invent a Dataset: Measuring dataset generation abilities with zero seed1 Oct 2026
- 2026Initialization Improves LLM-Driven Discovery30 Sep 2026
- 2026Uncovering Uncontrolled Repetition through Residual Stream Dynamics30 Sep 2026
- 2026Target-Language Generation in Multilingual Models: Activation Steering and Optimal Control15 Sep 2026
- 2026FOCUS & RePAIR: Mitigating Text Degeneration via Token-Level Guidance for Pruned Large Language Models27 Aug 2026
- 2026Don't Repeat Yourself: Stopping Verbatim Loops at Sampling Time24 Aug 2026
- 2026The Announcement Carries the Cue: Markup, Boundaries, and the Notation of Pre-Training Corpora10 Aug 2026
- 2026Do LLM Debates Repeat Arguments Differently Across Languages?26 Jul 2026
- 2026ShortOPD: Recovering Pruned LLMs with Short-to-Long On-Policy Distillation14 Jul 2026
- 2026Geometric Reciprocity: Unlocking Self-Supervision for Stereoscopic Video Generation6 Jul 2026
- 2026When More Becomes Less: Position-Dependent Repetition Effects in Language Models24 Jun 2026
- 2026When Can One Neuron Fix Repetition Loops in LLMs?9 Jun 2026
12 newest of 70 All 70 (JSON)