Partial Transfer Learning With Selective Adversarial Networks

Zhangjie Cao, Mingsheng Long, Jianmin Wang, Michael I. Jordan

Introduction

In modern computer vision, the availability of massive labeled datasets like ImageNet has revolutionized model training. However, a significant gap often exists between these general-purpose source domains and specific target applications. Traditional domain adaptation assumes that the source and target domains share an identical label space ($C_s = C_t$). This paper introduces and addresses the more realistic scenario of Partial Transfer Learning, where the target label space is a subset of the source label space ($C_t \subset C_s$).

The Challenge of Partial Transfer

When applying standard adversarial domain adaptation to partial transfer tasks, a critical issue arises: negative transfer. Standard methods attempt to align the entire source distribution with the target distribution. If the source domain contains categories (e.g., "sofa") that do not exist in the target domain (e.g., "soccer-ball" and "binoculars"), the model erroneously tries to force these irrelevant source features to match the target data. This misalignment degrades performance, often making the "adapted" model less accurate than a simple baseline trained only on source data.

Conceptual illustration of partial transfer learning where the target domain is a subset of the source domain.

Selective Adversarial Networks (SAN)

To mitigate negative transfer, the authors propose the Selective Adversarial Network (SAN). The core innovation is a mechanism that automatically identifies and down-weights source classes that are unlikely to be present in the target domain.

Architecture and Mechanism

The SAN architecture moves away from a single global domain discriminator. Instead, it utilizes a multi-discriminator framework:

  1. Class-wise Discriminators: The model employs $|C_s|$ separate discriminators, each responsible for aligning features for a specific source category.
  2. Instance-level Weighting: Since target labels are unknown, the model uses its own label predictor's output ($\hat{y}$) to weight the contribution of target samples to each class-wise discriminator.
  3. Class-level Weighting: By averaging predictions across the entire target dataset, the model identifies "outlier" source classes. If a class like "sofa" consistently receives near-zero probability across all target images, its corresponding discriminator is effectively silenced.
  4. Gradient Reversal Layer (GRL): As shown in the architecture, a GRL is used to facilitate adversarial training, encouraging the feature extractor to produce domain-invariant features for the relevant classes.
Architecture of the Selective Adversarial Network (SAN) showing class-wise discriminators and the Gradient Reversal Layer (GRL).

Experimental Evaluation

The authors validated SAN on several benchmarks adapted for partial transfer, including Office-31, Caltech-Office, and a large-scale ImageNet-Caltech task.

Key Results

  • Superior Accuracy: SAN consistently outperformed state-of-the-art methods. On Office-31, it achieved an average accuracy of 87.27%, compared to 63.11% for standard RevGrad.
  • Scalability: In the ImageNet $\to$ Caltech-256 task (84 shared classes), SAN maintained a significant lead, reaching 68.45% accuracy while basic AlexNet achieved only 52.37%.
  • Robustness to Outliers: Ablation studies confirmed that both the selective weighting and entropy minimization components are vital. Without selective alignment, performance drops as the model succumbs to negative transfer from irrelevant source categories.

Conclusion

Partial Transfer Learning represents a vital step toward making domain adaptation practical for real-world "Big Data" scenarios. By employing a selective, class-wise adversarial approach, SAN effectively filters out irrelevant source knowledge, preventing negative transfer and enabling more precise feature alignment. While the assumption of a strict subset ($C_t \subset C_s$) remains a limitation, SAN provides a robust foundation for specialized transfer learning tasks.

Summary updated

BibTeX
@inproceedings{cao2018partial,
  author = {Zhangjie Cao and Mingsheng Long and Jianmin Wang and Michael I. Jordan},
  title = {{Partial Transfer Learning With Selective Adversarial Networks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00288},
}
Figure