Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Task-Aware Calibration: Provably Optimal Decoding in LLMs

About

LLM decoding often relies on the model's predictive distribution to generate an output. Consequently, misalignment with respect to the true generating distribution leads to suboptimal decisions in practice. While a natural solution is to calibrate the model's output distribution, for LLMs, this is ill-posed at the combinatorially vast level of free-form language. We address this by building on the insight that in many tasks, these free-form outputs can be interpreted in a semantically meaningful latent structure, for example, discrete class labels, integers, or sets. We introduce task calibration as a paradigm to calibrate the model's predictive distribution in the task-induced latent space. We apply a decision-theoretic result to show that Minimum Bayes Risk (MBR) decoding on the task-calibrated latent distribution is the optimal decoding strategy on latent model beliefs. Empirically, it consistently improves generation quality across different tasks and baselines. We also introduce Task Calibration Error (TCE), an application-aware calibration metric that quantifies the excess loss due to miscalibration. Our work demonstrates that task calibration enables more reliable model decisions across various tasks and applications.

Tim Tomov, Dominik Fuchsgruber, Rajeev Verma, Stephan G\"unnemann• 2026

Related benchmarks

TaskDatasetResultRank
Multi-answer Question AnsweringMAQA
Hamming Distance0.49
52
Ordinal RegressionHelpSteer
L1 Error0.72
48
Multiple-Choice ClassificationMMLU
Accuracy89.72
47
Multiple-Choice ClassificationWhen2Call
Accuracy78.63
24
Ordinal RegressionSTSB
L1 Loss0.65
24
Question Answering with AbstentionTriviaQA
BAS47
24
Question Answering with AbstentionSimpleQA
BAS0.03
24
Showing 7 of 7 rows

Other info

Follow for update