Generalized Universal Domain Adaptation with Generative Flow Networks

Didi Zhu, Yinchuan Li, Yunfeng Shao, Jianye Hao, Fei Wu, Kun Kuang, Jun Xiao, Chao Wu

Introduction

In traditional Unsupervised Domain Adaptation (UDA), models trained on a labeled "source" domain are adapted to an unlabeled "target" domain. However, real-world data often presents complex challenges that previous research has addressed as isolated sub-problems:

  • Partial DA (PDA): Source classes are a superset of target classes.
  • Open Set DA (OSDA): Target classes include "unknown" categories not present in the source.
  • Universal DA (UniDA): Combines PDA and OSDA but typically treats all unknown target classes as a single category.
  • Label Shift (LS): Class proportions differ between domains.

This paper introduces Generalized Universal Domain Adaptation (GUDA), a framework that unifies these challenges. GUDA requires models to align distributions, perform fine-grained recognition of unknown categories (e.g., distinguishing between different unknown classes), and handle label distribution shifts simultaneously.

Comparison of Domain Adaptation paradigms: GLS, UniDA, LS, OSDA, PDA, and the proposed GUDA framework.

Methodology

The authors propose a two-part framework consisting of GFlowDA for exploration and GUAN for adaptation.

GFlowDA: Active Learning via GFlowNets

GFlowDA utilizes a Generative Flow Network (GFlowNet) to perform active learning. Unlike standard Reinforcement Learning, GFlowNets sample diverse trajectories with probabilities proportional to a reward function.

  • States: The state tracks labeled target samples, their uncertainty, and similarity to existing "prototypes."
  • Reward: The reward function balances diversity (via Maximum Mean Discrepancy) and informativeness (model accuracy), ensuring selected samples represent the true hidden distribution of the target domain.

GUAN: Generalized Universal Adversarial Network

GUAN is the classification model that uses the small set of samples labeled by GFlowDA to estimate the target label distribution. It employs a weighted adversarial loss to align source and target features, specifically accounting for the estimated label shift.

Overview of the GFlowDA training process (top) and the GUAN training process (bottom).

Experiments and Results

The method was evaluated on standard benchmarks including Office-31, Office-Home, PACS, and VisDA, modified to include simultaneous label shifts and category mismatches.

Key Results

  • Superior Accuracy: On Office-31, GFlowDA achieved an average accuracy of 74.86%, outperforming the best active learning baseline (RLADA, 71.96%).
  • Effective Distribution Matching: Using Jensen-Shannon Divergence (JSD) to measure the match between selected samples and the true target distribution, GFlowDA achieved significantly lower JSD (9.68 on Office-31) compared to competitors.
  • Budget Efficiency: GFlowDA remains effective even with a minimal labeling budget (1-5% of target data).
  • Transferability: GFlowNet policies trained on one task can often be transferred to new tasks without retraining, indicating the learning of a general sampling strategy.

Conclusion

GUDA represents a significant step toward more realistic domain adaptation by moving beyond the "unknown" bucket and addressing label shifts. While GFlowDA requires a human-in-the-loop for labeling, its ability to discover fine-grained categories and match distributions makes it a powerful tool for complex real-world scenarios. Future work includes scaling to massive label spaces and applying the framework to non-visual domains.

Summary updated

BibTeX
@inproceedings{zhu2023generalized,
  author = {Didi Zhu and Yinchuan Li and Yunfeng Shao and Jianye Hao and Fei Wu and Kun Kuang and Jun Xiao and Chao Wu},
  title = {{Generalized Universal Domain Adaptation with Generative Flow Networks}},
  booktitle = {ACM Multimedia},
  year = {2023},
  url = {https://openreview.net/forum?id=QhJYvLL2C61},
}
Figure