Steering Language Models via Inference Time Logit Arithmetic

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 1188 papers215 conceptsfrozen 2026-10-04

Training a Large Language Model (LLM) is an exercise in freezing knowledge into weights. However, once those weights are set, adapting the model to specific human preferences, safety constraints, or stylistic nuances typically requires another round of expensive fine-tuning. This "post-training" phase is often computationally prohibitive and can lead to "catastrophic forgetting," where the model loses its general reasoning abilities while trying to learn a new niche behavior.

A rapidly growing body of research suggests a more surgical alternative: Inference-Time Logit Steering. Instead of changing the model's weights, researchers are intervening at the very last moment of generation—the "logits." By performing simple arithmetic on the raw probability scores before a token is sampled, we can fundamentally reshape a model's behavior without ever touching its underlying parameters.

The Intuition: Separating Knowledge from Policy

To understand why logit steering works, think of an LLM as having two distinct parts: a massive library of "knowledge" (the base model) and a "policy" that decides how to browse that library. Fine-tuning tries to rewrite the library itself. Logit steering, by contrast, leaves the library untouched and simply adjusts the "search filters" during the output stage.

The core mechanism is mathematically elegant. At each step of text generation, a model produces a vector of "logits"—raw scores for every possible word in its vocabulary. Normally, we apply a softmax function to these scores to get probabilities. In logit steering, we add or subtract a "steering vector" to these raw scores before the softmax.

As Alisa Liu and Yejin Choi demonstrate in Tuning Language Models by Proxy, you can "tune" a massive black-box model by calculating the difference between a small tuned model and its untuned version. This difference—the "logit delta"—captures the essence of the tuning. When added to the logits of a much larger model, it effectively "transfers" the tuning without requiring access to the large model's internal weights.

Contrastive Guidance and the Amateur Model

One of the most powerful ways to steer a model is to tell it what not to do. This is the intuition behind Contrastive Decoding. By running two versions of a model—an "expert" and an "amateur"—and subtracting the amateur's logits from the expert's, we can amplify the features that make the expert superior.

Stella Biderman and colleagues adapted this from the image generation world in Stay on topic with Classifier-Free Guidance. By contrasting a model's output when given a prompt versus when given no prompt, they can "force" the model to pay more attention to the instructions. This mathematical nudge allows a 7B parameter model to occasionally outperform models 70 times its size by simply being more "focused" on the guidance.

Similarly, Ayush Sekhari and Ashia Wilson use this for "unlearning" in UCD: Unlearning in LLMs via Contrastive Decoding. If you want a model to forget copyrighted data or harmful instructions, you can use a small model that only knows the bad data and subtract its influence during decoding.

Dynamic Correction and Hallucination Mitigation

Logit steering isn't just for style; it's a powerful tool for truthfulness. LLMs often hallucinate because their internal "language prior" (the tendency to say common phrases) overrides the actual facts provided in the context.

In MLLM can see? Dynamic Correction Decoding for Hallucination Mitigation, Chenxi Wang and Ningyu Zhang show that visual information is often present in the model's intermediate layers but gets "lost" by the final layer. Their method, DeCo, rescues this information by dynamically boosting the logits of tokens that align with those intermediate visual signals.

A similar approach is taken by Charles Yu and Heng Ji in LORE: Continual Logit Rewriting Fosters Faithful Generation. They use an external Natural Language Inference (NLI) model to check each token as it's generated. If a token starts leading toward a hallucination, LORE rewrites the logits on the fly to steer the model back toward the grounded facts.

Multi-Objective Alignment and Pareto Fronts

In the real world, we often want models to be many things at once: helpful, harmless, and perhaps humorous. These goals often conflict. Traditional fine-tuning forces a single "average" behavior. Logit steering, however, allows for Multi-Objective Alignment.

Jeremy Carleton and Dileep Kalathil introduce MAVIS, which uses small "value models" to tilt the base model's logits toward different goals. Because this happens at inference time, a user can move a slider to decide exactly how much "helpfulness" they are willing to trade for "safety," effectively navigating the Pareto front of model behaviors in real-time.

Why It Works: The Latent Path Hypothesis

The success of these methods suggests a profound truth about LLMs: they often already "know" the right answer, but that answer isn't the most likely one under standard greedy decoding.

Xuezhi Wang and Denny Zhou discovered in Chain-of-Thought Reasoning Without Prompting that models have intrinsic reasoning paths that are simply buried. Logit steering acts as a spotlight, increasing the probability of these latent, high-quality paths. Whether it's RobGen nudging a model to include a "null check" in code or Budget Guidance steering a model to be more concise, the mechanism is the same: we aren't teaching the model new tricks; we are mathematically ensuring it chooses the best trick it already knows.

Papers in this version

Showing 60 of 188 papers.

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_steering_language_models_via_inference_t_c82bf7f6,
  title = {Steering Language Models via Inference Time Logit Arithmetic},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/steering-language-models-via-inference-time-logit-arithmetic/rdr_c82bf7f67c294349965cee82398b9183},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_steering_language_models_via_inference_t_c82bf7f6_v1,
  title = {Steering Language Models via Inference Time Logit Arithmetic},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/steering-language-models-via-inference-time-logit-arithmetic/rdr_c82bf7f67c294349965cee82398b9183/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}