Generative modeling has seen a massive shift toward diffusion models, but while they dominate continuous domains like images and audio, discrete data—like text, code, and molecules—has remained a tougher nut to crack. A new paper from Google DeepMind and EPFL introduces Simplex Diffusion Models (SDMs), a framework that might just bridge this gap by treating discrete categories as continuous beliefs.
TL;DR
Simplex Diffusion Models (SDMs) lift the diffusion process from discrete tokens to the probability simplex, allowing models to maintain and refine a "belief state" over categories. This approach prevents "information collapse"—where uncertainty is prematurely discarded—enabling state-of-the-art performance in code generation and reasoning with significantly fewer sampling steps than traditional discrete models.
What Problem Does This Paper Address?
Standard discrete diffusion models (like masked or uniform diffusion) operate by flipping or masking tokens. During the reverse (generative) process, these models typically sample a single discrete token at each step. This leads to information collapse: once a token is sampled, the model's underlying uncertainty about other possible categories is thrown away. To combat this, researchers often use "Self-Conditioning," but this is more of a patch than a fundamental solution.
Continuous relaxations (like diffusing one-hot vectors) have been tried, but they often suffer from "abrupt destruction," where the identity of the clean category vanishes too quickly during the forward noise process. SDMs aim to provide a theoretically sound, efficient way to diffuse directly on the probability simplex—the space of all possible distributions over a set of categories.
Methods
The core innovation of SDMs is lifting the diffusion process to the probability simplex $\Delta_N$. Instead of a sequence of tokens, the model processes a sequence of distributions.
- Dirichlet Forward Process: SDMs use a Dirichlet distribution to define the corruption path. Crucially, they parameterize the mean and the concentration separately. This allows the model to move from a "clean" one-hot vertex toward a uniform prior while controlling how "peaky" the distribution remains.
- DDIM-like Sampler: Unlike previous simplex methods (like Dirichlet Flow Matching) that require solving complex ordinary differential equations (ODEs), SDMs introduce a closed-form reverse transition. This sampler includes a "churn" parameter ($\kappa$) that lets users tune the level of stochasticity during generation.
- Training: The models are trained using a simple cross-entropy loss, making them easy to integrate into existing transformer architectures.
- Handling Large Vocabularies: To keep computation efficient on large vocabularies (like the 50k tokens in text models), the authors use "expected embeddings" or "argmax embeddings" to represent the simplex state before feeding it into the transformer backbone.
Datasets
The authors evaluated SDMs across several challenging domains:
- TinyGSM: A dataset of 11.8M synthetic math word problems with Python solutions.
- Sudoku: 9x9 puzzles requiring logical reasoning.
- OpenWebText (OWT): A standard large-scale text corpus for unconditional language modeling.
- SAFE-GPT: A dataset for molecular generation.
Key Insights and Ideas
- Unification of Diffusion Types: The authors prove that SDMs unify discrete and continuous diffusion. At high "temperatures" (low Dirichlet concentration), SDMs behave like standard Discrete Diffusion. At low temperatures, they follow a deterministic path with Gaussian fluctuations, effectively becoming continuous diffusion models.
- Persistence of Belief: Because SDMs operate on the simplex, they carry uncertainty across denoising steps. The model doesn't have to "guess" a token at step 50 and live with it; it can maintain a soft belief that gradually sharpens as it approaches the final step.
- Superior Distillation: SDMs are incredibly efficient to distill. The authors show that an SDM distilled down to just 8 steps can outperform a discrete diffusion model using 128 steps.
Key Results
SDMs demonstrated state-of-the-art performance in several benchmarks, particularly in code generation and reasoning:
- TinyGSM: SDMs achieved 49.0% accuracy, outperforming strong masked and uniform diffusion baselines (45.8%).
- Sudoku: SDMs matched the best discrete models with 99.1% accuracy.
- Efficiency: On the GSM8K math reasoning task, an 8-step distilled SDM solved 32.1% of problems, significantly higher than the 21.4% achieved by a 128-step distilled discrete model.
- OpenWebText: SDMs reached the same Pareto frontier as top-tier discrete models, achieving a Generative Perplexity of 17.0 at 5.46 unigram entropy.
Limitations and Future Work
While promising, the authors note several areas for further exploration:
- Scaling: The experiments were conducted on relatively small models (up to ~168M parameters). Whether these advantages hold at the scale of multi-billion parameter LLMs remains an open question.
- Diversity Trade-offs: Distillation significantly speeds up sampling but comes at the cost of structural diversity in the generated output (e.g., less variety in the Python code structures produced).
- Logit Shaping: On the OpenWebText task, the performance of all diffusion models (including SDMs) relied heavily on logit shaping interventions like frequency penalties to match real-world data distributions.
SDMs suggest that the hard line between "discrete" and "continuous" diffusion might be an artificial one, offering a path toward more flexible and efficient generative models for the building blocks of human knowledge: language and logic.
Summary updated