Open Set Domain Adaptation: Theoretical Bound and Algorithm

Zhen Fang, Jie Lu, Feng Liu, Junyu Xuan, Guangquan Zhang

TL;DR

Most domain adaptation techniques fail when the target domain contains "unknown" classes not present in the training data. This paper provides the first theoretical learning bound for this "Open Set" challenge and introduces DAOD, an algorithm that uses this theory to effectively separate known from unknown samples while aligning distributions.

What Problem Does This Paper Address?

In traditional Unsupervised Domain Adaptation (UDA), we assume the source domain (labeled) and the target domain (unlabeled) share the exact same set of classes. This is called "Closed Set" adaptation.

However, real-world scenarios are rarely that tidy. Imagine training a model on synthetic images of cars and bikes (source) and deploying it in a city where it also encounters trucks and scooters (target). If the model assumes a closed set, it will suffer from negative transfer: it will desperately try to force-fit those "unknown" trucks into the "car" or "bike" categories, degrading the accuracy of the entire system.

The authors tackle Unsupervised Open Set Domain Adaptation (UOSDA), where the target domain contains additional classes that do not exist in the source. The core challenge is twofold:

  1. How do we identify which target samples belong to "unknown" classes without any labels?
  2. How do we align the distributions of the "known" classes across domains without let the "unknown" samples interfere?

Methods

The authors introduce a new algorithm called Distribution Alignment with Open Difference (DAOD). Unlike previous methods that relied on heuristics, DAOD is grounded in a newly derived theoretical learning bound.

Key Components:

  • Open Set Difference ($\Delta_o$): This is the paper's primary theoretical contribution. It is a mathematical term that measures the risk of the classifier on unknown classes. By minimizing this term, the model learns to push unknown target samples away from the known source classes.
  • Joint Distribution Alignment: The algorithm matches both the marginal distributions (features) and conditional distributions (labels) of the known classes between the source and target.
  • Manifold Regularization: To ensure the model respects the underlying geometry of the data, it uses a graph-based approach to keep similar samples close together in the feature space.
  • Iterative Pseudo-Labeling: Since the target is unlabeled, the model uses an Open Set Nearest Neighbor (OSNN) strategy to guess labels and identify unknowns, refining these guesses over multiple iterations.

Datasets

The researchers evaluated DAOD across 38 different tasks using three major benchmarks:

  • Office-31: A standard set containing images from Amazon, DSLR cameras, and Webcams.
  • Office-Home: A more complex dataset with four domains: Artistic, Clipart, Product, and Real-World images across 65 classes.
  • PIE (Pose, Illumination, and Expression): A face recognition dataset used to test the model's performance on human features across varying conditions.

In each case, they followed a protocol where a subset of classes was designated as "known" (shared) and the rest as "unknown" (target-only).

Key Insights and Ideas

  • The First Theoretical Bound: Before this paper, there was no formal proof for how well an open-set adaptation model could perform. The authors proved that the target risk is bounded by the source risk, the distribution discrepancy, and the "open set difference."
  • Balancing Act: The open set difference ($\Delta_o$) consists of a positive term (encouraging target samples to be labeled as unknown) and a negative term (preventing source samples from being labeled as unknown). This balance is what prevents the model from simply collapsing and calling everything unknown.
  • Separation is Key: The "aha moment" here is that you cannot align distributions effectively until you have a mechanism to "filter out" the unknown samples. DAOD does this by explicitly regularizing the boundary between known and unknown space.

Key Results

  • Superior Accuracy: DAOD achieved an average classification accuracy of 69.3% across all 38 tasks, outperforming the previous state-of-the-art method (OSBP) by about 3.4%.
  • Robustness: The algorithm showed consistent performance across a wide range of hyperparameters, suggesting it doesn't require "magic" tuning to work on new datasets.
  • Efficiency: Despite the added theoretical complexity, DAOD’s running time is comparable to existing non-deep learning baselines, making it practical for real-world engineering applications.

Limitations and Future Work

The authors acknowledge that while DAOD is powerful, it still relies on pseudo-labeling (OSNN) to kickstart the process. If the initial pseudo-labels are extremely noisy, the iterative refinement might struggle.

Future Work: The authors aim to expand this into Universal Domain Adaptation, a "one-size-fits-all" framework that can handle closed-set, open-set, and partial-set (where the source has more classes than the target) scenarios without needing to know the category relationship beforehand.

Summary updated

BibTeX
@article{fang2021open,
  author = {Zhen Fang and Jie Lu and Feng Liu and Junyu Xuan and Guangquan Zhang},
  title = {{Open Set Domain Adaptation: Theoretical Bound and Algorithm}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2021},
  url = {https://openreview.net/forum?id=wxZWdPjMG6u},
}
Figure