NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Trained on Tokens, Calibrated on Concepts: The Emergence of Semantic Calibration in LLMs

Preetum Nakkiran, Arwen Bradley, Adam Golinski, Eugene Ndiaye, Michael Kirchhof, Sinead Williamson

TL;DR

Base Large Language Models (LLMs) are surprisingly good at estimating the probability that their answers are semantically correct, even though they are only trained to predict the next word. This paper provides the first theoretical explanation for this "semantic calibration," showing it emerges naturally from loss optimization but is systematically broken by instruction tuning and chain-of-thought reasoning.

What Problem Does This Paper Address?

We’ve all had the experience of an LLM confidently stating a hallucination as fact. In the world of machine learning, this is a calibration problem: a model’s predicted probability of being right should match its actual success rate. If a model says it is 80% sure, it should be correct 80% of the time.

While researchers have shown that base models are well-calibrated at the "next-token" level (predicting the very next word), it has been unclear if they are calibrated at the "semantic" level. If a model generates a long-form answer, does it "know" the likelihood that the meaning of that answer is correct? This paper seeks to understand the theoretical mechanism behind why this calibration emerges and why certain common techniques—like RLHF or Chain-of-Thought—seem to ruin it.

Methods

The authors introduce a framework called $B$-calibration. The "$B$" represents a "collapsing function" that groups different strings with the same meaning into equivalence classes (e.g., "Paris," "It's Paris," and "The capital is Paris" all map to the concept Paris).

The four-step process of semantic calibration, from sampling to measuring calibration.

The core of their work is a theoretical link between calibration and local loss optimality. They argue that if a model is properly trained to minimize its cross-entropy loss, it shouldn't leave any "easy wins" on the table. If a model were miscalibrated, a simple tweak to its output probabilities would lower its loss. Therefore, a fully optimized model must be calibrated.

To test this, they propose a "Main Heuristic": An LLM will be semantically calibrated if it can "know" its own answer distribution before it starts typing. They operationalize this by training small LoRA probes to see if the model can predict its final semantic answer class from the prompt alone.

Datasets

The researchers evaluated over 650 experiments across a wide range of model families (Qwen, Gemini, Mistral, Llama) and sizes (0.5B to 72B). They used six open-ended question-answering datasets:

  • GSM8K & OpenMathInstruct-2: Grade school and advanced math.
  • TriviaQA: General world knowledge.
  • SimpleQA: Short-form factual queries.
  • MATH500: Challenging competition-level math.
  • TruthfulQA: A dataset designed to elicit common human misconceptions (used here to show where the theory breaks down).

Key Insights and Ideas

  • Calibration is a byproduct of prediction: You don't need a special "calibration loss." If you are a near-perfect next-token predictor on a massive dataset, semantic calibration emerges as a mathematical necessity.
  • The "Knowledge" Requirement: For a model to be calibrated, it must implicitly "know" the distribution of its possible answers before generating them. If the model can easily predict "I'm probably going to say something in the Paris category," it will be calibrated.
  • The CoT Paradox: Chain-of-Thought (CoT) makes models smarter, but it breaks their calibration. Why? Because in a CoT setting, the model doesn't know the final answer until it finishes "thinking" on the page. Since it can't predict the outcome at the start, the theoretical mechanism for calibration fails.
  • Instruction Tuning is a Double-Edged Sword: While SFT (Supervised Fine-Tuning) and RLHF make models more helpful, they often destroy the natural calibration of the base model, usually by making the model overconfident.

Key Results

  • Base Models are Stars: Across almost all QA tasks, base (pre-trained only) models showed remarkable semantic calibration. This held true even for very small models (under 1B parameters).
Calibration plot for Qwen2.5-7B on TriviaQA, showing the model's semantic confidence closely matches its actual accuracy.
  • DPO Breaks Calibration: Models trained with Direct Preference Optimization (DPO) were significantly more miscalibrated (typically overconfident) compared to their base versions.
  • The LoRA Connection: The authors found a strong correlation between "learnability" and calibration. If a simple LoRA probe could easily predict the model's answer distribution, the model was almost always well-calibrated.
  • TruthfulQA Exception: Calibration failed on TruthfulQA. The authors explain this is because the dataset violates "in-distribution" assumptions—the models were trained on text that includes the very misconceptions the test looks for.

Limitations and Future Work

The authors acknowledge several limitations:

  1. Computational Cost: Their notion of semantic calibration requires sampling the model many times (e.g., 50 samples) to estimate the distribution, which is expensive in production.
  2. Single Mechanism: They only propose one specific mechanism for calibration; others (like verbalized confidence) might exist for different reasons.
  3. In-Distribution Only: The theory only guarantees calibration on data that looks like the training set.

Future work could involve finding ways to maintain this natural calibration during instruction tuning or developing more efficient ways to extract these confidence estimates without heavy sampling.

Summary updated

BibTeX
@inproceedings{nakkiran2026trained,
  author = {Preetum Nakkiran and Arwen Bradley and Adam Golinski and Eugene Ndiaye and Michael Kirchhof and Sinead Williamson},
  title = {{Trained on Tokens, Calibrated on Concepts: The Emergence of Semantic Calibration in LLMs}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=0sCyk9Tr5J},
}
Figure