Domain Adaptive Few-Shot Open-Set Learning

Debabrata Pal, Deeptej More, Sai Bhargav, Dipesh Tamboli, Vaneet Aggarwal, Biplab Banerjee

Introduction

In the pursuit of robust computer vision, researchers have long grappled with three distinct hurdles: learning from minimal data (Few-Shot Learning), adapting to new environments (Domain Adaptation), and identifying unknown objects (Open-Set Recognition). While significant progress has been made in each area individually, real-world applications—such as autonomous driving or medical diagnostics—frequently encounter all three challenges simultaneously. This paper introduces DAFOS-NET, a framework designed for Domain Adaptive Few-Shot Open-Set Learning (DA-FSOS), a task that requires a model to recognize new classes from a few examples while navigating a distribution shift and rejecting unseen outliers.

The DA-FSOS Challenge

Traditional machine learning assumes that training and testing data share the same distribution and label space. However, in the DA-FSOS setting, these assumptions are violated in three ways:

  1. Few-Shot Learning (FSL): The model must learn novel "target" classes from only one or five labeled examples.
  2. Domain Adaptation (DA): There is a significant gap between the "source" domain (e.g., high-quality studio photos) and the "target" domain (e.g., sketches or low-resolution images).
  3. Open-Set Recognition (OSR): The model must distinguish between known classes and "unknown" outliers that were never seen during training, rather than misclassifying them into existing categories.

Existing models often fail in this combined scenario because they lack a principled method for defining the boundary between known and unknown classes when the underlying data distribution is shifting.

Methodology: DAFOS-NET

To address these issues, the authors propose DAFOS-NET, which utilizes an episodic meta-learning strategy to simulate the challenges of test-time inference during the training phase. The architecture is built upon three core pillars:

1. Dual-cGAN Feature Augmentation

To compensate for the scarcity of target-domain data, DAFOS-NET employs two Conditional Generative Adversarial Networks (cGANs). These networks do not generate images, but rather "hallucinate" features in the latent space:

  • Low-Noise Generation: One GAN generates synthetic features for known classes to bolster the classifier's robustness.
  • High-Noise Generation: The second GAN generates "pseudo-outlier" features. By training the model to recognize these high-variance samples as "unknown," the system learns to define the boundaries of the known feature space more effectively.

2. Global Cross-Domain Prototype Alignment (GCDPA)

Rather than performing computationally expensive pixel-level or point-to-point alignment between domains, DAFOS-NET aligns the "prototypes" (the mean feature vectors) of each class. By using domain-specific batch normalization, the model brings the source and target distributions into a shared space, ensuring that knowledge learned in the source domain remains relevant in the target domain.

3. Specialized Loss Functions

The framework introduces two novel loss functions to stabilize training and improve separation:

  • Prototype Diversification Loss ($L_{PD}$): This ensures a clear margin between the prototypes of known classes and the generated pseudo-unknown samples.
  • Anti-Open-Close Mode Collapse Loss ($L_{AOCMC}$): This prevents the GANs from collapsing into a state where they generate identical features for both known and unknown classes, maintaining the integrity of the "open space."

Experimental Results

The authors evaluated DAFOS-NET across three rigorous benchmarks: Office-Home (shifting between real-world photos and clipart), mini-ImageNet to CUB (shifting from general objects to fine-grained bird species), and the large-scale DomainNet.

DAFOS-NET demonstrated substantial improvements over state-of-the-art baselines:

  • Office-Home: In 1-shot tasks, the model achieved 51.79% accuracy and 50.54% AUROC, representing a ~15% improvement in accuracy over previous methods.
  • DomainNet: Outlier detection (AUROC) improved by nearly 20% in specific configurations, highlighting the effectiveness of the dual-cGAN approach.
  • Efficiency: Despite its architectural complexity, the model remains efficient during inference, requiring only 0.08 GFLOPS of computation.

Insights and Future Work

A key insight from this research is that noise variance can be a powerful tool for boundary definition; by training a model to reject high-variance hallucinations, it naturally becomes more adept at rejecting real-world outliers. Furthermore, the success of prototype alignment suggests that complex pixel-level domain adaptation may be unnecessary for few-shot tasks.

While DAFOS-NET sets a new benchmark for DA-FSOS, challenges remain regarding hyperparameter sensitivity and the inherent instability of training dual GANs within a meta-learning loop. Future research may explore the application of this framework to edge AI and remote sensing, where data scarcity and environmental shifts are particularly prevalent.

Summary updated

BibTeX
@inproceedings{pal2023domain,
  author = {Debabrata Pal and Deeptej More and Sai Bhargav and Dipesh Tamboli and Vaneet Aggarwal and Biplab Banerjee},
  title = {{Domain Adaptive Few-Shot Open-Set Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure