Unsupervised Domain Generalization by Learning a Bridge Across Domains

Sivan Harary, Eli Schwartz, Assaf Arbelle, Peter W. J. Staar, Shady Abu-Hussein, Elad Amrani, Roei Herzig, Amit Alfassy, Raja Giryes, Hilde Kuehne, Dina Katabi, Kate Saenko, Rogério Feris, Leonid Karlinsky

Abstract

Unsupervised Domain Generalization (UDG) is a challenging task where a model must learn robust representations from multiple unlabeled domains to generalize to unseen domains and classes. We present BrAD (Bridge Across Domains), a framework that maps diverse domains into a shared, learned "bridge" domain of edge-like representations. By focusing on semantic content over stylistic noise, BrAD achieves state-of-the-art performance on major cross-domain benchmarks.

Introduction: The Challenge of Domain Shift

In computer vision, "domain shift" remains a significant hurdle. Models trained on high-resolution photos often fail when encountering sketches or clipart. While humans effortlessly recognize objects across styles, AI typically requires extensive labeled data to bridge these gaps. Existing solutions often rely on labeled source domains (Domain Generalization) or target domain data (Unsupervised Domain Adaptation). BrAD addresses the more practical and difficult Unsupervised Domain Generalization (UDG) setting, where no labels are available during the primary training phase across multiple domains.

The BrAD Framework

The core innovation of this work is the Bridge Across Domains (BrAD). While color and texture vary wildly across domains like "Real," "Painting," or "Sketch," structural "edges" serve as a near-universal representation of semantic content.

Conceptual overview of the BrAD framework, mapping multiple domains to a shared edge-like bridge domain.

Architecture and Training

The BrAD architecture consists of several key components:

  1. The Bridge Domain ($\Omega$): An auxiliary space of edge-like images that serves as a common language between domains.
  2. Learned Mappings ($\Psi_n$): Small networks that transform images from specific domains into the bridge domain. Unlike fixed edge detectors, these are learned jointly with the representation.
  3. Contrastive Learning: Utilizing the MoCoV2 framework, the model learns to align representations of original images with their bridge-projected counterparts.
  4. Domain-Specific Queues: To prevent the model from collapsing into style-based clustering, separate negative samples are maintained for each domain.
  5. Adversarial Training: A domain classifier attempts to identify the source domain of bridge-projected images, while the network is trained to produce domain-invariant features that "confuse" the discriminator.

Experimental Evaluation

The authors evaluated BrAD on several standard benchmarks, including DomainNet (345 classes across 6 domains), PACS, VisDA, and OfficeHome.

Key Results

BrAD demonstrates substantial improvements over previous state-of-the-art (SOTA) methods:

  • UDG Performance: On DomainNet, BrAD outperformed the previous SOTA (DIUL) by up to 14% in accuracy with minimal labeling for evaluation.
  • Few-Shot Adaptation: In Few-Shot UDA settings, it achieved gains of up to 13.3%.
  • Zero-Shot Generalization: The model successfully transferred to entirely unseen domains and categories, proving the robustness of the learned "bridge" features.

Insights: Why the Bridge Works

A critical finding is that standard self-supervised learning often falls into a "domain trap," where models find it easier to distinguish styles than objects. BrAD forces the model to look past style. Furthermore, learning the bridge mapping is superior to using heuristic edge detectors like Canny.

Comparison of edge extraction methods. BrAD preserves semantic details (e.g., giraffe spots) that heuristic methods like Canny or HED might discard.

As shown in the comparison above, the learned bridge retains informative internal details—such as the spots on a giraffe—that are often lost in traditional edge detection but are vital for semantic recognition.

Conclusion and Future Work

BrAD offers a powerful approach to unsupervised representation learning across domains. While the current "edge-bias" is highly effective, future work could explore non-edge bridge domains or integrate more modern backbones like Vision Transformers. Additionally, incorporating minimal semantic "priming" could further refine the alignment of feature clusters with human-defined object classes.

Summary updated

BibTeX
@inproceedings{harary2021unsupervised,
  author = {Sivan Harary and Eli Schwartz and Assaf Arbelle and Peter W. J. Staar and Shady Abu-Hussein and Elad Amrani and Roei Herzig and Amit Alfassy and Raja Giryes and Hilde Kuehne and Dina Katabi and Kate Saenko and Rogério Feris and Leonid Karlinsky},
  title = {{Unsupervised Domain Generalization by Learning a Bridge Across Domains}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr52688.2022.00521},
}
Figure