[Paper Review] On Universal Black-Box Domain Adaptation
This paper proposes Universal Black-Box Domain Adaptation (UB²DA), a novel setting where only the source model's interface is available, and the target label space is unknown and potentially different. It unifies in-class discrimination and out-class detection via a self-training framework regularized by local prediction consistency, achieving state-of-the-art performance on benchmarks without accessing source data or models.
In this paper, we study an arguably least restrictive setting of domain adaptation in a sense of practical deployment, where only the interface of source model is available to the target domain, and where the label-space relations between the two domains are allowed to be different and unknown. We term such a setting as Universal Black-Box Domain Adaptation (UB$^2$DA). The great promise that UB$^2$DA makes, however, brings significant learning challenges, since domain adaptation can only rely on the predictions of unlabeled target data in a partially overlapped label space, by accessing the interface of source model. To tackle the challenges, we first note that the learning task can be converted as two subtasks of in-class\footnote{In this paper we use in-class (out-class) to describe the classes observed (not observed) in the source black-box model.} discrimination and out-class detection, which can be respectively learned by model distillation and entropy separation. We propose to unify them into a self-training framework, regularized by consistency of predictions in local neighborhoods of target samples. Our framework is simple, robust, and easy to be optimized. Experiments on domain adaptation benchmarks show its efficacy. Notably, by accessing the interface of source model only, our framework outperforms existing methods of universal domain adaptation that make use of source data and/or source models, with a newly proposed (and arguably more reasonable) metric of H-score, and performs on par with them with the metric of averaged class accuracy.
Motivation & Objective
- To address the practical challenge of domain adaptation when source data and model weights are unavailable, only the source model's interface is accessible.
- To enable robust adaptation in scenarios where the target label space is unknown and may differ from the source.
- To develop a method that performs both in-class discrimination and out-of-distribution detection without relying on source data or model architecture.
- To demonstrate that a well-initialized black-box model can outperform methods requiring full access to source data.
Proposed method
- The method decomposes the UB²DA task into two subtasks: in-class discrimination via knowledge distillation from the source model's predictions.
- Out-class detection is achieved using a binary classifier trained via entropy separation on target predictions.
- A self-training framework unifies both subtasks, leveraging pseudo-labels from the target model's predictions.
- Consistency regularization is applied over local neighborhoods of target samples to stabilize training and improve generalization.
- The framework is optimized end-to-end with a joint loss combining cross-entropy for in-class classification and entropy-based loss for out-class detection.
- The approach is architecture-agnostic and only requires access to the source model’s forward pass outputs.
Experimental results
Research questions
- RQ1Can effective domain adaptation be achieved when only the interface of a pre-trained source model is available, without access to source data or model weights?
- RQ2How can a model learn to detect out-of-distribution samples when the target label space is unknown and partially disjoint from the source?
- RQ3Can a self-training framework with local consistency regularization effectively unify in-class discrimination and out-class detection in a black-box setting?
- RQ4Does a black-box adaptation method outperform non-black-box SOTA methods in terms of H-score and averaged class accuracy?
Key findings
- The proposed UB²DA method outperforms state-of-the-art non-black-box universal domain adaptation methods on the H-score metric across multiple benchmarks, demonstrating superior generalization and robustness.
- On the Office31 dataset, the method achieves an average accuracy of 91.3% ± 0.2 with ResNet18, 91.1% ± 0.3 with ResNet34, and 91.7% ± 0.1 with ResNet50, showing strong performance across different backbones.
- The method is robust to hyperparameter variations, with minimal performance drop across a wide range of values for ρ, β, and M, indicating stability and ease of deployment.
- Experiments show that the method performs on par with non-black-box SOTA methods in terms of averaged class accuracy, despite not using source data or model parameters.
- The ablation study confirms that both in-class distillation and entropy-based out-class detection contribute significantly to the final performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.