Language Model Decoding as Likelihood-Utility Alignment

Martin Josifoski, Maxime Peyrard, Frano Rajic, Jiheng Wei, Debjit Paul, Valentin Hartmann, Barun Patra, Vishrav Chaudhary, Emre Kiciman, Boi Faltings, Robert WestarXiv 2022 · DOI

TL;DR

This paper argues that the effectiveness of language model decoding hinges on aligning the model's inherent likelihood with task-specific utility. They introduce a taxonomy of decoding strategies based on how they address this alignment and provide empirical evidence across diverse tasks, revealing when simple likelihood-based decoding suffices and when external information is crucial.

What Problem Does This Paper Address?

Generating high-quality text with large language models (LLMs) relies heavily on the decoding algorithm, which selects the final output from a vast space of possibilities. However, the principles guiding the choice of decoding algorithm are not well-understood, with previous studies often limited to narrow task domains. This paper tackles this ambiguity by proposing that the core issue is a misalignment between the model's internal likelihood (how probable a sequence is according to the model) and the external, task-specific notion of utility (how good the output actually is for the task). When this misalignment is significant, standard decoding methods that prioritize likelihood can fail to produce useful outputs.

Methods

The authors propose a taxonomy of Misalignment Mitigation Strategies (MMSs), categorizing decoding algorithms based on their implicit assumptions about the likelihood-utility relationship. This taxonomy provides a unified framework for understanding and comparing different decoding approaches. They then conduct a comprehensive empirical analysis across various tasks to:

  1. Quantify the likelihood-utility misalignment: This involves measuring the correlation between model likelihood and task utility both for the final decoded outputs and for candidate outputs explored during decoding.
  2. Evaluate the effectiveness of different MMSs: They test algorithms that leverage external information, such as value-guided methods and prompting, to mitigate misalignment.

The MMS taxonomy includes categories like:

  • Greedy Likelihood-Based: Algorithms that primarily rely on the model's likelihood (e.g., Greedy Search, Beam Search).
  • Greedy Likelihood-Based with Pruning: These add ad-hoc heuristics or constraints to likelihood-based methods.
  • Greedy Likelihood- and Value-Based: Algorithms that combine likelihood with a separate value model (e.g., Value-Guided Beam Search).
  • Simulation-Based: Methods that explore future possibilities more extensively (e.g., Monte-Carlo Tree Search).
  • Prompting-Based: Strategies that leverage LLMs' few-shot or chain-of-thought capabilities to align likelihood with utility.

Datasets

The paper evaluates their approach on a diverse set of tasks and datasets:

  • Closed Information Extraction (CIE): Using the REBEL dataset.
  • Machine Translation (MT): Using the WMT14 dataset and a pre-trained mBART50 model.
  • Non-Toxic Text Generation (NTTG): Using the Real Toxicity Prompt (RTP) dataset.
  • Non-Soluble Protein Generation (NSPG): Using the SwissProt-EF dataset and a ProtoGPT2 model.
  • Sports Understanding: Using the Sports Understanding (SU) task from the BIG-bench benchmark with a large language model (MT-NLG 530B).

Key Insights and Ideas

  • Likelihood-Utility Misalignment is Key: The core argument is that the effectiveness of decoding is not just about finding the most probable sequence, but about finding a sequence that is useful for the task, and the gap between these two is the critical factor.
  • A Unified Taxonomy: The proposed MMS taxonomy offers a valuable framework for understanding the landscape of decoding strategies, moving beyond task-specific comparisons.
  • When Likelihood Suffices: In scenarios with minimal distribution shift or utility drift (e.g., Closed Information Extraction), simple likelihood-based decoding (like beam search) is often sufficient and effective.
  • External Information is Crucial for Misalignment: When distribution shift or utility drift is present (e.g., Machine Translation, Non-Toxic Text Generation), likelihood alone is a poor predictor of utility, necessitating methods that incorporate external information.
  • Prompting as an MMS: The paper provides strong evidence that prompting, particularly Chain-of-Thought, acts as an effective MMS for large generalist LMs, aligning their likelihood with task utility and improving performance.

Key Results

  • Post-Decoding Alignment: For tasks with low distribution shift (DS) and utility drift (UD), likelihood is a strong predictor of utility. However, in tasks with significant DS and UD (like MT), the correlation between likelihood and utility plummets, indicating that likelihood-based decoding is ill-suited.
  • During-Decoding Alignment: For MT and CIE, high correlation between likelihood and utility among candidate outputs is enough to yield high-utility results. For NTTG and NSPG, however, even with high correlation among candidates, the model assigns likelihood mass to low-utility regions, requiring external guidance.
  • Value-Guided Decoding: Value-guided beam search (VGBS) and Monte-Carlo Tree Search (MCTS) consistently outperform standard beam search, even with noisy value models, demonstrating their ability to overcome likelihood-utility misalignment. VGBS offers a better trade-off between performance and computation cost than MCTS.
  • Prompting Effectiveness: For the Sports Understanding task, Chain-of-Thought prompting achieved 83% accuracy, significantly outperforming few-shot (57.3%) and zero-shot (38.9%) prompting. CoT also resulted in higher average log-likelihoods and improved the correlation between likelihood and utility.

Limitations and Future Work

  • Non-exhaustive Empirical Analysis: The authors acknowledge that their analysis covers a subset of tasks, models, and data combinations, and that small differences in training or data can lead to significant variations in misalignment.
  • Alternative Misalignment Fixes: The paper focuses on inference-time decoding strategies. Future work could explore retraining or finetuning models with data that better reflects task utility, or directly optimizing utility functions using reinforcement learning.
  • Trade-offs of Finetuning vs. Inference-Time Fixes: Further research is needed to understand the trade-offs between investing resources in acquiring new data for finetuning versus using inference-time methods like VGBS, MCTS, or prompting.
  • Computational Cost: While VGBS and MCTS are effective, they can be computationally expensive. Prompting offers a more efficient alternative for large LMs, but its applicability is limited to these models.

Summary updated

BibTeX
@misc{josifoski2022language,
  author = {Martin Josifoski and Maxime Peyrard and Frano Rajic and Jiheng Wei and Debjit Paul and Valentin Hartmann and Barun Patra and Vishrav Chaudhary and Emre Kiciman and Boi Faltings and Robert West},
  title = {{Language Model Decoding as Likelihood-Utility Alignment}},
  year = {2022},
  eprint = {2210.07228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.07228},
}
Figure