mlsanityData to 7 Oct 2026

Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation

arXiv 2206.02369 ↗First posted 6 Jun 2022cs.CLcited by 90

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  8. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  9. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,281
  10. 2018Hierarchical Neural Story Generationcited by 1,182
  11. 2019PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarizationcited by 1,100
  12. 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,041
25 more
  1. 2015Teaching Machines to Read and Comprehendcited by 1,039
  2. 2014Deep Visual-Semantic Alignments for Generating Image Descriptionscited by 966
  3. 2016Abstractive Text Summarization Using Sequence-to-Sequence RNNs and Beyondcited by 809
  4. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  5. 2021Prompt Programming for Large Language Models: Beyond the Few-Shot Paradigmcited by 599
  6. 2019Text Summarization with Pretrained Encoderscited by 553
  7. 2019Neural Text Generation with Unlikelihood Trainingcited by 489
  8. 2020Towards a Human-like Open-Domain Chatbotcited by 467
  9. 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 466
  10. 2017A Deep Reinforced Model for Abstractive Summarizationcited by 364
  11. 2017OpenNMT: Open-source Toolkit for Neural Machine Translationcited by 251
  12. 2022A Contrastive Framework for Neural Text Generationcited by 224
  13. 2020ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-trainingcited by 221
  14. 2020UniLMv2: Pseudo-Masked Language Models for Unified Language Model Pre-Trainingcited by 204
  15. 2018Learning to Write with Cooperative Discriminatorscited by 119
  16. 2020A Theoretical Analysis of the Repetition Problem in Text Generationcited by 83
  17. 2016A Simple, Fast Diverse Decoding Algorithm for Neural Generationcited by 58
  18. 2020Consistency of a Recurrent Language Model With Respect to Incomplete Decodingcited by 54
  19. 2021Long Text Generation by Modeling Sentence-Level and Discourse-Level Coherencecited by 45
  20. 2020PALM: Pre-training an Autoencoding&Autoregressive Language Model for Context-conditioned Generationcited by 42
  21. 2020ERNIE-GEN: An Enhanced Multi-Flow Pre-training and Fine-tuning Framework for Natural Language Generationcited by 39
  22. 2019Exposure Bias versus Self-Recovery: Are Distortions Really Incremental for Autoregressive Text Generation?cited by 33
  23. 2021Mask Attention Networks: Rethinking and Strengthen Transformercited by 28
  24. 2021Straight to the Gradient: Learning to Use Novel Tokens for Neural Text Generationcited by 19
  25. 2022On the probability-quality paradox in language generationcited by 16

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 3; 2023: 21; 2024: 18; 2025: 19; 2026: 29.

90 papers.

Sort:

By area:

  1. 2023DoLa: Decoding by Contrasting Layers Improves Factuality in Large Language Modelscited by 367
  2. 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
  3. 2024T2VSafetyBench: Evaluating the Safety of Text-to-Video Generative Modelscited by 66
  4. 2022Contrastive Search Is What You Need For Neural Text Generationcited by 58
  5. 2025OpenCodeInstruct: A Large-scale Instruction Tuning Dataset for Code LLMscited by 57
  6. 2023PLANNER: Generating Diversified Paragraph via Latent Language Diffusion Modelcited by 56
  7. 2024Risks of AI Scientists: Prioritizing Safeguarding Over Autonomycited by 49
  8. 2024VideoLLM Knows When to Speak: Enhancing Time-Sensitive Video Comprehension with Video-Text Duet Interaction Formatcited by 44
  9. 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
  10. 2023Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspectivecited by 39
  11. 2024True Knowledge Comes from Practice: Aligning LLMs with Embodied Environments via Reinforcement Learningcited by 36
  12. 2024From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformerscited by 34
38 more
  1. 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 32
  2. 2023Understanding In-Context Learning from Repetitionscited by 27
  3. 2023Why Does Zero-Shot Cross-Lingual Generation Fail? An Explanation and a Solutioncited by 22
  4. 2024Repetition Neurons: How Do Language Models Produce Repetitions?cited by 22
  5. 2024Improving Open-Ended Text Generation via Adaptive Decodingcited by 21
  6. 2025S2-MAD: Breaking the Token Barrier to Enhance Multi-Agent Debate Efficiencycited by 21
  7. 2025OThink-R1: Intrinsic Fast/Slow Thinking Mode Switching for Over-Reasoning Mitigationcited by 17
  8. 2023A Frustratingly Simple Decoding Method for Neural Text Generationcited by 16
  9. 2023Structural Priming Demonstrates Abstract Grammatical Representations in Multilingual Language Modelscited by 16
  10. 2024SLED: Self Logits Evolution Decoding for Improving Factuality in Large Language Modelscited by 16
  11. 2025Unveiling Attractor Cycles in Large Language Models: A Dynamical Systems View of Successive Paraphrasingcited by 14
  12. 2023Penalty Decoding: Well Suppress the Self-Reinforcement Effect in Open-Ended Text Generationcited by 13
  13. 2024No Free Lunch Theorem for Privacy-Preserving LLM Inferencecited by 13
  14. 2025Chronological Thinking in Full-Duplex Spoken Dialogue Language Modelscited by 13
  15. 2023Object Recognition as Next Token Predictioncited by 12
  16. 2024DiscDiff: Latent Diffusion Model for DNA Sequence Generationcited by 12
  17. 2024Adversarial Representation Engineering: A General Model Editing Framework for Large Language Modelscited by 12
  18. 2024RefuteBench: Evaluating Refuting Instruction-Following for Large Language Modelscited by 10
  19. 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Modelscited by 10
  20. 2024The Hyperfitting Phenomenon: Sharpening and Stabilizing LLMs for Open-Ended Text Generationcited by 9
  21. 2025Repetitions are not all alike: distinct mechanisms sustain repetition in language modelscited by 9
  22. 2023Language Model Decoding as Direct Metrics Optimizationcited by 8
  23. 2026Parallelism and Generation Order in Masked Diffusion Language Models: Limits Today, Potential Tomorrowcited by 8
  24. 2023KoRC: Knowledge oriented Reading Comprehension Benchmark for Deep Text Understandingcited by 7
  25. 2023Towards an On-device Agent for Text Rewritingcited by 7
  26. 2024JumpCoder: Go Beyond Autoregressive Coder via Online Modificationcited by 7
  27. 2025LoopLLM: Transferable Energy-Latency Attacks in LLMs via Repetitive Generationcited by 7
  28. 2026ShortOPD: Recovering Pruned LLMs with Short-to-Long On-Policy Distillationcited by 7
  29. 2023Error Norm Truncation: Robust Training in the Presence of Data Noise for Text Generation Modelscited by 6
  30. 2026Context Tokens are Anchors: Understanding the Repetition Curse in dMLLMs from an Information Flow Perspectivecited by 6
  31. 2026Lookahead-then-Verify: Reliable Constrained Decoding for Diffusion LLMs under Context-Free Grammarscited by 6
  32. 2023ZeroGen: Zero-shot Multimodal Controllable Text Generation with Multiple Oraclescited by 5
  33. 2025Communication is All You Need: Persuasion Dataset Construction via Multi-LLM Communicationcited by 5
  34. 2025What Happens During the Loss Plateau? Understanding Abrupt Learning in Transformerscited by 5
  35. 2025Understanding and Controlling Repetition Neurons and Induction Heads in In-Context Learningcited by 5
  36. 2025Enhancing Project-Specific Code Completion by Inferring Internal API Informationcited by 5
  37. 2025On the Empirical Power of Goodness-of-Fit Tests in Watermark Detectioncited by 5
  38. 2026HSD: Training-Free Acceleration for Document Parsing Vision-Language Models with Hierarchical Speculative Decodingcited by 5

50 most cited of 90 All 90 (JSON)