XMixup: Efficient Transfer Learning with Auxiliary Samples by Cross-Domain Mixup

Xingjian Li, Haoyi Xiong, Haozhe An, Cheng-zhong Xu, Dejing Dou

TL;DR

This paper introduces XMixup, a novel transfer learning method that efficiently transfers knowledge from a large source dataset to a smaller target dataset. By strategically pairing classes and using a cross-domain Mixup strategy, XMixup achieves higher accuracy with significantly less training time compared to existing state-of-the-art methods, while also mitigating issues like catastrophic forgetting.

What Problem Does This Paper Address?

Deep learning models often require massive datasets for effective training. When faced with a target task that has limited data, performance can suffer due to overfitting and poor generalization. Transfer learning offers a solution by leveraging knowledge from a large, pre-trained source dataset. However, existing transfer learning methods often fall into two categories: regularized learning (which can lead to catastrophic forgetting or negative transfer) and multitask learning (which can be computationally expensive due to backpropagation over both datasets). This paper aims to bridge this gap by proposing an efficient multitask learning approach that transfers knowledge effectively without the high computational cost.

Methods

XMixup tackles the transfer learning problem through a two-step process:

  1. Auxiliary Sample Selection: The core idea here is to intelligently select relevant samples from the source dataset to aid the target task. XMixup pairs each class in the target dataset with a corresponding class in the source dataset. This pairing is achieved by first extracting features from both datasets using a pre-trained model and then calculating the cosine similarity between the class centroids in the feature space. A greedy search is used to find an optimal one-to-one mapping between target and source classes.
  2. Cross-Domain Mixup and Fine-tuning: Once the auxiliary samples are identified, XMixup employs a modified Mixup strategy. In each training iteration, a mini-batch of target samples is taken. For each target sample, an auxiliary sample from its paired source class is retrieved. These two samples (target and auxiliary) are then linearly combined using a mixing parameter $\lambda$ drawn from a Beta distribution. Crucially, the labels are also mixed, allowing the model to learn from both domains simultaneously. This mixed data is then used to fine-tune the pre-trained model. This approach avoids the need for separate backpropagation steps over the entire source dataset, making it computationally efficient.

Datasets

The paper evaluates XMixup on six real-world transfer learning datasets:

  • Stanford Dogs: 120 breeds of dogs.
  • CUB-200-2011: 200 bird species.
  • Food-101: 101 food categories.
  • Flower-102: 102 flower categories.
  • Stanford Cars: 196 classes of cars.
  • FGVC-Aircraft: 102 aircraft models.

The source dataset used for pre-training the initial models is ImageNet. The paper does not introduce new benchmarks but uses established datasets to demonstrate the effectiveness of XMixup.

Key Insights and Ideas

  • Intelligent Pairing is Key: Simply using random auxiliary samples or the entire source dataset isn't as effective as carefully pairing target classes with similar source classes. This suggests that domain similarity, even at the class level, is crucial for effective knowledge transfer.
  • Mixup as a Bridge: The paper cleverly adapts the Mixup data augmentation technique, typically used for in-domain regularization, to bridge the gap between source and target domains. This cross-domain Mixup allows for simultaneous learning from both, mitigating catastrophic forgetting.
  • Efficiency Through Simplicity: By avoiding complex multi-stage training or full backpropagation on the source dataset, XMixup achieves significant speedups. The computational overhead of mixing samples is negligible, making it highly efficient.
  • Robustness to Hyperparameters: XMixup demonstrates robustness to the choice of the mixing parameter $\alpha$ in the Beta distribution, suggesting it's not overly sensitive to hyperparameter tuning within a reasonable range.

Key Results

  • Accuracy Improvement: XMixup achieves an average top-1 accuracy improvement of 1.9% over state-of-the-art transfer learning methods across six datasets.
  • Efficiency: XMixup costs significantly less training time compared to other multitask learning approaches, often approaching the efficiency of naive fine-tuning.
  • Mitigation of Catastrophic Forgetting and Negative Transfer: Empirical analysis suggests XMixup effectively alleviates these common transfer learning issues by continuously learning from both domains.
  • Robustness: The method shows good performance even when using subsets of the source dataset or when auxiliary sample selection is not perfectly optimal.

Limitations and Future Work

  • Domain Similarity Dependence: While XMixup is robust, the paper notes that for datasets very similar to the source (like Stanford Dogs, a subset of ImageNet), a lower $\alpha$ value is preferred. For dissimilar datasets, a wider range of $\alpha$ is generally safe. This suggests that understanding the domain similarity can help in selecting optimal hyperparameters.
  • Auxiliary Dataset Size: While XMixup performs well with a reasonable number of auxiliary samples (around 30,000), using too many dissimilar auxiliary examples can hurt performance on certain tasks.
  • Future Directions: The authors highlight that knowledge transfer through multitask learning with selected auxiliary samples is a promising direction. XMixup provides a solid, easy-to-use baseline for this approach. Further exploration into more sophisticated auxiliary sample selection and mixing strategies could yield even better results.

Summary updated

BibTeX
@misc{li2020xmixup,
  author = {Xingjian Li and Haoyi Xiong and Haozhe An and Cheng-zhong Xu and Dejing Dou},
  title = {{XMixup: Efficient Transfer Learning with Auxiliary Samples by Cross-Domain Mixup}},
  year = {2020},
  eprint = {2007.10252},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.10252},
}
Figure