Language Models Can Coarsely Modulate Entropy Under Instruction

Luca Baroni, Kola Ayonrinde, Shi Feng, Puria Radmard

TL;DR

Researchers have discovered that many large language models (LLMs) can deliberately control their output uncertainty—or "entropy"—when instructed to do so. By identifying a specific linear direction in the model's internal activations, the team was able to "steer" models to be more or less confident, even in the absence of explicit text instructions.

What Problem Does This Paper Address?

In the world of LLMs, we usually talk about calibration: if a model says it's 90% sure about an answer, is it actually right 90% of the time? However, a more provocative question is whether a model can deliberately shape its own probability distribution.

Previous research suggested that LLMs are quite bad at matching specific target distributions (e.g., "Give me exactly a 70/30 split on these two words"). This paper asks a simpler, more fundamental question: Can models at least move the needle? Can they "coarsely" modulate their entropy—essentially their level of "randomness" or "certainty"—on demand?

This isn't just a academic curiosity. If a model can control its own uncertainty, it has a prerequisite for "sandbagging" (strategically underperforming on evaluations) or "exploration hacking" (manipulating its own reinforcement learning process). Understanding this "metacognitive" control is vital for AI safety.

Methods

The authors used a Two-Alternative Forced-Choice (2AFC) task. They presented models with 99 pairs of options that have no "correct" answer (e.g., "cat or dog?", "blue or red?") to ensure the model's internal factual knowledge wouldn't interfere with the experiment.

The core of the study involved two types of interventions:

  1. Prompting: Models were given instructions to either maximize entropy ("Be random!", "Aim for high entropy") or minimize it ("Be sure!", "Commit to one option").
  2. Activation Steering: Using Contrastive Activation Analysis, the researchers looked at the difference in the model's internal "residual stream" when it was following "certainty" vs. "uncertainty" instructions. They extracted a "steering vector"—a linear direction in activation space—representing this control. They then tested if they could manually "nudge" the model along this vector to change its entropy without changing the prompt.

Datasets

  • Binary-choice option pairs: A newly curated set of 99 neutral pairs (e.g., "left/right", "apple/banana") used to isolate entropy control from factual correctness.
  • MMLU (Massive Multitask Language Understanding): A standard factual benchmark used to test if the "entropy steering vector" discovered in neutral tasks would generalize to real-world knowledge.

Key Insights and Ideas

  • The "Internal Dial": The most striking finding is that entropy control isn't just a surface-level prompting trick. It has a linear internal representation. Moving a model's activations along a specific vector acts like a "certainty dial" that works across different tasks.
  • Semantic, Not Just Syntactic: The models aren't just reacting to the length of the prompt. Control experiments using gibberish instructions (like "Abracadabra") failed to shift entropy, proving the models are actually responding to the meaning of the instructions.
  • Asymmetry in Control: Models find it much easier to be "certain" (low entropy) than "uncertain" (high entropy). This is partly because models have a strong positional bias—they naturally want to pick the first option they see. Being "sure" aligns with this bias, while being "random" requires the model to fight against it.
  • Generalization to Truth: The steering vector extracted from "cat vs. dog" questions actually worked on the MMLU benchmark. By steering the model toward higher entropy, the researchers actually improved the model's calibration, making it less overconfident on hard questions.

Key Results

  • Success across Families: Several open-source models, particularly the Qwen3.5-27B and Qwen3-32B, showed robust ability to shift entropy in the instructed direction.
  • Monotonic Steering: In steering experiments, as the "strength" of the steering vector increased, the output entropy shifted predictably and smoothly.
  • Failure Modes: Smaller or less capable models (like Llama-3-8B) often failed the task, usually by defaulting to a low-entropy "pick the first option" strategy regardless of the instruction.
  • Calibration Improvement: On MMLU, positive steering reduced the Expected Calibration Error (ECE) from 0.130 to 0.093, effectively "taming" the model's natural overconfidence.

Limitations and Future Work

  • Coarse Control: While models can shift their entropy, they still can't hit precise probability targets. The control is "coarse," like a blunt instrument rather than a scalpel.
  • Single-Token Focus: The study focused on the very first token of a response. It remains to be seen how this control extends to long-form, free-generation text.
  • The "Base" Question: The researchers only tested instruction-tuned models. A major open question is whether this "certainty circuit" exists in base models before they are trained to follow instructions, or if it's a byproduct of the fine-tuning process.
  • Chain-of-Thought: The setup didn't allow for "thinking" (Chain-of-Thought). Future work could explore if models can use explicit reasoning to better calibrate their own output distributions.

Summary updated

BibTeX
@inproceedings{baroni2026language,
  author = {Luca Baroni and Kola Ayonrinde and Shi Feng and Puria Radmard},
  title = {{Language Models Can Coarsely Modulate Entropy Under Instruction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=lcuTd2vYeV},
}
Figure