A Theoretical Analysis of the Repetition Problem in Text Generation
摘要
Text generation tasks, including translation, summarization, language models, and etc. see rapid growth during recent years. Despite the remarkable achievements, the repetition problem has been observed in nearly all text generation models undermining the generation performance extensively. To solve the repetition problem, many methods have been proposed, but there is no existing theoretical analysis to show why this problem happens and how it is resolved. In this paper, we propose a new framework for theoretical analysis for the repetition problem. We first define the Average Repetition Probability (ARP) to characterize the repetition problem quantitatively. Then, we conduct an extensive analysis of the Markov generation model and derive several upper bounds of the average repetition probability with intuitive understanding. We show that most of the existing methods are essentially minimizing the upper bounds explicitly or implicitly. Grounded on our theory, we show that the repetition problem is, unfortunately, caused by the traits of our language itself. One major reason is attributed to the fact that there exist too many words predicting the same word as the subsequent word with high probability. Consequently, it is easy to go back to that word and form repetitions and we dub it as the high inflow problem. Furthermore, we extend our analysis to broader generation models by deriving a concentration bound of the average repetition probability for a general generation model. Finally, based on the theoretical upper bounds, we propose a novel rebalanced encoding approach to alleviate the high inflow problem and thus reducing the upper bound. The experimental results show that our theoretical framework is applicable in general generation models and our proposed rebalanced encoding approach alleviates the repetition problem significantly in both the translation task and the language modeling task. The source code of this paper can be obtained from https://github.com/fuzihaofzh/repetition-problem-nlg.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 31 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Neural Text Generation With Unlikelihood Training 引用了 The Curious Case of Neural Text Degeneration
- The Curious Case of Neural Text Degeneration 引用了 Neural Text Generation With Unlikelihood Training
- From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers 引用了 Neural Text Generation With Unlikelihood Training
- From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers 引用了 Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation
- From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers 引用了 Language Models are Few-Shot Learners
- From Self-Attention to Markov Models: Unveiling the Dynamics of Generative Transformers 引用了 The Curious Case of Neural Text Degeneration
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation 引用了 Neural Text Generation With Unlikelihood Training
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation 引用了 Language Models are Few-Shot Learners
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation 引用了 The Curious Case of Neural Text Degeneration
- On the Effectiveness of Parameter-Efficient Fine-Tuning 引用了 Language Models are Few-Shot Learners
- Stay on Topic with Classifier-Free Guidance 引用了 Language Models are Few-Shot Learners
- Stay on Topic with Classifier-Free Guidance 引用了 The Curious Case of Neural Text Degeneration
- Language Models are Few-Shot Learners 引用了 The Curious Case of Neural Text Degeneration
- Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspective 引用了 Neural Text Generation With Unlikelihood Training
- Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspective 引用了 Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation
- Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data Perspective 引用了 The Curious Case of Neural Text Degeneration
- The Curious Case of Neural Text Degeneration 引用了 Language GANs Falling Short
引用它的顶会 Paper31
- On the Effectiveness of Parameter-Efficient Fine-TuningZihao Fu, Haoran Yang, Anthony Man-Cho So, Wai Lam 等AAAI 2023 · 234 次引用
- Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text GenerationJin Xu, Xiaojiang Liu, Jianhao Yan, Deng Cai 等NeurIPS 2022 · 135 次引用
- Stay on Topic with Classifier-Free GuidanceGuillaume Sanchez, Alexander Spangher, Honglu Fan, Elad Levi 等ICML 2024 · 76 次引用
- Repetition In Repetition Out: Towards Understanding Neural Text Degeneration from the Data PerspectiveHuayang Li, Tian Lan, Zihao Fu, Deng Cai 等NeurIPS 2023 · 54 次引用
- From Self-Attention to Markov Models: Unveiling the Dynamics of Generative TransformersMuhammed Emrullah Ildiz, Yixiao Huang, Yingcong Li, Ankit Singh Rawat 等ICML 2024 · 45 次引用
它引用的 Paper6
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
- Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan 等ICLR 2020 · 683 次引用
- Language GANs Falling ShortMassimo Caccia, Lucas Caccia, William Fedus, Hugo Larochelle 等ICLR 2020 · 236 次引用
- Partially-Aligned Data-to-Text Generation with Distant SupervisionZihao Fu, Bei Shi, Wai Lam, Lidong Bing 等EMNLP 2020 · 19 次引用
相关 Paper
- Rethinking Repetition Problems of LLMs in Code GenerationYihong Dong, Yuchen Liu, Xue Jiang, Bin Gu 等ACL 2025
- Revisiting Representation Degeneration Problem in Language ModelingZhong Zhang, Chongming Gao, Cong Xu, Rui Miao 等EMNLP Findings 2020 · 19 次引用
- Mitigating the Learning Bias towards Repetition by Self-Contrastive Training for Open-Ended GenerationJian Guan, Minlie HuangACL Findings 2023 · 1 次引用
- Context Tokens are Anchors: Understanding the Repeat Curse in dMLLMs from an Information Flow PerspectiveQiyan Zhao, Xiaofeng Zhang, Shuochen Chang, Qianyu Chen 等ICLR 2026 · 3 次引用
- Language Generation with Replay: A Learning-Theoretic View of Model CollapseGiorgio Racca, Michal Valko, Amartya SanyalICML 2026 · 4 次引用
