Tailoring Language Generation Models under Total Variation Distance

Haozhe Ji, Pei Ke, Zhipeng Hu, Rongsheng Zhang, Minlie Huang
2/12/2026

No official code found. Best implementation: thu-coai/TaiLr (21 stars, MIT, last commit 2023-02-08).

Abstract

The standard paradigm of neural language generation adopts maximum likelihood estimation (MLE) as the optimizing method. From a distributional view, MLE in fact minimizes the Kullback-Leibler divergence (KLD) between the distribution of the real data and that of the model. However, this approach forces the model to distribute non-zero (sometimes large) probability mass to all training samples regardless of their quality. Moreover, in the attempt to cover the low-probability regions in the data distribution, the model systematically overestimates the probability of corrupted text sequences, which we conjecture is one of the main reasons for text degeneration during autoregressive decoding. To remedy this problem, we leverage the total variation distance (TVD) with its robustness to outliers, and develop practical bounds to apply it to language generation. Then, we introduce the TaiLr objective that balances the tradeoff of estimating TVD. Intuitively, TaiLr downweights real data samples that have low model probabilities with tunable penalization intensity. Experimental results show that our method alleviates the overestimation of degenerated sequences without sacrificing diversity and improves generation quality on a wide range of text generation tasks.

View on arXivView PDF

Code Implementations(1)

thu-coai/TaiLrCommunity100%
MIT

ICLR2023 - Tailoring Language Generation Models under Total Variation Distance

211C++, CudaFeb 6, 20233 years agoMIT

Similar Papers

Cite this paper

@article{ji2026tailoring,
  title  = {Tailoring Language Generation Models under Total Variation Distance},
  author = {Haozhe Ji and Pei Ke and Zhipeng Hu and Rongsheng Zhang and Minlie Huang},
  year   = {2026},
  eprint = {2302.13344},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.13344},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.13344.svg)](https://codeofpaper.com/paper/2302.13344)

Discussion