Abstract
Black-Box Domain Adaptation (BBDA) represents a strict privacy-preserving scenario where a target model must adapt to a new domain using only the outputs of a hidden source model. This setting is prone to severe overfitting due to noisy pseudo-labels and the lack of access to source model weights. We present RAIN (RegulArization on Input and Network), a dual-level regularization strategy. RAIN employs Phase MixUp at the input level to focus on structural semantics via frequency-domain interpolation, and Subnetwork Distillation at the network level to prevent overfitting through a capacity-limited anchor. RAIN achieves state-of-the-art performance across multiple benchmarks, including a +5.4% improvement on the challenging VisDA-C dataset.
Introduction: The Black-Box Challenge
Domain Adaptation (DA) typically involves transferring knowledge from a labeled source domain to an unlabeled target domain. While Source-Free DA (SFDA) improved privacy by removing the need for source data, it remains vulnerable to model inversion attacks that can recover training data from model weights.
Black-Box Domain Adaptation (BBDA) addresses this by treating the source model as a restricted API. The target model can only access the source's output predictions (pseudo-labels). However, because of the domain shift, these labels are inherently noisy. Without internal weights to guide the transfer, target models frequently overfit to these errors, failing to generalize to the new domain.
The RAIN Framework
To prevent the target model from blindly memorizing noisy black-box outputs, the authors introduce RAIN, which operates on two distinct levels of regularization.
Input-Level: Phase MixUp
Standard MixUp blends the pixels of two images, but dominant background features (like dark shadows) can easily wash out the actual objects the model needs to learn. RAIN introduces Phase MixUp, which operates in the frequency domain. Using a Fourier transform, it separates an image into its amplitude spectrum—which captures low-level style and background—and its phase spectrum—which captures high-level semantics and object shapes.
By interpolating only the phase spectra of two images, Phase MixUp creates augmented data that highlights core, task-relevant objects while suppressing background noise. This ensures the target model focuses on structural information that is more likely to be invariant across domains.
Network-Level: Subnetwork Distillation
To stop the full target network from overfitting to the source outputs, RAIN creates a slimmer "subnetwork" by temporarily dropping a percentage of the network's width (e.g., using only 84% of the channels). Because it has lower capacity, the subnetwork is less prone to overfitting the source domain's noise.
The framework then uses Jensen-Shannon (JS) divergence to distill knowledge from this robust subnetwork back into the full target network. To ensure the two networks don't just collapse into identical states, they also introduce a gradient dissimilarity loss. This loss forces the full network and subnetwork to learn divergent, diverse representations, maintaining the efficacy of the self-distillation process throughout training.
Experimental Results
The authors evaluate RAIN on four standard domain adaptation benchmarks: Office-31, Image-CLEF, Office-Home, and VisDA-C. RAIN achieves state-of-the-art results across the board, outperforming recent baselines like DINE, SD-SHOT, and NLL-KL.
- Single-Source Adaptation: Compared to the second-best baseline, RAIN improves average accuracy by +1.8% on Office-31, +2.4% on Office-Home, and a massive +5.4% on the highly difficult VisDA-C dataset.
- Multi-Source Adaptation: RAIN yields average improvements of +1.4% on Office-31, +1.3% on Image-CLEF, and +1.4% on Office-Home.
- Ablation on Augmentation: When isolated, Phase MixUp consistently outperforms standard MixUp, CutMix, and RandAugment by 1% to 2% across various tasks, proving its superiority as an input-level regularizer for domain adaptation.
Conclusion
RAIN provides a robust solution for the strict constraints of Black-Box Domain Adaptation. By combining frequency-domain input augmentation with architectural self-distillation, it effectively bridges the gap between source and target domains without compromising privacy. While hyperparameter sensitivity remains a consideration for real-world deployment, the stability of RAIN across diverse benchmarks suggests it is a significant step forward for privacy-preserving machine learning. Future research may explore the application of Phase MixUp to non-visual modalities and dynamic subnetwork scaling.
Summary updated