Skip to main content
QUICK REVIEW

[Paper Review] A Theoretical Analysis of the Repetition Problem in Text Generation

Zihao Fu, Wai Lam|arXiv (Cornell University)|Dec 29, 2020
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

This paper proposes a theoretical framework to analyze the repetition problem in text generation, identifying 'high inflow words'—words predicted by many others—as the root cause. It introduces the Average Repetition Probability (ARP) and derives upper bounds, showing that existing sampling methods reduce repetition by minimizing these bounds. The authors further propose a rebalanced encoding method that merges high inflow word pairs, significantly reducing repetition in both machine translation and language modeling tasks.

ABSTRACT

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 derive 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. 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. The source code of this paper can be obtained from https://github.com/fuzihaofzh/repetition-problem-nlg.

Motivation & Objective

  • To identify the root cause of the repetition problem in neural text generation, which remains unexplained by existing theories.
  • To develop a quantitative measure—Average Repetition Probability (ARP)—to characterize repetition in sequence generation.
  • To theoretically analyze Markov and general generation models, deriving upper bounds on ARP that explain the effectiveness of existing sampling methods.
  • To propose a novel rebalanced encoding approach that reduces high inflow word pairs to alleviate repetition.
  • To validate the theory and method empirically across neural machine translation and language modeling tasks.

Proposed method

  • Define the Average Repetition Probability (ARP) as a quantitative metric for measuring repetition in text generation.
  • Analyze the Markov generation model to derive theoretical upper bounds on ARP, linking them to model behavior and sampling strategies.
  • Identify the 'high inflow problem'—where many words predict the same word with high probability—as a primary cause of repetition.
  • Extend the analysis to general generation models using a concentration bound for ARP, ensuring theoretical applicability beyond Markov chains.
  • Propose a rebalanced encoding method that merges high inflow word pairs into single tokens to reduce their collective influence on repetition.
  • Apply the rebalanced encoding method in both neural machine translation and language modeling tasks, comparing performance with standard sampling techniques.

Experimental results

Research questions

  • RQ1Why does the repetition problem persist across diverse text generation models despite significant progress in architecture and training?
  • RQ2What is the theoretical basis for the effectiveness of existing sampling methods like Top-k and nucleus sampling in reducing repetition?
  • RQ3How can the repetition problem be formally characterized and bounded in sequence generation models?
  • RQ4To what extent is the repetition problem caused by intrinsic properties of human language, particularly word transition patterns?
  • RQ5Can a structural modification to the input representation (rebalancing) effectively reduce repetition without altering the model architecture?

Key findings

  • The repetition problem is fundamentally caused by the linguistic structure of human language, particularly the prevalence of 'high inflow words' that are predicted by many preceding words.
  • Most existing sampling methods (e.g., Top-k, nucleus sampling) implicitly minimize the theoretical upper bounds of ARP, explaining their effectiveness.
  • The proposed rebalanced encoding method reduces ARP by merging high inflow word pairs into single tokens, leading to a measurable decrease in repetition.
  • In neural machine translation, the rebalanced encoding method achieves the lowest repetition scores at equivalent BLEU performance levels compared to baseline and sampling methods.
  • In language modeling, the method achieves the best trade-off between repetition and perplexity, outperforming temperature, Top-k, and nucleus sampling.
  • Empirical validation confirms a strong positive correlation between theoretical ARP and observed repetition metrics, confirming the well-defined nature of the ARP measure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.