CATTO: Balancing Preferences and Confidence in Language Models
Nisarg Parikh, Kunjal Panchal, Ananya Sai, Pannaga Shivaswamy, Andrew Lan
TL;DR
CATTO introduces a calibration-aware token-level training objective that integrates confidence calibration directly into Direct Preference Optimization, addressing miscalibration induced by alignment. By defining a differentiable per-token calibration loss anchored to a differentiable correctness surrogate based on token margins, CATTO reduces Expected Calibration Error while preserving or improving task accuracy. The framework also adds Confidence@k for test-time, Bayes-optimal candidate selection using calibrated token probabilities. Empirically, CATTO yields robust calibration improvements in- and out-of-distribution across multiple benchmarks and enhances downstream decision-making without sacrificing performance, validating its practical impact for safer and more reliable LLM deployment.
Abstract
Large language models (LLMs) often make accurate next token predictions but their confidence in these predictions can be poorly calibrated: high-confidence predictions are frequently wrong, and low-confidence predictions may be correct. This miscalibration is exacerbated by preference-based alignment methods breaking the link between predictive probability and correctness. We introduce a Calibration Aware Token-level Training Objective (CATTO), a calibration-aware objective that aligns predicted confidence with empirical prediction correctness, which can be combined with the original preference optimization objectives. Empirically, CATTO reduces Expected Calibration Error (ECE) by 2.22%-7.61% in-distribution and 1.46%-10.44% out-of-distribution compared to direct preference optimization (DPO), and by 0.22%-1.24% in-distribution and 1.23%-5.07% out-of-distribution compared to the strongest DPO baseline. This improvement in confidence does not come at a cost of losing task accuracy, where CATTO maintains or slightly improves multiple-choice question-answering accuracy on five datasets. We also introduce Confidence@k, a test-time scaling mechanism leveraging calibrated token probabilities for Bayes-optimal selection of output tokens.
