Probabilistic Calibration Is a Trainable Capability in Language Models

arXiv:2605.11845 · cs.CL · Submitted 2026-05-12 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: I'm Tom, and with me are Jane, Lu, senior AI researcher at Tsinghua, Meng, lead engineer at a mysterious AI startup and Lalam, the in-house Large Language Model.

Jane: Today's paper: "Probabilistic Calibration Is a Trainable Capability in Language Models".

Tom: The gist Probabilistic calibration is a trainable capability in language models; this work studies whether fine-tuning can improve language models to better calibrate their probabilistic outputs to user-specified randomness constraints.

Jane: First, who's behind it and why it matters.

Title and authors: Tom: Let’s start with the title and who wrote this, "Probabilistic Calibration Is a Trainable Capability in Language Models," by Davide Baldelli, Sruthi Kuriakose, Maryam Hashemzadeh, Amal Zouaq, and Sarath Chandar.

Jane: It sounds very technical at first glance because of all the names and the concept of probabilistic calibration.

Lu: The core question they are asking is whether we can improve this capability directly through fine-tuning language models on synthetic prompts that require sampling from mathematical distributions.

Meng: So, it’s not just about adjusting weights randomly; it involves training on specific scenarios where the required output distribution is already defined.

Lalam: I see them comparing two different ways to do this training, which is what makes this paper more than just one idea.

Tom: Exactly. They compare a soft-target method and a hard-target method to see which one works better for teaching the model how to calibrate its outputs correctly.

The paper's summary: Tom: The summary explains that they study fine-tuning language models on synthetic prompts that demand sampling from mathematical distributions and compare two strategies: soft-target and hard-target.

Jane: The soft-target method involves enumerating all the valid numeric outputs for a prompt, assigning a target probability to each one, and then converting that into supervised probabilities for the next token at each prefix.

Lu: And the hard-target method is different; it draws many numeric answers from that target distribution and trains on them using standard next-token cross-entropy loss.

Meng: The main finding they present is that both methods substantially improve structured-sampling fidelity on held-out distribution families and unseen parameter settings across twelve models spanning four families.

Lalam: So, it’s not just a small win; both approaches show real improvement when tested on data and model settings the model hasn't seen before.

The paper's improvements: Tom: The paper highlights that the two methods show different empirical profiles; hard-target fine-tuning is often strongest on structured numeric sampling itself, while soft-target fine-tuning performs better on broader stochastic generation benchmarks.

Jane: That means if you just want perfect numeric sampling, hard-target might be your best bet right now.

Lu: But the soft-target method actually shows better performance on things like open-ended random generation, multiple choice answer position balancing, and NoveltyBench.

Meng: The evaluation protocol checks six axes: structured distribution sampling, open-ended random generation, NoveltyBench utility, capability retention—how well the model keeps its general smarts—and PALOMA perplexity.

Lalam: And they found that soft-target fine-tuning gives the best aggregate PALOMA score across all Qwen and Gemma checkpoints for held-out text likelihood.

Conclusion: Tom: So to wrap up, this paper shows that language models can be trained to behave more like controlled probabilistic samplers, with gains that extend beyond the synthetic distributions they used for supervision.

Jane: That means we are not just flattening the probability distribution; we are actually teaching the model a new way to sample based on our constraints.

Lu: The implication is that this calibration is a trainable capability in language models, and these gains transfer beyond those specific mathematical prompts into more natural random-generation settings.

Meng: For practical engineering, it suggests we can select the right fine-tuning variant based on the task; hard-target for exact numeric sampling, soft-target for broader stochastic generation.

Lalam: I think this opens up a path where we can fine-tune models to be more reliable when used in applications that require precise control over randomness.

Davide Baldelli, Sruthi Kuriakose, Maryam Hashemzadeh, Amal Zouaq, Sarath Chandar

Chandar Research Lab · Mila – Quebec AI Institute

cs.CL

Submitted: 2026-05-12

Updated: 2026-10-09

Code: https://github.com/chandar-lab/calibration-finetuning

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 83/100

The gist: The gist Probabilistic calibration is a trainable capability in language models; this work studies whether fine-tuning can improve language models to better calibrate their probabilistic outputs to

Key concepts

Probabilistic Calibration
This refers to a language model's ability to adjust its output probabilities so that the generated text more accurately reflects a desired underlying probability distribution. In this study, the goal was to train models to better adhere to specific randomness constraints provided by users.
Soft-Target Method
This fine-tuning strategy involves taking a desired output distribution and converting it into targets for each individual next token. It treats the problem as supervised learning by assigning probabilities based on enumerating valid outputs, helping the model learn a smoother transition to the target distribution.
Hard-Target Method
This strategy trains the model using samples directly drawn from the target distribution. Instead of predicting specific tokens, it is trained on completions that are already known to belong to the desired set of answers, focusing on high-fidelity sampling from that specific set.

Terminology

Summary

The gist Probabilistic calibration is a trainable capability in language models; this work studies whether fine-tuning can improve language models to better calibrate their probabilistic outputs to user-specified randomness constraints.

Calibration Fine-Tuning Strategies

The study compares two Calibration Fine-Tuning variants: a soft-target method and a hard-target method, both applied to synthetic prompts requiring sampling from mathematical distributions. The first strategy is soft-target fine-tuning, which involves enumerating valid numeric outputs for a prompt, assigning each its target probability, and converting this to supervised probabilities for the next token at each prefix. The second strategy is hard-target fine-tuning, which draws many numeric answers from the target distribution and trains on them with standard next-token cross-entropy.

Empirical Performance Across Variants

Across 12 models spanning four families, both methods substantially improve structured-sampling fidelity on held-out distribution families and unseen parameter settings. The two methods exhibit different empirical profiles: hard-target fine-tuning is often strongest on structured numeric sampling itself, while soft-target fine-tuning performs better on broader stochastic generation benchmarks, including open-ended random generation, multiple-choice answer-position balancing, and NoveltyBench.

Evaluation Metrics and Transfer

The evaluation protocol focuses on six axes: structured distribution sampling, open-ended random generation, NoveltyBench, MCQ generation with uniform answer positions, capability retention, and PALOMA perplexity. Structured distribution sampling shows that Calibration Fine-Tuning strongly improves structured distribution sampling on both held-out families and unseen parameter settings. The gains transfer beyond the synthetic training domain, with soft-target fine-tuning often performing better on broader stochastic generation benchmarks such as open-ended random generation and NoveltyBench.

Model and Configuration Tradeoffs

The results show that the selected soft-target configuration gives the most reliable language-space transfer, while the selected hard-target configuration remains strongest on exact numeric sampling. Capability retention is mixed, with the clearest systematic cost on GSM8K and aggregate gp-IRT often still favoring the base checkpoint.

Conclusion

Overall, our results show that language models can be trained to behave more like controlled probabilistic samplers, with gains that extend beyond the synthetic distributions used for supervision. Future work should study the mechanisms learned by each objective and develop retention-aware variants of Calibration Fine-Tuning. The overall findings demonstrate that probabilistic calibration is a trainable capability in language models >.

--- Page 43 ---

The gist Probabilistic calibration is a trainable capability in language models; this work studies whether fine-tuning can improve language models to better calibrate their probabilistic outputs to user-specified randomness constraints.

Conclusion

Overall, our results show that language models can be trained to behave more like controlled probabilistic samplers, with gains that extend beyond the synthetic distributions used for supervision.

Improvements for AI systems

  1. textbf Real-time Probabilistic Calibration for Structured Sampling (Hard-Target Method): This improved system can be trained to teach substantially better stochastic fidelity than the base checkpoint, specifically being strongest on structured numeric sampling itself as seen in Figure 2 and Table 6, resulting in a Family-median normalized W1 drops sharply.

  2. textbf Broader Stochastic Transfer via Soft-Target Calibration: The system can be configured with the soft-target method to broaden stochastic support, which is often better on broader stochastic generation settings and more often yields favorable perplexity diagnostics, making it superior for open-ended random generation and NoveltyBench utility, as noted in Table 10.

  3. textbf Model Family-Specific Calibration Selection: The system can dynamically select the fine-tuning variant based on the task; specifically, hard-target fine-tuning is often strongest on structured numeric sampling itself, while soft-target fine-tuning performs better on broader stochastic generation settings, allowing for optimized performance across different use cases.

  4. textbf Robustness to Unseen Parameters: The system demonstrates improved generalization by showing that both methods substantially improve structured-sampling fidelity on held-out distribution families and unseen parameter settings, with the hard-target method being particularly strong in this regard, as evidenced by Table 7 and Figure 2.

  5. textbf Preserved Language Model Fit via PALOMA Metrics: The system can achieve improved language model fit on held-out text likelihood, as soft-target fine-tuning gives the best aggregate PALOMA score for all Qwen and Gemma checkpoints, showing that calibration is not merely a flattening of token probabilities.

Abstract

Language models are increasingly used in settings where outputs should follow an intended distribution, yet their generation probabilities are often poorly calibrated to it. In many such requests the distribution is implicit and the valid outputs cannot be listed in advance, so the task cannot be passed to an external random number generator. We study whether this capability can be improved directly through fine-tuning. Concretely, we fine-tune language models on synthetic prompts that require sampling from mathematical distributions, and compare two Calibration Fine-Tuning variants: a soft-target method that converts the desired output distribution into trie-derived next-token targets, and a hard-target method that trains on sampled completions from the same target distribution. Across 12 models spanning four families, both methods substantially improve structured-sampling fidelity on held-out distribution families and unseen parameter settings, showing that training on cheap synthetic mathematical distributions improves sampling on unseen distributions, even in natural language. The gains also transfer to broader stochastic generation benchmarks, including open-ended random generation, where fine-tuned models broaden their first-token support by one to two orders of magnitude, and NoveltyBench. The gains sometimes reduce downstream capability, especially arithmetic reasoning, with costs varying by model. Overall, our results show that probabilistic calibration can be improved through fine-tuning with either objective, and that calibration learned on mathematical distributions transfers to natural-language stochastic generation. Code is available at https://github.com/chandar-lab/calibration-finetuning.

Sources

Related papers