[Paper Review] Exploring the Coordination of Frequency and Attention in Masked Image Modeling
This paper proposes Attention-driven Masking and Throwing (AMT), a plug-and-play module for masked image modeling that uses self-attention maps to guide selective masking and redundant patch throwing. By focusing attention on salient object regions and reducing computation through strategic token removal, AMT improves linear probing accuracy by 2.9%–5.9% on multiple benchmarks and accelerates pre-training while boosting performance over MAE and SimMIM.
Recently, masked image modeling (MIM), which learns visual representations by reconstructing the masked patches of an image, has dominated self-supervised learning in computer vision. However, the pre-training of MIM always takes massive time due to the large-scale data and large-size backbones. We mainly attribute it to the random patch masking in previous MIM works, which fails to leverage the crucial semantic information for effective visual representation learning. To tackle this issue, we propose the Frequency \& Attention-driven Masking and Throwing Strategy (FAMT), which can extract semantic patches and reduce the number of training patches to boost model performance and training efficiency simultaneously. Specifically, FAMT utilizes the self-attention mechanism to extract semantic information from the image for masking during training in an unsupervised manner. However, attention alone could sometimes focus on inappropriate areas regarding the semantic information. Thus, we are motivated to incorporate the information from the frequency domain into the self-attention mechanism to derive the sampling weights for masking, which captures semantic patches for visual representation learning. Furthermore, we introduce a patch throwing strategy based on the derived sampling weights to reduce the training cost. FAMT can be seamlessly integrated as a plug-and-play module and surpasses previous works, \emph{e.g.} reducing the training phase time by nearly $50\%$ and improving the linear probing accuracy of MAE by $1.3\% \sim 3.9\%$ across various datasets, including CIFAR-10/100, Tiny ImageNet, and ImageNet-1K. FAMT also demonstrates superior performance in downstream detection and segmentation tasks.
Motivation & Objective
- Address the inefficiency of random masking in masked image modeling (MIM), which disperses attention across irrelevant background regions.
- Reduce the high computational cost of pre-training in vision transformers by eliminating redundant patches during training.
- Improve representation learning by leveraging unsupervised semantic attention maps to guide masking and throwing strategies.
- Develop a plug-and-play module compatible with existing MIM frameworks like MAE and SimMIM to enhance transferability and efficiency.
- Demonstrate superior performance on downstream tasks including classification, detection, and segmentation with minimal architectural changes.
Proposed method
- Extract saliency maps using the self-attention mechanism of the [CLS] token in Vision Transformers, enabling unsupervised semantic understanding during training.
- Implement attention-driven masking by selecting patches with high attention weights for masking, focusing the model on semantically important regions.
- Introduce a redundant patch throwing strategy that permanently removes low-attention tokens from the input, reducing computational load.
- Optimize the masking and throwing ratio (e.g., 45% masking, 40% throwing) to balance representation quality and training speed.
- Apply the AMT module as a plug-in to existing MIM frameworks such as MAE and SimMIM without modifying the backbone architecture.
- Use the same training setup across baselines and ablations to ensure fair comparison, including identical hyperparameters and evaluation protocols.
Experimental results
Research questions
- RQ1Can self-attention maps from Vision Transformers be effectively used to guide non-random, semantic-aware masking in masked image modeling?
- RQ2Does selectively removing low-attention patches (throwing) improve training efficiency and representation quality in MIM?
- RQ3How does attention-driven masking and throwing compare to random masking and no throwing in terms of linear probing and fine-tuning accuracy?
- RQ4To what extent does AMT improve transferability on downstream detection and segmentation tasks like COCO and LVIS?
- RQ5What is the optimal trade-off between masking ratio, throwing ratio, and performance in the proposed AMT framework?
Key findings
- AMT improves linear probing accuracy of MAE by 2.9% to 5.9% across CIFAR-10, CIFAR-100, STL-10, Tiny ImageNet, and ImageNet-1K.
- AMT boosts fine-tuning accuracy of both MAE and SimMIM by 0.2% to 5.8% on ImageNet-1K and downstream benchmarks.
- On COCO detection, AMT achieves consistent improvements across all AP metrics, with the best performance on AP and AP<sup>box</sup> at high IoU thresholds.
- On the challenging LVIS dataset with long-tail class distribution, AMT improves all detection metrics by at least 1.4% compared to baseline methods.
- The AMT strategy with 40% throwing and 45% masking achieves the best accuracy on Tiny ImageNet, outperforming random throwing and low-attention throwing by 0.7%.
- AMT accelerates pre-training by 1.6× when 50% of tokens are thrown, while maintaining better performance than random masking in SimMIM on ImageNet-1K.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.