Papers › Towards Latent Masked Image Modeling for Self-Supervised Visual Representation Learning

Towards Latent Masked Image Modeling for Self-Supervised Visual Representation Learning

22 Jul 2024arXiv:2407.15837archive 2025-07-28

Yibing Wei, Abhinav Gupta, Pedro Morgado

Masked Image Modeling (MIM) has emerged as a promising method for deriving visual representations from unlabeled image data by predicting missing pixels from masked portions of images. It excels in region-aware learning and provides strong initializations for various tasks, but struggles to capture high-level semantics without further supervised fine-tuning, likely due to the low-level nature of its pixel reconstruction objective. A promising yet unrealized framework is learning representations through masked reconstruction in latent space, combining the locality of MIM with the high-level targets. However, this approach poses significant training challenges as the reconstruction targets are learned in conjunction with the model, potentially leading to trivial or suboptimal solutions.Our study is among the first to thoroughly analyze and address the challenges of such framework, which we refer to as Latent MIM. Through a series of carefully designed experiments and extensive analysis, we identify the source of these challenges, including representation collapsing for joint online/target optimization, learning objectives, the high region correlation in latent space and decoding conditioning. By sequentially addressing these issues, we demonstrate that Latent MIM can indeed learn high-level representations while retaining the benefits of MIM models.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2407.15837")

Code

Syntology Ran 20 of 29 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 18 ran with no contract checked.

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

yibingwei-1/latentmim officialmentioned in papermentioned on GitHubpytorch 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

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

2ran · our draft was wrong
18ran
9unverified

Licence: 29 of the 29 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 yibingwei-1/LatentMIM. “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.

AbsolutePositionEmbeds yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 14d22cad6c3652df · report
Attention yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 97fb93bd98cfce58 · report
Block yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 88d3a859bbb353fa · report
CrossAttention yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 0aa2506ff4669ad9 · report
CrossBlock yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 09c1e9e18a95d73c · report
CrossPositionAttentionStem yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 94c80da22c9b99f5 · report
PatchEmbed yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · 8936931f961fac53 · report
Patchify yibingwei-1/LatentMIM/models_lmim.py official repository ran no licence file found · pointer only · e6455c9712d66617 · report
Similarity yibingwei-1/LatentMIM/models_lmim.py official repository ran fingerprinted no licence file found · pointer only · 630c0648178f5810 · report
SinCosPEs yibingwei-1/LatentMIM/models_lmim.py official repository ran fingerprinted no licence file found · pointer only · e287eb398f89f6ed · report
_build_mlp yibingwei-1/LatentMIM/models_lmim.py official repository ran · our draft was wrong no licence file found · pointer only · d4031567204db418 · report
adjust_target_momentum yibingwei-1/latentmim/main_lmim.py official repository ran no licence file found · pointer only · 4a3f7a34b495299c · report
all_reduce_mean yibingwei-1/latentmim/util/misc.py official repository ran fingerprinted no licence file found · pointer only · 3dc19396537db789 · report
avg_pairwise_sim yibingwei-1/LatentMIM/models_lmim.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 1fe90f92040cf053 · report
concat_all_gather yibingwei-1/latentmim/util/dist_utils.py official repository ran fingerprinted no licence file found · pointer only · 84c0965ec39be82d · report
concat_all_gather yibingwei-1/latentmim/util/misc.py official repository ran fingerprinted no licence file found · pointer only · 8cacb1e15bf1d910 · report
cosine_decay_schedule yibingwei-1/latentmim/main_lmim.py official repository ran fingerprinted no licence file found · pointer only · f25dd0ec378284fd · report
generate_fewshot_dataset yibingwei-1/latentmim/data_tools.py official repository ran no licence file found · pointer only · 44c6311e21193939 · report
read_and_split_data yibingwei-1/latentmim/data_tools.py official repository ran no licence file found · pointer only · aa97db87276a3a8e · report
read_splits yibingwei-1/latentmim/data_tools.py official repository ran no licence file found · pointer only · f71fd7e968578cce · report
CrossDecoder yibingwei-1/LatentMIM/models_lmim.py official repository unverified no licence file found · pointer only · f9294385468d37e7 · report
LMIM yibingwei-1/LatentMIM/models_lmim.py official repository unverified no licence file found · pointer only · e102fd2444a9a5ae · report
VIT yibingwei-1/LatentMIM/models_lmim.py official repository unverified no licence file found · pointer only · 9f056dcd045ee6cf · report
adjust_learning_rate yibingwei-1/latentmim/util/lr_sched.py official repository unverified no licence file found · pointer only · 80500372237a4794 · report
build_vit yibingwei-1/latentmim/vits.py official repository unverified no licence file found · pointer only · b80212c1206d00ab · report
get_grad_norm_ yibingwei-1/latentmim/util/misc.py official repository unverified no licence file found · pointer only · ba1356e8ceb654d2 · report
imagenet yibingwei-1/latentmim/datasets.py official repository unverified no licence file found · pointer only · 975cbd8043721e2c · report
imagenet100 yibingwei-1/latentmim/datasets.py official repository unverified no licence file found · pointer only · 2479657c36a797a0 · report
load_dataset yibingwei-1/latentmim/datasets.py official repository unverified no licence file found · pointer only · 980a8e933845de91 · report

Tasks

Representation Learning

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