Papers › Simple Guidance Mechanisms for Discrete Diffusion Models

Simple Guidance Mechanisms for Discrete Diffusion Models

13 Dec 2024arXiv:2412.10193archive 2025-07-28

Yair Schiff, Subham Sekhar Sahoo, Hao Phung, Guanghan Wang, Sam Boshar, Hugo Dalla-torre, Bernardo P. de Almeida, Alexander Rush, Thomas Pierrot, Volodymyr Kuleshov

Diffusion models for continuous data gained widespread adoption owing to their high quality generation and control mechanisms. However, controllable diffusion on discrete data faces challenges given that continuous guidance methods do not directly apply to discrete diffusion. Here, we provide a straightforward derivation of classifier-free and classifier-based guidance for discrete diffusion, as well as a new class of diffusion models that leverage uniform noise and that are more guidable because they can continuously edit their outputs. We improve the quality of these models with a novel continuous-time variational lower bound that yields state-of-the-art performance, especially in settings involving guidance or fast generation. Empirically, we demonstrate that our guidance mechanisms combined with uniform noise diffusion improve controllable generation relative to autoregressive and diffusion baselines on several discrete data domains, including genomic sequences, small molecule design, and discretized image generation.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2412.10193")

Code

Syntology Ran 5 of 23 code samples harvested from 2 repositories linked to this paper; 18 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 5 ran; found in paper text by Syntology: 8 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kuleshov-group/discrete-diffusion-guidance officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

23 samples harvested; 5 ran; 1 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran
18unverified

Licence: 0 of the 23 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

default_init kuleshov-group/discrete-diffusion-guidance/models/unet.py official repository ran Apache-2.0 (permissive) · fdd6aad96accd488 · report
lm1b_detokenizer kuleshov-group/discrete-diffusion-guidance/dataloader.py official repository ran fingerprinted Apache-2.0 (permissive) · 576e1b9b9bcae8ff · report
modulate kuleshov-group/discrete-diffusion-guidance/models/dit.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 78b555034273f3c7 · report
transformer_timestep_embedding kuleshov-group/discrete-diffusion-guidance/models/unet.py official repository ran fingerprinted Apache-2.0 (permissive) · c40a24e67f67c90e · report
variance_scaling kuleshov-group/discrete-diffusion-guidance/models/unet.py official repository ran Apache-2.0 (permissive) · 3ac11bfe0ae80195 · report
bias_dropout_add_scale kuleshov-group/discrete-diffusion-guidance/models/dit.py official repository unverified Apache-2.0 (permissive) · c0f26d4e2599cc88 · report
binary_discretization kuleshov-group/discrete-diffusion-guidance/noise_schedule.py official repository unverified Apache-2.0 (permissive) · 9b9814cca50339d7 · report
compute_kmer_frequencies kuleshov-group/discrete-diffusion-guidance/guidance_eval/ten_species_eval.py official repository unverified Apache-2.0 (permissive) · 91e57aeb1d43de7c · report
compute_sentiment_classifier_score kuleshov-group/discrete-diffusion-guidance/guidance_eval/amazon_polarity_eval.py official repository unverified Apache-2.0 (permissive) · 4dac586070ccdff9 · report
cross_entropy kuleshov-group/discrete-diffusion-guidance/models/dimamba.py official repository unverified Apache-2.0 (permissive) · 487d2cdc607e7b22 · report
generate_ordered_kmers kuleshov-group/discrete-diffusion-guidance/guidance_eval/ten_species_eval.py official repository unverified Apache-2.0 (permissive) · 7ba4266c8072c406 · report
get_bias_dropout_add_scale kuleshov-group/discrete-diffusion-guidance/models/dit.py official repository unverified Apache-2.0 (permissive) · ea21d1c58225a226 · report
get_noise kuleshov-group/discrete-diffusion-guidance/noise_schedule.py official repository unverified Apache-2.0 (permissive) · 63ffe982a59e3d2c · report
kmer_to_index kuleshov-group/discrete-diffusion-guidance/guidance_eval/ten_species_eval.py official repository unverified Apache-2.0 (permissive) · 812d7f03e99d6b42 · report
weighted_cross_entropy kuleshov-group/discrete-diffusion-guidance/models/dimamba.py official repository unverified Apache-2.0 (permissive) · 65cdc9d10f6e1a05 · report
gather w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/districuted.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7ab4a7f63870dca5 · report
gather_shape w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/districuted.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 91c463290b953631 · report
get_fid w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3fd8d7b12bca9c19 · report
get_inception_feature w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/core.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0f88713afaab9235 · report
get_inception_score_and_fid w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 65940a24bb9ed8f6 · report
get_inception_score_and_fid_from_directory w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 69c2b0660306d29c · report
sqrt_newton_schulz w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/core.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 2dfa8886e774088c · report
torch_cov w86763777/pytorch-image-generation-metrics/pytorch_image_generation_metrics/core.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7f018aa22ac761c4 · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections