[Paper Review] Efficient Self-supervised Vision Pretraining with Local Masked Reconstruction
This paper proposes Local Masked Reconstruction (LoMaR), a self-supervised vision pretraining method that reconstructs masked image patches within localized 7×7 windows instead of globally across the entire image. By restricting attention to small spatial windows and using a lightweight MLP head, LoMaR achieves 84.1% top-1 accuracy on ImageNet-1K—0.5% higher than MAE—while being 3.1× faster during pretraining on 448×448 images, demonstrating superior efficiency and performance for high-resolution vision tasks.
Self-supervised learning for computer vision has achieved tremendous progress and improved many downstream vision tasks such as image classification, semantic segmentation, and object detection. Among these, generative self-supervised vision learning approaches such as MAE and BEiT show promising performance. However, their global masked reconstruction mechanism is computationally demanding. To address this issue, we propose local masked reconstruction (LoMaR), a simple yet effective approach that performs masked reconstruction within a small window of 7$ imes$7 patches on a simple Transformer encoder, improving the trade-off between efficiency and accuracy compared to global masked reconstruction over the entire image. Extensive experiments show that LoMaR reaches 84.1% top-1 accuracy on ImageNet-1K classification, outperforming MAE by 0.5%. After finetuning the pretrained LoMaR on 384$ imes$384 images, it can reach 85.4% top-1 accuracy, surpassing MAE by 0.6%. On MS COCO, LoMaR outperforms MAE by 0.5 $ ext{AP}^ ext{box}$ on object detection and 0.5 $ ext{AP}^ ext{mask}$ on instance segmentation. LoMaR is especially more computation-efficient on pretraining high-resolution images, e.g., it is 3.1$ imes$ faster than MAE with 0.2% higher classification accuracy on pretraining 448$ imes$448 images. This local masked reconstruction learning mechanism can be easily integrated into any other generative self-supervised learning approach. Our code is publicly available in https://github.com/junchen14/LoMaR.
Motivation & Objective
- To address the high computational cost of global masked reconstruction in self-supervised vision pretraining methods like MAE and BEiT.
- To improve efficiency without sacrificing performance, particularly when pretraining on high-resolution images.
- To investigate whether local, windowed reconstruction can maintain or exceed the performance of global reconstruction.
- To develop a method that is easily integrable into existing generative self-supervised learning frameworks.
Proposed method
- LoMaR samples a local window of 7×7 patches around each masked patch for reconstruction, limiting self-attention to this small region.
- The model uses a simple Transformer encoder that processes all patches—including masked ones—without a separate decoder, reducing computational overhead.
- A lightweight MLP head replaces the heavy decoder used in MAE, further improving efficiency.
- The method employs a learnable relative positional encoding (RPE) to preserve spatial context within local windows.
- Random window sampling is used across different spatial locations to ensure diverse receptive fields and better object coverage.
- The model is pre-trained with an 80% mask ratio, which is found to yield optimal performance in ablation studies.
Experimental results
Research questions
- RQ1Can local masked reconstruction within small spatial windows achieve comparable or better performance than global masked reconstruction in self-supervised vision pretraining?
- RQ2Does restricting attention to local windows significantly reduce computational cost, especially for high-resolution images?
- RQ3Can the local reconstruction mechanism be effectively integrated into existing generative SSL frameworks like MAE and BEiT?
- RQ4How does the choice of mask ratio affect the performance of local masked reconstruction?
- RQ5Does local reconstruction lead to better generalization on downstream vision tasks such as object detection and instance segmentation?
Key findings
- LoMaR achieves 84.1% top-1 accuracy on ImageNet-1K, outperforming MAE by 0.5% under the same training regime.
- After fine-tuning on 384×384 images, LoMaR reaches 85.4% top-1 accuracy, surpassing MAE by 0.6%.
- On MS COCO, LoMaR improves object detection by 0.5 AP^box and instance segmentation by 0.5 AP^mask compared to MAE.
- For pretraining 448×448 images, LoMaR is 3.1× faster than MAE while achieving 0.2% higher accuracy.
- LoMaR improves BEiT’s ImageNet-1K accuracy from 83.2% to 83.4% with only 35.8% of the original pretraining time.
- Qualitative results show that LoMaR can reconstruct plausible images even with 90% of patches masked, indicating strong feature learning and generalization.
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.