Skip to main content
QUICK REVIEW

[Paper Review] Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation

Jin Xu, Xiaojiang Liu|arXiv (Cornell University)|Jun 6, 2022
Topic ModelingComputer Science21 citations
TL;DR

The paper analyzes why neural language models prefer repeating previous sentences and proposes a training method, DITTO, to exponentially decay repetition probability, improving generation quality without hurting perplexity.

ABSTRACT

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 ( extit{e.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 extit{self-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 extbf{DITTO} (Pseu\underline{D}o-Repet\underline{IT}ion Penaliza\underline{T}i\underline{O}n), 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.

Motivation & Objective

  • Investigate why maximization-based decoding leads to sentence-level repetition in neural text generation.
  • Quantify how repetition probability relates to previous repetitions in context.
  • Develop a training-based solution to reduce repetitions without harming language modeling performance.
  • Demonstrate the method’s effectiveness on open-ended generation and summarization tasks.

Proposed method

  • Analyze repetition dynamics by constructing repeated sentences and measuring token probability changes across repetitions.
  • Define metrics: Average Token Probability (TP), Rate of Increased Token Probability (IP), and Winner Rate (WR) to characterize self-reinforcement.
  • Propose DITTO (Pseudo Repetition Penalization) by generating pseudo repetitive data and applying a repetition-penalizing loss that decays repetition probability with repetition count (controlled by lambda).
  • Fine-tune a pre-trained Transformer model with a mix of standard MLE loss and DITTO loss to learn to avoid over-repetition.
  • Evaluate with MAUVE, perplexity, accuracy, and repetition metrics on Wikitext-103 open-ended generation and CNN/DailyMail summarization; assess compatibility with stochastic decoding.

Experimental results

Research questions

  • RQ1What causes language models to prefer repeating previous sentences under maximization-based decoding?
  • RQ2How does repetition probability evolve as historical repetitions accumulate (self-reinforcement)?
  • RQ3Which sentences are more prone to repetition and why?
  • RQ4Can a training-based approach mitigate repetitions without sacrificing language model quality?
  • RQ5Is the proposed method DITTO effective across open-ended generation and summarization tasks?

Key findings

  • Models show a strong preference to repeat the previous sentence even with a single repetition in context.
  • Repetition probability exhibits a self-reinforcement effect: it increases with the number of prior repetitions and stabilizes at a ceiling.
  • Sentences with higher initial probabilities experience stronger self-reinforcement and are more likely to be repetitively generated.
  • DITTO training reduces sentence- and phrase-level repetitions while improving or preserving generation quality (perplexity, accuracy, MAUVE).
  • DITTO remains effective with stochastic decoding strategies (top-k, nucleus sampling) and improves summarization metrics on CNN/DailyMail.

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.