Papers › Stochastic positional embeddings improve masked image modeling

Stochastic positional embeddings improve masked image modeling

31 Jul 2023arXiv:2308.00566archive 2025-07-28

Amir Bar, Florian Bordes, Assaf Shocher, Mahmoud Assran, Pascal Vincent, Nicolas Ballas, Trevor Darrell, Amir Globerson, Yann Lecun

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.00566")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

amirbar/stop officialmentioned in papermentioned on GitHubpytorchNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 7 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · fixture could not drive it
5ran
4unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from amirbar/stop. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

accuracy amirbar/stop/src/utils.py official repository ran · fixture could not drive it no licence file found · pointer only · b0f936d4d6ae3b8c · report
all_reduce_mean amirbar/stop/src/utils.py official repository ran fingerprinted no licence file found · pointer only · 3dc19396537db789 · report
get_1d_sincos_pos_embed_from_grid amirbar/stop/src/deit.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 4bdd36eab04c3f62 · report
get_2d_sincos_pos_embed amirbar/stop/src/deit.py official repository ran fingerprinted licence not identified · pointer only · 3241d318307c5d4f · report
load_pretrained amirbar/stop/logistic_eval.py official repository ran licence not identified · pointer only · b2c06a2a020920e1 · report
make_embeddings amirbar/stop/logistic_eval.py official repository ran licence not identified · pointer only · 532c530f6c82d3c8 · report
make_transforms amirbar/stop/src/data_manager.py official repository ran licence not identified · pointer only · a6e63a056127a5e2 · report
copy_imgnt_locally amirbar/stop/src/data_manager.py official repository unverified licence not identified · pointer only · fa865f702b4a1961 · report
get_2d_sincos_pos_embed_from_grid amirbar/stop/src/deit.py official repository unverified no licence file found · pointer only · 4fd80de79832745d · report
get_grad_norm_ amirbar/stop/src/utils.py official repository unverified no licence file found · pointer only · ba1356e8ceb654d2 · report
init_data amirbar/stop/src/data_manager.py official repository unverified licence not identified · pointer only · 1044207f674d0fe8 · report

Tasks

Language ModellingMasked Language ModelingSelf-Supervised LearningVideo SegmentationVideo Semantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

MIM

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections