atlas

Research map / Architectures and efficiency / Attention and transformers

Configuring Data Augmentations to Reduce Variance Shift in Positional Embedding of Vision Transformers

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: Vision transformer design · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that Mixup and upsampling of positional embeddings shift variance in ViTs at test time, and proposes rescaling upsampled positional embedding by 1/sqrt(k) plus configuring random erasing (pixel mode, default mean-std) to remove the shift.

Problem

Rich data augmentations such as Mixup and random erasing, together with bicubic upsampling of positional embeddings at test time, cause variance shifts in ViT positional embeddings between training and test, degrading test performance.

Approach

Analyze the variance of patch and positional embeddings after LayerNorm; show interpolation-type upsampling scales variance by k, Mixup scales variance by lambda^2+(1-lambda)^2, while Cutmix and pixel-mode random erasing (with default mean-std) conserve variance; fix by rescaling upsampled positional embedding by 1/sqrt(k) and configuring augmentations accordingly.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Rescale upsampled positional embedding by 1/√k at test timeViT-S/16 · ImageNet-1K val, 864²top-1 accuracy (%): 56.528 -> 60.710Helped
Rescale upsampled positional embedding by 1/√k at test timeViT-B/16 · ImageNet-1K val, 224²top-1 accuracy (%): 84.528 -> 84.344Hurt
Rescale upsampled positional embedding by 1/√k at test timeDeiT-S/16 + UPerNet · ADE20K, LoveDA, and CityscapesmIoU: ADE20K: 43.16 -> 43.27; LoveDA: 47.78 -> 48.37; Cityscapes: 77.20 -> 77.31Helped
Apply Cutmix 1.0 without MixupViT-S/16 and ViT-B/16 · ImageNet-1Ktop-1 accuracy (%): ViT-S/16: 74.801 -> 79.540; ViT-B/16: 74.741 -> 80.240Helped
Add Mixup to Cutmix 1.0 (ablation)ViT-S/16 and ViT-B/16 · ImageNet-1Ktop-1 accuracy (%): ViT-S/16: 79.540 -> 78.069 (Mixup 0.2), 78.128 (Mixup 0.4); ViT-B/16: 80.240 -> 79.448 (Mixup 0.2), 79.248 (Mixup 0.4)Hurt
Increase random erasing probability with pixel mode and inception mean-std (ablation)ViT-S/16 · ImageNet-1Ktop-1 accuracy (%): 79.426 -> 79.126 (RE 0.25) -> 78.726 (RE 0.50)Hurt
Use default mean-std instead of inception mean-std with pixel-mode random erasingViT-B/16 · ImageNet-1Ktop-1 accuracy (%)Helped
Replace pixel-mode random erasing with rand mode (ablation)ViT-S/16 and ViT-B/16 · ImageNet-1Ktop-1 accuracy (%): ViT-S/16: 79.158 -> 79.009; ViT-B/16: 80.415 -> 80.398Hurt
Replace pixel-mode random erasing with const mode (ablation)ViT-S/16 and ViT-B/16 · ImageNet-1Ktop-1 accuracy (%): ViT-S/16: 79.158 -> 78.909; ViT-B/16: 80.415 -> 80.298Hurt

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K ImageNet-21K ADE20K LoveDA Cityscapes

Benchmarks: ImageNet-1K ADE20K LoveDA Cityscapes

Metrics: top-1 accuracy aAcc mIoU mAcc

Baselines: bicubic upsampling of positional embedding (baseline) Mixup inception-mean-std

Builds on: Vision Transformer Mixup CutMix random erasing DeiT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy