Improving self-training under distribution shifts via anchored confidence with theoretical guarantees

Taejong Joo, Diego Klabjan · DOI

Introduction

Deep learning models frequently encounter "distribution shifts," where the data observed during deployment differs significantly from the training data. A common strategy to mitigate this is self-training, where a model generates "pseudo-labels" for unlabeled target data and iteratively updates itself. However, this process is prone to self-confirmation bias: the model may generate incorrect pseudo-labels with high confidence, leading to a feedback loop of errors that degrades performance.

The Anchored Confidence (AnCon) Framework

To address this, the authors introduce Anchored Confidence (AnCon), a computationally efficient method designed for real-time test-time adaptation (TTA). AnCon leverages the principle of temporal consistency—the notion that a model's predictions for a specific data point should remain stable over time.

Key Mechanisms

  1. Generalized Temporal Ensemble: Instead of relying solely on the current (potentially noisy) prediction, AnCon maintains a weighted average of past predictions.
  2. Relative Thresholding (Anchoring): This mechanism selectively includes past predictions in the ensemble only if their confidence exceeds a dynamic, exponential moving average of past confidences. This ensures the ensemble is "anchored" to reliable historical states.
  3. Label Smoothing: The resulting temporal ensemble serves as a smoothing vector for the current pseudo-label, preventing the model from over-committing to erroneous one-hot predictions.

Unlike neighborhood-based methods or multi-model ensembles, AnCon requires no additional forward passes, making it nearly as fast as standard self-training.

Experimental Evaluation

AnCon was evaluated across several rigorous benchmarks, including Office-31, OfficeHome, and VisDa for domain adaptation, as well as ImageNet-C for robustness against 15 types of synthetic image corruptions.

Robustness of AnCon across corruption intensities and training epochs. Figure (a) shows performance stability across corruption levels, (b) demonstrates how AnCon prevents the accuracy collapse seen in vanilla self-training, and (c) highlights the performance delta.

Key Results and Insights

  • Performance Gains: AnCon consistently improved self-training accuracy by 8% to 16% across diverse scenarios. On the most severe ImageNet-C corruptions (Intensity 5), AnCon achieved up to 52% higher accuracy than vanilla self-training.
  • Theoretical Guarantees: The authors provide an asymptotic proof that the temporal ensemble's error rate monotonically decreases if the average accuracy of confident predictions exceeds 50%.
  • Calibration and Stability: AnCon significantly improves model calibration, ensuring that confidence scores more accurately reflect true performance. Furthermore, the method is highly robust to hyperparameter choices, maintaining stability where other methods require extensive tuning.
  • Orthogonal Compatibility: AnCon acts as a "plug-and-play" module that can be integrated with other state-of-the-art methods like GCE or NRC to provide further performance boosts.
Performance comparison of AnCon against baseline self-training and other methods across standard domain adaptation benchmarks. AnCon consistently provides the highest gains when paired with various base methods.

Conclusion

Anchored Confidence offers a robust, efficient solution to the self-confirmation bias inherent in self-training. By anchoring predictions to a reliable temporal history, it enables models to adapt to distribution shifts with higher accuracy and better-calibrated confidence, providing both empirical success and theoretical reliability for safety-critical applications.

Summary updated

BibTeX
@inproceedings{joo2024improving,
  author = {Taejong Joo and Diego Klabjan},
  title = {{Improving self-training under distribution shifts via anchored confidence with theoretical guarantees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=a17biETKyI},
}
Figure