AutoMix: Unveiling the Power of Mixup for Stronger Classifiers

Zicheng Liu, Siyuan Li, Di Wu, Zihan Liu, Zhiyuan Chen +2 more
3/24/2021
cs.CVcs.AI

Official code: Westlake-AI/openmixup (657 stars, Apache-2.0, PyTorch, last commit 2025-10-15).

Abstract

Data mixing augmentation have proved to be effective in improving the generalization ability of deep neural networks. While early methods mix samples by hand-crafted policies (e.g., linear interpolation), recent methods utilize saliency information to match the mixed samples and labels via complex offline optimization. However, there arises a trade-off between precise mixing policies and optimization complexity. To address this challenge, we propose a novel automatic mixup (AutoMix) framework, where the mixup policy is parameterized and serves the ultimate classification goal directly. Specifically, AutoMix reformulates the mixup classification into two sub-tasks (i.e., mixed sample generation and mixup classification) with corresponding sub-networks and solves them in a bi-level optimization framework. For the generation, a learnable lightweight mixup generator, Mix Block, is designed to generate mixed samples by modeling patch-wise relationships under the direct supervision of the corresponding mixed labels. To prevent the degradation and instability of bi-level optimization, we further introduce a momentum pipeline to train AutoMix in an end-to-end manner. Extensive experiments on nine image benchmarks prove the superiority of AutoMix compared with state-of-the-art in various classification scenarios and downstream tasks.

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

CAIRI Supervised, Semi- and Self-Supervised Visual Representation Learning Toolbox and Benchmark

65762Shell, PythonDec 30, 20211 years agoApache-2.0
automixawesome-listawesome-mimawesome-mixupbenchmark+13 more

Similar Papers

Cite this paper

@article{liu2021automix,
  title  = {AutoMix: Unveiling the Power of Mixup for Stronger Classifiers},
  author = {Zicheng Liu and Siyuan Li and Di Wu and Zihan Liu and Zhiyuan Chen and Lirong Wu and Stan Z. Li},
  year   = {2021},
  eprint = {2103.13027},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.13027}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.13027.svg)](https://codeofpaper.com/paper/2103.13027)

Discussion