TL;DR
Standard language models are trained to predict the next token, but they often struggle to rank entire sequences correctly, leading to the reliance on "hacks" like length normalization and repetition blocking. This paper introduces Sequence Likelihood Calibration (SLiC), a simple third-stage training process that aligns a model's probabilities with sequence quality measured in its own latent space. This effectively eliminates the need for decoding heuristics and achieves state-of-the-art results across multiple generation tasks.
The Problem with Maximum Likelihood Estimation
Most conditional language models—such as those used for summarization, translation, or data-to-text generation—are trained using Maximum Likelihood Estimation (MLE). While MLE is highly effective for teaching a model to predict the next word given a context, it has a fundamental flaw: during training, the model only ever sees the "gold" target sequence. It never learns how to compare different generated candidates or understand why one might be qualitatively better than another.
This limitation leads to several well-known issues in natural language generation:
- The Beam Search Curse: In many models, increasing the beam size (searching for more candidates) actually decreases output quality because the model's probability scores don't correlate well with actual text quality.
- Length Bias: Models often assign higher probabilities to shorter sequences simply because they involve fewer multiplications of fractional probabilities.
- Heuristic Dependency: To achieve acceptable results, practitioners are forced to use "tricks" like length normalization, repetition blocking (e.g., tri-gram blocking), and extensive hyperparameter tuning of beam sizes.
The SLiC Methodology
To address these shortcomings, the authors propose a three-stage pipeline: Pretrain $\rightarrow$ Fine-tune $\rightarrow$ Calibrate (SLiC).
The novel SLiC stage operates as follows:
- Candidate Generation: The fine-tuned model generates several candidate sequences (e.g., using beam search) for the training data.
- Similarity Scoring: The system measures how similar these candidates are to the "gold" target. Instead of relying on external, often flawed metrics like ROUGE, SLiC uses the model’s own latent space (decoder hidden states) to calculate a similarity score. This makes the process self-contained and computationally efficient.
- Calibration Loss: The model is trained with a new objective—specifically a Rank Loss—that forces it to assign higher probabilities to candidates that are more similar to the target in the latent space.
- Regularization: To ensure the model doesn't "forget" what it learned during fine-tuning, a KL-divergence penalty is added to keep the calibrated model's distributions close to the original fine-tuned version.
Key Insights and Ideas
SLiC was evaluated across eight diverse generation tasks, including abstractive summarization (CNN/DailyMail, XSUM, SAMSum), question generation, and data-to-text tasks, utilizing the PEGASUS architecture scaled up to 2 billion parameters.
- Latent Space is a Better Teacher: Using the model's internal representations to score candidates performed better than optimizing directly for ROUGE. This suggests the model's hidden states capture nuances of quality that simple n-gram overlap metrics miss.
- Monotonic Improvement: Unlike standard MLE models, SLiC-calibrated models show "monotonic improvement." The more candidates you search through (larger beam size), the better the output quality gets, effectively breaking the "beam search curse."
- Heuristics Become Unnecessary: Once calibrated, the models no longer require length normalization or repetition blocking. They naturally learn to prefer sequences of appropriate length and avoid repetitive loops.
- Efficiency Gains: A smaller calibrated model (e.g., 500M parameters) can often outperform a much larger uncalibrated model (2B parameters) simply by being allowed to search more candidates at inference time, offering a new trade-off between training and inference budgets.
Key Results
- SOTA Performance: SLiC matched or exceeded state-of-the-art results on all eight evaluated datasets.
- Scaling Success: On tasks like XSUM and CommonGen, the calibrated 2B parameter model outperformed massive models (like ST-MoE or ULL) that are 10x to 100x larger.
- Quantitative Gains: On the four summarization datasets, SLiC provided a relative improvement of ~3.4% in ROUGE scores over the fine-tuned baseline.
- Repetition Reduction: Repetition rates dropped significantly without explicit blocking. For example, on the RedditTIFU-long dataset, the repetition rate fell from 0.90% (fine-tuned) to 0.03% (calibrated).
Limitations and Future Work
While highly effective, SLiC currently requires high-quality ground-truth target sequences to perform calibration, which may be a limitation in domains where "gold" references are noisy or unavailable. Additionally, the current implementation involves an offline candidate generation step; future work could explore making this an "online" process during training. Finally, extending these calibration techniques from conditional generation to general, open-ended language modeling represents a promising next frontier.
Summary updated