Diversity-enhancing Generative Network for Few-shot Hypothesis Adaptation

Ruijiang Dong, Feng Liu, Haoang Chi, Tongliang Liu, Mingming Gong, Gang Niu, Masashi Sugiyama, Bo Han · DOI

Introduction

Few-shot Hypothesis Adaptation (FHA) represents a critical frontier in machine learning, addressing the need to adapt a pre-trained "source" model to a specific "target" domain using only a handful of labeled examples. This challenge is compounded by the inability to access the original source training data, often due to privacy regulations or storage constraints. While recent methods have attempted to bridge this gap by generating intermediate unlabeled data, they frequently suffer from a "copy issue," where the generator produces redundant, near-identical samples that fail to provide the diversity necessary for robust adaptation.

This paper introduces DEG-Net (Diversity-enhancing Generative Network), a novel framework designed to overcome these limitations by prioritizing sample diversity through kernel-based regularization.

The Challenge: Redundancy and the "Copy Issue"

In FHA scenarios, generators often collapse into a state where they merely replicate the few available target samples. This lack of diversity means the model essentially sees the same information repeatedly, leading to overfitting and poor generalization. The authors provide a theoretical foundation for this problem in Theorem 1, which proves that sample complexity—the amount of data required to reach a target accuracy—is directly tied to the dependency between samples. Highly dependent (low diversity) data requires exponentially more samples to achieve effective learning.

DEG-Net: A Diversity-First Approach

DEG-Net addresses the copy issue through two primary architectural innovations:

1. Diversity-enhancing Generation

Unlike previous state-of-the-art methods that utilized separate generators for each class, DEG-Net employs a single, weight-shared conditional generator. This architecture allows the model to learn generalized features across all classes, which not only improves feature quality but also makes the training process approximately 30% faster per epoch than predecessors like TOHAN.

To enforce diversity, the authors incorporate the Hilbert-Schmidt Independence Criterion (HSIC) into the loss function. HSIC serves as a computationally efficient proxy for measuring independence between samples. By minimizing HSIC, the generator is forced to produce samples with independent semantic features, ensuring a varied and informative dataset. This is balanced by an $\ell_1$ similarity loss to ensure the generated data remains faithful to the target domain's visual characteristics.

Visual comparison showing the target data and the diverse unlabeled data generated by DEG-Net.

2. Robust Adaptation Module

The adaptation process utilizes adversarial learning centered around a "group discriminator." This discriminator is trained to distinguish between four distinct types of data pairs (e.g., generated data of the same class vs. generated data paired with real target data). By successfully "confusing" this discriminator, the classifier learns robust features that generalize across both the generated and real target distributions.

Experimental Results and Performance

The researchers evaluated DEG-Net across several benchmarks, including the Digits (MNIST, USPS, SVHN), Objects (CIFAR-10, STL-10), and the large-scale VisDA-C dataset.

Key Findings:

  • Superior Accuracy: On the challenging SVHN $\to$ MNIST task with only 3 labeled samples per class, DEG-Net achieved 85.7% accuracy, outperforming TOHAN (84.2%) and SHOT (74.1%).
  • Quantifiable Diversity: The authors measured diversity using the square root of HSIC. DEG-Net produced a diversity measure of 0.0019, significantly closer to the real target data's diversity (0.0013) than TOHAN's (0.0027).
  • Scalability: DEG-Net maintained a performance lead of 1-4% on the large-scale VisDA-C benchmark, proving its efficacy beyond simple digit datasets.
Graph illustrating the accuracy of DEG-Net compared to source and target data baselines as the number of samples increases.

Conclusion

DEG-Net demonstrates that the quality of diversity in generated data is just as important as the quantity. By leveraging HSIC regularization and a weight-shared architecture, the framework effectively mitigates the "copy issue" in few-shot adaptation. While the method faces challenges in "ultra-low" shot scenarios (where $m \le 2$ samples make diversity estimation noisy), it sets a new benchmark for efficiency and accuracy in hypothesis adaptation.

Summary updated

BibTeX
@inproceedings{dong2023diversity,
  author = {Ruijiang Dong and Feng Liu and Haoang Chi and Tongliang Liu and Mingming Gong and Gang Niu and Masashi Sugiyama and Bo Han},
  title = {{Diversity-enhancing Generative Network for Few-shot Hypothesis Adaptation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=8bulKlWxAg},
}
Figure