SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.19935 · ICML · 2025

Any-Order GPT as Masked Diffusion Model: Decoupling Formulation and Architecture

Zhenguo Li, Kenji Kawaguchi, Tianyang Hu, Jiacheng Sun, Zhi-Ming Ma, Shuchen Xue, Tianyu Xie, Zijin Feng

arXiv · PDF · Open in the Atlas

Code that ran

11 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 6 failures of our instrument; 3 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/2506.19935.json · badge: /api/ran/2506.19935.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
scxue/ao-gpt-mdm canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
scxue/AO-GPT-MDM community
Papers with Code archive
4 ran · 1 no recorded run
FunctionStatusWhere it lives
AOGPT Ran
ran on a synthesized input · constructed an object; no result was computed
scxue/AO-GPT-MDM/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("2c1c6667a1ed50a0")
How it ran

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

CausalSelfAttention Ran
ran on a synthesized input · constructed an object; no result was computed
scxue/AO-GPT-MDM/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("311dd4150ecf301e")
How it ran

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

FinalLayer Ran
ran on a synthesized input · constructed an object; no result was computed
scxue/AO-GPT-MDM/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("f3bdc88f4e362aea")
How it ran

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

RMSNorm Ran
ran on a synthesized input · constructed an object; no result was computed
scxue/AO-GPT-MDM/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("7d84ead0fe5b239f")
How it ran

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

gumbel_softmax Ran
ran; our contract draft was wrong, not the code
scxue/ao-gpt-mdm/catsample.py
pointer only (licence: NONE); the stored copy get_code serves, from Dongjae0324/infodis, is pointer only (licence: NONE) · get_code("a017bf60b761f427")
How it ran

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

lm1b_detokenizer Ran
ran; our contract draft was wrong, not the code
scxue/ao-gpt-mdm/data.py
pointer only (licence: NONE); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("576e1b9b9bcae8ff")
How it ran

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

modulate Ran
ran, honoured the contract we drafted
scxue/ao-gpt-mdm/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("62fcb3912a967a50")
How it ran

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

ptb_detokenizer Ran
ran; our contract draft was wrong, not the code
scxue/ao-gpt-mdm/data.py
pointer only (licence: NONE); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("9f7fbdbe7ca280e0")
How it ran

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

sample_categorical Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
scxue/ao-gpt-mdm/catsample.py
pointer only (licence: NONE) · get_code("363f8d07ea5498f8")
How it ran

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

top_p_sampling_from_probs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
scxue/ao-gpt-mdm/catsample.py
pointer only (licence: NONE) · get_code("7f1c917dfe447509")
How it ran

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

wt_detokenizer Ran
ran; our contract draft was wrong, not the code
scxue/ao-gpt-mdm/data.py
pointer only (licence: NONE); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("46c10627206a7795")
How it ran

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

Block Not yet run
unverified (harvested, no recorded run)
scxue/AO-GPT-MDM/model_AOGPT_AdaLN6_NoRep_cond_128_trunc_qknorm.py
pointer only (licence: NONE) · get_code("ad3472bf14169653")
How it ran

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

add_scale_fused Not yet run
unverified (harvested, no recorded run)
scxue/ao-gpt-mdm/model_AOGPT_generate.py
pointer only (licence: NONE) · get_code("d3ed17c7a19c2660")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, scxue/ao-gpt-mdm 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_fused Not yet run
unverified (harvested, no recorded run)
scxue/ao-gpt-mdm/model_AOGPT_generate.py
pointer only (licence: NONE) · get_code("ae815ba2af68a57f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, scxue/ao-gpt-mdm 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 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 1 the same month, 5 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
modulate
brick of this paper's assembly: helper
27 other papers
19 dated earlier, 1 the same month, 6 later, 1 undated · 2 only as an assembly brick
2312.15736 (2023-12)
Towards Real-World Blind Face Restoration with Generative Diffusion Prior
2404.11199 (2024-04)
RiboDiffusion: Tertiary Structure-based RNA Inverse Folding with Generative Diffusion Models
2405.17527 (2024-05)
Unisolver: PDE-Conditional Transformers Towards Universal Neural PDE Solvers
and 24 more not named here
lm1b_detokenizer 11 other papers
5 dated earlier, 6 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2412.10193 (2024-12)
Simple Guidance Mechanisms for Discrete Diffusion Models
and 8 more not named here
ptb_detokenizer 10 other papers
4 dated earlier, 6 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2503.09573 (2025-03)
BLOCK DIFFUSION: INTERPOLATING BETWEEN AU-TOREGRESSIVE AND DIFFUSION LANGUAGE MODELS
and 7 more not named here
wt_detokenizer 10 other papers
4 dated earlier, 6 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2503.09573 (2025-03)
BLOCK DIFFUSION: INTERPOLATING BETWEEN AU-TOREGRESSIVE AND DIFFUSION LANGUAGE MODELS
and 7 more not named here
gumbel_softmax 4 other papers
3 dated earlier, 1 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2405.20971 (2024-05)
Amortizing intractable inference in diffusion models for vision, language, and control
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
and 1 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-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

Large language models (LLMs) predominantly use autoregressive (AR) approaches, but masked diffusion models (MDMs) are emerging as viable alternatives. A key challenge in comparing AR and MDM paradigms is their typical architectural difference: AR models are often decoder-only, while MDMs have largely been encoder-only. This practice of changing both the modeling paradigm and architecture simultaneously makes direct comparisons unfair, as it's hard to distinguish whether observed differences stem from the paradigm itself or the architectural shift. This research evaluates MDMs within a decoder-only framework to: (1) equitably compare MDM (as Any-Order AR, or AO-AR) and standard AR paradigms. Our investigation suggests that the standard AO-AR objective, which averages over all token permutations, may benefit from refinement, as many permutations appear less informative compared to the language's inherent left-to-right structure. (2) Investigate architectural influences (decoder-only vs. encoder-only) within MDMs. We demonstrate that while encoder-only MDMs model a simpler conditional probability space, decoder-only MDMs can achieve dramatic generation speedups (∼ 25×) and comparable perplexity with temperature annealing despite modeling a vastly larger space, highlighting key trade-offs. This work thus decouples core paradigm differences from architectural influences, offering insights for future model design. Code is available at https://github.com/scxue/AO-GPT-MDM.

For agents

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

get_harvested_code_for_paper("2506.19935")
get_code_for_paper("2506.19935")
have("2506.19935")

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

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

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

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

Connect an agent — have() is free.