Cluster and Predict Latent Patches for Improved Masked Image Modeling

Timothée Darcet, Federico Baldassarre, Maxime Oquab, Julien Mairal, Piotr Bojanowski
2/12/2025
cs.CVcs.AI

No official code found. Best implementation: facebookresearch/capi (137 stars, Apache-2.0, last commit 2026-02-04).

Abstract

Masked Image Modeling (MIM) offers a promising approach to self-supervised representation learning, however existing MIM models still lag behind the state-of-the-art. In this paper, we systematically analyze target representations, loss functions, and architectures, to introduce CAPI - a novel pure-MIM framework that relies on the prediction of latent clusterings. Our approach leverages a clustering-based loss, which is stable to train, and exhibits promising scaling properties. Our ViT-L backbone, CAPI, achieves 83.8% accuracy on ImageNet and 32.1% mIoU on ADE20K with simple linear probes, substantially outperforming previous MIM methods and approaching the performance of the current state-of-the-art, DINOv2. We release all our code and models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code and weights for the paper "Cluster and Predict Latents Patches for Improved Masked Image Modeling"

13712PythonFeb 13, 20258 months agoApache-2.0

Similar Papers

Cite this paper

@article{darcet2025cluster,
  title  = {Cluster and Predict Latent Patches for Improved Masked Image Modeling},
  author = {Timothée Darcet and Federico Baldassarre and Maxime Oquab and Julien Mairal and Piotr Bojanowski},
  year   = {2025},
  eprint = {2502.08769},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.08769v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.08769.svg)](https://codeofpaper.com/paper/2502.08769)

Discussion