Skip to main content
QUICK REVIEW

[Paper Review] Calibrating Sequence likelihood Improves Conditional Language Generation

Yao Zhao, Misha Khalman|arXiv (Cornell University)|Sep 30, 2022
Topic ModelingComputer Science37 citations
TL;DR

The paper introduces SLiC, a third calibration stage that aligns model-generated sequences with the reference in the model’s latent space, eliminating decoding heuristics and improving quality across tasks and model scales.

ABSTRACT

Conditional language models are predominantly trained with maximum likelihood estimation (MLE), giving probability mass to sparsely observed target sequences. While MLE trained models assign high probability to plausible sequences given the context, the model probabilities often do not accurately rank-order generated sequences by quality. This has been empirically observed in beam search decoding as output quality degrading with large beam sizes, and decoding strategies benefiting from heuristics such as length normalization and repetition-blocking. In this work, we introduce sequence likelihood calibration (SLiC) where the likelihood of model generated sequences are calibrated to better align with reference sequences in the model's latent space. With SLiC, decoding heuristics become unnecessary and decoding candidates' quality significantly improves regardless of the decoding method. Furthermore, SLiC shows no sign of diminishing returns with model scale, and presents alternative ways to improve quality with limited training and inference budgets. With SLiC, we exceed or match SOTA results on a wide range of generation tasks spanning abstractive summarization, question generation, abstractive question answering and data-to-text generation, even with modest-sized models.

Motivation & Objective

  • Motivate the calibration gap in MLE-trained conditional language models where sequence probability does not align with quality.
  • Propose a practical SLiC training stage to align decoded candidates with references in latent space.
  • Show that SLiC improves generation quality across summarization, QA, question generation, and data-to-text tasks.
  • Demonstrate calibration benefits persist with model scale and reduce or eliminate decoding heuristics.

Proposed method

  • Decode m candidate sequences from a fine-tuned model on the training data.
  • Train with a calibration objective L^{cal} that uses a similarity-based measure s(y_hat, y_bar; x) defined via a decoder-state based F-measure (akin to a contextualized BERTScore variant).
  • Use a regularization term L^{reg} to prevent large deviations from the fine-tuned MLE objective (cross-entropy or KL divergence).
  • Optimize L = sum_b L^{cal} + lambda L^{reg} over the calibration data; initialize theta from the fine-tuned model.
  • Explore multiple L^{cal} options (rank, margin, list-wise rank, and reward) and two regularizers (CE and KL).
  • Decode candidates with beam search (and other strategies like DBS or nucleus sampling in ablations) during calibration.

Experimental results

Research questions

  • RQ1Can a third calibration stage align the model’s sequence likelihood with the target quality in the latent space to improve generation without decoding heuristics?
  • RQ2Do SLiC-calibrated models outperform or match SOTA across tasks like abstractive summarization, generative QA, question generation, and data-to-text?
  • RQ3Is calibration beneficial across model scales, and does it reduce dependence on decoding heuristics such as beam size, length normalization, and repetition blocking?

Key findings

  • SLiC consistently improves model quality, exceeding or matching SOTA on multiple tasks (summarization, QA, QG, data-to-text).
  • A latent-space similarity-based calibration loss outperforms direct metric optimization and eliminates the need for decoding heuristics.
  • Calibration gains persist as model size increases; smaller calibrated models can beat larger uncalibrated ones under the same inference budget.
  • The recommended recipe uses perplexity-based checkpoint selection, beam search for candidate decoding, rank loss for L^{cal}, and KL divergence for L^{reg}.
  • Calibrated PEGASUS-2B achieves SOTA results on 8 datasets, often with significantly smaller models than prior SOTA (e.g., XSUM, WebNLG-en, CommonGen).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.