Papers › AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders

AdaMAE: Adaptive Masking for Efficient Spatiotemporal Learning with Masked Autoencoders

16 Nov 2022CVPR 2023 1arXiv:2211.09120archive 2025-07-28

Wele Gedara Chaminda Bandara, Naman Patel, Ali Gholami, Mehdi Nikkhah, Motilal Agrawal, Vishal M. Patel

Masked Autoencoders (MAEs) learn generalizable representations for image, text, audio, video, etc., by reconstructing masked input data from tokens of the visible data. Current MAE approaches for videos rely on random patch, tube, or frame-based masking strategies to select these tokens. This paper proposes AdaMAE, an adaptive masking strategy for MAEs that is end-to-end trainable. Our adaptive masking strategy samples visible tokens based on the semantic context using an auxiliary sampling network. This network estimates a categorical distribution over spacetime-patch tokens. The tokens that increase the expected reconstruction error are rewarded and selected as visible tokens, motivated by the policy gradient algorithm in reinforcement learning. We show that AdaMAE samples more tokens from the high spatiotemporal information regions, thereby allowing us to mask 95% of tokens, resulting in lower memory requirements and faster pre-training. We conduct ablation studies on the Something-Something v2 (SSv2) dataset to demonstrate the efficacy of our adaptive sampling approach and report state-of-the-art results of 70.0% and 81.7% in top-1 accuracy on SSv2 and Kinetics-400 action classification datasets with a ViT-Base backbone and 800 pre-training epochs.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology 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="2211.09120")

Code

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

By repository: official repository: 15 samples from 1 repository, 7 ran; community (archive-listed): 10 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

wgcban/adamae officialmentioned in papermentioned on GitHubpytorchMIT report
Nithin-GK/UniteandConquer mentioned on GitHubpytorchApache-2.0 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

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

1ran · our draft was wrong
8ran
16unverified

Licence: 0 of the 25 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

crop_clip wgcban/adamae/functional.py official repository ran MIT (permissive) · bc39b8ed5fefa7eb · report
get_num_layer_for_vit wgcban/adamae/optim_factory.py official repository ran fingerprinted MIT (permissive) · a3448702d6025ce6 · report
get_resize_sizes wgcban/adamae/functional.py official repository ran MIT (permissive) · 2b53e457d5632b4e · report
resize_clip wgcban/adamae/functional.py official repository ran MIT (permissive) · 981936c73d3cdd12 · report
shear_x wgcban/adamae/rand_augment.py official repository ran MIT (permissive) · e866e1196986f728 · report
shear_y wgcban/adamae/rand_augment.py official repository ran MIT (permissive) · 7b2503c99c9447fb · report
translate_x_rel wgcban/adamae/rand_augment.py official repository ran MIT (permissive) · 323759f906fbb394 · report
CE_loss wgcban/adamae/msc/losses.py official repository unverified MIT (permissive) · 0d86b6995e23b2d4 · report
get_alpha wgcban/adamae/msc/losses.py official repository unverified MIT (permissive) · 612575eeaa3ae40c · report
get_loss_scale_for_deepspeed wgcban/adamae/msc/engine_for_finetuning.py official repository unverified MIT (permissive) · 29416043c7035e7c · report
get_model wgcban/adamae/pretrain_mae_vit.py official repository unverified MIT (permissive) · cd41abe0ddd75bc6 · report
get_parameter_groups wgcban/adamae/optim_factory.py official repository unverified MIT (permissive) · 0ef0019514eaaa09 · report
softmax_helper wgcban/adamae/msc/losses.py official repository unverified MIT (permissive) · c66339fca70da624 · report
tensor_normalize wgcban/adamae/kinetics.py official repository unverified MIT (permissive) · 14b3b13b2e7ee844 · report
train_class_batch wgcban/adamae/msc/engine_for_finetuning.py official repository unverified MIT (permissive) · c7976ea27edc377a · report
args_to_dict Nithin-GK/UniteandConquer/class_utils/script_util.py community (archive-listed) ran Apache-2.0 (permissive) · 4e2ac192b520c457 · report
zero_module Nithin-GK/UniteandConquer/class_utils/nn.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 129b804760b3115f · report
avg_pool_nd Nithin-GK/UniteandConquer/class_utils/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · ecd0fc28815b65ae · report
class_find Nithin-GK/UniteandConquer/gradio_set.py community (archive-listed) unverified Apache-2.0 (permissive) · d046b61348049e13 · report
conv_nd Nithin-GK/UniteandConquer/class_utils/nn.py community (archive-listed) unverified Apache-2.0 (permissive) · fe4eb545bbb728e0 · report
create_model Nithin-GK/UniteandConquer/class_utils/script_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 2234d67e4ed38722 · report
d_clip_loss Nithin-GK/UniteandConquer/face_utils/farl_text.py community (archive-listed) unverified Apache-2.0 (permissive) · 65ce936001e1e5a2 · report
fetch_file_cached Nithin-GK/UniteandConquer/utils/download_models_func.py community (archive-listed) unverified Apache-2.0 (permissive) · 3081b94d2db18290 · report
get_confirm_token Nithin-GK/UniteandConquer/utils/download_models_func.py community (archive-listed) unverified Apache-2.0 (permissive) · 135b3dc835ffe6ad · report
greet Nithin-GK/UniteandConquer/gradio_set.py community (archive-listed) unverified Apache-2.0 (permissive) · 95f14a0c91022fc2 · report

Tasks

Action ClassificationRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Action Classification Kinetics-400 AdaMAE Acc@1 81.7 #81 of 207 Archive leaderboard report
Action Classification Kinetics-400 AdaMAE Acc@5 95.2 #81 of 207 Archive leaderboard report
Action Classification Something-Something V2 AdaMAE Acc@1 70.04 #1 of 1 Archive leaderboard report
Action Classification Something-Something V2 AdaMAE Acc@5 92.7 #1 of 1 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Adaptive MaskingL1 RegularizationMAEMasked Convolution

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