Skip to content

Bridging the Confidence Gap: Temperature Scaling for Calibrating Test-Time Prompt Tuning

Sep 2026 · 0 citations · 76 references
Computer Science

TL;DR

Motivated by the well-calibrated nature of zero-shot predictions, CoTS is proposed, a simple yet effective post-hoc calibration method that preserves accuracy and enhances both accuracy and calibration simultaneously.

Abstract

Test-time prompt tuning (TPT) enables adaptation on a single test instance, achieving improved accuracy but often sacrificing calibration performance. Most existing calibration methods introduce additional regularization terms to promote dispersion across text embeddings and reduce calibration error, yet these methods often suffer from a drop in accuracy. Motivated by the well-calibrated nature of zero-shot predictions, we propose CoTS, a simple yet effective post-hoc calibration method that preserves accuracy. Specifically, CoTS applies temperature scaling to minimize the confidence gap between adapted and zero-shot predictions. To fully exploit the potential of multiple augmentations during adaptation, we introduce a weak-strong ensemble strategy that further boosts accuracy. We then apply CoTS to this ensemble, termed E-CoTS, to maintain its well-calibrated property. Extensive experiments on diverse datasets and backbones show that our approaches effectively mitigate miscalibration without compromising primary accuracy. For instance, E-CoTS reduces the average expected calibration error of TPT from 11.90% to 5.38% on ImageNet variants, while even increasing accuracy from 60.74% to 62.95%. Moreover, when integrated with existing calibration methods, E-CoTS usually enhances both accuracy and calibration simultaneously.

View source

Similar papers

#artificial intelligence Preprint Aug 2026

Rethinking the Test-Time Prompt Tuning Objective from the Perspective of Calibration

This work proposes a new objective that replaces the conventional EM loss by aligning the original-view prediction with a target distribution derived from augmented views via cross-entropy, while adversarially incorporating the entropy of the target distribution to capture sample-specific uncertainty.

Jungwon Choi, Hyeon-Gi Jang, Kibok Lee et al. · 0 citations
Preprint Aug 2026

Target-Aware Calibration Data Selection for Preserving Uncertainty in Quantized Language Models

DPQ is introduced, a lightweight pre-quantization recipe family that uses full-precision predictions to construct target-aligned calibration mixtures of high-doubt examples and generic anchors that better preserve broad multiple-choice QA behavior.

Zhen Yang, Sizai Hou, Kai-Wen Zheng et al. · 1 citation
Conference Aug 2026

When Tuning Isn't Enough: Limits of Inference-Time Controls and Collaboration in Small Local LLMs

We study the limits of inference-time parameter tuning and multi-model collaboration for locally-deployed small LLMs (3B-14B) in a small on-premises deployment using quantized models on a 16 GB GPU. Although these techniques are widely used in local, compliance-constrained deployments to improve model quality without r...

Prashant Kumar, Avinash Krishna · 0 citations
Preprint Oct 2026

Do Not Train Away Uncertainty: Early Uncertainty Anchored Calibration

Deep neural networks, including large language models, have achieved remarkable performance across various tasks. However, they are prone to overconfidence during training or fine-tuning. In this work, we observe a consistent phenomenon across different models that the early model is better calibrated, while later trai...

Yu-Tong Xie, Jia-Wei Tang, Zheng-Lin Hua et al. · 0 citations
Preprint Aug 2026

NoisEasier: Test-Time Noise Optimization for Text-to-Video Generation

NoisEasier serves as both a flexible alternative and a complementary enhancement to reward-based fine-tuning, establishing test-time scaling as an effective paradigm for controllable text-to-video generation.

Yu-Jiang Pu, Yu Kong · 1 citation
#machine learning Preprint Oct 2026

Understanding the Weight Averaging Mechanism in LLM Training for Post-Training Quantization

Large language models (LLMs) are typically pretrained in high precision but increasingly deployed with low-precision post-training quantization (PTQ). Recent studies have shown that using weight averaging during pretraining can improve PTQ performance compared with learning-rate decay, suggesting that it might provide...

Han Wang, Tianqi Shen, Zong-Lin Liu et al. · 0 citations

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.