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

Xingjian Li, Haoyi Xiong, Haozhe An, Chengzhong Xu, Dejing Dou

TL;DR

XMixup is a novel transfer learning algorithm that improves fine-tuning by blending target samples with semantically similar "auxiliary" samples from a source dataset. By using a cross-domain mixup strategy, it achieves superior accuracy and efficiency while effectively mitigating common issues like catastrophic forgetting and negative transfer.

What Problem Does This Paper Address?

Transfer learning is the standard approach for training deep neural networks on small datasets, but it is fraught with challenges. Simple fine-tuning often leads to catastrophic forgetting, where the model loses the general features it learned from a large source dataset (like ImageNet). Conversely, negative transfer can occur if the model preserves source features that are inappropriate or detrimental to the target task.

While multitask learning—training on both source and target datasets simultaneously—can help balance these issues, it is often computationally prohibitive. Standard multitask approaches require running backpropagation over two full datasets, which significantly increases training time and gradient complexity.

Methods

XMixup operates in two main stages to bridge the gap between simple fine-tuning and expensive multitask learning:

  1. Auxiliary Sample Selection: The algorithm pairs every class in the target dataset with a unique, semantically similar class in the source dataset. It does this by passing samples through a pre-trained model to extract features, calculating the "centroid" for each class, and using cosine similarity to find the best matches.
  2. Cross-domain Mixup and Fine-tuning: During training, for every target image, XMixup randomly selects an auxiliary image from its paired source class. It then creates a synthetic training sample by linearly interpolating both the images and their labels (the "mixup" strategy).
Figure 1: Overall Design of XMixup Algorithm

This approach essentially performs a low-cost version of multitask learning. It forces the shared backbone to learn features useful for both domains simultaneously without the need for expensive double-backpropagation.

Datasets

The authors evaluated XMixup across six diverse fine-grained classification datasets:

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

All experiments used a ResNet-50 architecture pre-trained on ImageNet as the source domain.

Key Insights and Ideas

  • Efficient Regularization: XMixup acts as a powerful regularizer. By mixing domains, it prevents the model from overfitting to the small target set while ensuring it retains the robust features of the source domain.
  • Spectral Benefits: The authors found that XMixup naturally suppresses the "tail" singular values of the feature matrix. This is significant because large tail singular values are a known indicator of negative transfer.
  • Robustness to Selection: While semantically pairing classes provides the best results, the method is surprisingly robust. Even using random auxiliary samples provides benefits over standard fine-tuning, suggesting that the "mixing" itself is a strong regularizer.
  • Computational Savings: Unlike other multitask methods that can double training time, XMixup’s overhead is negligible because the data mixing happens during the standard data loading pipeline.

Key Results

  • Accuracy Boost: XMixup improved top-1 accuracy by 1.9% on average across all datasets compared to standard fine-tuning.
  • Outperforming Baselines: It consistently outperformed other advanced transfer learning techniques like $L^2$-SP and Batch Singular Shrinkage (BSS). For example, on the Stanford Dogs dataset, it achieved 91.24% accuracy, a significant jump over the 86.31% of naive fine-tuning.
  • Data Efficiency: The method shows strong performance even with relatively small auxiliary subsets (around 30,000 to 100,000 samples), making it practical for real-world use.
Figure 3: Accuracy vs. auxiliary dataset size. XMixup (blue) consistently outperforms standard L2 regularization (red dashed) across different scales.

Limitations and Future Work

The authors note that for tasks very closely related to a subset of the source data (like Stanford Dogs vs. ImageNet), using too many dissimilar auxiliary samples can eventually hurt performance. Finding the "sweet spot" for the number of auxiliary samples is important for these specific cases.

Future work could explore more complex pairing strategies or investigate applying the XMixup framework to other domains, such as unsupervised domain adaptation or natural language processing.

Summary updated

BibTeX
@misc{li2020xmixup,
  author = {Xingjian Li and Haoyi Xiong and Haozhe An and Chengzhong 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