SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.03283 · ICCV · 2023

Diffusion Models as Masked Autoencoders

Alan Yuille, Po-Yao Huang, Cihang Xie, Karttikeya Mangalam, Hu Xu, Christoph Feichtenhofer, Chen Wei, Haoqi Fan, Yanghao Li, Huiyu Wang

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (7 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 1 failure of our instrument; 3 no recorded run), measured 2026-11-22; 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/2304.03283.json · badge: /api/ran/2304.03283.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
kimdanni/DiffMAE community
Papers with Code archive
9 ran · 3 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("f7e0f3a36a14e867")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

Block Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("a766b080f0eacfd2")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

CrossAttention Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("563ed599da513e37")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

CrossAttentionBlock Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("edac750b243ddc24")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("11e42ea9da37c363")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

TimestepEmbedder Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("94ed19243846560a")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

WeightedFeatureMaps Ran
ran on a synthesized input · constructed an object; no result was computed
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("7e8768cb8c14f240")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("6a53acdcb72e78dd")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("6df5fc6a28a5d9e4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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.

CustomDDPMScheduler Not yet run
unverified (harvested, no recorded run)
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("584be512341b7ae6")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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. No invocation recorded.

MaskedAutoencoderViT Not yet run
unverified (harvested, no recorded run)
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("1a91090e8cbfa8d4")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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. No invocation recorded.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
kimdanni/DiffMAE/models_cross.py
pointer only (licence: NOASSERTION) · get_code("b7482295ffca3e2c")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, kimdanni/DiffMAE (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. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 3 later) and 9 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
get_2d_sincos_pos_embed_from_grid
brick of this paper's assembly: helper
190 other papers
33 dated earlier, 3 the same month, 153 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
get_2d_sincos_pos_embed
brick of this paper's assembly: helper
95 other papers
24 dated earlier, 3 the same month, 67 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
Block
brick of this paper's assembly: helper
12 other papers
7 dated earlier, 5 later · 4 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2101.11986 (2021-01)
Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNet
2103.10455 (2021-03)
3D Human Pose Estimation with Spatial and Temporal Transformers
and 9 more not named here

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-22.

Repositories linked to this paper

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

Abstract

There has been a longstanding belief that generation can facilitate a true understanding of visual data. In line with this, we revisit generatively pre-training visual representations in light of recent interest in denoising diffusion models. While directly pre-training with diffusion models does not produce strong representations, we condition diffusion models on masked input and formulate diffusion models as masked autoencoders (DiffMAE). Our approach is capable of (i) serving as a strong initialization for downstream recognition tasks, (ii) conducting high-quality image inpainting, and (iii) being effortlessly extended to video where it produces state-of-the-art classification accuracy. We further perform a comprehensive study on the pros and cons of design choices and build connections between diffusion models and masked autoencoders. Project page.

For agents

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

get_harvested_code_for_paper("2304.03283")
get_code_for_paper("2304.03283")
have("2304.03283")

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

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

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

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

Connect an agent — have() is free.