Training on Test Data with Bayesian Adaptation for Covariate Shift
arXiv:2109.12746
Abstract
When faced with distribution shift at test time, deep neural networks often make inaccurate predictions with unreliable uncertainty estimates. While improving the robustness of neural networks is one promising approach to mitigate this issue, an appealing alternate to robustifying networks against all possible test-time shifts is to instead directly adapt them to unlabeled inputs from the particular distribution shift we encounter at test time. However, this poses a challenging question: in the standard Bayesian model for supervised learning, unlabeled inputs are conditionally independent of model parameters when the labels are unobserved, so what can unlabeled data tell us about the model parameters at test-time? In this paper, we derive a Bayesian model that provides for a well-defined relationship between unlabeled inputs under distributional shift and model parameters, and show how approximate inference in this model can be instantiated with a simple regularized entropy minimization procedure at test-time. We evaluate our method on a variety of distribution shifts for image classification, including image corruptions, natural distribution shifts, and domain adaptation settings, and show that our method improves both accuracy and uncertainty estimation.
References in corpus (14)
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence
- Deep Visual Domain Adaptation: A Survey
- MixMatch: A Holistic Approach to Semi-Supervised Learning
- Model Adaptation: Unsupervised Domain Adaptation without Source Data
- Tent: Fully Test-time Adaptation by Entropy Minimization
- Bayesian Deep Learning and a Probabilistic Perspective of Generalization
- A Simple Baseline for Bayesian Uncertainty in Deep Learning
- Adversarial Examples Are a Natural Consequence of Test Error in Noise
- Functional Variational Bayesian Neural Networks
- Efficient and Scalable Bayesian Neural Nets with Rank-1 Factors
- The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
- Bayesian Semi-supervised Learning with Graph Gaussian Processes
- Graph Convolutional Gaussian Processes
- Unsupervised Calibration under Covariate Shift