SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.17891 · ICLR · 2025

Scaling Diffusion Language Models via Adaptation from Autoregressive Models

Hao Peng, Peilin Zhao, Yizhe Zhang, Jiawei Han, Lingpeng Kong, Lin Zheng, Jiacheng Ye, Chenxin An, 𝑥, Shansan Gong, Mukai Li, " 𝑥 # 𝑥 $ 𝑥, and 2 more

arXiv · PDF · Open in the Atlas

Code that ran

16 of 22 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; 4 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 12 failures of our instrument; 6 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2410.17891.json · badge: /api/ran/2410.17891.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
HKUNLP/DiffuLLaMA canonical (classifier label)
classifier basis: census
16 ran · 6 no recorded run
FunctionStatusWhere it lives
repeat_kv Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/model_llama.py
pointer only (licence: NONE) · get_code("30d7eec482ebf6b1")
How it ran

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

apply_rotary_pos_emb Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/model_llama.py
pointer only (licence: NONE) · get_code("bac65c3dafaec040")
How it ran

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

code Ran
ran, honoured the contract we drafted
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/packed_dataset.py
pointer only (licence: NONE); the stored copy get_code serves, from hrtan/fastmix, is pointer only (licence: NONE) · get_code("fa298642043e1282")
How it ran

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

extract_local Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/prepare_input.py
pointer only (licence: NONE) · get_code("64ec6a16fb572f44")
How it ran

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

extract_local Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/ulysses_attn/prepare_inputs.py
pointer only (licence: NONE) · get_code("5e09c24645115dd9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HKUNLP/DiffuLLaMA 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_samples Ran
ran, honoured the contract we drafted
HKUNLP/DiffuLLaMA/model.py
pointer only (licence: NONE) · get_code("2d05c810fd8d785d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HKUNLP/DiffuLLaMA 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_anneal_attn_mask Ran
ran, honoured the contract we drafted
HKUNLP/DiffuLLaMA/evaluation/eval-diffullama.py
pointer only (licence: NONE) · get_code("ee7bd71eac25f44d")
How it ran

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

maybe_get_set_global_memory_buffer Ran
ran, honoured the contract we drafted
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/async_communication.py
pointer only (licence: NONE); the stored copy get_code serves, from zhiyuanhubj/LongRecipe, is pointer only (licence: NONE) · get_code("ce7333f42d88b05d")
How it ran

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

maybe_get_set_global_memory_buffer_bwd Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/async_communication.py
pointer only (licence: NONE); the stored copy get_code serves, from zhiyuanhubj/LongRecipe, is pointer only (licence: NONE) · get_code("ee03eab03d798c57")
How it ran

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

maybe_repeat_kv_bwd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/lightseq_async_attn.py
pointer only (licence: NONE) · get_code("d7b82e7e46f9cee8")
How it ran

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

maybe_repeat_kv_fwd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/lightseq_async_attn.py
pointer only (licence: NONE) · get_code("3d82586ab3888495")
How it ran

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

prepare_dist_flash_attn_inputs Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/prepare_input.py
pointer only (licence: NONE) · get_code("9daba25cd657ac06")
How it ran

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

prepare_ulysses_attn_inputs Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/ulysses_attn/prepare_inputs.py
pointer only (licence: NONE) · get_code("737366305cfbf977")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HKUNLP/DiffuLLaMA 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 Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/evaluation/eval-diffullama.py
pointer only (licence: NONE) · get_code("dd2d39c8d8eff4d5")
How it ran

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

rotate_half Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/model_llama.py
pointer only (licence: NONE) · get_code("b99eea6376d1e212")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HKUNLP/DiffuLLaMA 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_logits Ran
ran; our contract draft was wrong, not the code
HKUNLP/DiffuLLaMA/evaluation/eval-diffullama.py
pointer only (licence: NONE) · get_code("fd2fe76b57111989")
How it ran

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

checkpoint_end_with_flash_attention Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/monkey_patch.py
pointer only (licence: NONE) · get_code("59adcbbcc9bf1cbc")
How it ran

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

checkpoint_last_module Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/monkey_patch.py
pointer only (licence: NONE) · get_code("7517e14a19d34e0f")
How it ran

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

get_flash_attn_out_from_global_buffer Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/monkey_patch.py
pointer only (licence: NONE) · get_code("89e4348b4cb177bd")
How it ran

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

is_last_time Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/dist_flash_attn/async_communication.py
pointer only (licence: NONE); the stored copy get_code serves, from zhiyuanhubj/LongRecipe, is pointer only (licence: NONE) · get_code("4be6bef6c83e9c27")
How it ran

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

new_decoder_forward Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/ulysses_attn/monkey_patch.py
pointer only (licence: NONE) · get_code("2fcefe3ddd3fa8eb")
How it ran

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

new_flash_attn_forward Not yet run
unverified (harvested, no recorded run)
HKUNLP/DiffuLLaMA/DiffuLLaMA-training/easy_context/ulysses_attn/monkey_patch.py
pointer only (licence: NONE) · get_code("9949ec185b470d6e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, HKUNLP/DiffuLLaMA 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 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 4 the same month, 4 later) and 15 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
rotate_half 360 other papers
184 dated earlier, 25 the same month, 142 later, 6 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
repeat_kv 243 other papers
119 dated earlier, 24 the same month, 96 later, 2 same year, order not determinable, 2 undated · 22 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
and 240 more not named here
apply_rotary_pos_emb 94 other papers
27 dated earlier, 14 the same month, 49 later, 1 same year, order not determinable, 3 undated · 6 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
2309.11674 (2023-09)
A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models
and 91 more not named here
code 5 other papers
2 dated earlier, 1 the same month, 2 later
2401.02385 (2024-01)
TinyLlama: An Open-Source Small Language Model
2406.06046 (2024-06)
MATES : Model-Aware Data Selection for Efficient Pretraining with Data Influence Models
2410.08102 (2024-10)
Efficient Pretraining Data Selection for Language Models via Multi-Actor Collaboration
and 2 more not named here
is_last_time 1 other paper
1 dated earlier
2409.00509 (2024-09)
LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Models
maybe_get_set_global_memory_buffer 1 other paper
1 dated earlier
2409.00509 (2024-09)
LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Models
maybe_get_set_global_memory_buffer_bwd 1 other paper
1 dated earlier
2409.00509 (2024-09)
LongRecipe: Recipe for Efficient Long Context Generalization in Large Language Models

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

Diffusion Language Models (DLMs) have emerged as a promising new paradigm for text generative modeling, potentially addressing limitations of autoregressive (AR) models. However, current DLMs have been studied at a smaller scale compared to their AR counterparts and lack fair comparison on language modeling benchmarks. Additionally, training diffusion models from scratch at scale remains challenging. Given the prevalence of open-source AR language models, we propose adapting these models to build text diffusion models. We demonstrate connections between AR and diffusion modeling objectives and introduce a simple continual pre-training approach for training diffusion models. Through systematic evaluation on language modeling, reasoning, and commonsense benchmarks, we show that we can convert AR models ranging from 127M to 7B parameters (GPT2 and LLaMA) into diffusion models DiffuGPT and DiffuLLaMA, using less than 200B tokens for training. Our experimental results reveal that these models outperform earlier DLMs and are competitive with their AR counterparts. We release a suite of DLMs (127M-355M-7B) capable of generating fluent text, performing in-context learning, filling in the middle without prompt re-ordering, and following instructions. https://github.com/HKUNLP/DiffuLLaMA

For agents

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

get_harvested_code_for_paper("2410.17891")
get_code_for_paper("2410.17891")
have("2410.17891")

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

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

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

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

Connect an agent — have() is free.