SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.03779 · ICML · 2026

CountsDiff: A Diffusion Model on the Natural Numbers for Generation and Imputation of Count-Based Data

Caroline Uhler, Stephen Bates, Maria Skoularidou, Renzo Soatto, Anders Hoel, Greycen Ren, Shorna Alam, Nikolaos Daskalakis

arXiv · PDF · Open in the Atlas

Code that ran

13 of 16 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 3 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/2604.03779.json · badge: /api/ran/2604.03779.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
rsoatto/countsdiff canonical (classifier label)
classifier basis: census
13 ran · 3 no recorded run
FunctionStatusWhere it lives
build_legacy_blackout_observation_times Ran
ran, honoured the contract we drafted
rsoatto/countsdiff/src/countsdiff/training/utils.py
pointer only (licence: NONE) · get_code("625ede52a28f1d56")
How it ran

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

build_sigma_schedule Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/generation/sampling.py
pointer only (licence: NONE) · get_code("4b688235b7af87a5")
How it ran

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

calculate_jsd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rsoatto/countsdiff/src/countsdiff/utils/metrics.py
pointer only (licence: NONE) · get_code("e83261b28f015441")
How it ran

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

calculate_mmd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
rsoatto/countsdiff/src/countsdiff/utils/metrics.py
pointer only (licence: NONE) · get_code("5671fbe8ef6fc6fc")
How it ran

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

calculate_wasserstein_distance Ran
ran, honoured the contract we drafted
rsoatto/countsdiff/src/countsdiff/utils/metrics.py
pointer only (licence: NONE) · get_code("97750580cf3aa989")
How it ran

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

cos_p_scheduler Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/training/utils.py
pointer only (licence: NONE) · get_code("c516644266ca796e")
How it ran

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

normalize_config_literals Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/utils/tracking.py
pointer only (licence: NONE) · get_code("a95b40012fa4d679")
How it ran

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

resolve_sigma_schedule Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/generation/sampling.py
pointer only (licence: NONE) · get_code("4c15513791195fcf")
How it ran

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

resolved_config_for_run Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/utils/tracking.py
pointer only (licence: NONE) · get_code("b4ada36cae00f7c6")
How it ran

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

restore_checkpoint_withEval Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/utils/checkpoints.py
pointer only (licence: NONE) · get_code("8f2eadcf06e5a9e0")
How it ran

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

restore_checkpoint_with_sum Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/utils/checkpoints.py
pointer only (licence: NONE) · get_code("e0bf82487ce22951")
How it ran

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

setup_logging Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/utils/logging.py
pointer only (licence: NONE) · get_code("047467be88565ffe")
How it ran

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

weight_scheduler Ran
ran; our contract draft was wrong, not the code
rsoatto/countsdiff/src/countsdiff/training/utils.py
pointer only (licence: NONE) · get_code("6c96b4bcd031f462")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rsoatto/countsdiff 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_wandb_safe Not yet run
unverified (harvested, no recorded run)
rsoatto/countsdiff/src/countsdiff/utils/tracking.py
pointer only (licence: NONE) · get_code("52b2934ce18d3f4c")
How it ran

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

positional_encoding Not yet run
unverified (harvested, no recorded run)
rsoatto/countsdiff/src/countsdiff/generation/sampling.py
pointer only (licence: NONE) · get_code("037a743663696ad7")
How it ran

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

save_checkpoint_withEval Not yet run
unverified (harvested, no recorded run)
rsoatto/countsdiff/src/countsdiff/utils/checkpoints.py
pointer only (licence: NONE) · get_code("cd2b28d29b7a525c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, rsoatto/countsdiff 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 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 16 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.

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 models have excelled at generative tasks for both continuous and token-based domains, but their application to discrete ordinal data remains underdeveloped. We present CountsDiff, a diffusion framework designed to model distributions on the natural numbers. CountsDiff extends the Blackout diffusion framework by simplifying its formulation through a direct parameterization in terms of a survival probability schedule and an explicit loss weighting. This introduces flexibility through design parameters with direct analogues in existing diffusion modeling frameworks. Beyond this reparameterization, CountsDiff introduces features from modern diffusion models, previously absent in counts-based domains, including continuous-time training, classifier-free guidance, and churn/remasking reverse dynamics that allow non-monotone reverse trajectories. We propose an initial instantiation of CountsDiff and validate it on natural image datasets (CIFAR-10, CelebA), exploring the effects of the introduced design parameters in a complex, well-studied, and interpretable data domain. We then highlight biological count assays as a natural use case, evaluating CountsDiff on single-cell RNA-seq imputation in fetal and heart cell atlases. Remarkably, we find that even this simple instantiation matches or surpasses the performance of a state-of-the-art discrete generative model and leading scRNAseq imputation methods, while leaving substantial headroom for further gains through optimized design choices in future work.

For agents

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

get_harvested_code_for_paper("2604.03779")
get_code_for_paper("2604.03779")
have("2604.03779")

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

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

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

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

Connect an agent — have() is free.