Beyond [cls]: Exploring the true potential of Masked Image Modeling representations
Marcin Przewięźlikowski, Randall Balestriero, Wojciech Jasiński, Marek Śmieja, Bartosz Zieliński
TL;DR
The paper investigates why Masked Image Modeling (MIM) yields weaker out-of-the-box high-level perception performance than Joint Embedding Architectures (JEAs). By analyzing attention flow in Vision Transformers, it shows MAE-style MIM tends to have the [cls] token attend mainly to itself and distribute attention uniformly across patches, limiting the extraction of salient global information. To address this, the authors introduce Selective Aggregation using a lightweight AbMILP-based weighting of patch tokens, yielding consistently stronger global representations across a range of MIM backbones without retraining the backbone. The approach significantly narrows the performance gap on ImageNet-1k and improves low-shot and fine-grained tasks, suggesting that proper aggregation of patch information is a critical factor for MIM’s practical effectiveness. This work provides a lightweight, model-agnostic tool to enhance MIM representations and offers guidance for future SSL developments toward more selective information integration in vision transformers.
Abstract
Masked Image Modeling (MIM) has emerged as a promising approach for Self-Supervised Learning (SSL) of visual representations. However, the out-of-the-box performance of MIMs is typically inferior to competing approaches. Most users cannot afford fine-tuning due to the need for large amounts of data, high GPU consumption, and specialized user knowledge. Therefore, the practical use of MIM representations is limited. In this paper we ask what is the reason for the poor out-of-the-box performance of MIMs. Is it due to weaker features produced by MIM models, or is it due to suboptimal usage? Through detailed analysis, we show that attention in MIMs is spread almost uniformly over many patches, leading to ineffective aggregation by the [cls] token. Based on this insight, we propose Selective Aggregation to better capture the rich semantic information retained in patch tokens, which significantly improves the out-of-the-box performance of MIM.
