Abstract
Recent progress towards designing models that can generalize to unseen domains (i.e domain generalization) or unseen classes (i.e zero-shot learning) has embarked interest towards building models that can tackle both domain-shift and semantic shift simultaneously (i.e zero-shot domain generalization). For models to generalize to unseen classes in unseen domains, it is crucial to learn feature representation that preserves class-level (domain-invariant) as well as domain-specific information. Motivated from the success of generative zero-shot approaches, we propose a feature generative framework integrated with a COntext COnditional Adaptive (COCOA) Batch-Normalization layer to seamlessly integrate class-level semantic and domain-specific information. The generated visual features better capture the underlying data distribution enabling us to generalize to unseen classes and domains at test-time. We thoroughly evaluate our approach on established large-scale benchmarks – DomainNet, DomainNet-LS (Limited Sources) – as well as a new CUB-Corruptions benchmark, and demonstrate promising performance over baselines and state-of-the-art methods.
Introduction
In the quest for robust AI, two major hurdles stand in the way: semantic shift (recognizing things you’ve never seen before) and domain shift (recognizing things in environments you’ve never encountered). While researchers have made strides in Zero-Shot Learning (ZSL) and Domain Generalization (DG) individually, the real world rarely offers the luxury of dealing with just one at a time.
The Zero-Shot Domain Generalization (ZSLDG) setting is the ultimate stress test: a model must recognize a "wolf" in a "snowy forest" having only seen "dogs" in "sunny parks." Traditional DG methods often try to be domain-agnostic, stripping away environment-specific details to find a "universal" feature. COCOA takes the opposite approach: it argues that to generate realistic features for unseen categories, the model must understand and incorporate domain-specific context.
The COCOA Framework
The authors propose a three-stage pipeline designed to tackle the "double-whammy" of ZSLDG by blending class-level semantic data with domain-specific information.
- Generalizable Feature Extraction: A visual backbone is trained to extract features discriminative for seen classes across all source domains. An auxiliary rotation prediction task is used as a regularizer to ensure the features capture robust structural information.
- The Generative Module: Instead of training a classifier directly on images, COCOA trains a Generator to produce synthetic visual features. The core innovation is the COntext-COnditional Adaptive (COCOA) Batch-Normalization layer. Unlike standard BN, COCOA predicts the scaling ($\gamma$) and shift ($\beta$) parameters based on a "context vector"—a concatenation of high-level semantic attributes (e.g., "has fur") and learnable domain embeddings (e.g., "sketch style").
- Recognition and Inference: To handle unseen domains at test time, a "mix-up" strategy interpolates between known domain embeddings to synthesize features for potential new environments. A simple classifier is then trained on these diverse, synthetic features.
Key Insights and Results
A critical finding of this work is that domain information is a feature, not a bug. While many researchers try to ignore domain-specific noise, COCOA proves that explicitly modeling the domain helps the generator produce more accurate data distributions. Without domain context, synthetic features for different domains tend to collapse into a single point (mode collapse). By adding domain context, the model captures the true variance of the data much better.
COCOA was evaluated on several rigorous benchmarks, including DomainNet (345 categories across 6 domains) and CUB-Corruptions. It consistently outperformed state-of-the-art methods:
- DomainNet: COCOA achieved an average accuracy of 22.6%, a significant jump over the previous best of 20.7%.
- Hard Domains: On the "Quickdraw" domain—notoriously difficult because of its abstract nature—COCOA saw a relative improvement of nearly 32% over the baseline (13.1% vs 9.9%).
- Ablation Success: The study showed that combining both semantic and domain context was strictly better than using either one alone, validating the core hypothesis.
Conclusion
COCOA demonstrates that Batch-Normalization layers can serve as an elegant "controller" for conditioning networks, shifting activation distributions based on combined semantic and domain context. While finding the perfect balance between domain-specific noise and discriminative class features remains an open challenge, COCOA sets a new standard for robustness in the face of simultaneous semantic and domain shifts.
Summary updated