SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.13543 · 2022

Revealing the Dark Secrets of Masked Image Modeling

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 5 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
SwinTransformer/MIM-Depth-Estimation canonical 5 of 5
FunctionStatusWhere it lives
get_dataset Ran SwinTransformer/MIM-Depth-Estimation/dataset/base_dataset.py
code served (permissive licence) · get_code("1828822ff8e88962")
get_num_layer_for_swin Ran SwinTransformer/MIM-Depth-Estimation/models/optimizer.py
code served (permissive licence) · get_code("6907f72868217c02")
str2bool Ran SwinTransformer/MIM-Depth-Estimation/configs/base_options.py
code served (permissive licence) · get_code("7c508037b40522af")
window_partition Ran SwinTransformer/MIM-Depth-Estimation/models/swin_transformer_v2.py
code served (permissive licence) · get_code("f9fd6241d935f07b")
window_reverse Ran SwinTransformer/MIM-Depth-Estimation/models/swin_transformer_v2.py
code served (permissive licence) · get_code("fb32094c6dbece71")

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) as pre-training is shown to be effective for numerous vision downstream tasks, but how and where MIM works remain unclear. In this paper, we compare MIM with the long-dominant supervised pre-trained models from two perspectives, the visualizations and the experiments, to uncover their key representational differences. From the visualizations, we find that MIM brings locality inductive bias to all layers of the trained models, but supervised models tend to focus locally at lower layers but more globally at higher layers. That may be the reason why MIM helps Vision Transformers that have a very large receptive field to optimize. Using MIM, the model can maintain a large diversity on attention heads in all layers. But for supervised models, the diversity on attention heads almost disappears from the last three layers and less diversity harms the fine-tuning performance. From the experiments, we find that MIM models can perform significantly better on geometric and motion tasks with weak semantics or fine-grained classification tasks, than their supervised counterparts. Without bells and whistles, a standard MIM pre-trained SwinV2-L could achieve state-of-the-art performance on pose estimation (78.9 AP on COCO test-dev and 78.0 AP on CrowdPose), depth estimation (0.287 RMSE on NYUv2 and 1.966 RMSE on KITTI), and video object tracking (70.7 SUC on LaSOT). For the semantic understanding datasets where the categories are sufficiently covered by the supervised pre-training, MIM models can still achieve highly competitive transfer performance. With a deeper understanding of MIM, we hope that our work can inspire new and solid research in this direction.

For agents

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

get_harvested_code_for_paper("2205.13543")
get_code_for_paper("2205.13543")
have("2205.13543")

Connect an agent — have() is free.