SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2510.00502 · ICLR · 2025

Diffusion Alignment as Variational Expectation-Maximization

Mila -Quebec, Minsu Kim, Jinkyoo Park, Taeyoung Yun, Jaewoo Lee, Sanghyeok Choi, Sujin Yun, Inhyuck Song, Hyeongyu Kang, Woocheol Shin, Kiyoung Om, Mongooseai, and 1 more

arXiv · PDF · Open in the Atlas

Code that ran

7 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2510.00502.json · badge: /api/ran/2510.00502.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
Jaewoopudding/dav canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
batch_dna_detokenize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Jaewoopudding/dav/discrete-sequence/dataloader_gosai.py
pointer only (licence: MIT); the stored copy get_code serves, from ChenyuWang-Monica/DRAKES, is pointer only (licence: NONE) · get_code("4ec57ee85c940684")
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 ChenyuWang-Monica/DRAKES, 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.

binary_discretization Ran
ran; our contract draft was wrong, not the code
Jaewoopudding/dav/discrete-sequence/noise_schedule.py
pointer only (licence: MIT); the stored copy get_code serves, from ChenyuWang-Monica/DRAKES, is pointer only (licence: NONE) · get_code("9b9814cca50339d7")
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 ChenyuWang-Monica/DRAKES, 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.

dna_detokenize Ran
ran; our contract draft was wrong, not the code
Jaewoopudding/dav/discrete-sequence/dataloader_gosai.py
pointer only (licence: MIT); the stored copy get_code serves, from ChenyuWang-Monica/DRAKES, is pointer only (licence: NONE) · get_code("b988ba95b058558a")
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 ChenyuWang-Monica/DRAKES, 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.

dna_tokenize Ran
ran, honoured the contract we drafted
Jaewoopudding/dav/discrete-sequence/dataloader_gosai.py
pointer only (licence: MIT); the stored copy get_code serves, from ChenyuWang-Monica/DRAKES, is pointer only (licence: NONE) · get_code("733f359f0f876fb7")
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 ChenyuWang-Monica/DRAKES, 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_artifact Ran
ran; our contract draft was wrong, not the code
Jaewoopudding/dav/discrete-sequence/oracle.py
code served (permissive licence) · get_code("c6e9a679eb6b4c6e")
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 Mock. The image it ran in was not recorded. If your copy returns the same type 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 wandb
from unittest.mock import Mock, MagicMock

# Mock the wandb.Api to avoid network calls
def mock_artifact(*args, **kwargs):
    mock_artifact_obj = Mock()
    mock_artifact_obj.download = Mock(return_value="/fake/path")
    return mock_artifact_obj

# Patch wandb.Api
original_api = wandb.Api
wandb.Api = Mock(return_value=Mock(artifact=mock_artifact))

ARGS = {
    'name': 'test_artifact',
    'project': 'test_project',
    'alias': 'latest'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, wandb — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Mock — a Mock output has no array shape of its own; none is stated
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_noise Ran
ran; our contract draft was wrong, not the code
Jaewoopudding/dav/discrete-sequence/noise_schedule.py
pointer only (licence: MIT); the stored copy get_code serves, from ChenyuWang-Monica/DRAKES, is pointer only (licence: NONE) · get_code("fe6314378d2def00")
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 ChenyuWang-Monica/DRAKES, 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.

load_dataset_from_files Ran
ran; our contract draft was wrong, not the code
Jaewoopudding/dav/discrete-sequence/finetune.py
pointer only (licence: MIT); the stored copy get_code serves, from masa-ue/svdd, is pointer only (licence: NONE) · get_code("6cdca5ee86893cc5")
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 masa-ue/svdd, 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_dataset_by_model_personal Not yet run
unverified (harvested, no recorded run)
Jaewoopudding/dav/discrete-sequence/oracle.py
code served (permissive licence) · get_code("2f655a4ddd34f1da")
How it ran

no invocation recorded.

get_model_by_dataset_personal Not yet run
unverified (harvested, no recorded run)
Jaewoopudding/dav/discrete-sequence/oracle.py
code served (permissive licence) · get_code("a80bdcd742a4be5b")
How it ran

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 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 5 later) and 3 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
get_noise 6 other papers
5 dated earlier, 1 later · 1 only as an assembly brick
2410.13643 (2024-10)
Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein Design
2502.01384 (2025-02)
Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods
2503.00307 (2025-03)
Remasking Discrete Diffusion Models with Inference-Time Scaling
and 3 more not named here
binary_discretization 5 other papers
4 dated earlier, 1 later
2410.13643 (2024-10)
Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein Design
2412.10193 (2024-12)
Simple Guidance Mechanisms for Discrete Diffusion Models
2502.01384 (2025-02)
Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods
and 2 more not named here
batch_dna_detokenize 3 other papers
2 dated earlier, 1 later
2410.13643 (2024-10)
Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein Design
2502.01384 (2025-02)
Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods
2601.19232 (2026-01)
Structure-based RNA Design by Step-wise Optimization of Latent Diffusion Model
dna_detokenize 3 other papers
2 dated earlier, 1 later
2410.13643 (2024-10)
Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein Design
2502.01384 (2025-02)
Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods
2601.19232 (2026-01)
Structure-based RNA Design by Step-wise Optimization of Latent Diffusion Model
dna_tokenize 3 other papers
2 dated earlier, 1 later
2410.13643 (2024-10)
Fine-Tuning Discrete Diffusion Models via Reward Optimization with Applications to DNA and Protein Design
2502.01384 (2025-02)
Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods
2601.19232 (2026-01)
Structure-based RNA Design by Step-wise Optimization of Latent Diffusion Model
load_dataset_from_files 1 other paper
1 dated earlier
2406.07524 (2024-06)
Simple and Effective Masked Diffusion 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 alignment aims to optimize diffusion models for the downstream objective. While existing methods based on reinforcement learning or direct backpropagation achieve considerable success in maximizing rewards, they often suffer from reward over-optimization and mode collapse. We introduce Diffusion Alignment as Variational Expectation-Maximization (DAV), a framework that formulates diffusion alignment as an iterative process alternating between two complementary phases: the E-step and the M-step. In the E-step, we employ test-time search to generate diverse and reward-aligned samples. In the M-step, we refine the diffusion model using samples discovered by the E-step. We demonstrate that DAV can optimize reward while preserving diversity for both continuous and discrete tasks: text-to-image synthesis and DNA sequence design. Our code is available at https://github.com/Jaewoopudding/dav.

For agents

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

get_harvested_code_for_paper("2510.00502")
get_code_for_paper("2510.00502")
have("2510.00502")

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

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

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

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

Connect an agent — have() is free.