pith. sign in

arxiv: 2503.21929 · v2 · pith:D47I62X2new · submitted 2025-03-27 · 💻 cs.CL · cs.LG· math.DS

Local Normalization Distortion and the Thermodynamic Formalism of Decoding Strategies for Large Language Models

classification 💻 cs.CL cs.LGmath.DS
keywords decodinglanguagestrategiesdistortionlocalmodelsnormalizationalgorithms
0
0 comments X
read the original abstract

Advances in hardware and language model architecture have spurred a revolution in natural language generation. However, autoregressive models compute probability distributions over next-token choices, and sampling from these distributions, known as decoding, has received significantly less attention than other design choices. Existing decoding strategies are largely based on heuristics, resulting in methods that are difficult to apply or improve in a principled manner. We develop the theory of decoding strategies for language models by expressing popular decoding algorithms as equilibrium states in the language of ergodic theory and stating the objective functions they optimize. Using this, we analyze the effect of the local normalization step required to make probabilities sum to one in top-k, nucleus, and temperature sampling. We argue that local normalization distortion is a fundamental defect of decoding strategies and quantify the size of this distortion and its effect on mathematical proxies for the quality and diversity of generated text. This yields conclusions for the design of decoding algorithms and the detection of machine-generated text.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. When are likely answers right? On Sequence Probability and Correctness in LLMs

    stat.ML 2026-06 unverdicted novelty 5.0

    Higher sequence probability predicts correctness across different answers in a dataset but does not reliably improve accuracy when decoding methods or hyperparameters are changed, nor does it indicate correctness for ...