Count Bridges enable Modeling and Deconvolving Transcriptomic Data
Organizations: Harvard University · MIT · CNRS · Beth Israel Deaconess Medical Center ·
Abstract
Many modern biological assays, including RNA sequencing, yield integer-valued counts that reflect the number of molecules detected. These measurements are often not at the desired resolution: while the unit of interest is typically a single cell, many measurement technologies produce counts aggregated over sets of cells. Although recent generative frameworks such as diffusion and flow matching have been extended to non-Euclidean and discrete settings, it remains unclear how best to model integer-valued data or how to systematically deconvolve aggregated observations. We introduce Count Bridges, a stochastic bridge process on the integers that provides an exact, tractable analogue of diffusion-style models for count data, with closed-form conditionals for efficient training and sampling. We extend this framework to enable direct training from aggregated measurements via an Expectation-Maximization-style approach that treats unit-level counts as latent variables. We demonstrate state-of-the-art performance on integer distribution matching benchmarks, comparing against flow matching and discrete flow matching baselines across various metrics. We then apply Count Bridges to two large-scale problems in biology: modeling single-cell gene expression data at the nucleotide resolution, with applications to deconvolving bulk RNA-seq, and resolving multicellular spatial transcriptomic spots into single-cell count profiles. Our methods offer a principled foundation for generative modeling and deconvolution of biological count data across scales and modalities.
Figures & tables
| Method | JSD | RMSE | Spearman |
| CIBERSORTx | 0.194 | 0.109 | 0.079 |
| MuSiC | 0.313 | 0.140 | 0.186 |
| Count Bridge | 0.113 | 0.073 | 0.267 |
| Method | JSD | RMSE | Spearman |
| STDeconvolve | 0.288 | 0.177 | 0.255 |
| Count Bridge | 0.231 | 0.110 | 0.332 |
| Comparison | MMD | Energy | |
| Spot mean | 0.409 | 0.030 | 41.717 |
| Count Bridge | 0.203 | 0.017 | 8.903 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | MMD | Energy | |
| CFM | 0.065 ± 0.019 | 0.049 ± 0.008 | 0.874 ± 0.246 |
| DFM | 0.010 ± 0.002 | 0.010 ± 0.002 | 0.035 ± 0.014 |
| Count Bridge (CE) | 0.0065 ± 0.0023 | 0.0080 ± 0.0009 | 0.026 ± 0.004 |
| Count Bridge (ES) | 0.0044 ± 0.0018 | 0.0052 ± 0.0007 | 0.0098 ± 0.0029 |
| Count Bridge (MSE) | 0.030 ± 0.000 | 0.033 ± 0.001 | 0.366 ± 0.015 |
| MMD | Energy | ||
| 0 | 0.0038 ± 0.0012 | 0.0046 ± 0.0002 | 0.0075 ± 0.0011 |
| 8 | 0.0039 ± 0.0015 | 0.0045 ± 0.0006 | 0.0080 ± 0.0022 |
| 16 | 0.0049 ± 0.0003 | 0.0049 ± 0.0003 | 0.0095 ± 0.0004 |
| 32 | 0.0052 ± 0.0024 | 0.0055 ± 0.0015 | 0.011 ± 0.006 |
| 256 | 0.0064 ± 0.0020 | 0.0063 ± 0.0009 | 0.015 ± 0.004 |
| Method | MMD | Energy | |
| Count Bridge (ES) | 0.0044 ± 0.0018 | 0.0052 ± 0.0007 | 0.0098 ± 0.0029 |
| Gaussian Diffusion | 0.024 0.009 | 0.017 0.006 | 0.118 0.064 |
| Discrete Diffusion | 0.017 0.010 | 0.013 0.006 | 0.072 0.055 |
| Dim | Method | NFE | MMD | EMD | |
| 4 | CFM | 8 | 0.027 ± 0.014 | 0.019 ± 0.002 | 0.716 ± 0.420 |
| 32 | 0.026 ± 0.017 | 0.015 ± 0.004 | 0.584 ± 0.460 | ||
| 128 | 0.026 ± 0.018 | 0.015 ± 0.004 | 0.565 ± 0.469 | ||
| DFM | 8 | 0.025 ± 0.004 | 0.011 ± 0.001 | 0.245 ± 0.053 | |
| 32 | 0.035 ± 0.003 | 0.014 ± 0.001 | 0.458 ± 0.078 | ||
| 128 | 0.046 ± 0.005 | 0.018 ± 0.002 | 0.759 ± 0.144 |
| Group Size (n) | |||
| 4 | 0.0091 ± 0.0005 | 0.010 ± 0.000 | 0.011 ± 0.000 |
| 8 | 0.011 ± 0.001 | 0.014 ± 0.001 | 0.016 ± 0.000 |
| 32 | 0.020 ± 0.002 | 0.023 ± 0.002 | 0.025 ± 0.002 |
| 128 | 0.050 ± 0.008 | 0.053 ± 0.006 | 0.057 ± 0.002 |
| Group Size (n) | |||
| 4 | 0.130 ± 0.006 | 0.195 ± 0.025 | 0.207 ± 0.040 |
| 8 | 0.286 ± 0.023 | 0.363 ± 0.037 | 0.483 ± 0.010 |
| 32 | 0.530 ± 0.051 | 0.657 ± 0.095 | 0.921 ± 0.222 |
| 128 | 2.24 ± 0.58 | 2.22 ± 0.54 | 2.63 ± 0.14 |
| Group Size (n) | |||
| 4 | 0.011 ± 0.001 | 0.011 ± 0.002 | 0.012 ± 0.004 |
| 8 | 0.016 ± 0.001 | 0.017 ± 0.002 | 0.021 ± 0.001 |
| 32 | 0.014 ± 0.003 | 0.020 ± 0.003 | 0.025 ± 0.010 |
| 128 | 0.037 ± 0.005 | 0.045 ± 0.007 | 0.044 ± 0.001 |
| Method | MMD | EMD | |
| exact | |||
| randomized | |||
| round |
| Method | JSD | RMSE | Spearman |
| STDeconvolve | 0.288 | 0.177 | 0.255 |
| RCTD | 0.161 | 0.113 | 0.580 |
| Count Bridge | 0.229 | 0.110 | 0.332 |
Generative Modeling
Generative modeling learns data distributions to create new samples, from images and text to molecules, simulations, and structured records.
See all 493 papers