Gradient Rectification for Robust Calibration under Distribution Shift

Yilin Zhang, Cai Xu, You Wu, Ziyu Guan, Wei Zhao
8/27/2025
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Deep neural networks often produce overconfident predictions, undermining their reliability in safety-critical applications. This miscalibration is further exacerbated under distribution shift, where test data deviates from the training distribution due to environmental or acquisition changes. While existing approaches improve calibration through training-time regularization or post-hoc adjustment, their reliance on access to or simulation of target domains limits their practicality in real-world scenarios. In this paper, we propose a novel calibration framework that operates without access to target domain information. From a frequency-domain perspective, we identify that distribution shifts often distort high-frequency visual cues exploited by deep models, and introduce a low-frequency filtering strategy to encourage reliance on domain-invariant features. However, such information loss may degrade In-Distribution (ID) calibration performance. Therefore, we further propose a gradient-based rectification mechanism that enforces ID calibration as a hard constraint during optimization. Experiments on synthetic and real-world shifted datasets, including CIFAR-10/100-C and WILDS, demonstrate that our method significantly improves calibration under distribution shift while maintaining strong in-distribution performance.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhang2025gradient,
  title  = {Gradient Rectification for Robust Calibration under Distribution Shift},
  author = {Yilin Zhang and Cai Xu and You Wu and Ziyu Guan and Wei Zhao},
  year   = {2025},
  eprint = {2508.19830},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.19830v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.19830.svg)](https://codeofpaper.com/paper/2508.19830)

Discussion