SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.10684 · NeurIPS · 2025

MDNS: Masked Diffusion Neural Sampler via Stochastic Optimal Control

Molei Tao, Guan-Horng Liu, Yuchen Zhu, Yongxin Chen, Wei Guo, Jaemoo Choi

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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; 3 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2508.10684.json · badge: /api/ran/2508.10684.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
yuchen-zhu-zyc/MDNS canonical (classifier label)
classifier basis: census
9 ran · 4 no recorded run
FunctionStatusWhere it lives
compute_axial_cis Ran
ran, violated the contract we drafted
yuchen-zhu-zyc/MDNS/model/vit_rope.py
pointer only (licence: NONE); the stored copy get_code serves, from naver-ai/rope-vit, is pointer only (licence: NOASSERTION) · get_code("ca0035b41d2fa8b4")
How it ran

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

ess Ran
ran; our contract draft was wrong, not the code
yuchen-zhu-zyc/MDNS/utils.py
pointer only (licence: NONE) · get_code("ac7a3634765bc430")
How it ran

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

init_random_2d_freqs Ran
ran, honoured the contract we drafted
yuchen-zhu-zyc/MDNS/model/vit_rope.py
pointer only (licence: NONE); the stored copy get_code serves, from naver-ai/rope-vit, is pointer only (licence: NOASSERTION) · get_code("241579c505724f68")
How it ran

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

ising2d_get_all_configs Ran
ran, honoured the contract we drafted
yuchen-zhu-zyc/MDNS/utils_ising.py
pointer only (licence: NONE) · get_code("7e0bdb0797632655")
How it ran

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

ising2d_ham Ran
ran; our contract draft was wrong, not the code
yuchen-zhu-zyc/MDNS/utils_ising.py
pointer only (licence: NONE) · get_code("856bb78ae55c23b6")
How it ran

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

ising2d_part_func Ran
ran, honoured the contract we drafted
yuchen-zhu-zyc/MDNS/utils_ising.py
pointer only (licence: NONE) · get_code("b22169bdab2d9b6c")
How it ran

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

loss_ce Ran
ran; our contract draft was wrong, not the code
yuchen-zhu-zyc/MDNS/utils_train.py
pointer only (licence: NONE) · get_code("694badfc2ffb7577")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchen-zhu-zyc/MDNS 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; our contract draft was wrong, not the code
yuchen-zhu-zyc/MDNS/utils.py
pointer only (licence: NONE) · get_code("399f607de3e3cec3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchen-zhu-zyc/MDNS 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_logits Ran
ran; our contract draft was wrong, not the code
yuchen-zhu-zyc/MDNS/utils.py
pointer only (licence: NONE) · get_code("423a4108584be544")
How it ran

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

compute_mixed_cis Not yet run
unverified (harvested, no recorded run)
yuchen-zhu-zyc/MDNS/model/vit_rope.py
pointer only (licence: NONE) · get_code("e231579fccd77a61")
How it ran

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

potts2d_ham Not yet run
unverified (harvested, no recorded run)
yuchen-zhu-zyc/MDNS/utils_potts.py
pointer only (licence: NONE) · get_code("4a4de16bb6ca9333")
How it ran

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

potts2d_magnetization Not yet run
unverified (harvested, no recorded run)
yuchen-zhu-zyc/MDNS/utils_potts.py
pointer only (licence: NONE) · get_code("8242f05d8627a1e7")
How it ran

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

potts2d_magnetization_all Not yet run
unverified (harvested, no recorded run)
yuchen-zhu-zyc/MDNS/utils_potts.py
pointer only (licence: NONE) · get_code("f2c91dce7683fd12")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, yuchen-zhu-zyc/MDNS 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 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 1 later) and 11 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
init_random_2d_freqs 2 other papers
1 dated earlier, 1 later
2403.13298 (2024-03)
Rotary Position Embedding for Vision Transformer
2510.09734 (2025-10)
ARROW: An Adaptive Rollout and Routing Method for Global Weather Forecasting
compute_axial_cis 1 other paper
1 dated earlier
2403.13298 (2024-03)
Rotary Position Embedding for Vision Transformer

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-24.

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 study the problem of learning a neural sampler to generate samples from discrete state spaces where the target probability mass function π ∝ e -U is known up to a normalizing constant, which is an important task in fields such as statistical physics, machine learning, combinatorial optimization, etc. To better address this challenging task when the state space has a large cardinality and the distribution is multi-modal, we propose Masked Diffusion Neural Sampler (MDNS), a novel framework for training discrete neural samplers by aligning two path measures through a family of learning objectives, theoretically grounded in the stochastic optimal control of the continuous-time Markov chains. We validate the efficiency and scalability of MDNS through extensive experiments on various distributions with distinct statistical properties, where MDNS learns to accurately sample from the target distributions despite the extremely high problem dimensions and outperforms other learning-based baselines by a large margin. A comprehensive study of ablations and extensions is also provided to demonstrate the efficacy and potential of the proposed framework. Our code is available at https://github.com/yuchen-zhu-zyc/MDNS. * Equal contribution, random order. 39th Conference on Neural Information Processing Systems (NeurIPS 2025).

For agents

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

get_harvested_code_for_paper("2508.10684")
get_code_for_paper("2508.10684")
have("2508.10684")

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

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

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

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

Connect an agent — have() is free.