Semi-Supervised Domain Adaptation with Auto-Encoder via Simultaneous Learning

Md Mahmudur Rahman, Rameswar Panda, Mohammad Arif Ul Alam

TL;DR

This paper introduces a novel semi-supervised domain adaptation (SSDA) framework that uses twin auto-encoders and a "simultaneous learning" scheme to align source and target feature distributions. By optimizing a modified, class-aware Maximum Mean Discrepancy (MMD) loss within a single computational graph, the model achieves state-of-the-art accuracy and faster convergence compared to traditional adversarial methods.

What Problem Does This Paper Address?

In machine learning, we often face a "domain shift": a model trained on one dataset (the source, e.g., studio photos) performs poorly on another (the target, e.g., low-quality webcam images). Domain Adaptation (DA) aims to bridge this gap.

The authors focus on Semi-Supervised Domain Adaptation (SSDA), where we have plenty of labeled source data but only a tiny handful of labeled target samples (e.g., 1 or 3 per class). Existing methods usually fall into two camps:

  1. Adversarial models: These are powerful but notoriously "fragile" and difficult to train, often failing to converge.
  2. Discrepancy-based models: These are more stable but often fail to account for intra-domain discrepancy—the gap between labeled and unlabeled samples within the target domain itself—leading to only partial alignment.

Methods

The authors propose a two-stage framework centered on Simultaneous Learning and Auto-Encoders:

  • Twin Auto-Encoders: Instead of using standard classification layers for alignment, the authors use the bottleneck layer of an auto-encoder. Because auto-encoders aim to reconstruct data rather than just categorize it, they create a more continuous and "smooth" feature space that is easier to align.
  • Simultaneous Learning Graph: The source and target networks are placed in a single computational graph connected by a "dummy layer" (a layer with zero activation that passes no data). This allows both networks to be optimized concurrently in a single batch, ensuring that the feature spaces of both domains move toward each other simultaneously.
  • Modified MMD Loss: Standard MMD minimizes the distance between the global means of two distributions. The authors' Modified MMD focuses on class-conditional distributions. It calculates the distance between the centroids of corresponding classes across domains, ensuring that "dogs" in the source domain align specifically with "dogs" in the target domain.
  • Two-Stage Training:
    1. Train the auto-encoders using the simultaneous scheme and Modified MMD.
  • Freeze the encoders, attach a classifier, and fine-tune using the few available labeled target samples.

Datasets

The framework was evaluated on three major benchmarks:

  • DomainNet: A massive dataset; the authors used a subset of 126 frequent classes across four domains (Real, Painting, Clip-art, and Sketch).
  • Office-31: A standard DA benchmark containing 31 classes from three domains: Amazon (product images), DSLR (high-res photos), and Webcam (low-res photos).
  • Digit Recognition: Cross-domain tasks involving MNIST, SVHN, USPS, and Synthetic Digits.

Key Insights and Ideas

  • Mutual Alignment vs. Fixed Alignment: Most DA methods try to warp the target features to match a fixed source space. This paper argues for "mutual alignment," where both spaces evolve together, which helps resolve intra-domain discrepancies.
  • The "Smoothness" of Auto-Encoders: By using the auto-encoder bottleneck as the feature space, the model avoids the "clusterization" often seen in classification-only networks. This allows for a more fluid transfer of features across the entire space.
  • Efficiency: The simultaneous learning scheme is remarkably fast. The authors show that their model reaches high accuracy in significantly fewer iterations than adversarial counterparts like MME or CDAN.

Key Results

The proposed method consistently outperformed state-of-the-art (SOTA) models across all datasets:

  • Office-31: On the DSLR $\rightarrow$ Amazon task (Alexnet backbone), the model achieved 70.5% accuracy, outperforming the previous best (APE) at 69.0%.
  • DomainNet: In the 3-shot scenario (ResNet34), the model achieved an average accuracy of 73.2%, significantly higher than MME (68.9%) and BiAT (69.7%).
  • Digit Recognition: The model reached 92.8% average accuracy, notably outperforming CORAL (91.0%) and ADDA (86.9%).
  • Convergence: Qualitative t-SNE visualizations (Figure 4) and convergence plots (Figure 5) demonstrate that the model produces much cleaner class separation and more stable learning curves than baseline algorithms.

Limitations and Future Work

  • Class Imbalance: The authors acknowledge that high class imbalance between source and target domains can degrade performance, as the discrepancy property might not hold strongly. They suggest random resampling as a temporary fix.
  • Hyperparameter Sensitivity: The size of the auto-encoder bottleneck is critical. If it's too narrow, it "washes away" vital information; if it's too wide, convergence slows down.
  • Future Directions: The authors plan to extend the framework to handle multi-domain adaptation (aligning more than two domains at once) and explore adversarial techniques specifically to minimize discrepancy within the bottleneck layers.

Summary updated

BibTeX
@inproceedings{rahman2023semi,
  author = {Md Mahmudur Rahman and Rameswar Panda and Mohammad Arif Ul Alam},
  title = {{Semi-Supervised Domain Adaptation with Auto-Encoder via Simultaneous Learning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  doi = {10.1109/wacv56688.2023.00048},
}
Figure