Standard Large Language Models (LLMs) generate text one token at a time, making decisions based on the immediate probability of the next word. While effective, this "myopic" approach often leads to global failures: models get stuck in repetitive loops, fall into "probability traps" where a high-likelihood prefix leads to a nonsensical conclusion, or lose reasoning capabilities when forced to be diverse.
A growing body of research suggests that the solution lies in shifting from token-level adjustments to sequence-level scaling. By optimizing the joint probability of the entire output rather than individual steps, models can maintain global coherence and reasoning depth without sacrificing diversity.
The Myopia of Token-Level Scaling
In standard inference, we use a parameter called temperature ($T$) to control the "sharpness" of the model's predictions. At the token level, this means we take the logits for the next word and scale them by $1/T$.
As Andy Shih, Dorsa Sadigh, and Stefano Ermon argue in Long Horizon Temperature Scaling, this approach is fundamentally flawed. When you lower the temperature to make a model more "focused," it often results in infinite phrase repetition. This happens because the model is only looking at the very next step; if a repetitive token has a slightly higher local probability, lowering the temperature makes that choice near-deterministic, trapping the model in a loop.
Conversely, raising the temperature to increase diversity often introduces linguistic errors. Stewart Slocum, Asher Parker-Sartori, and Dylan Hadfield-Menell note in Diverse Preference Learning for Capabilities and Alignment that inference-time scaling often results in "gibberish" because it disrupts the local logical coherence required for fluent text.
Thinking in Paths, Not Steps
Sequence-level scaling shifts the focus from $P(x_t | x_{<t})$ to the joint probability $P(x_1, x_2, \dots, x_n)$. The intuition is to treat the entire generated sequence as a single path through a probability landscape.
- Global Pathfinding: Instead of picking the most likely next word, the model prioritizes the most likely complete sequence. This prevents "probability traps" where a model commits to a high-likelihood start that has no coherent ending.
- Calibration: Hannah Scheufele, Peter Blohm, and Vikas K Garg demonstrate in Temperature Scaling in Discrete Sequence (Language) Models that this approach leads to better-calibrated models. By adjusting the global distribution, the model's confidence in its output actually matches its accuracy, reducing overconfidence in both autoregressive and diffusion-based models.
- Reasoning: In Reasoning with Sampling: Your Base Model is Smarter Than You Think, Aayush Karan and Yilun Du use an MCMC-based "Power Sampling" algorithm to sharpen the probability of the entire reasoning chain. This allows base models to find high-probability logical paths that would be missed by greedy, step-by-step decoding.
Training for Global Likelihood
While some methods apply this at inference, others integrate it directly into the training objective.
The CLICK framework, developed by Chujie Zheng, Pei Ke, and colleagues in Controllable Text Generation with Sequence Likelihood Contrastive Learning, uses sequence-level contrastive learning. Instead of penalizing individual "bad" tokens, it contrasts the likelihood of entire "good" vs. "bad" sequences. This gives the model the flexibility to use any individual token it needs to maintain fluency, as long as the total probability of a toxic or repetitive sequence remains low.
Similarly, the Soft Preference Learning (SPL) method introduced by Slocum et al. scales the probability of entire sequences during the training phase. This decouples diversity from model adherence; the model learns to maintain logical coherence across a wide variety of possible outputs, avoiding the "stripping away" of diversity that often occurs during standard RLHF alignment.
Why It Works: The Global Advantage
The core intuition behind sequence-level scaling is that meaning and logic are properties of sequences, not tokens.
By looking ahead and optimizing for the total likelihood of the output, these methods ensure that:
- Diversity is coherent: High-temperature sampling no longer leads to gibberish because the model is choosing between high-probability paths rather than just high-probability words.
- Precision is non-repetitive: Low-temperature "focusing" targets the best overall conclusion, which rarely involves repeating the same phrase indefinitely.
- Reasoning is emergent: Complex problems require a series of steps that are only "correct" in the context of the final answer. Sequence-level scaling allows the model to prioritize the tokens that contribute to that final, high-probability success.