Papers › MixPro: Data Augmentation with MaskMix and Progressive Attention Labeling for Vision...

MixPro: Data Augmentation with MaskMix and Progressive Attention Labeling for Vision Transformer

24 Apr 2023arXiv:2304.12043archive 2025-07-28

QiHao Zhao, Yangyu Huang, Wei Hu, Fan Zhang, Jun Liu

The recently proposed data augmentation TransMix employs attention labels to help visual transformers (ViT) achieve better robustness and performance. However, TransMix is deficient in two aspects: 1) The image cropping method of TransMix may not be suitable for ViTs. 2) At the early stage of training, the model produces unreliable attention maps. TransMix uses unreliable attention maps to compute mixed attention labels that can affect the model. To address the aforementioned issues, we propose MaskMix and Progressive Attention Labeling (PAL) in image and label space, respectively. In detail, from the perspective of image space, we design MaskMix, which mixes two images based on a patch-like grid mask. In particular, the size of each mask patch is adjustable and is a multiple of the image patch size, which ensures each image patch comes from only one image and contains more global contents. From the perspective of label space, we design PAL, which utilizes a progressive factor to dynamically re-weight the attention weights of the mixed attention label. Finally, we combine MaskMix and Progressive Attention Labeling as our new data augmentation method, named MixPro. The experimental results show that our method can improve various ViT-based models at scales on ImageNet classification (73.8\% top-1 accuracy based on DeiT-T for 300 epochs). After being pre-trained with MixPro on ImageNet, the ViT-based models also demonstrate better transferability to semantic segmentation, object detection, and instance segmentation. Furthermore, compared to TransMix, MixPro also shows stronger robustness on several benchmarks. The code is available at https://github.com/fistyee/MixPro.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2304.12043")

Code

Syntology Ran 10 of 18 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 3 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fistyee/mixpro officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 10 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
3ran · fixture could not drive it
3ran
8unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from fistyee/MixPro. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

window_partition fistyee/MixPro/models/swin_mlp.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 144d10b49baeb8a6 · report
MaskMix fistyee/mixpro/utils.py official repository ran · fixture could not drive it MIT (permissive) · 03c58083e2ecf6c7 · report
build_optimizer fistyee/MixPro/optimizer.py official repository ran MIT (permissive) · e35a4b2e4114b1a5 · report
mixup_target fistyee/mixpro/utils.py official repository ran · our draft was wrong MIT (permissive) · 08b4e547f3100fc0 · report
one_hot fistyee/mixpro/utils.py official repository ran · our draft was wrong MIT (permissive) · 4728dc2025227bba · report
set_weight_decay fistyee/MixPro/optimizer.py official repository ran MIT (permissive) · b33222a09fc93bec · report
window_partition fistyee/MixPro/models/focal_transformer_v2.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · f9fd6241d935f07b · report
window_partition_noreshape fistyee/MixPro/models/focal_transformer_v2.py official repository ran MIT (permissive) · eb8623dc7c37757f · report
window_reverse fistyee/MixPro/models/swin_mlp.py official repository ran · our draft was wrong MIT (permissive) · 61bf152e6a42a184 · report
window_reverse fistyee/MixPro/models/focal_transformer_v2.py official repository ran · our draft was wrong MIT (permissive) · fb32094c6dbece71 · report
MaskMix fistyee/MixPro/utils.py official repository unverified MIT (permissive) · 9fc4335dd1dc6864 · report
build_model fistyee/MixPro/models/build.py official repository unverified MIT (permissive) · 1ecb57de91ce4988 · report
build_scheduler fistyee/MixPro/lr_scheduler.py official repository unverified MIT (permissive) · c02cc4e0b5720211 · report
check_keywords_in_name fistyee/MixPro/optimizer.py official repository unverified MIT (permissive) · b0a5beb34716d5a6 · report
checkpoint_filter_fn fistyee/MixPro/models/vit.py official repository unverified MIT (permissive) · 5dac11fdc41c896b · report
create_logger fistyee/MixPro/logger.py official repository unverified MIT (permissive) · 80450600f7f09b0a · report
get_config fistyee/MixPro/config.py official repository unverified MIT (permissive) · 9b9b6364be5f95f6 · report
resize_pos_embed fistyee/MixPro/models/vit.py official repository unverified MIT (permissive) · 1dbef2d4da4ee10f · report

Tasks

Data AugmentationImage AugmentationImage ClassificationImage CroppingInstance SegmentationObject DetectionSemantic Segmentationobject-detection

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Data Augmentation ImageNet DeiT-B (+MixPro) Accuracy (%) 82.9 #1 of 17 Archive leaderboard report
Data Augmentation ImageNet DeiT-S (+MixPro) Accuracy (%) 81.3 #3 of 17 Archive leaderboard report
Data Augmentation ImageNet DeiT-T (+MixPro) Accuracy (%) 73.8 #17 of 17 Archive leaderboard report
Image Classification ImageNet XCiT-M (+MixPro) Top 1 Accuracy 84.1% #349 of 1060 Archive leaderboard report
Image Classification ImageNet CA-Swin-S (+MixPro) Top 1 Accuracy 83.7% #392 of 1060 Archive leaderboard report
Image Classification ImageNet DeiT-B (+MixPro) Top 1 Accuracy 82.9% #484 of 1060 Archive leaderboard report
Image Classification ImageNet CA-Swin-T (+MixPro) Top 1 Accuracy 82.8% #494 of 1060 Archive leaderboard report
Image Classification ImageNet PVT-M (+MixPro) Top 1 Accuracy 82.7% #507 of 1060 Archive leaderboard report
Image Classification ImageNet PVT-S (+MixPro) Top 1 Accuracy 81.2% #655 of 1060 Archive leaderboard report
Image Classification ImageNet CaiT-XXS (+MixPro) Top 1 Accuracy 80.6% #692 of 1060 Archive leaderboard report
Image Classification ImageNet PVT-T (+MixPro) Top 1 Accuracy 76.7% #901 of 1060 Archive leaderboard report
Image Classification ImageNet DeiT-T (+MixPro) Top 1 Accuracy 73.8% #983 of 1060 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections