arXiv:2610.12048cs.CVOct 2026

Manuscript Offprint

arXiv:2610.12048

Do Not Train Away Uncertainty: Early Uncertainty Anchored Calibration

Yutong Xie, Jiawei Tang, Zhenglin Hua, Yuxiang Ma, Si Qin, Yaxin Hou, Hui Liu, Junhui Hou, Yuheng Jia

ABSTRACT

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 training or fine-tuning yields marginal accuracy gains but substantially increases calibration errors. Our analysis suggests that the early model retains uncertainty awareness in both its predictions and features, which is gradually lost with continued training. To avoid training away this uncertainty awareness, we propose EUA-Cal, a novel method that exploits the Early model as an Uncertainty Anchor for Calibration. EUA-Cal introduces early prediction regularization to preserve early predictive uncertainty and prototype structure regularization to exploit uncertainty reflected in the early feature space, jointly mitigating overconfidence. Extensive experiments on image classification and multiple-choice question answering across eight diverse models demonstrate that EUA-Cal outperforms state-of-the-art calibration methods.

1 INTRODUCTION

In recent years, deep neural networks (DNNs), including large language models (LLMs), have achieved significant progress in image classification (Zagoruyko & Komodakis, 2016), object segmentation (Kirillov et al., 2023), and natural language processing (Vaswani et al., 2017). Despite their remarkable performance, these models are prone to overconfidence during training or fine-tuning, with the predicted confidence exceeding the actual accuracy (Guo et al., 2017; Jiang et al., 2021). This overconfidence reflects an underestimate of the uncertainty in their predictions and can reduce their reliability, particularly in high-risk applications such as autonomous driving (Zhang et al., 2025) and medical diagnosis (Huang et al., 2025b).

To calibrate model confidence, various calibration techniques have been proposed, including post-hoc calibration (Guo et al., 2017; Pan et al., 2020), loss function and regularization designs (Szegedy et al., 2016; Mukhoti et al., 2020; Liu et al., 2022; Ni et al., 2025), mixup-based methods (Thulasidasan et al., 2019; Bouniot et al., 2025), uncertainty-aware methods (Sensoy et al., 2018; Li et al., 2025), etc. Expected Calibration Error (ECE) (Guo et al., 2017) is a commonly used metric for evaluating the calibration performance of these methods, which measures the discrepancy between predicted confidence and empirical accuracy across confidence bins. A lower value of ECE indicates better calibration performance, i.e., the model is aware of how uncertain its predictions are.

∗^{*}Corresponding author.

Figure

(a)

Figure

Epoch: 40

Figure

Epoch: 60

(b)

Figure

Epoch: 200

Figure 1: (a) Training and validation classification errors and validation ECE for ResNet-50 on CIFAR-10, ViT-B/32 on CIFAR-100, and Llama3-8B on ARC-Challenge. (b): t-SNE visualizations of features from ResNet-50 on CIFAR-10 at epochs 40, 60, and 200. Lighter shades indicate features associated with lower confidence. More examples are provided in Appendix B.

Some studies (Guo et al., 2017; Mukhoti et al., 2020) have shown that DNNs tend to produce over-confident predictions with continued training. We observe a similar pattern across various models, where the early model is better calibrated but its calibration worsens as training continues. Figure 1(a) illustrates the classification errors of three different models on the train and validation sets, along with the ECE on the validation set. On all three models, we observe that ECE reaches its minimum at an early stage of training or fine-tuning, but then increases in later stages, while accuracy improves only marginally. This indicates that there exists an early model that achieves the lowest ECE and exhibits the greatest uncertainty awareness in its predictions. However, this awareness is gradually lost during subsequent training, resulting in worse calibration performance.

Beyond predictions of the early model, we observe that it also exhibits uncertainty awareness in feature structure. Figure 1(b) visualizes the feature structure and the corresponding calibration performance of ResNet-50 at different training epochs. We find that features with low confidence (shown in lighter shades) are crucial for calibration. At epoch 40, many features have low confidence, but their cluster structure remains poorly defined. The model exhibits the lowest accuracy and the highest ECE. At epoch 60, corresponding to the early model in Figure 1(a), clearer clusters emerge while features with low confidence remain near their boundaries. At this stage, accuracy improves and ECE reaches its minimum. By epoch 200, the model achieves the highest accuracy with the most compact clusters. However, features with low confidence almost disappear, while the ECE increases. These observations suggest that the early model with the best ECE forms a clear feature structure while retaining some low confidence features, demonstrating the best uncertainty awareness in its features. However, this uncertainty awareness also fades as training continues.

To avoid training away this uncertainty awareness in predictions and features, we propose EUA-Cal, a novel method that exploits the Early model as an Uncertainty Anchor for Calibration. Specifically, in the pre-learning stage, we obtain the early model by stopping training at a specific epoch, which is selected on validation sets. We then introduce Early Prediction Regularization (EPR) to preserve early predictive uncertainty and Prototype Structure Regularization (PSR) to exploit uncertainty awareness in features of the early model. Finally, we combine EPR and PSR to formulate the overall EUA-Cal objective, aiming to preserve uncertainty and mitigate overconfidence.

Our contributions are summarized as follows:

• We identify a general phenomenon in training or fine-tuning where the early model is better calibrated. Our analysis further shows that the early model preserves uncertainty awareness in both the predictions and the feature structure. However, this uncertainty is gradually lost as training continues, resulting in overconfidence.

• We propose EUA-Cal, a novel method that exploits the uncertainty awareness retained by the early model as an anchor. Our method is achieved through regularization terms that EPR aligns current predictions with early predictions and PSR derives probability distributions from early feature structures, jointly mitigating overconfidence.

• Our method achieves superior performance in calibration across diverse network architectures, including deep neural networks such as ResNet and DenseNet, as well as Transformer-based models such as ViT, Llama, and Qwen. Extensive experiments on eight models and six datasets demonstrate that EUA-Cal outperforms state-of-the-art methods.

References (62)