SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.22765 · 2026

Uniform Diffusion Models Revisited: Leave-One-Out Denoiser and Absorbing State Reformulation

Alain Durmus, Eric Xing, Eric Moulines, Dario Shariatian, Umut Simsekli, Polytechnique, Samson Gourevitch, Yazid Janati, Ecole Cmap

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; 0 honoured the contract we drafted, 1 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/2605.22765.json · badge: /api/ran/2605.22765.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
samsongourevitch/rev_udm canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
cross_entropy_per_token Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
samsongourevitch/rev_udm/src/ddm.py
code served (permissive licence) · get_code("42095468313b83f3")
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 float, shape (2, 3) 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)

# Define tensors with distinct sizes for different dimensions
batch_size = 2
seq_len = 3
vocab_size = 4

# logits: shape (batch_size, seq_len, vocab_size)
logits = torch.randn(batch_size, seq_len, vocab_size, dtype=torch.float32)

# x0: shape (batch_size, seq_len) - ground truth token indices
x0 = torch.randint(0, vocab_size, (batch_size, seq_len), dtype=torch.long)

# xt: shape (batch_size, seq_len) - noisy token indices
xt = torch.randint(0, vocab_size, (batch_size, seq_len), dtype=torch.long)

# alpha_t: shape (batch_size, 1, 1) or scalar - noise schedule parameter
alpha_t = torch.tensor([0.5], dtype=torch.float32).reshape(1, 1, 1)

# model_prediction_type: string parameter
model_prediction_type = 'mean_loo'

ARGS = {
    'logits': logits,
    'x0': x0,
    'xt': xt,
    'alpha_t': alpha_t,
    'model_prediction_type': model_prediction_type,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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, 3) — shape (2, 3) 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
fsspec_exists Ran
ran, violated the contract we drafted
samsongourevitch/rev_udm/trainer_sudoku.py
code served (permissive licence) · get_code("f13d3a0d1019499f")
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 bool, ndim 0, dtype family float, shape () 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 fsspec
import tempfile
import os

# Create a temporary file to test with
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt') as f:
    temp_file = f.name
    f.write("test content")

try:
    # Test with a local file that exists
    ARGS = {
        "filename": temp_file
    }
finally:
    # Clean up
    if os.path.exists(temp_file):
        os.remove(temp_file)
    # Redefine ARGS with a path (file doesn't need to exist for the test setup)
    ARGS = {
        "filename": "/tmp/test_file.txt"
    }
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
fsspec — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () 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
lm1b_detokenizer Ran
ran; our contract draft was wrong, not the code
samsongourevitch/rev_udm/src/dataloader.py
pointer only (licence: MIT); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("576e1b9b9bcae8ff")
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 jdeschena/blockgen, 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.

make_loader Ran
ran; our contract draft was wrong, not the code
samsongourevitch/rev_udm/trainer_sudoku.py
code served (permissive licence) · get_code("1a232c6b0bbfe2ad")
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 DataLoader. 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 torch.nn as nn
from torch.utils.data import DataLoader, Dataset

torch.manual_seed(0)

# Stand-in tokenizer
class SimpleTokenizer:
    def __call__(self, text):
        return {"input_ids": torch.tensor([1, 2, 3]), "attention_mask": torch.tensor([1, 1, 1])}

# Stand-in dataset
class SimpleDataset(Dataset):
    def __init__(self, path, tokenizer, cutoff_len, max_samples):
        self.path = path
        self.tokenizer = tokenizer
        self.cutoff_len = cutoff_len
        self.max_samples = max_samples
        self.length = min(2, max_samples) if max_samples else 2
    
    def __len__(self):
        return self.length
    
    def __getitem__(self, idx):
        return {
            "input_ids": torch.randint(0, 100, (4,)),
            "attention_mask": torch.ones(4),
            "labels": torch.randint(0, 100, (4,))
        }

# Stand-in config
class ConfigLoader:
    def __init__(self):
        self.batch_size = 2
        self.eval_batch_size = 2
        self.train_num_workers = 0
        self.eval_num_workers = 0
        self.pin_memory = False

class ConfigData:
    def __init__(self):
        self.max_train_samples = 10
        self.max_valid_samples = 5
        self.cutoff_len = 512

class Config:
    def __init__(self):
        self.loader = ConfigLoader()
        self.data = ConfigData()

# Path getter function
def simple_path_getter(config, split):
    return f"/fake/path/{split}/data.txt"

# Simple collate function
def simple_collate_fn(batch):
    return {
        "input_ids": torch.stack([item["input_ids"] for item in batch]),
        "attention_mask": torch.stack([item["attention_mask"] for item in batch]),
        "labels": torch.stack([item["labels"] for item in batch])
    }

# Build arguments
config = Config()
tokenizer = SimpleTokenizer()
split = "train"
dataset_cls = SimpleDataset
collate_fn = simple_collate_fn
path_getter = simple_path_getter
path_arg = "path"

ARGS = {
    "config": config,
    "tokenizer": tokenizer,
    "split": split,
    "dataset_cls": dataset_cls,
    "collate_fn": collate_fn,
    "path_getter": path_getter,
    "path_arg": path_arg
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not 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
ptb_detokenizer Ran
ran; our contract draft was wrong, not the code
samsongourevitch/rev_udm/src/dataloader.py
pointer only (licence: MIT); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("9f7fbdbe7ca280e0")
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 jdeschena/blockgen, 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.

to_denoiser_logits Ran
ran; our contract draft was wrong, not the code
samsongourevitch/rev_udm/src/ddm.py
code served (permissive licence) · get_code("7687a25084ab724d")
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 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)

# Test case 1: model_prediction_type == 'mean'
logits_mean = torch.randn(2, 4)
xt_mean = torch.randint(0, 4, (2,))
alpha_t_mean = torch.tensor(0.5)

ARGS = {
    'logits': logits_mean,
    'xt': xt_mean,
    'alpha_t': alpha_t_mean,
    'model_prediction_type': 'mean'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
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
wt_detokenizer Ran
ran; our contract draft was wrong, not the code
samsongourevitch/rev_udm/src/dataloader.py
pointer only (licence: MIT); the stored copy get_code serves, from jdeschena/blockgen, is pointer only (licence: NONE) · get_code("46c10627206a7795")
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 jdeschena/blockgen, 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.

compute_mauve_score Not yet run
unverified (harvested, no recorded run)
samsongourevitch/rev_udm/src/metrics.py
code served (permissive licence) · get_code("daf20d25ea99bcc3")
How it ran

no invocation recorded.

to_loo_denoiser_logits Not yet run
unverified (harvested, no recorded run)
samsongourevitch/rev_udm/src/ddm.py
code served (permissive licence) · get_code("d368d5b2bb5050c9")
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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 4 the same month, 3 later) and 5 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
lm1b_detokenizer 11 other papers
9 dated earlier, 1 the same month, 1 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2412.10193 (2024-12)
Simple Guidance Mechanisms for Discrete Diffusion Models
and 8 more not named here
ptb_detokenizer 10 other papers
8 dated earlier, 1 the same month, 1 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2503.09573 (2025-03)
BLOCK DIFFUSION: INTERPOLATING BETWEEN AU-TOREGRESSIVE AND DIFFUSION LANGUAGE MODELS
and 7 more not named here
wt_detokenizer 10 other papers
8 dated earlier, 1 the same month, 1 later
2310.16834 (2023-10)
Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution
2406.03736 (2024-06)
Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data
2503.09573 (2025-03)
BLOCK DIFFUSION: INTERPOLATING BETWEEN AU-TOREGRESSIVE AND DIFFUSION LANGUAGE MODELS
and 7 more not named here
fsspec_exists 7 other papers
6 dated earlier, 1 the same month
2403.03234 (2024-03)
Caduceus: Bi-Directional Equivariant Long-Range DNA Sequence Modeling
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
and 4 more not named here

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

Discrete diffusion models are often trained through clean-data prediction, but the prediction can be used in different ways to define the reverse dynamics. In Masked Diffusion Models (MDM) these choices largely coincide, whereas in Uniform Diffusion Models (UDM) they do not. We show that the standard plug-in bridge parameterization for UDM is not optimized by the denoising posterior, but by a leave-one-out posterior that predicts each clean token without using its own noisy observation. This identifies a mismatch between the plug-in ELBO and the usual cross-entropy denoising objective. We characterize the leave-one-out target and derive exact conversions between the denoiser, the leave-one-out posterior, and the score. These conversions allow us to disentangle parameterization and training objective. Our results also lead to inference improvements without any additional training through an informed predictor-corrector sampler and improved temperature sampling based on the leave-one-out predictor. We further introduce an absorbing-state reformulation of uniform diffusion that preserves the UDM joint law while decomposing it into masked-diffusion-like sampling operations, with simpler denoising posteriors, carry-over unmasking, and a natural remasking mechanism. On language modeling, leave-one-out parameterizations consistently improve UDM generation, while the absorbing construction matches or surpasses masked diffusion. These results suggest that the empirical gap between masked and uniform diffusion is driven less by the choice of marginals themselves than by parameterization and sampling design. The code and models can be found at https://github.com/samsongourevitch/rev_udm.

For agents

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

get_harvested_code_for_paper("2605.22765")
get_code_for_paper("2605.22765")
have("2605.22765")

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

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

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

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

Connect an agent — have() is free.