Beyond MLE: Convex Learning for Text Generation

Chenze Shao, Zhengrui Ma, Min Zhang, Yang Feng

Abstract

Standard Maximum Likelihood Estimation (MLE) often results in "blurry" probability distributions, necessitating complex decoding strategies like beam search to identify high-quality outputs. This paper introduces a Convex Learning framework designed to sharpen model predictions for closed-ended tasks such as machine translation and summarization. By employing convex-composition loss functions, the proposed method encourages models to converge toward "one-hot" distributions. Experimental results demonstrate significant performance gains, including a 9+ BLEU point improvement for non-autoregressive models and enhanced generative capabilities for Large Language Models (LLMs) like LLaMA.

Introduction

For decades, Maximum Likelihood Estimation (MLE) has served as the foundational objective for training text generation models. By minimizing cross-entropy loss, MLE effectively minimizes the Kullback–Leibler (KL) divergence between the ground-truth data distribution and the model's predictions. However, while MLE is robust, it is inherently concave. This mathematical property discourages the model from assigning a very high probability to a single candidate because the marginal benefit of increasing a probability diminishes as it approaches 1.

In closed-ended tasks like translation or summarization, where the goal is to identify and commit to the most appropriate response rather than modeling every possible linguistic variation, this "blurriness" is a liability. It leads to uncertainty that requires expensive decoding tricks, such as beam search, to navigate. This research proposes moving beyond MLE toward a framework of Convex Learning to produce more decisive and efficient models.

The Convex Learning Framework

The authors propose a training objective based on convex functions to replace the standard log-linear objective. Mathematically, they demonstrate that if a training objective is convex, the optimal predicted distribution becomes a "one-hot" distribution—assigning 100% probability to the most likely candidate.

Convex-Composition Loss

Directly applying a purely convex loss from scratch can lead to "gradient vanishing," where gradients become nearly zero when a model is newly initialized, stalling the learning process. To solve this, the researchers introduce a Convex-Composition Loss. This involves composing a convex function $f$ (such as an exponential or power function) with the standard concave log-probability function $g$. By making the objective "less concave" than standard MLE, the model is forced to focus its probability mass on the most likely outputs.

Two-Step Training Strategy

To ensure numerical stability and effective convergence, the framework utilizes a two-step approach:

  1. Pre-training: The model is first trained using standard MLE to reach a reasonable parameter neighborhood.
  2. Fine-tuning: The model is then fine-tuned using the convex-composition loss to sharpen its predictions and resolve distributional ambiguity.

Experimental Setup

The researchers evaluated the Convex Learning framework across several standard benchmarks and model architectures:

  • Tasks: Machine Translation (WMT14 EN-DE/DE-EN, WMT22) and Text Summarization (CNN/DailyMail, XSum).
  • Models:
    • Autoregressive: Standard Transformers.
  • Non-Autoregressive (NAR): Vanilla-NAT, CMLM, and CTC models.
  • LLMs: LLaMA-7B and LLaMA-13B (fine-tuned via Alpaca).

Key Insights and Results

Breakthroughs in Non-Autoregressive Generation

NAR models generate all words in a sentence simultaneously, which often leads to the "multi-modality problem"—repetitive or incoherent text caused by the model's inability to coordinate dependencies between words. By forcing the model to commit to a single "sharp" mode, convex learning helps NAR models bypass this issue. This resulted in a staggering improvement of over 9 BLEU points on the CMLM model for translation tasks.

Enhancing Large Language Models

Fine-tuning LLaMA-7B with convex loss improved translation performance by an average of 1.84 BLEU across four language pairs. It also significantly boosted ROUGE scores in summarization tasks, suggesting that even highly capable LLMs benefit from the sharpening effect of convex objectives.

Bridging the Greedy-Beam Gap

In standard autoregressive models, there is typically a significant quality gap between "greedy search" (picking the single most likely word) and "beam search" (tracking multiple possible paths). Convex learning sharpens the distribution so effectively that the performance of greedy search approaches that of beam search. This has major implications for inference efficiency, potentially allowing for high-quality generation with significantly reduced computational overhead.

Improved Fluency

Using external language models to measure perplexity, the authors found that text generated via convex learning is significantly more fluent than text produced by MLE-trained models. This suggests that sharpening the distribution does not just make the model more confident, but also more accurate in its linguistic choices.

Limitations and Scope

While powerful, the authors note that Convex Learning is specifically intended for closed-ended tasks. For "open-ended" tasks like creative storytelling or poetry, where diversity and the exploration of multiple valid paths are desirable, this sharpening effect would likely be detrimental. Additionally, the method currently requires MLE pre-training to avoid initialization sensitivity, and the hyperparameter $k$ (the exponent in the convex function) requires careful tuning to maintain training stability.

Conclusion

This research provides a compelling theoretical and empirical case for rethinking the reliance on MLE in text generation. By treating "mode collapse" as a desirable feature for task-oriented generation, Convex Learning allows models to be more decisive, fluent, and efficient. For the most common NLP applications, teaching models to commit to a single best answer appears far more effective than attempting to model the entire distribution of human language.

Summary updated

BibTeX
@inproceedings{shao2023beyond,
  author = {Chenze Shao and Zhengrui Ma and Min Zhang and Yang Feng},
  title = {{Beyond MLE: Convex Learning for Text Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=sla7V80uWA},
}
Figure