paper-with-me

Papers

TokenMix: Rethinking Image Mixing for Data Augmentation in Vision Transformers

2022-07-18 · Jihao Liu, Boxiao Liu, Hang Zhou, Hongsheng Li, Yu Liu

CutMix is a popular augmentation technique commonly used for training modern convolutional and transformer vision networks. It was originally designed to encourage Convolution Neural Networks (CNNs) to focus more on an image's global context instead of local information, which greatly improves the performance of CNNs. However, we found it to have limited benefits for transformer-based architectures that naturally have a global receptive field. In this paper, we propose a novel data augmentation technique TokenMix to improve the performance of vision transformers. TokenMix mixes two images at token level via partitioning the mixing region into multiple separated parts. Besides, we show that the mixed learning target in CutMix, a linear combination of a pair of the ground truth labels, might be inaccurate and sometimes counter-intuitive. To obtain a more suitable target, we propose to assign the target score according to the content-based neural activation maps of the two images from a pre-trained teacher model, which does not need to have high performance. With plenty of experiments on various vision transformer architectures, we show that our proposed TokenMix helps vision transformers focus on the foreground area to infer the classes and enhances their robustness to occlusion, with consistent performance gains. Notably, we improve DeiT-T/S/B with +1% ImageNet top-1 accuracy. Besides, TokenMix enjoys longer training, which achieves 81.2% top-1 accuracy on ImageNet with DeiT-S trained for 400 epochs. Code is available at https://github.com/Sense-X/TokenMix.

📄 PDF Abstract BibTeX arXiv:2207.08409

Code (1)

sense-x/tokenmix 공식 구현 pytorch

Tasks

Data Augmentation

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Convolution A convolution is a type of matrix operation, consisting of a kernel, a small matrix of weights, that slides over input data performing element-wise multiplication with the…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

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

2022-10-14 · Hyeong Kyu Choi, Joonmyung Choi, Hyunwoo J. Kim

Mixup is a commonly adopted data augmentation technique for image classification. Recent advances in mixup methods primarily focus on mixing based on saliency. However, many saliency detectors require intense computation…

Data Augmentationimage-classificationImage Classification

Exploring Token-Level Augmentation in Vision Transformer for Semi-Supervised Semantic Segmentation

2025-03-04 · Dengke Zhang, Quan Tang, Fagui Liu, C. L. Philip Chen 외

Semi-supervised semantic segmentation has witnessed remarkable advancements in recent years. However, existing algorithms are based on convolutional neural networks and directly applying them to Vision Transformers poses…

Data AugmentationDiversityImage AugmentationSemantic Segmentation+1

UniMixer: A Unified Architecture for Scaling Laws in Recommendation Systems

2026-04-01 · Mingming Ha, Guanchen Wang, Linxun Chen, Xuan Rao 외 arxiv

In recent years, the scaling laws of recommendation models have attracted increasing attention, which govern the relationship between performance and parameters/FLOPs of recommenders. Currently, there are three mainstrea…

Recommendation Systems

Compute Only Once: UG-Separation for Efficient Large Recommendation Models

2026-02-11 · Hui Lu, Zheng Chai, Shipeng Bai, Hao Zhang 외 arxiv

Driven by scaling laws, recommender systems increasingly rely on larger-scale models to capture complex feature interactions and user behaviors, but this trend also leads to prohibitive training and inference costs. Whil…

Observations on K-image Expansion of Image-Mixing Augmentation for Classification

2021-10-08 · JoonHyun Jeong, Sungmin Cha, Youngjoon Yoo, Sangdoo Yun 외

Image-mixing augmentations (e.g., Mixup and CutMix), which typically involve mixing two images, have become the de-facto training techniques for image classification. Despite their huge success in image classification, t…

Adversarial RobustnessClassificationimage-classificationImage Classification