Self-Paced Collaborative and Adversarial Network for Unsupervised Domain Adaptation

Weichen Zhang, Dong Xu, Wanli Ouyang, Wen Li

TL;DR

This paper introduces the Collaborative and Adversarial Network (CAN) for unsupervised domain adaptation, which learns both domain-specific and domain-invariant features by strategically applying adversarial and collaborative learning across different layers of a CNN. To further improve performance, they propose Self-Paced CAN (SPCAN), which intelligently selects and re-trains on pseudo-labeled target data in an easy-to-hard manner. For video action recognition, they extend this to a Two-Stream SPCAN (TS-SPCAN) that leverages complementary information between RGB and optical flow streams.

What Problem Does This Paper Address?

Many real-world machine learning tasks suffer from "domain shift," where the data distribution of the training set (source domain) differs from the data distribution of the test set (target domain). This mismatch significantly degrades model performance when deploying models trained on one domain to another. Unsupervised domain adaptation (UDA) aims to address this by learning models that generalize well to the target domain without requiring labeled data from it. Existing UDA methods often focus on learning domain-invariant features, which can sometimes lead to a loss of discriminative information crucial for accurate classification. This paper tackles the challenge of simultaneously preserving domain-specific discriminative features (especially in earlier layers) while learning domain-invariant features (in later layers) to bridge the domain gap effectively.

Methods

The core of the proposed approach is the Collaborative and Adversarial Network (CAN). It's built upon the idea that different layers of a deep neural network capture different types of information.

  • Domain-Specific Feature Learning (Collaborative Learning): In the lower layers (shallow CNN blocks), the network uses "domain collaborative learning." This involves adding domain classifiers to these blocks and training them to distinguish between source and target domain samples. By encouraging these classifiers to correctly identify the domain, the network learns features that are specific to each domain.
  • Domain-Invariant Feature Learning (Adversarial Learning): In the higher layers (deeper CNN blocks), the network employs "domain adversarial learning." Here, domain classifiers are trained to confuse the main classifier, making it harder to tell which domain a sample comes from. This is achieved using a gradient reversal layer, pushing the network to learn features that are common across both domains.
  • Unified Framework: The key innovation is that these two seemingly opposing objectives are unified. By assigning weights (λ) to the domain classifiers at different blocks, the framework can automatically learn to emphasize domain-specific features (positive λ) in earlier layers and domain-invariant features (negative λ) in later layers.

To further enhance the model's ability to learn from unlabeled target data, the authors introduce Self-Paced CAN (SPCAN). This method incorporates a self-paced learning strategy:

  • Pseudo-Labeling and Progressive Selection: SPCAN iteratively selects pseudo-labeled target samples. It first identifies "easy" samples (those with high confidence from the image classifier or high domain confidence from the domain classifier) and gradually includes more "difficult" samples as training progresses.
  • Two Selection Schemes:
    • Image Classifier Based Sample Selection (CSS): Selects target samples based on the confidence of the main image classifier.
  • Domain Classifier Based Sample Selection (DSS): Selects target samples based on how confidently the domain classifier assigns them to the target domain.
  • Weighted Re-training: Selected pseudo-labeled samples are re-weighted based on their confidence scores before re-training the CAN model.

For video action recognition, they extend SPCAN to Two-Stream SPCAN (TS-SPCAN). This leverages the common practice of using separate RGB and optical flow streams for video analysis:

  • Cross-Stream Information Exchange: TS-SPCAN trains two independent CAN models, one for each stream. Crucially, the pseudo-labeled target samples selected by the image and domain classifiers of one stream are used to train the other stream. This allows the streams to learn from each other, effectively exchanging complementary information.

Datasets

The paper evaluates its methods on several standard benchmarks:

  • Object Recognition:
    • Office-31
    • ImageCLEF-DA
    • VISDA-2017
  • Video Action Recognition:
    • UCF101-10 (a subset of UCF101)
    • HMDB51-10 (a subset of HMDB51)

Key Insights and Ideas

  • Layer-wise Feature Learning: The paper demonstrates that it's beneficial to learn different types of features at different network depths. Shallow layers are better suited for domain-specific features, while deeper layers are more effective for domain-invariant features.
  • Unified Collaborative and Adversarial Learning: By formulating both domain-specific and domain-invariant learning as a single optimization problem with weighted domain classifiers, the authors create a flexible and powerful framework.
  • Self-Paced Learning for Domain Adaptation: Applying self-paced learning to select pseudo-labeled target samples in an easy-to-hard fashion significantly improves robustness and performance, especially in challenging domain adaptation scenarios.
  • Cross-Stream Synergy in Video: For video tasks, enabling two-stream networks to "teach" each other using selected pseudo-labeled data is a highly effective way to leverage complementary information and boost adaptation.

Key Results

  • Object Recognition: SPCAN consistently achieved state-of-the-art results across Office-31, ImageCLEF-DA, and VISDA-2017 datasets. For instance, on Office-31, SPCAN achieved an average accuracy of 89.1%, outperforming DANN (80.9%) and other methods.
  • Video Action Recognition: TS-SPCAN achieved the best performance on UCF101-10 and HMDB51-10, reaching an average accuracy of 93.5%. This significantly improved upon TSN (85.3%) and DANN (87.7%).
  • Ablation Studies: The results showed that both the collaborative and adversarial learning scheme (CAN) and the self-paced sample selection module (SPCAN) are crucial for achieving the best performance. Removing either component led to a performance drop.
  • Qualitative Analysis: t-SNE visualizations showed that CAN and SPCAN produced more overlapping and better-grouped representations of source and target domain samples compared to DANN, indicating better domain alignment and class discriminability.

Limitations and Future Work

  • Hyperparameter Sensitivity: While the paper mentions optimizing weights (λ) automatically, the performance might still be sensitive to other hyperparameters like the trade-off parameter α.
  • Computational Cost: The proposed methods, especially SPCAN and TS-SPCAN, involve iterative selection and re-training, which can increase computational complexity compared to simpler UDA methods.
  • Future Work: The authors suggest that the self-paced sample selection module can be applied to other adversarial training methods to improve their domain adaptation performance. They also highlight the potential for further exploration of cross-stream information exchange in TS-SPCAN.

Summary updated

BibTeX
@article{zhang2021self,
  author = {Weichen Zhang and Dong Xu and Wanli Ouyang and Wen Li},
  title = {{Self-Paced Collaborative and Adversarial Network for Unsupervised Domain Adaptation}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2021},
  doi = {10.1109/tpami.2019.2962476},
}
Figure