paper-with-me

홈 › Papers

Uniform Masking: Enabling MAE Pre-training for Pyramid-based Vision Transformers with Locality

2022-05-20 · Xiang Li, Wenhai Wang, Lingfeng Yang, Jian Yang

Masked AutoEncoder (MAE) has recently led the trends of visual self-supervision area by an elegant asymmetric encoder-decoder design, which significantly optimizes both the pre-training efficiency and fine-tuning accuracy. Notably, the success of the asymmetric structure relies on the "global" property of Vanilla Vision Transformer (ViT), whose self-attention mechanism reasons over arbitrary subset of discrete image patches. However, it is still unclear how the advanced Pyramid-based ViTs (e.g., PVT, Swin) can be adopted in MAE pre-training as they commonly introduce operators within "local" windows, making it difficult to handle the random sequence of partial vision tokens. In this paper, we propose Uniform Masking (UM), successfully enabling MAE pre-training for Pyramid-based ViTs with locality (termed "UM-MAE" for short). Specifically, UM includes a Uniform Sampling (US) that strictly samples $1$ random patch from each $2 \times 2$ grid, and a Secondary Masking (SM) which randomly masks a portion of (usually $25\%$) the already sampled regions as learnable tokens. US preserves equivalent elements across multiple non-overlapped local windows, resulting in the smooth support for popular Pyramid-based ViTs; whilst SM is designed for better transferable visual representations since US reduces the difficulty of pixel recovery pre-task that hinders the semantic learning. We demonstrate that UM-MAE significantly improves the pre-training efficiency (e.g., it speeds up and reduces the GPU memory by $\sim 2\times$) of Pyramid-based ViTs, but maintains the competitive fine-tuning performance across downstream tasks. For example using HTC++ detector, the pre-trained Swin-Large backbone self-supervised under UM-MAE only in ImageNet-1K can even outperform the one supervised in ImageNet-22K. The codes are available at https://github.com/implus/UM-MAE.

📄 PDF Abstract BibTeX arXiv:2205.10063

Code (1)

implus/um-mae 공식 구현 pytorch

Tasks

GPUObject Detection

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
MAE 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Position-Wise Feed-Forward Layer 설명 없음
Adam 설명 없음

Similar Papers 제목 키워드 기반

Uniform Masking Prevails in Vision-Language Pretraining

2022-12-10 · Siddharth Verma, Yuchen Lu, Rui Hou, Hanchao Yu 외

Masked Language Modeling (MLM) has proven to be an essential component of Vision-Language (VL) pretraining. To implement MLM, the researcher must make two design choices: the masking strategy, which determines which toke…

Image-text matchingLanguage ModelingLanguage ModellingMasked Language Modeling+1

PMI-Masking: Principled masking of correlated spans

2020-10-05 · ICLR 2021 1 · Yoav Levine, Barak Lenz, Opher Lieber, Omri Abend 외

Masking tokens uniformly at random constitutes a common flaw in the pretraining of Masked Language Models (MLMs) such as BERT. We show that such uniform masking allows an MLM to minimize its training objective by latchin…

VAMAE: Vessel-Aware Masked Autoencoders for OCT Angiography

2026-04-08 · Ilerioluwakiiye Abolade, Prince Mireku, Kelechi Chibundu, Peace Ododo 외 arxiv

Optical coherence tomography angiography (OCTA) provides non-invasive visualization of retinal microvasculature, but learning robust representations remains challenging due to sparse vessel structures and strong topologi…

Self-Supervised Learning

PSA: Pyramid Sparse Attention for Efficient Video Understanding and Generation

2025-12-03 · Xiaolong Li, Youping Gu, Xi Lin, Weijie Wang 외 arxiv

Attention mechanisms are the core of foundation models, but their quadratic complexity remains a critical bottleneck for scaling. This challenge has driven the development of efficient attention mechanisms, with sparsity…

Computational Efficiency

Locating Cephalometric X-Ray Landmarks with Foveated Pyramid Attention

2020-08-10 · MIDL 2019 7 · Logan Gilmour, Nilanjan Ray

CNNs, initially inspired by human vision, differ in a key way: they sample uniformly, rather than with highest density in a focal point. For very large images, this makes training untenable, as the memory and computation…

regression