TokenMixup: Efficient Attention-guided Token-level Data Augmentation for Transformers

Hyeong Kyu Choi, Joonmyung Choi, Hyunwoo J. Kim
10/14/2022
cs.CV
transformer-attention

Official code: mlvlab/TokenMixup (47 stars, Python, MIT, last commit 2022-11-22).

Abstract

Mixup is a commonly adopted data augmentation technique for image classification. Recent advances in mixup methods primarily focus on mixing based on saliency.

Show full abstract

However, many saliency detectors require intense computation and are especially burdensome for parameter-heavy transformer models. To this end, we propose TokenMixup, an efficient attention-guided token-level data augmentation method that aims to maximize the saliency of a mixed set of tokens. TokenMixup provides x15 faster saliency-aware data augmentation compared to gradient-based methods. Moreover, we introduce a variant of TokenMixup which mixes tokens within a single instance, thereby enabling multi-scale feature augmentation. Experiments show that our methods significantly improve the baseline models' performance on CIFAR and ImageNet-1K, while being more efficient than previous methods. We also reach state-of-the-art performance on CIFAR-100 among from-scratch transformer models. Code is available at https://github.com/mlvlab/TokenMixup.

View on arXivView PDF

Code Implementations(1)

mlvlab/TokenMixupOfficial100%
MIT

Official pytorch implementation of NeurIPS 2022 paper, TokenMixup

472Python, CudaSep 26, 20224 years agoMIT
mixupneurips-2022vision-transformer

Similar Papers

Cite this paper

@article{choi2022tokenmixup,
  title  = {TokenMixup: Efficient Attention-guided Token-level Data Augmentation for Transformers},
  author = {Hyeong Kyu Choi and Joonmyung Choi and Hyunwoo J. Kim},
  year   = {2022},
  eprint = {2210.07562},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07562}
}

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/2210.07562.svg)](https://codeofpaper.com/paper/2210.07562)

Discussion