SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.03892 · 2022

ConvMAE: Masked Convolution Meets Masked Autoencoders

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 2 violated it and 4 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2205.03892.json · badge: /api/ran/2205.03892.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
alpha-vl/convmae canonical (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
mx-mark/dmjd community (classifier label)
classifier basis not recorded on the link
8 ran · 0 no recorded run
FunctionStatusWhere it lives
build_dataset Ran
ran; our contract draft was wrong, not the code
mx-mark/dmjd/util/datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/mae, is pointer only (licence: NOASSERTION) · get_code("27f8c4c706fd43ec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from facebookresearch/mae, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_transform Ran
ran; our contract draft was wrong, not the code
mx-mark/dmjd/util/datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from facebookresearch/mae, is pointer only (licence: NOASSERTION) · get_code("800cebf161a8aa26")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from facebookresearch/mae, and GitHub could not classify the licence of that repository (NOASSERTION). The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
alpha-vl/convmae/DET/models/convmae.py
code served (permissive licence) · get_code("52eff09408f9308d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small input tensor (batch_size=2, channels=4, height=3, width=3)
x = torch.randn(2, 4, 3, 3)

# Define arguments for the drop_path function
ARGS = {
    "x": x,
    "drop_prob": 0.5,
    "training": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
expand_patches_indice Ran
ran on a synthesized input
mx-mark/dmjd/models_dmjd.py
code served (permissive licence) · get_code("f4a4b75ad66dfa8d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze function usage:
# - ids_shuffle: tensor used with torch.div, torch.mul, torch.fmod operations
# - sub_w: scalar used in division and modulo operations
# - H: appears in return but not used in function body
# - W: scalar used in alpha parameter of torch.add

# Create small tensors and scalars
ids_shuffle = torch.tensor([0, 1, 2, 3, 4, 5])
sub_w = 3
H = 8
W = 8

ARGS = {
    "ids_shuffle": ids_shuffle,
    "sub_w": sub_w,
    "H": H,
    "W": W,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
has_file_allowed_extension Ran
ran, violated the contract we drafted
mx-mark/dmjd/util/dataset_folder.py
pointer only (licence: MIT); the stored copy get_code serves, from dlyuangod/vit-1.58b, is pointer only (licence: NONE) · get_code("18ae3e6ef2cf02ec")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dlyuangod/vit-1.58b, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hog_torch Ran
ran on a synthesized input
mx-mark/dmjd/util/hog_tensor.py
code served (permissive licence) · get_code("aebb204ab2b5f5b3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 5, dtype family float, shape (2, 3, 2, 2, 9) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small (B, C, H, W) image tensor
# B=2 (batch), C=3 (channels), H=16, W=16 (must be divisible by pixels_per_cell)
images = torch.randn(2, 3, 16, 16)

ARGS = {
    'images': images,
    'orientations': 9,
    'pixels_per_cell': (8, 8),
    'block_norm': 'L2',
    'transform_sqrt': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 5, dtype family float, shape (2, 3, 2, 2, 9) — shape (2, 3, 2, 2, 9) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_image_file Ran
ran, violated the contract we drafted
mx-mark/dmjd/util/dataset_folder.py
pointer only (licence: MIT); the stored copy get_code serves, from dlyuangod/vit-1.58b, is pointer only (licence: NONE) · get_code("8ac50ae8773b9431")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dlyuangod/vit-1.58b, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_dataset Ran
ran; our contract draft was wrong, not the code
mx-mark/dmjd/util/dataset_folder.py
code served (permissive licence) · get_code("fb6aea1653b20bba")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import os.path
import tempfile
from typing import Tuple, Dict, Optional, Callable, List

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()

# Create class subdirectories and some dummy files
class_names = ["cat", "dog"]
for class_name in class_names:
    class_dir = os.path.join(temp_dir, class_name)
    os.makedirs(class_dir, exist_ok=True)
    # Create some dummy files with various extensions
    for i in range(2):
        with open(os.path.join(class_dir, f"image_{i}.jpg"), "w") as f:
            f.write("dummy")
        with open(os.path.join(class_dir, f"image_{i}.png"), "w") as f:
            f.write("dummy")
        with open(os.path.join(class_dir, f"other_{i}.txt"), "w") as f:
            f.write("dummy")

# Define the arguments
directory = temp_dir
class_to_idx = {"cat": 0, "dog": 1}
extensions = (".jpg", ".png")
is_valid_file = None

ARGS = {
    "directory": directory,
    "class_to_idx": class_to_idx,
    "extensions": extensions,
    "is_valid_file": is_valid_file,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
patchify Ran
ran on a synthesized input
mx-mark/dmjd/util/hog_tensor.py
code served (permissive licence) · get_code("f66e302ee7963735")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 6, dtype family float, shape (2, 4, 4, 2, 1, 6) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small batch of images: (B, C, H, W)
# B=2, C=4, H=8, W=6 - distinct sizes for different dimensions
imgs = torch.randn(2, 4, 8, 6)

# cell_rows and cell_columns define how to divide H and W
# H=8 must be divisible by cell_rows, W=6 must be divisible by cell_columns
cell_rows = 2
cell_columns = 3

ARGS = {
    "imgs": imgs,
    "cell_rows": cell_rows,
    "cell_columns": cell_columns,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 6, dtype family float, shape (2, 4, 4, 2, 1, 6) — shape (2, 4, 4, 2, 1, 6) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resize_pos_embed Ran
ran on a synthesized input
alpha-vl/convmae/DET/models/convmae.py
code served (permissive licence) · get_code("99a5f8dc62879d09")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family float, shape (1, 17, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import math

torch.manual_seed(0)

# Create position embeddings
# posemb: shape [batch, num_patches, embed_dim]
# For a grid of 3x3 = 9 patches, plus 1 class token = 10 total tokens
# Let's use embed_dim = 4

batch_size = 1
embed_dim = 4
num_tokens = 1  # class token
grid_size = 3
total_tokens_old = num_tokens + (grid_size * grid_size)

posemb = torch.randn(batch_size, total_tokens_old, embed_dim)

# posemb_new: target shape after resizing
# Let's target a 4x4 grid = 16 patches, plus 1 class token = 17 total tokens
grid_size_new = 4
total_tokens_new = num_tokens + (grid_size_new * grid_size_new)

posemb_new = torch.randn(batch_size, total_tokens_new, embed_dim)

# gs_new: grid size for new position embeddings
gs_new = [grid_size_new, grid_size_new]

ARGS = {
    'posemb': posemb,
    'posemb_new': posemb_new,
    'num_tokens': num_tokens,
    'gs_new': gs_new,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float, shape (1, 17, 4) — shape (1, 17, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 7 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 7 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
drop_path 224 other papers
43 dated earlier, 1 the same month, 177 later, 2 same year, order not determinable, 1 undated · 38 only as an assembly brick
2003.12039 (2020-03)
RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
2007.09384 (2020-07)
Multi-Scale Positive Sample Refinement for Few-Shot Object Detection
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
and 221 more not named here
build_transform 15 other papers
15 later
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
2212.05677 (2022-12)
Masked autoencoders are effective solution to transformer data-hungry
and 12 more not named here
build_dataset 14 other papers
14 later
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
aaai_25300 (2023 (year only))
Exploring Stochastic Autoregressive Image Modeling for Visual Representation
2303.07598 (2023-03)
AdPE: Adversarial Positional Embeddings for Pretraining Vision Transformers via MAE+
and 11 more not named here
is_image_file 12 other papers
2 dated earlier, 10 later
2203.14415 (2022-03)
Mugs: A Multi-Granular Self-Supervised Learning Framework
2204.08381 (2022-04)
Multiple-environment Self-adaptive Network for Aerial-view Geo-localization
2208.07049 (2022-08)
Self-Supervised Vision Transformers for Malware Detection
and 9 more not named here
has_file_allowed_extension 10 other papers
2 dated earlier, 8 later
2203.14415 (2022-03)
Mugs: A Multi-Granular Self-Supervised Learning Framework
2204.08381 (2022-04)
Multiple-environment Self-adaptive Network for Aerial-view Geo-localization
2208.07049 (2022-08)
Self-Supervised Vision Transformers for Malware Detection
and 7 more not named here
make_dataset 6 other papers
6 later
2208.07049 (2022-08)
Self-Supervised Vision Transformers for Malware Detection
aaai_25604 (2023 (year only))
One-for-All: Proposal Masked Cross-Class Anomaly Detection
2305.00348 (2023-05)
Modality-invariant Visual Odometry for Embodied Vision
and 3 more not named here
resize_pos_embed 1 other paper
1 later
Fang_Unleashing_Vanilla_Vision_Transformer_with_Masked_Image_Modeling_for_Object_ICCV_2023_paper (2023 (year only))
Unleashing Vanilla Vision Transformer with Masked Image Modeling for Object Detection

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

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

Abstract

Vision Transformers (ViT) become widely-adopted architectures for various vision tasks. Masked auto-encoding for feature pretraining and multi-scale hybrid convolution-transformer architectures can further unleash the potentials of ViT, leading to state-of-the-art performances on image classification, detection and semantic segmentation. In this paper, our ConvMAE framework demonstrates that multi-scale hybrid convolution-transformer can learn more discriminative representations via the mask auto-encoding scheme. However, directly using the original masking strategy leads to the heavy computational cost and pretraining-finetuning discrepancy. To tackle the issue, we adopt the masked convolution to prevent information leakage in the convolution blocks. A simple block-wise masking strategy is proposed to ensure computational efficiency. We also propose to more directly supervise the multi-scale features of the encoder to boost multi-scale features. Based on our pretrained ConvMAE models, ConvMAE-Base improves ImageNet-1K finetuning accuracy by 1.4% compared with MAE-Base. On object detection, ConvMAE-Base finetuned for only 25 epochs surpasses MAE-Base fined-tuned for 100 epochs by 2.9% box AP and 2.2% mask AP respectively. Code and pretrained models are available at https://github.com/Alpha-VL/ConvMAE.

For agents

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

get_harvested_code_for_paper("2205.03892")
get_code_for_paper("2205.03892")
have("2205.03892")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2205.03892.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2205.03892.svg)](https://syntology.ai/paper/2205.03892)

Connect an agent — have() is free.