TL;DR
This paper introduces a novel approach to test-time domain generalization by treating pseudo-labels as probabilistic distributions, thereby accounting for prediction uncertainty. By incorporating neighboring target samples through variational inference and a meta-generalization training strategy, the method achieves more robust and accurate generalization to unseen domains.
What Problem Does This Paper Address?
Deep neural networks often struggle to generalize to data distributions that differ from their training data, leading to performance degradation. Domain generalization aims to train models that perform well on unseen target domains without any target data during training. However, existing methods often fall short when faced with significant domain shifts. Test-time adaptation (TTA) offers a solution by adapting a pre-trained model to the target domain using unlabeled target data at test time. A common TTA strategy involves using pseudo-labels derived from the source model's predictions on target data. The challenge here is that source models can be uncertain or inaccurate on target data, leading to misleading pseudo-labels and potentially worse generalization. This paper addresses the unreliability of pseudo-labels in test-time domain generalization by proposing a probabilistic approach that explicitly models uncertainty and leverages richer target information.
Methods
The core of the proposed method lies in three key contributions:
- Probabilistic Pseudo-Labeling: Instead of using hard pseudo-labels (the most likely class), the authors model pseudo-labels as probability distributions. This is achieved through a variational inference framework, allowing the model to capture and utilize the uncertainty inherent in the source model's predictions on target data. This prevents the model from being overly confident in potentially incorrect predictions.
- Variational Neighbor Labels: To further improve pseudo-label quality, the method incorporates information from neighboring target samples. This is done by introducing a latent variable that captures the collective characteristics of nearby samples, leading to more accurate and robust pseudo-labels.
- Meta-Generalization Stage: To train the model to effectively leverage this neighboring information, a meta-generalization stage is introduced during training. This stage simulates the test-time generalization process by splitting source domains into meta-source and meta-target sets, allowing the model to learn how to adapt to unseen domain shifts. This meta-learning approach helps the model learn to generate better variational neighbor labels.
Datasets
The authors evaluate their method on seven widely-used domain generalization datasets for image classification:
- PACS
- VLCS
- Office-Home
- TerraIncognita
- Mini DomainNet
- Rotated MNIST
- Fashion MNIST
Key Insights and Ideas
- Uncertainty is Key: Treating pseudo-labels as distributions, rather than single predictions, is crucial for handling domain shifts. This probabilistic approach directly addresses the overconfidence issue in standard pseudo-labeling.
- Neighborhood Matters: Leveraging information from neighboring target samples significantly improves the quality and robustness of pseudo-labels, leading to better adaptation.
- Simulating Test-Time: The meta-generalization stage effectively mimics the test-time adaptation process during training, enabling the model to learn how to generalize to unseen domains.
- Orthogonality: The proposed method is orthogonal to other test-time techniques like data augmentation, suggesting potential for combined improvements.
Key Results
- The proposed method consistently outperforms baseline methods, including ERM and other state-of-the-art test-time adaptation and domain generalization techniques, across multiple datasets.
- On PACS, the method achieved a mean accuracy of 85.0 ±0.4 (ResNet-18) and 87.9 ±0.3 (ResNet-50), outperforming previous methods.
- The method demonstrates improved calibration, as shown by a lower Expected Calibration Error (ECE) compared to baselines on PACS.
- It shows robustness to varying batch sizes at test time, performing well even with small batches, unlike some other methods that require large batches.
- The meta-generalization strategy significantly boosts performance, especially when combined with variational neighbor labels.
Limitations and Future Work
- Limitation: The approach follows a common setup requiring multiple source domains and a small batch of target samples during training. The efficient use of source data for both training and simulating test-time generalization might be a limitation in certain environments.
- Future Work: The authors suggest exploring the single-source and single-target-sample variant of the method, as well as using simulated or generated data. They also mention that performance on datasets with a very large number of categories might benefit from larger model capacities.
Summary updated