SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.15837 · ECCV · 2024

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

Abhinav Gupta, Pedro Morgado, Yibing Wei

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 29 functions out of this paper's own repositories and ran 20 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
yibingwei-1/latentmim canonical 8 of 14
yibingwei-1/LatentMIM — 12 of 15
FunctionStatusWhere it lives
AbsolutePositionEmbeds Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("14d22cad6c3652df")
Attention Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("97fb93bd98cfce58")
Block Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("88d3a859bbb353fa")
CrossAttention Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("0aa2506ff4669ad9")
CrossBlock Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("09c1e9e18a95d73c")
CrossPositionAttentionStem Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("94c80da22c9b99f5")
PatchEmbed Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("8936931f961fac53")
Patchify Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("e6455c9712d66617")
Similarity Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("630c0648178f5810")
SinCosPEs Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("e287eb398f89f6ed")
_build_mlp Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("d4031567204db418")
adjust_target_momentum Ran yibingwei-1/latentmim/main_lmim.py
pointer only (licence: NONE) · get_code("4a3f7a34b495299c")
all_reduce_mean Ran yibingwei-1/latentmim/util/misc.py
pointer only (licence: NONE) · get_code("3dc19396537db789")
avg_pairwise_sim Ran yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("1fe90f92040cf053")
concat_all_gather Ran yibingwei-1/latentmim/util/dist_utils.py
pointer only (licence: NONE) · get_code("84c0965ec39be82d")
concat_all_gather Ran yibingwei-1/latentmim/util/misc.py
pointer only (licence: NONE) · get_code("8cacb1e15bf1d910")
cosine_decay_schedule Ran yibingwei-1/latentmim/main_lmim.py
pointer only (licence: NONE) · get_code("f25dd0ec378284fd")
generate_fewshot_dataset Ran yibingwei-1/latentmim/data_tools.py
pointer only (licence: NONE) · get_code("44c6311e21193939")
read_and_split_data Ran yibingwei-1/latentmim/data_tools.py
pointer only (licence: NONE) · get_code("aa97db87276a3a8e")
read_splits Ran yibingwei-1/latentmim/data_tools.py
pointer only (licence: NONE) · get_code("f71fd7e968578cce")
CrossDecoder Not yet run yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("f9294385468d37e7")
LMIM Not yet run yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("e102fd2444a9a5ae")
VIT Not yet run yibingwei-1/LatentMIM/models_lmim.py
pointer only (licence: NONE) · get_code("9f056dcd045ee6cf")
adjust_learning_rate Not yet run yibingwei-1/latentmim/util/lr_sched.py
pointer only (licence: NONE) · get_code("80500372237a4794")
build_vit Not yet run yibingwei-1/latentmim/vits.py
pointer only (licence: NONE) · get_code("b80212c1206d00ab")
get_grad_norm_ Not yet run yibingwei-1/latentmim/util/misc.py
pointer only (licence: NONE) · get_code("ba1356e8ceb654d2")
imagenet Not yet run yibingwei-1/latentmim/datasets.py
pointer only (licence: NONE) · get_code("975cbd8043721e2c")
imagenet100 Not yet run yibingwei-1/latentmim/datasets.py
pointer only (licence: NONE) · get_code("2479657c36a797a0")
load_dataset Not yet run yibingwei-1/latentmim/datasets.py
pointer only (licence: NONE) · get_code("980a8e933845de91")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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. Code is available at https://github.com/yibingwei-1/LatentMIM.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2407.15837")
get_code_for_paper("2407.15837")
have("2407.15837")

Connect an agent — have() is free.