This paper, a collaboration between researchers at New York University and Facebook AI Research, tackles one of the most frustrating "open secrets" in Natural Language Processing: why even our best models eventually start babbling in repetitive loops.
The authors propose Unlikelihood Training, a new objective that explicitly penalizes undesirable model behaviors—like repetition and over-reliance on frequent words—during training. By forcing the model to assign lower probabilities to "negative candidates," they significantly reduce text degeneration and produce generations that humans find much more natural than those from standard models.
The Problem: Maximum Likelihood's Blind Spot
If you’ve ever used a large language model and seen it get stuck in a loop (e.g., "I don't know, I don't know, I don't know..."), you’ve witnessed neural text degeneration.
Standard models are trained using Maximum Likelihood Estimation (MLE). MLE's goal is simple: maximize the probability of the next "correct" word in a human dataset. However, the authors argue that MLE is fundamentally lopsided. It focuses entirely on what the model should say, but never tells the model what it shouldn't say.
Consequently, the model's underlying probability distribution becomes broken. It assigns too much weight to repetitive sequences and high-frequency "dull" words. While researchers often use "band-aid" fixes at inference time—like Nucleus Sampling or Beam Blocking—these don't fix the model itself; they just try to navigate around its flaws.
The Solution: Unlikelihood Training
The core innovation is the Unlikelihood Loss. Instead of just rewarding the ground-truth token, this objective identifies "negative candidates" and explicitly pushes their probability down.
The authors implement this at two levels:
- Token-level Unlikelihood: During training, any token that appeared in the previous context (but isn't the current ground-truth word) is treated as a negative candidate. This teaches the model, "Don't just repeat what you just said."
- Sequence-level Unlikelihood: The model generates a full sequence. If it produces repeating n-grams (phrases), those specific tokens are flagged as negative candidates. The model is then fine-tuned to lower the probability of those specific "mistakes."
Crucially, this isn't just a new way to train from scratch. The authors show it can be used to fine-tune existing models (like GPT-2), acting as a "correction" phase that requires relatively few updates to see massive improvements.
Key Insights
- The "Broken" Distribution: The authors prove that the issue isn't just the decoding algorithm; it’s the training objective itself. MLE creates a distribution where the "wrong" repetitive words are often ranked much higher than they should be.
- The Power of "No": By introducing a negative constraint, the model learns a more "human-like" distribution. Humans naturally avoid excessive repetition; unlikelihood training mathematically encodes this intuition into the loss function.
- Vocabulary Diversity: One of the most striking findings is that by penalizing repeats, the model naturally starts using a wider, more diverse set of unique tokens, matching human-level statistics much more closely than standard MLE.
Key Results
Evaluated primarily on the Wikitext-103 benchmark, unlikelihood training outperforms standard MLE across almost every metric of text quality:
- Drastic Reduction in Repetition: In greedy decoding, 4-gram repetition (
seq-rep-4) dropped from 44.2% (MLE) to just 5.8% (Unlikelihood token+seq). With beam search, it dropped from 52.3% to a staggering 1.3%. - Increased Unique Tokens: The number of unique sequences (
uniq-seq) generated by the model using beam search increased from 9.5k to 19.1k, nearly matching the human baseline of 19.8k. - Human Preference: In head-to-head trials, human judges preferred generations from the Unlikelihood model over standard MLE models—even when those MLE models used popular tricks like Nucleus Sampling.
- Maintained Fluency: Importantly, these gains didn't come at the cost of fluency. The models maintained low perplexity, meaning they remained coherent and grammatically correct.
Limitations and Future Work
While highly effective, the authors note a few areas for growth:
- Candidate Selection: Currently, negative candidates are chosen based on simple repetition. Future work could involve more sophisticated "negative" traits, such as penalizing logical contradictions, factual errors, or toxic language.
- Hyperparameter Sensitivity: The balance between the MLE loss and the Unlikelihood loss requires tuning to ensure the model doesn't become too averse to common words.
- Beyond Text: The concept of "unlikelihood" could potentially be applied to other generative fields, like music or image generation, where repetitive patterns are also a common failure mode.
Summary updated