Valeo Ai, Bill Psomas, Konstantinos Karantzalos, Yannis Avrithis, Andrei Bursuc, Spyros Gidaris, Ioannis Kakogeorgiou, Nikos Komodakis
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.
| Repository | Role | Ran |
|---|---|---|
| gkakogeorgiou/attmask | — | 4 of 4 |
| Function | Status | Where 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") |
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
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.
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.