Manuscript Offprint

arXiv:2609.31149

CRNDiff: Count-Native Diffusion Framework via Chemical Reaction Networks

Yuxuan Qiu, Praful Gagrani, Tetsuya J Kobayashi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Scientific measurements such as single-cell RNA (scRNA) sequencing often take the form of nonnegative integer counts, whereas continuous-state diffusion models approximate this discrete structure using continuous coordinates. Building on stochastic chemical reaction networks (CRNs), a class of count-native Markov jump processes, we introduce CRNDiff, a structured framework that combines count-space diffusion with inference-time conditioning on rare subpopulations. An independent birth–death instantiation yields a closed-form transition kernel for forward noising. This kernel enables reverse sampling via forward-filtering backward-sampling (FFBS) and supports data-driven selection of the terminal noising time, eliminating the need for a validation sweep. This tractability also lets us introduce tilted Feynman–Kac (FK) steering, a method for sampling target subpopulations from a frozen generator without retraining. By tilting posterior marginals before FK particle correction, steering mitigates importance-weight concentration when the target population is rare. Using scRNA-seq data from the human heart cell atlas, we test the ability of CRNDiff to generate cell-type-specific distributions. Across the three evaluated target populations, CRNDiff achieves the highest conditional fidelity among the evaluated generative models, with larger mean purity margins for rarer target populations. Generated cells preserve marker-level differential-expression structure. Replacing real training cells for the target classes with generated cells yields downstream classification performance approaching that of the real-data reference.

1 INTRODUCTION

Diffusion models generate data by reversing a stochastic process that progressively destroys its structure (Ho et al., 2020; Song et al., 2020). The forward process is therefore a modeling choice, and its design should reflect the state space and the meaningful local transformations of the data. We focus on nonnegative integer counts. In single-cell RNA sequencing, for example, each coordinate records a transcript count and lies on the nonnegative integer lattice (Lopez et al., 2018). While finite-state discrete diffusion models operate on a fixed, finite set of states (Austin et al., 2021; Campbell et al., 2022), nonnegative integer counts additionally have a natural ordering and no intrinsic upper bound. To accommodate these properties, recent count-native models formulate diffusion directly on the nonnegative integer lattice, a countably infinite state space. Blackout Diffusion and CountsDiff employ pure-death or thinning dynamics (Santos et al., 2023; Soatto et al., 2026), while Count Bridges and Count-FM use birth–death dynamics (Fishman et al., 2026; Wei & Pearson, 2026). However, existing count-native diffusion models are formulated around specific transition mechanisms. A more general, structured framework is needed to specify diverse admissible state transitions and their state-dependent rates.

Stochastic chemical reaction networks (CRNs) provide such a framework. Reaction channels specify admissible changes in count-valued states, while propensity functions determine their state-dependent rates; stochastic mass-action kinetics further arise naturally from combinatorial interactions among discrete reactant molecules (Gillespie, 1992). CRNs thus provide a compositional parameterization of count-space Markov dynamics together with useful analytic structure. Their master equations admit probability-generating-function representations (Doi, 1976; Peliti, 1985; Baez & Biamonte, 2018) that, when tractable, yield exact transition kernels and Markov bridges (Jahnke & Huisinga, 2007; Vastola, 2021). Building on this structure, we introduce CRNDiff and instantiate it with an independent birth–death CRN. The forward process preserves empirical coordinate means and converges to a product-Poisson stationary distribution. Its closed-form transition kernels support bridge-based reverse sampling. The explicit factorial-cumulant dynamics yield a data-driven criterion for selecting the terminal time of the forward process based on excess-covariance decay, without requiring a validation sweep.

This tractable birth–death construction also supports tilted Feynman–Kac steering for inference-time conditioning of a frozen generator (Wu et al., 2023; Singhal et al., 2025). For rare targets where steering based on sequential Monte Carlo (SMC) can suffer from severe importance-weight concentration (Del Moral, 2004; Chopin et al., 2020), marginal tilt first adapts the reverse proposal toward the target marginals, and a Feynman–Kac correction of the residual discrepancy then accounts for the remaining joint mismatch along the reverse chain, without retraining the generator.

We evaluate CRNDiff on a controlled synthetic construction, which separates the effects of marginal tilt and residual correction, and on single-cell RNA sequencing data from an adult human heart cell atlas (Litviňuková et al., 2020), where one frozen generator serves target populations spanning a wide abundance range. CRNDiff outperforms the evaluated baselines across all conditional-fidelity metrics. Across the three evaluated target populations, its mean purity margin over the baseline with the highest mean purity increases as training abundance decreases. Generated cells preserve cell-type-specific differential-expression rankings and, when used for downstream cell-type classification, yield performance approaching that of a classifier trained entirely on real cells.

References (67)