Stochastic positional embeddings improve masked image modeling

Amir Bar, Florian Bordes, Assaf Shocher, Mahmoud Assran, Pascal Vincent +4 more
2/12/2026

No official code found. Best implementation: amirbar/StoP (12 stars, last commit 2024-06-26).

Abstract

Masked Image Modeling (MIM) is a promising self-supervised learning approach that enables learning from unlabeled images. Despite its recent success, learning good representations through MIM remains challenging because it requires predicting the right semantic content in accurate locations. For example, given an incomplete picture of a dog, we can guess that there is a tail, but we cannot determine its exact location. In this work, we propose to incorporate location uncertainty into MIM by using stochastic positional embeddings (StoP). Specifically, we condition the model on stochastic masked token positions drawn from a Gaussian distribution. StoP reduces overfitting to location features and guides the model toward learning features that are more robust to location uncertainties. Quantitatively, StoP improves downstream MIM performance on a variety of downstream tasks, including $+1.7\%$ on ImageNet linear probing using ViT-B, and $+2.5\%$ for ViT-H using $1\%$ of the data.

View on arXivView PDF

Code Implementations(1)

amirbar/StoPCommunity100%
121Shell, PythonFeb 15, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{bar2026stochastic,
  title  = {Stochastic positional embeddings improve masked image modeling},
  author = {Amir Bar and Florian Bordes and Assaf Shocher and Mahmoud Assran and Pascal Vincent and Nicolas Ballas and Trevor Darrell and A. Globerson and Yann LeCun},
  year   = {2026},
  eprint = {2308.00566},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2308.00566},
  journal = {ICML 2023 2023}
}

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/2308.00566.svg)](https://codeofpaper.com/paper/2308.00566)

Discussion