Research map / Probabilistic and scientific modeling / Uncertainty and Gaussian processes
Uncertainty Weighted Gradients for Model Calibration
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes applying a Brier-score-based uncertainty weight to the gradient of cross-entropy (BSCE-GRA) rather than to the loss, to improve neural network calibration without temperature scaling.
Problem
Deep networks are miscalibrated (over- or under-confident); existing focal-loss-style reweighting methods weight the loss itself, which misaligns gradient scale with sample uncertainty and uses single-logit uncertainty estimates.
Approach
Unifies focal and dual focal loss as uncertainty-weighted cross entropy, then detaches a generalized Brier Score uncertainty weight and multiplies it with the cross-entropy gradient (gradient weighting) so harder samples get larger updates while using all logits.
Key results
- BSCE-GRA achieves the lowest ECE in most dataset-model settings before temperature scaling, e.g. CIFAR-10 ResNet50 pre-TS ECE 0.74 vs 4.36 for cross-entropy.
- Most BSCE-GRA optimal temperatures are 1, indicating an inherently calibrated model without post-hoc scaling.
- On CIFAR-10 ResNet50, gradient weighting improved FLSD (uFL) from ECE 1.26 to 0.88 pre-TS and DFL from 1.00 to 0.93 pre-TS.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use BSCE-GRA instead of DFL | ResNet50 · CIFAR10 | ECE: 1.00 -> 0.74 | Helped |
| use BSCE-GRA instead of DFL | ResNet110 · CIFAR10 | ECE: 1.01 -> 0.87 | Helped |
| use BSCE-GRA instead of BSCE | WideResNet · CIFAR10 | ECE: 1.7 -> 1.46 | Helped |
| use BSCE-GRA instead of DFL | DenseNet · CIFAR10 | ECE: 0.87 -> 0.87 | No clear effect |
| use BSCE-GRA instead of BSCE | ResNet50 · CIFAR100 | ECE: 1.90 -> 1.59 | Helped |
| use BSCE-GRA instead of BSCE | ResNet110 · CIFAR100 | ECE: 2.75 -> 2.53 | Helped |
| use BSCE-GRA instead of FLSD | WideResNet · CIFAR100 | ECE: 2.70 -> 2.46 | Helped |
| use BSCE-GRA instead of BSCE | DenseNet · CIFAR100 | ECE: 1.63 -> 1.62 | No clear effect |
| use BSCE-GRA instead of FLSD | ResNet50 · TinyImageNet | ECE: 2.18 -> 4.57 | Hurt |
| add gradient weighting to FLSD instead of weighting the loss (ablation) | FLSD on ResNet50 · CIFAR10 | ECE: 1.26 -> 0.88 | Helped |
| add gradient weighting to DFL instead of weighting the loss (ablation) | DFL on ResNet50 · CIFAR10 | ECE: 1.00 -> 0.93 | Helped |
| add gradient weighting to BSCE instead of weighting the loss (ablation) | BSCE on ResNet50 · CIFAR10 | ECE: 0.88 -> 0.74 | Helped |
Surprising findings
- Applying a differentiable uncertainty weight to the loss can break the positive correlation between loss and gradient magnitude, so focal-style weighting may focus on moderately uncertain rather than most uncertain samples.
- Focal Loss produced better-calibrated models than BSCE-GRA during mid-training epochs (150-200) at moderate learning rate.
Limitations
- Results reported on small image classification benchmarks and ResNet/WideResNet/DenseNet only
- Ground-truth uncertainty unavailable on real data, so Brier-based proxy used; ECE-type group metrics cannot serve as per-sample weights
- Temperature scaling still needed in some settings (e.g., WideResNet on CIFAR-10 with BSCE-GRA post-TS results differ)
Experimental setup
Datasets: CIFAR-10 CIFAR-100 Tiny-ImageNet
Benchmarks: CIFAR-10 CIFAR-100 Tiny-ImageNet
Metrics: ECE AdaECE Classwise-ECE Brier Score accuracy
Baselines: Cross-Entropy Brier Loss MMCE FLSD Dual Focal Loss Temperature Scaling
Builds on: Focal Loss Dual Focal Loss FLSD Temperature Scaling
Closest papers by meaning
- Calibration Bottleneck: Over-compressed Representations are Less Calibratable (ICML 2024 · similarity 0.88)
- A Benchmark Study on Calibration (ICLR 2024 · similarity 0.88)
- Parametric ρ-Norm Scaling Calibration (AAAI 2025 · similarity 0.86)
- Feature Clipping for Uncertainty Calibration (AAAI 2025 · similarity 0.86)
- Reassessing How to Compare and Improve the Calibration of Machine Learning Models (ICLR 2025 · similarity 0.86)
- Towards Certification of Uncertainty Calibration under Adversarial Attacks (ICLR 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
