SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.07754 · NeurIPS · 2024

Diffusion of Thought: Chain-of-Thought Reasoning in Diffusion Language Models

Xin Jiang, Zhenguo Li, Liheng Chen, Han Shi, Jiahui Gao, Lingpeng Kong, Lin Zheng, Jiacheng Ye, Shansan Gong, Wei Bi, Chuan Wu

arXiv · PDF · Open in the Atlas

Code that ran

16 of 17 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; 1 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-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/2402.07754.json · badge: /api/ran/2402.07754.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/diffusion-of-thoughts canonical (classifier label)
classifier basis: census
16 ran · 1 no recorded run
FunctionStatusWhere it lives
interpolate_fn Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/dpm_solver_pytorch.py
pointer only (licence: NONE) · get_code("6a35b62fbc80f70a")
How it ran

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

chinchilla_tokens_given_params Ran
ran, honoured the contract we drafted
hkunlp/diffusion-of-thoughts/lib/scalinglaw_utils.py
pointer only (licence: NONE) · get_code("0069140a6378a42c")
How it ran

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

cross_entropy Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/ops.py
pointer only (licence: NONE) · get_code("9107f75d51daf1f9")
How it ran

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

expand_dims Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/dpm_solver_pytorch.py
pointer only (licence: NONE) · get_code("e6110366588c5c65")
How it ran

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

flops_per_step Ran
ran, honoured the contract we drafted
hkunlp/diffusion-of-thoughts/lib/scalinglaw_utils.py
pointer only (licence: NONE) · get_code("c3165980fb5a5f15")
How it ran

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

gather_list Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/ddp.py
pointer only (licence: NONE) · get_code("99c45a1f3fc5225f")
How it ran

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

gaussian_kl Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hkunlp/diffusion-of-thoughts/lib/ops.py
pointer only (licence: NONE) · get_code("33aa1ef9e2fea9b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hkunlp/diffusion-of-thoughts 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_gsm8k_dataset Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/datasets.py
pointer only (licence: NONE) · get_code("94d525bb3171befb")
How it ran

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

model_wrapper Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hkunlp/diffusion-of-thoughts/lib/dpm_solver_pytorch.py
pointer only (licence: NONE) · get_code("a94200de9f3aeda4")
How it ran

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

params Ran
ran, honoured the contract we drafted
hkunlp/diffusion-of-thoughts/lib/scalinglaw_utils.py
pointer only (licence: NONE) · get_code("759753896fed3fb6")
How it ran

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

residual_linear Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hkunlp/diffusion-of-thoughts/lib/models.py
pointer only (licence: NONE) · get_code("7dacc8a9f60e97db")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hkunlp/diffusion-of-thoughts 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, honoured the contract we drafted
hkunlp/diffusion-of-thoughts/lib/rotary.py
pointer only (licence: NONE); the stored copy get_code serves, from hxixixh/gumbel-distill, is pointer only (licence: NONE) · get_code("8526ce179df04bd4")
How it ran

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

split_5by5_target Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/datasets.py
pointer only (licence: NONE) · get_code("3b970db7d9880566")
How it ran

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

split_gsm8k_target Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/datasets.py
pointer only (licence: NONE) · get_code("173070ccc58cf5ad")
How it ran

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

wrap_main Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/ddp.py
pointer only (licence: NONE) · get_code("0059aa1faf5fc1eb")
How it ran

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

wrap_main_torchrun Ran
ran; our contract draft was wrong, not the code
hkunlp/diffusion-of-thoughts/lib/ddp.py
pointer only (licence: NONE) · get_code("32072d093f3fd334")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hkunlp/diffusion-of-thoughts 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 Not yet run
unverified (harvested, no recorded run)
hkunlp/diffusion-of-thoughts/lib/rotary.py
pointer only (licence: NONE); the stored copy get_code serves, from gfnorg/diffusion-finetuning, is pointer only (licence: NONE) · get_code("05816c8a9ef162b5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hkunlp/diffusion-of-thoughts 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 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 12 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
expand_dims 39 other papers
16 dated earlier, 1 the same month, 19 later, 3 same year, order not determinable · 4 only as an assembly brick
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2202.09778 (2022-02)
Pseudo Numerical Methods for Diffusion Models on Manifolds
2206.00927 (2022-06)
DPM-Solver: A Fast ODE Solver for Diffusion Probabilistic Model Sampling in Around 10 Steps
and 36 more not named here
interpolate_fn 34 other papers
13 dated earlier, 1 the same month, 17 later, 3 same year, order not determinable
2112.10752 (2021-12)
High-Resolution Image Synthesis with Latent Diffusion Models
2211.01095 (2022-11)
DPM-Solver++: Fast Solver for Guided Sampling of Diffusion Probabilistic Models
2212.09478 (2022-12)
MM-Diffusion: Learning Multi-Modal Diffusion Models for Joint Audio and Video Generation
and 31 more not named here
rotate_half 8 other papers
2 dated earlier, 1 the same month, 5 later · 1 only as an assembly brick
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2401.12522 (2024-01)
BiTA: Bi-Directional Tuning for Lossless Acceleration in Large Language Models
2402.11809 (2024-02)
Generation Meets Verification: Accelerating Large Language Model Inference with Smart Parallel Auto-Correct Decoding
and 5 more not named here
apply_rotary_pos_emb 2 other papers
1 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
residual_linear 2 other papers
1 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

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

Recently, diffusion models have garnered significant interest in the field of text processing due to their many potential advantages compared to conventional autoregressive models. In this work, we propose Diffusion-of-Thought (DoT), a novel approach that integrates diffusion models with Chain-of-Thought, a well-established technique for improving the reasoning ability of autoregressive language models. In contrast to autoregressive language models that make decisions in a left-to-right, token-by-token manner, DoT allows reasoning steps to diffuse over time through a diffusion language model and offers greater flexibility in trading-off computation for reasoning performance. Our experimental results demonstrate the effectiveness of DoT in multi-digit multiplication, boolean logic, and grade school math problems, with a small diffusion model outperforming a much larger autoregressive model in both efficiency and accuracy. In addition to that, DoT showcases promising self-correction abilities and benefits from existing reasoningenhancing techniques like self-consistency decoding. Our findings contribute to the understanding and development of reasoning with diffusion language models.

For agents

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

get_harvested_code_for_paper("2402.07754")
get_code_for_paper("2402.07754")
have("2402.07754")

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

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

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

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

Connect an agent — have() is free.