SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.15809 · NeurIPS · 2025

MMaDA: Multimodal Large Diffusion Language Models

Bowen Li, Mengdi Wang, Yunhai Tong, Ling Yang, Ye Tian, Xinchen Zhang, Ke Shen

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 8 failures of our instrument; 1 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/2505.15809.json · badge: /api/ran/2505.15809.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
Gen-Verse/MMaDA canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/models/common_modules.py
pointer only (licence: MIT); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
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 Xingyu-Zheng/BiDM, 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.

add_gumbel_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gen-Verse/MMaDA/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("a5334721ab55f48f")
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 ml-gsai/llada, 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.

add_gumbel_noise Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Gen-Verse/MMaDA/models/modeling_mmada.py
pointer only (licence: MIT); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("615ec9b280bef7c6")
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 shuita2333/PAD-codes, 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.

generate Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/generate.py
code served (permissive licence) · get_code("bdb7c183d8696b6b")
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 2, dtype family int, shape (2, 11) 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 torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Build a minimal model that satisfies the function's usage
class MockModel(nn.Module):
    def __init__(self, vocab_size=126337, hidden_dim=8):
        super().__init__()
        self.vocab_size = vocab_size
        self.hidden_dim = hidden_dim
        self.device = torch.device('cpu')
        # Minimal embedding and output layer
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.output = nn.Linear(hidden_dim, vocab_size)
    
    def forward(self, x, attention_bias=None):
        # x shape: (batch_size, seq_len)
        # Return object with .logits attribute
        embedded = self.embedding(x)  # (batch_size, seq_len, hidden_dim)
        logits = self.output(embedded)  # (batch_size, seq_len, vocab_size)
        
        class Output:
            pass
        
        out = Output()
        out.logits = logits
        return out

model = MockModel(vocab_size=126337, hidden_dim=8)
model.eval()

# Create prompt: (batch_size=2, prompt_length=3)
prompt = torch.tensor([[100, 101, 102], [103, 104, 105]], dtype=torch.long)

# Create attention_mask: (batch_size=2, seq_len=11)
# seq_len = prompt_length (3) + gen_length (8) = 11
attention_mask = torch.ones((2, 11), dtype=torch.bool)

ARGS = {
    'model': model,
    'prompt': prompt,
    'steps': 8,
    'gen_length': 8,
    'block_length': 8,
    'temperature': 0.5,
    'cfg_scale': 1.0,
    'remasking': 'low_confidence',
    'mask_id': 126336,
    'attention_mask': attention_mask,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family int, shape (2, 11) — shape (2, 11) 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
get_num_transfer_tokens Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/generate.py
pointer only (licence: MIT); the stored copy get_code serves, from ml-gsai/llada, is pointer only (licence: NONE) · get_code("6f22da9cc766ffbe")
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 ml-gsai/llada, 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.

get_num_transfer_tokens Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/models/modeling_mmada.py
pointer only (licence: MIT); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("65934529afeabeff")
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 shuita2333/PAD-codes, 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.

nonlinearity Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/models/common_modules.py
code served (permissive licence) · get_code("3137073275f8c21a")
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) and returned Tensor, ndim 2, dtype family float, shape (2, 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

torch.manual_seed(0)

# The function takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

x = torch.randn(2, 4)

ARGS = {
    "x": x
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 2, dtype family float, shape (2, 4) — shape (2, 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
unpack_time Ran
ran; our contract draft was wrong, not the code
Gen-Verse/MMaDA/models/common_modules.py
pointer only (licence: MIT); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("2d82abbef2c4addb")
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 Feng-Hong/WINO-DLLM, 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.

get_logger Not yet run
unverified (harvested, no recorded run)
Gen-Verse/MMaDA/models/logging.py
pointer only (licence: MIT); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("376bf22d5737fc2a")
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 Feng-Hong/WINO-DLLM, 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. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 7 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 4 the same month, 7 later) and 0 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
nonlinearity 156 other papers
132 dated earlier, 6 the same month, 18 later · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
Normalize 90 other papers
76 dated earlier, 3 the same month, 11 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
add_gumbel_noise 18 other papers
1 dated earlier, 17 later · 3 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2506.06295 (2025-06)
dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
2506.15735 (2025-06)
ContextBench: Modifying Contexts for Targeted Latent Activation
and 15 more not named here
get_num_transfer_tokens 15 other papers
1 dated earlier, 14 later · 1 only as an assembly brick
2502.09992 (2025-02)
Large Language Diffusion Models
2506.06295 (2025-06)
dLLM-Cache: Accelerating Diffusion Large Language Models with Adaptive Caching
2506.15735 (2025-06)
ContextBench: Modifying Contexts for Targeted Latent Activation
and 12 more not named here
get_logger 12 other papers
6 dated earlier, 3 the same month, 3 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2305.01938 (2023-05)
Doc2SoarGraph: Discrete Reasoning over Visually-Rich Table-Text Documents via Semantic-Oriented Hierarchical Graphs
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
and 9 more not named here
unpack_time 6 other papers
1 dated earlier, 2 the same month, 3 later
2503.03651 (2025-03)
DoraCycle: Domain-Oriented Adaptation of Unified Generative Model in Multimodal Cycles
2505.14671 (2025-05)
UniCTokens: Boosting Personalized Understanding and Generation via Unified Concept Tokens
2505.23380 (2025-05)
UniRL: Self-Improving Unified Multimodal Models via Supervised and Reinforcement Learning
and 3 more not named here
generate 1 other paper
1 later
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs

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

We introduce MMaDA, a novel class of multimodal diffusion foundation models designed to achieve superior performance across diverse domains such as textual reasoning, multimodal understanding, and text-to-image generation. The approach is distinguished by three key innovations: (i) MMaDA adopts a unified diffusion architecture with a shared probabilistic formulation and a modality-agnostic design, eliminating the need for modality-specific components. This architecture ensures seamless integration and processing across different data types. (ii) We implement a mixed long chain-of-thought (CoT) fine-tuning strategy that curates a unified CoT format across modalities. By aligning reasoning processes between textual and visual domains, this strategy facilitates cold-start training for the final reinforcement learning (RL) stage, thereby enhancing the model's ability to handle complex tasks from the outset. (iii) We propose UniGRPO, a unified policy-gradient-based RL algorithm specifically tailored for diffusion foundation models. Utilizing diversified reward modeling, UniGRPO unifies post-training across both reasoning and generation tasks, ensuring consistent performance improvements. Experimental results demonstrate that MMaDA-8B exhibits strong generalization capabilities as a unified multimodal foundation model. It surpasses powerful models like LLaMA-3-7B and Qwen2-7B in textual reasoning, outperforms Show-o and SEED-X in multimodal understanding, and excels over SDXL and Janus in text-to-image generation. These achievements highlight MMaDA's effectiveness in bridging the gap between pretraining and post-training within unified diffusion architectures, providing a comprehensive framework for future research and development. We open-source our code and trained models at: https://github.com/Gen-Verse/MMaDA

For agents

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

get_harvested_code_for_paper("2505.15809")
get_code_for_paper("2505.15809")
have("2505.15809")

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

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

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

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

Connect an agent — have() is free.