Deep Reinforcement Learning Boosted Partial Domain Adaptation

Keyu Wu, Min Wu, Jianfei Yang, Zhenghua Chen, Zhengguo Li, Xiaoli Li

Abstract

Partial Domain Adaptation (PDA) presents a significant challenge in machine learning where the target domain contains only a subset of the classes found in a larger source domain. Standard domain adaptation techniques often suffer from "negative transfer" when they attempt to align irrelevant source data with the target domain. This paper introduces a "plug-and-play" Deep Reinforcement Learning-based Source Data Selector (DRL-DS) that treats data selection as a sequential decision-making process. By dynamically filtering out outlier source samples, the DRL-DS module effectively mitigates negative transfer and enhances the performance of existing adaptation frameworks. Experimental results on Office-31, Office-Home, and VisDA2017 benchmarks demonstrate state-of-the-art performance.

Introduction

Domain Adaptation (DA) aims to transfer knowledge from a labeled source domain to an unlabeled target domain. While standard DA assumes identical label spaces, Partial Domain Adaptation (PDA) addresses more realistic scenarios where the target label space is a subset of the source label space. For instance, a model trained on the 1,000 classes of ImageNet might be applied to a target domain containing only 10 specific household item categories.

The primary hurdle in PDA is identifying and excluding source samples that do not belong to the target categories. Forcing the alignment of these irrelevant "outlier" classes leads to negative transfer, which degrades model accuracy. Current methods often rely on static weighting schemes, which may not be robust enough to handle complex data distributions.

Proposed Method: DRL-based Source Data Selector (DRL-DS)

The authors propose framing the data selection problem as a Markov Decision Process (MDP) solved by a Deep Reinforcement Learning agent. The DRL-DS module is designed to be integrated into existing domain adaptation frameworks, such as the Stepwise Adaptive Feature Norm (SAFN) and the Example Transfer Network (ETN).

Architecture of the DRL-DS integrated with SAFN and ETN frameworks.

The MDP Formulation

  1. Agent: A Dueling Double Deep Q-Network (DQN) that processes feature representations of source samples.
  2. Action: A binary decision to either keep or discard a given source sample for the current training step.
  3. Reward: The reward function is based on the geometric similarity between a selected source sample and the target data batch. It utilizes Cosine distance and Canberra distance to measure alignment. A positive reward is granted if a "kept" sample is highly similar to the target distribution.
  4. Exploration: To ensure efficient exploration of the large data space, the agent employs NoisyNets, which provide more consistent exploration than traditional $\epsilon$-greedy methods.

By using an off-policy Dueling Double DQN, the system achieves higher sample efficiency compared to previous on-policy reinforcement learning approaches for data selection.

Experimental Setup

The proposed DRL-DS module was evaluated on three major computer vision benchmarks:

  • Office-31: Contains 4,652 images across 31 categories from Amazon, Webcam, and DSLR domains.
  • Office-Home: A more complex dataset with 15,500 images across 65 categories (Artistic, Clipart, Product, Real-World).
  • VisDA2017: A large-scale dataset for synthetic-to-real domain adaptation.

Key Results and Insights

The integration of DRL-DS consistently improved the performance of base adaptation models across all tasks.

Quantitative analysis of shared class selection and t-SNE visualizations of feature alignment.

Performance Gains

  • Office-31: The DRL-DS + ETN combination achieved an average accuracy of 98.41%, setting a new benchmark.
  • Office-Home: The module provided a 3.72% improvement over the standalone ETN model.
  • VisDA2017: The most significant improvement was observed here, with accuracy jumping from 69.20% to 81.08% (a 17.17% relative gain).

Data Selection Accuracy

Analysis of the selection process on the Office-31 task showed that the DRL-DS agent maintained a "shared class" fraction of over 83% in the selected set. Conversely, the eliminated set consisted almost entirely (over 97%) of irrelevant outlier classes, confirming the agent's ability to distinguish between relevant and irrelevant data.

Visual Evidence

t-SNE visualizations (as seen in Figure 6) demonstrate that before training, source and target distributions are poorly aligned. After training with DRL-DS, target samples align closely with the correct source clusters, while irrelevant source clusters are effectively ignored and pushed away from the target distribution.

Conclusion and Future Work

The DRL-DS module offers a robust, dynamic approach to data selection in Partial Domain Adaptation. By explicitly discarding irrelevant data rather than just down-weighting it, the method significantly reduces negative transfer.

Current limitations include sensitivity to hyper-parameters such as RL episode length and batch size. Future research will focus on developing more robust reward frameworks that can automatically tune these parameters for different dataset scales and complexities.

Summary updated

BibTeX
@inproceedings{wu2021deep,
  author = {Keyu Wu and Min Wu and Jianfei Yang and Zhenghua Chen and Zhengguo Li and Xiaoli Li},
  title = {{Deep Reinforcement Learning Boosted Partial Domain Adaptation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/439},
}
Figure