TL;DR
This paper introduces a novel framework for Semi-Supervised Domain Adaptation (SSDA) that combines a target-specific margin loss with a reinforcement learning-based pseudo-label selection strategy. By training a deep Q-learning agent, the model intelligently selects unlabeled target samples that are both highly accurate and representative of the target domain's true distribution, significantly outperforming existing state-of-the-art methods.
What Problem Does This Paper Address?
Domain adaptation is crucial when you want to deploy a machine learning model on a new "target" domain (e.g., real-world photos) after training it on a distinct "source" domain (e.g., synthetic or clip-art images). While Unsupervised Domain Adaptation (UDA) assumes zero labels in the target domain, Semi-Supervised Domain Adaptation (SSDA) deals with a more realistic scenario: you have a massive labeled source dataset, a large unlabeled target dataset, and a very small handful of labeled target examples.
Surprisingly, standard UDA methods often fail in this semi-supervised setting, sometimes performing worse than simply training on the combined labeled data. To fix this, researchers often turn to pseudo-labeling—predicting labels for the unlabeled target data and treating them as ground truth. However, standard pseudo-labeling strategies face a major dilemma: if you only select the most confident predictions, you end up choosing "easy" samples that sit close to your existing labeled data. This fails to capture the true, broader distribution of the target domain, leading to biased and underperforming models.
Methods
The authors propose a two-pronged approach to solve this problem: Target Margin Loss (TML) and Deep Q-Network Pseudo-Labeling (DQNPL).
1. Target Margin Loss (TML)
Because source domain samples vastly outnumber target domain samples, standard classification losses allow the source domain to dominate the decision boundaries. TML introduces a relative angular margin specifically to the target labeled data. This forces the model to prioritize separating target domain features cleanly, making the decision boundaries much more relevant to the target distribution.
2. RL-Based Selective Pseudo-Labeling
Instead of using a fixed confidence threshold to select pseudo-labels, the authors frame sample selection as a Markov Decision Process (MDP) and train a Deep Q-Network (DQN) agent to make the selections:
- State: A concatenated vector representing features and classifier outputs from the candidate pseudo-labeled set, the currently selected positive set, and the remaining unlabeled target data.
- Action: Choosing a specific pseudo-labeled instance from a candidate pool to move into the positive training set.
- Reward: A binary reward (+1 or -1) calculated from a custom metric function. This function evaluates three things: the classifier's confidence, the sample's proximity to the target domain's class feature centers, and—crucially—how much the sample reduces the overall entropy (uncertainty) of the target unlabeled data. This last factor ensures the agent selects representative samples, not just easy ones.
Datasets
The method was evaluated on three standard domain adaptation benchmarks under a strict 3-shot SSDA setting (only 3 labeled target samples per class):
- DomainNet: A massive dataset where the authors utilized 4 domains (Real, Clipart, Painting, Sketch) and 126 categories.
- Office-Home: Consists of 4 distinct domains (Artistic, Clipart, Product, Real-World) with 65 categories.
- Office-31: A widely used dataset featuring 3 domains (Amazon, Webcam, DSLR) across 31 categories.
Key Insights and Ideas
- Confidence $\neq$ Representativeness: The most confident pseudo-labels are usually redundant because they cluster tightly around already-labeled data. To successfully adapt domains, a model needs to learn from samples that represent the wider, unmapped regions of the target distribution.
- Asymmetric Margins Matter: Applying a margin loss uniformly across both source and target domains (Common Margin Loss) fails because the source domain still dominates due to data volume. Applying the margin exclusively to the target domain forces the network to respect target domain boundaries.
- RL as a Dynamic Filter: Reinforcement learning allows the selection policy to adapt dynamically as the base model evolves during training, balancing the exploration of diverse data with the exploitation of accurate labels.
Key Results
The complete method (TML_DQNPL) consistently outperformed all baseline methods, including the previous state-of-the-art SSDA method, Minimax Entropy (MME).
- DomainNet: TML_DQNPL achieved a mean accuracy of 72.3% across 7 adaptation scenarios, beating MME (68.9%) and a standard confidence-threshold baseline, TML_SPL (70.4%).
- Office-Home & Office-31: The method achieved top-performing mean accuracies of 69.5% and 78.2% respectively, demonstrating robustness even on smaller-scale datasets where noisy pseudo-labels typically cause severe model degradation.
Furthermore, validation experiments showed that the RL selection mechanism consistently improved performance regardless of whether the target domain had 1 or 20 labeled samples per class, proving its stability.
Limitations and Future Work
While the proposed reinforcement learning agent is highly effective, the training process requires alternating between training the base classification network and updating the deep Q-network. This alternating optimization loop can be computationally intensive.
As a key benefit, the authors note that the DQN agent's training is decoupled from the base model's architecture. This opens up a promising avenue for future work: integrating this RL-based pseudo-labeling selection strategy into other advanced semi-supervised or self-supervised deep learning architectures.
Summary updated