Abstract
Many existing approaches for unsupervised domain adaptation (UDA) focus on adapting under only data distribution shift and offer limited success under additional cross-domain label distribution shift. Recent work based on self-training using target pseudolabels has shown promise, but on challenging shifts pseudolabels may be highly unreliable and using them for self-training may lead to error accumulation and domain misalignment. We propose Selective Entropy Optimization via Committee Consistency (SENTRY), a UDA algorithm that judges the reliability of a target instance based on its predictive consistency under a committee of random image transformations. Our algorithm then selectively minimizes predictive entropy to increase confidence on highly consistent target instances, while maximizing predictive entropy to reduce confidence on highly inconsistent ones. In combination with pseudolabel-based approximate target class balancing, our approach leads to significant improvements over the state-of-the-art on 27/31 domain shifts from standard UDA benchmarks as well as benchmarks designed to stress-test adaptation under label distribution shift. Our code is available at https://github.com/virajprabhu/SENTRY.
Introduction
Unsupervised Domain Adaptation (UDA) aims to take a model trained on a labeled "source" domain (e.g., synthetic images) and adapt it to an unlabeled "target" domain (e.g., real-world photos). Most UDA methods struggle with two major issues:
- Label Distribution Shift (LDS): They assume the proportion of classes is the same in both domains. In reality, your source might be perfectly balanced, while your target follows a "power law" distribution where a few classes are very common and others are rare.
- The Feedback Loop of Doom: Common techniques like "Entropy Minimization" force the model to become more confident in its predictions on the target data. However, if the model is initially wrong due to the domain shift, it simply becomes "more confident in its mistakes," leading to a cycle of error accumulation and total misalignment.
Methods
The authors introduce SENTRY, which moves away from using model confidence (which is often miscalibrated under domain shift) as a proxy for correctness. Instead, they use Predictive Consistency.
- Committee Consistency: For every unlabeled target image, the model generates a "committee" of $k$ augmented versions using RandAugment.
- The Consistency Checker: If the model predicts the same class for the majority of these augmented versions as it did for the original image, the instance is marked as consistent. If the predictions vary wildly, it is inconsistent.
- Selective Entropy Optimization:
- For consistent instances, the model minimizes predictive entropy (standard self-training) to "lock in" the correct alignment.
- For inconsistent instances, the model maximizes predictive entropy. This effectively tells the model to "stop guessing" and pushes the prediction toward a uniform distribution, preventing it from committing to a wrong label.
- Class-Balanced Sampling: To handle LDS, they use a sampling strategy that ensures each class is represented equally in training batches. Since target labels are unknown, they use the model’s own "pseudo-labels" to estimate the target distribution.
Key Insights
- Consistency > Confidence: Under domain shift, a model might be 99% sure it's looking at a "dog" when it's actually a "cat." However, if you rotate or crop that image and the model suddenly thinks it's a "car," that inconsistency is a much more reliable signal that the model is lost.
- Entropy Maximization as a "Safety Valve": Most UDA papers only focus on what to do with "good" samples. SENTRY’s core innovation is explicitly identifying "bad" samples and forcing the model to be less certain about them, which allows the model to remain flexible enough to be corrected later in training.
- Augmentation Invariance: By minimizing entropy on the augmented versions of consistent samples, the model naturally learns to be invariant to those transformations, further stabilizing the adaptation process.
Experimental Results
The researchers evaluated SENTRY on a mix of standard and "stress-test" benchmarks including DomainNet, OfficeHome (and its RS-UT variant), VisDA2017, and SVHN $\rightarrow$ MNIST-LT.
SENTRY set a new state-of-the-art on 27 out of 31 evaluated domain shifts.
- DomainNet: Achieved an average accuracy of 81.39%, outperforming the previous best (InstaPBM) by 3.55%.
- OfficeHome RS-UT: Outperformed competitors by 3.58% on average, showing high robustness to extreme label imbalance.
- Extreme Imbalance: On the SVHN $\rightarrow$ MNIST-LT task with an imbalance factor of 100, SENTRY outperformed the next best method by a staggering 13.6%.
- Ablation Study: The authors showed that simply ignoring inconsistent samples is worse than actively maximizing their entropy, proving that the "push back" against uncertain predictions is vital.
Limitations and Future Work
SENTRY requires $k$ forward passes (the authors used $k=3$) for every target instance to check consistency, adding computational overhead. Additionally, the method relies on the existence of "label-preserving" transformations. If the domain shift is so extreme that standard augmentations change the semantic meaning of the image, the consistency check might fail. Future directions include exploring more sophisticated "committee" structures or applying this consistency-based selection to other tasks like object detection or semantic segmentation.
Summary updated