Characterizing Tradeoffs in Language Model Decoding with Informational Interpretations

Chung-Ching Chang, William W. Cohen, Yun-Hsuan SungarXiv 2023 · DOI

Introduction

Large Language Models (LLMs) are increasingly steered during the generation process using "on-the-fly" adjustments like temperature sampling or classifier guidance. While these techniques allow for behavioral changes without expensive fine-tuning, they have largely been treated as heuristics. This research, conducted by Google Research and DeepMind, provides a theoretical framework that reframes decoding as a Reinforcement Learning problem, revealing the precise information-theoretic tradeoffs between fluency, diversity, and factual grounding.

Decoding as a Markov Decision Process

The core of the proposed framework is the reformulation of autoregressive decoding as a Markov Decision Process (MDP). In this model, the state ($s_t$) is defined as the current sequence of tokens, the action ($a_t$) is the selection of the next token, and the reward ($r_t$) is a binary indicator of whether the final generated sequence meets a desired property, such as attribution to source text.

The MDP formulation of autoregressive decoding, showing the transition from states to actions and the resulting rewards.

By applying Dynamic Programming to this MDP, the authors derive Action-State Value Functions ($Q$-functions) for various decoding strategies. This approach "lifts" decoding from simple logit manipulation into a more rigorous mathematical space, allowing for a direct comparison of different steering methods.

Information-Theoretic Interpretations

The framework demonstrates that every decoding algorithm is essentially an optimal policy for a specific reward structure. A central concept is the "Anchor Point": the pre-trained model ($P_G$) acts as a mathematical baseline for "sensibleness." Any steering method involves a tradeoff between staying close to this anchor (via negative KL-divergence) and optimizing for a specific goal.

One of the paper's key insights is that attribution—how well a model adheres to provided evidence—can be mathematically interpreted as maximizing the Pointwise Mutual Information (PMI) between the generated token and the evidence. This provides a formal explanation for why guidance methods improve factual grounding.

A Unified View of Decoding Algorithms

The primary result of this work is a unified mapping of major decoding approaches to specific $Q$-functions. This mapping, summarized in the table below, explains the behavior of various algorithms in terms of fundamental information-theoretic components like KL-divergence, entropy, and mutual information.

A unified view of decoding algorithms and their corresponding action-state value functions, mapping heuristics to information-theoretic objectives.

This unified view clarifies why certain methods may lead to repetitive or hallucinatory outputs: they may be mathematically underweighting specific terms. For instance, Classifier Guidance and Classifier-free Guidance (CFG) are shown to be two different ways of estimating the same Mutual Information objective.

Conclusion and Future Directions

By moving LLM steering from empirical trial-and-error to a rigorous information-theoretic framework, this work provides a foundation for more principled model alignment. While the current framework assumes a binary reward structure, future work could extend this to more nuanced human preferences. Furthermore, this "Rosetta Stone" allows researchers to engineer new decoding algorithms by intentionally balancing information-theoretic terms to achieve specific goals in safety, fluency, and creativity.

Summary updated

BibTeX
@misc{chang2023characterizing,
  author = {Chung-Ching Chang and William W. Cohen and Yun-Hsuan Sung},
  title = {{Characterizing Tradeoffs in Language Model Decoding with Informational Interpretations}},
  year = {2023},
  eprint = {2311.10083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.10083},
}
Figure