SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.12719 · ECCV · 2022

What to Hide from Your Students: Attention-Guided Masked Image Modeling

Valeo Ai, Bill Psomas, Konstantinos Karantzalos, Yannis Avrithis, Andrei Bursuc, Spyros Gidaris, Ioannis Kakogeorgiou, Nikos Komodakis

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 4 functions out of this paper's own repositories and ran 4 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
gkakogeorgiou/attmask — 4 of 4
FunctionStatusWhere it lives
AttMask Ran gkakogeorgiou/attmask/attmask.py
code served (permissive licence) · get_code("db0a04f225664439")
attention_masking Ran gkakogeorgiou/attmask/attmask.py
code served (permissive licence) · get_code("fcd495b83f8d3bf5")
get_mask Ran gkakogeorgiou/attmask/attmask.py
code served (permissive licence) · get_code("bafa48f82d43cb95")
show_hints Ran gkakogeorgiou/attmask/attmask.py
code served (permissive licence) · get_code("51d9e2eb01f5f64e")

Repositories linked to this paper

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

Abstract

Transformers and masked language modeling are quickly being adopted and explored in computer vision as vision transformers and masked image modeling (MIM). In this work, we argue that image token masking differs from token masking in text, due to the amount and correlation of tokens in an image. In particular, to generate a challenging pretext task for MIM, we advocate a shift from random masking to informed masking. We develop and exhibit this idea in the context of distillation-based MIM, where a teacher transformer encoder generates an attention map, which we use to guide masking for the student. We thus introduce a novel masking strategy, called attention-guided masking (AttMask), and we demonstrate its effectiveness over random masking for dense distillation-based MIM as well as plain distillation-based self-supervised learning on classification tokens. We confirm that AttMask accelerates the learning process and improves the performance on a variety of downstream tasks. We provide the implementation code at https://github.com/gkakogeorgiou/attmask.

For agents

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

get_harvested_code_for_paper("2203.12719")
get_code_for_paper("2203.12719")
have("2203.12719")

Connect an agent — have() is free.