Abstract
Modern language models trained via Maximum Likelihood Estimation (MLE) are prone to text degeneration, characterized by repetitive or incoherent output. This phenomenon stems from the Kullback-Leibler Divergence (KLD) objective, which forces the model to cover all training data, including noisy outliers and "data voids." In this work, we review TaiLr (Total Variation Guided Language Generation), a training objective that utilizes Total Variation Distance (TVD) to provide robustness against low-quality data. By effectively downweighting low-probability samples, TaiLr prevents the model from overestimating degenerated sequences, leading to superior performance in translation, summarization, and open-ended generation.
Introduction: The Completionist Trap
Standard language modeling relies on MLE to minimize the KLD between the empirical data distribution and the model's distribution. While effective, KLD is inherently "zero-avoiding." If a sample exists in the training set—even if it is corrupted, repetitive, or noisy—the model is penalized heavily if it assigns that sample a low probability. This forces the model to stretch its probability mass to cover these outliers, often leaking mass into "data voids"—regions where no valid natural language exists.
The Problem with KLD
When a model's distribution is forced to cover noisy tails, it inadvertently creates high-probability "traps" of degenerated text. During autoregressive decoding, if a model enters one of these regions, it may become stuck in infinite loops or produce gibberish.
Methodology: Total Variation Guided Language Generation (TaiLr)
To address the limitations of KLD, Ji et al. (2023) propose using Total Variation Distance (TVD). TVD measures the absolute difference between distributions, making it naturally resistant to the influence of outliers.
Token-Level Factorization
A primary challenge in applying TVD to language modeling is its sequence-level definition. The authors derive a token-level factorization that allows TVD to be used in standard autoregressive training.
The $\gamma$-Mixture Proxy
Since the true data distribution is unknown, the authors introduce a $\gamma$-mixture proxy distribution. This distribution interpolates between the one-hot data representation and the model's current predictions, controlled by a hyperparameter $\gamma$.
The TaiLr Objective
The resulting objective, TaiLr, modifies the standard log-likelihood by applying a weighting factor:
$$\mathcal{L}_{\text{TaiLr}} = - \frac{p_\theta^{<t}(w)}{\gamma + (1-\gamma)p_\theta^{<t}(w)} \log p_\theta^{<t}(w)$$
This weighting mechanism ensures that the gradient effectively vanishes for samples the model correctly identifies as low-probability outliers, preventing the model from fitting dubious data.
Experimental Evaluation
TaiLr was evaluated across several benchmarks, including synthetic COCO captions, IWSLT14 German-English translation, Gigaword summarization, and WritingPrompts for long-form generation.
Key Findings
- Robustness to Noise: In the Gigaword corpus, which contains many noisy references, TaiLr's ability to ignore "bad" examples resulted in cleaner and more accurate summaries.
- Reduced Overestimation: Experiments on perturbed datasets showed that TaiLr significantly reduced "Maximum Overestimation Error" compared to MLE, particularly for longer sequences.
- Improved Generation Quality: On the WritingPrompts dataset, TaiLr achieved a superior Mauve score of 64.64 and lower repetition rates, indicating more human-like and diverse storytelling.
- Translation Performance: On IWSLT14 De-En, TaiLr achieved a Test BLEU of 35.05, outperforming both MLE (34.27) and other robust baselines like Loss Truncation.
Conclusion
TaiLr offers a theoretically grounded and practically effective alternative to MLE for language generation. By shifting from KLD to TVD, the model gains the ability to "ignore" low-quality data, mitigating the root causes of text degeneration. Future work may explore dynamic annealing of the $\gamma$ hyperparameter to further optimize training stability and performance across varying task entropies.
Summary updated