Abstract
Designing biological sequences is an important challenge that requires satisfying complex constraints and thus is a natural problem to address with deep generative modeling. Diffusion generative models have achieved considerable success in many applications. Score-based generative stochastic differential equations (SDE) model is a continuous-time diffusion model framework that enjoys many benefits, but the originally proposed SDEs are not naturally designed for modeling discrete data. To develop generative SDE models for discrete data such as biological sequences, here we introduce a diffusion process defined in the probability simplex space with stationary distribution being the Dirichlet distribution. This makes diffusion in continuous space natural for modeling discrete data. We refer to this approach as Dirichlet diffusion score model. We demonstrate that this technique can generate samples that satisfy hard constraints using a Sudoku generation task. This generative model can also solve Sudoku, including hard puzzles, without additional training. Finally, we applied this approach to develop the first human promoter DNA sequence design model and showed that designed sequences share similar properties with natural promoter sequences.
Introduction
Diffusion models have revolutionized generative AI, particularly for continuous data like images. However, biological sequences (DNA, proteins) and logical structures (Sudoku) are inherently discrete. Standard diffusion models typically rely on Gaussian noise, which does not map cleanly to discrete categories. While previous research has adapted diffusion to discrete spaces using discrete-time Markov chains or quantization, these methods often lose the mathematical elegance and flexibility of continuous-time Stochastic Differential Equations (SDEs).
The challenge is to define a continuous-time diffusion process that operates within the probability simplex—the natural space for discrete probability distributions—while maintaining a well-defined stationary distribution.
Methods: Dirichlet Diffusion Score Model (DDSM)
The authors propose DDSM, a framework that performs diffusion on a probability simplex where the stationary distribution is a Dirichlet distribution.
Jacobi Diffusion and Stick-Breaking
The process starts with the univariate Jacobi diffusion, defined on the interval $[0, 1]$, which converges to a Beta distribution. To handle $k$ discrete categories (such as the four bases of DNA), the model employs a stick-breaking construction. By combining $k-1$ independent Jacobi processes, DDSM creates a multivariate process on a probability simplex. This allows the model to treat discrete categories as points on a continuous manifold.
Score Matching and Time-Dilation
The model is trained using a weighted denoising score-matching objective. A key innovation for sampling is time-dilation. By accelerating the reverse SDE or extending the sampling time, the model is biased toward high-density regions. This significantly improves the quality and "correctness" of generated samples—such as ensuring a Sudoku puzzle is valid—without requiring retraining.
Results
The researchers evaluated DDSM across three distinct domains: Binarized MNIST, Sudoku puzzles, and human promoter DNA.
Solving Logical Constraints: Sudoku
DDSM demonstrated a remarkable ability to satisfy "hard" constraints. When trained simply to generate Sudoku puzzles, the model achieved 100% accuracy in generating valid grids using 8x time-dilation. Furthermore, the model can solve puzzles by "clamping" known clues and using the diffusion process to fill in the missing cells (inpainting). It successfully solved "hard" 17-clue puzzles, a feat that is a first for a purely generative modeling approach.
Biological Sequence Design: Human Promoters
The model was applied to design human promoter DNA sequences (1024 bp) based on targeted expression levels provided by CAGE (Cap Analysis Gene Expression) data. This represents the first model capable of designing functional human promoters with specific activity levels.
Evaluation using the Sei deep learning model confirmed that DDSM-designed sequences possess predicted activities comparable to natural promoters. Analysis showed that the model learned to place critical motifs, such as TATA-boxes and GC-boxes, in biologically relevant positions relative to the transcription start site, mimicking natural genomic architecture.
Discussion and Future Work
DDSM provides a mathematically grounded approach to discrete diffusion. However, some limitations remain. The current stick-breaking construction scales linearly with the number of categories, which may be computationally intensive for large vocabularies like natural language. Additionally, while time-dilation improves sample quality, it introduces a sampling bias. Future research will focus on optimizing SDE solvers for speed and exploring bit-encoding to handle larger discrete spaces. Despite these challenges, DDSM's success in solving complex logical puzzles and designing functional biological sequences marks a significant step forward in generative modeling for discrete data.
Summary updated