AI & Computational Science

Training AI to Resist Distractions Makes Language Models More Reliable

How the science connects

Large language modelNatural language p…Calibration (stati…

AI Insight

Researchers developed CaliDist, a new calibration method for Large Language Models that improves confidence estimation by measuring how stable a model's predictions remain when exposed to distracting or irrelevant information in prompts. Testing across seven natural language understanding benchmarks and six different LLMs, CaliDist reduced Expected Calibration Error from 23% to 7% on average, a 70% relative improvement over existing methods. The approach works by penalizing models that show high susceptibility to semantic distractors, using this behavioral robustness as a signal to adjust confidence scores.


Better calibrated language models are essential for deployment in high-stakes applications where knowing when a model is uncertain is as important as its predictions themselves. This method addresses a previously overlooked aspect of AI trustworthiness by ensuring models don't express overconfidence when they can be easily distracted by irrelevant information.


⚠️ Preprint – Noch nicht peer-reviewed

Dieser Artikel wurde noch nicht von unabhängigen Experten begutachtet. Die Ergebnisse sind vorläufig und sollten mit Vorsicht interpretiert werden.

Abstract: Existing calibration methods for Large Language Models (LLMs) often overlook a critical dimension of trustworthiness: a model’s behavioral robustness to irrelevant or misleading information. In this paper, we argue that a model’s true confidence should reflect its stability under cognitive pressure. We introduce CaliDist, a novel post-hoc calibration approach that directly measures and penalizes a model’s susceptibility to distraction. CaliDist quantifies how an LLM’s predictions and uncertainty change when its input prompt is perturbed with semantic distractors. This stability (or lack thereof) signal is then used to adaptively scale the model’s initial confidence score. Our extensive experiments on seven Natural Language Understanding classification benchmarks using six distinct LLMs show that CaliDist consistently achieves lower Expected Calibration Error (ECE) and Brier Score compared with strong baselines. Remarkably, our method reduces the ECE from 23% to 7% on average–a relative improvement of 70%–demonstrating that behavioral stability is a powerful signal for calibration. We make our code and datasets available at github.com/anas-jawad/CaliDist.

Source: CaliDist: Calibrating Large Language Models via Behavioral Robustness to Distraction