Generative Model Based Noise Robust Training for Unsupervised Domain Adaptation

Zhongying Deng, Da Li, Junjun He, Yi-Zhe Song, Tao Xiang

TL;DR

Pseudo-labeling unlabeled target data in unsupervised domain adaptation (UDA) is notoriously prone to error accumulation because distribution shift generates noisy labels. This paper introduces GeMo-NoRT, a framework that uses class-conditional Normalizing Flows to model the target feature distribution. By pairing distribution-based feature augmentation with generative-discriminative consistency regularization, GeMo-NoRT bridges the domain gap while simultaneously shielding models from noisy pseudo-labels.

What Problem Does This Paper Address?

In unsupervised domain adaptation (UDA)—spanning both single-source (SSDA) and multi-source (MSDA) settings—models must generalize to an unlabeled target domain despite substantial distribution shift. Modern approaches typically rely on self-training via pseudo-labeling (e.g., using confident predictions on target data as training targets).

However, because the classifier was trained primarily on source data, target pseudo-labels are inevitably noisy. If naive self-training consumes these noisy pseudo-labels directly, errors compound across training iterations—a phenomenon known as confirmation bias or noise accumulation. Existing noise-handling methods usually assume features are intact while labels are corrupted, which doesn't fit the continuous domain shift observed in feature space.

Methods

GeMo-NoRT solves this by pairing a standard discriminative convolutional network with class-wise Normalizing Flows (NFlows) trained on target domain features. The method introduces two core mechanisms:

  1. Distribution-Based Class-Wise Feature Augmentation (D-CFA):
  2. Traditional mixup or instance feature augmentation (IFA) linearly blends discrete sample pairs. D-CFA instead mixes an instance feature $f_i$ with a continuous feature $\hat{f}_i \sim p(f \mid M_{y_i})$ sampled directly from the NFlow distribution of class $y_i$.
  3. A novel perspective on noise: Rather than attempting to correct discrete labels, D-CFA fixes the pseudo-label $\hat{y}_i$ and adjusts the feature: $\tilde{f}_i \approx \arg\max_{f_i} p(f_i \mid \hat{y}_i)$. By moving the feature toward the "genuine" target class density modeled by the generative flow, the pair $(\tilde{f}_i, \hat{y}_i)$ becomes much more consistent, preventing noise accumulation.
  4. When applied to source instances, mixing source features with target-distribution samples creates smooth intermediate representations that bridge the source-target gap.
  5. Generative-Discriminative Classifier Consistency (GDC):
  6. Using Bayes' rule over the class-conditional density estimators, the suite of $C$ NFlow models acts collectively as a plug-and-play generative classifier $p^G$.
  7. GeMo-NoRT enforces an $L_2$ consistency loss between the predictions of the discriminative classifier $p^D$ and the generative classifier $p^G$ on target data.
  8. Theoretical justification: Rooted in the Ben-David domain adaptation theorem, driving consistency between two distinct hypothesis functions ($p^D$ trained on source+target vs. $p^G$ trained only on target) directly reduces the $\mathcal{H}\Delta\mathcal{H}$-divergence bound on target risk.
 Target/Source Features ────► Feature Extractor (CNN)
                                   │
              ┌────────────────────┴─────────────────────┐
              ▼                                          ▼
     NFlow Generators {M_c}                    Discriminative Classifier
  (Class-wise Target Densities)                 (Softmax Classification)
              │                                          │
              ├─► Sample Genuine Features (D-CFA) ───────┤
              └─► Generative Prediction p^G  ────────────┴─► Consistency Loss (GDC)

Datasets

The authors evaluate GeMo-NoRT across three widely used benchmarks (no new benchmarks are introduced):

  • Office-Home (SSDA): 15,500 images across 65 categories in 4 domains (Artistic, Clipart, Product, Real-World), evaluated over all 12 transfer directions.
  • PACS (MSDA): 9,991 images across 7 categories spanning 4 domains (Photo, Art Painting, Cartoon, Sketch).
  • Digit-Five (MSDA): Standard digits benchmark containing 5 domains (MNIST, USPS, MNIST-M, SVHN, Synthetic Digits).

Key Insights and Ideas

  • Inverting the label noise problem: Instead of trying to detect and rewrite faulty discrete pseudo-labels, moving the continuous representation closer to the modeled class distribution naturally validates the pseudo-label.
  • Generative vs. Discriminative complementarity: Discriminative classifiers are easily biased by source domain features and overfit to mislabeled target instances. In contrast, class-wise normalizing flows learn unconditional density structures of the target feature space. Regularizing them against each other prevents the discriminative head from collapsing into confirmation bias.
  • Expressiveness matters: Replacing Normalizing Flows with simple multivariate Gaussians degrades performance back to standard instance mixup levels (Table 4), demonstrating that realistic cross-domain feature distributions are far too complex for unimodal Gaussian assumptions.

Key Results

  • PACS (MSDA): Achieves 92.29% average accuracy, outperforming leading multi-source methods such as DIDA-Net (91.83%) and T-SVDNet (91.25%).
  • Digit-Five (MSDA): Reaches 95.3% average accuracy, establishing a new state of the art and showing strong gains on hard shifts like SVHN (92.0% vs. 91.7% next best) and USPS (98.8%).
  • Office-Home (SSDA): Scores 72.1% average accuracy (surpassing SRDC at 71.3% and TSA at 71.2%), showing especially large margins on hard domains like Clipart and Art Painting.
  • Noise Reduction Proof: On the difficult PACS Sketch domain, D-CFA and GDC together slash pseudo-label noise from 41.81% down to 26.90%, elevating target test accuracy from 75.02% to 85.72%.

Limitations and Future Work

  • Diminishing returns under low domain shift: On Office-Home targets like Real-World and Product, baseline pseudo-label accuracy is already high (>74%), causing GeMo-NoRT's noise-robustness gains to be marginal compared to domains with severe shift (Clipart).
  • Computational complexity: The method requires maintaining and training $C$ independent normalizing flows alongside the primary CNN, necessitating a bottleneck projection layer (2048 $\to$ 512) and feature caching memory modules to remain tractable.
  • Warm-up dependency: Normalizing flows require reliable density estimation before they can help; the framework must delay D-CFA and GDC for the first 10 epochs while the feature extractor and flows stabilize.

Summary updated

BibTeX
@inproceedings{deng2023generative,
  author = {Zhongying Deng and Da Li and Junjun He and Yi-Zhe Song and Tao Xiang},
  title = {{Generative Model Based Noise Robust Training for Unsupervised Domain Adaptation}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=yhLVkvwUGtH},
}
Figure