SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.16280 · 2024

MonoFormer: One Transformer for Both Diffusion and Autoregression

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 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, 0 violated it and 0 have no contract verdict; 5 failures 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/2409.16280.json · badge: /api/ran/2409.16280.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
MonoFormer/MonoFormer canonical (classifier label)
classifier basis: census
5 ran · 3 no recorded run
FunctionStatusWhere it lives
center_crop_arr Ran
ran; our contract draft was wrong, not the code
MonoFormer/MonoFormer/imgproc.py
pointer only (licence: NONE) · get_code("27c5a16fa884fb87")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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.

create_npz_from_sample_folder Ran
ran; our contract draft was wrong, not the code
MonoFormer/MonoFormer/sample_ddp.py
pointer only (licence: NONE) · get_code("7b21a01ae77703a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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.

get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
MonoFormer/MonoFormer/models/modeling.py
pointer only (licence: NONE) · get_code("e5947aba1d10885f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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.

preprocess_inputs Ran
ran; our contract draft was wrong, not the code
MonoFormer/MonoFormer/infer_llm.py
pointer only (licence: NONE) · get_code("5094d51ab076d069")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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.

resize_and_pad_image Ran
ran; our contract draft was wrong, not the code
MonoFormer/MonoFormer/imgproc.py
pointer only (licence: NONE) · get_code("9387a346aade06b9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
MonoFormer/MonoFormer/models/modeling.py
pointer only (licence: NONE) · get_code("665d8a4e8f673a4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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. No invocation recorded.

modulate Not yet run
unverified (harvested, no recorded run)
MonoFormer/MonoFormer/models/monoformer.py
pointer only (licence: NONE) · get_code("427cd0bde9819614")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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. No invocation recorded.

read_config_from_file Not yet run
unverified (harvested, no recorded run)
MonoFormer/MonoFormer/config.py
pointer only (licence: NONE) · get_code("c6b51673a14dc067")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, MonoFormer/MonoFormer 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. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 3 the same month, 3 later) and 5 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 190 other papers
111 dated earlier, 8 the same month, 70 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_1d_sincos_pos_embed_from_grid 42 other papers
15 dated earlier, 1 the same month, 26 later · 22 only as an assembly brick
2212.09748 (2022-12)
Scalable Diffusion Models with Transformers
2303.14389 (2023-03)
Masked Diffusion Transformer is a Strong Image Synthesizer
2305.13311 (2023-05)
VDT: General-purpose Video Diffusion Transformers via Mask Modeling
and 39 more not named here
create_npz_from_sample_folder 23 other papers
8 dated earlier, 2 the same month, 13 later
2401.08740 (2024-01)
SiT: Exploring Flow and Diffusion-based Generative Models with Scalable Interpolant Transformers
2402.14167 (2024-02)
T-Stitch: Accelerating Sampling in Pre-Trained Diffusion Models with Trajectory Stitching
2403.09176 (2024-03)
Switch Diffusion Transformer: Synergizing Denoising Tasks with Sparse Mixture-of-Experts
and 20 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

Most existing multimodality methods use separate backbones for autoregression-based discrete text generation and diffusion-based continuous visual generation, or the same backbone by discretizing the visual data to use autoregression for both text and visual generation. In this paper, we propose to study a simple idea: share one transformer for both autoregression and diffusion. The feasibility comes from two main aspects: (i) Transformer is successfully applied to diffusion for visual generation, and (ii) transformer training for autoregression and diffusion is very similar, and the difference merely lies in that diffusion uses bidirectional attention mask and autoregression uses causal attention mask. Experimental results show that our approach achieves comparable image generation performance to current state-of-the-art methods as well as maintains the text generation capability. The project is publicly available at https://monoformer.github.io/.

For agents

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

get_harvested_code_for_paper("2409.16280")
get_code_for_paper("2409.16280")
have("2409.16280")

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

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

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

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

Connect an agent — have() is free.