Dirichlet Flow Matching with Applications to DNA Sequence Design

Hannes Stark, Bowen Jing, Chenyu Wang, Gabriele Corso, Bonnie Berger +2 more
2/8/2024
q-bio.BMcs.LG

Official code: HannesStark/dirichlet-flow-matching (141 stars, MIT, last commit 2024-05-07).

Abstract

Discrete diffusion or flow models could enable faster and more controllable sequence generation than autoregressive models. We show that naïve linear flow matching on the simplex is insufficient toward this goal since it suffers from discontinuities in the training target and further pathologies. To overcome this, we develop Dirichlet flow matching on the simplex based on mixtures of Dirichlet distributions as probability paths. In this framework, we derive a connection between the mixtures' scores and the flow's vector field that allows for classifier and classifier-free guidance. Further, we provide distilled Dirichlet flow matching, which enables one-step sequence generation with minimal performance hits, resulting in $O(L)$ speedups compared to autoregressive models. On complex DNA sequence generation tasks, we demonstrate superior performance compared to all baselines in distributional metrics and in achieving desired design targets for generated sequences. Finally, we show that our classifier-free guidance approach improves unconditional generation and is effective for generating DNA that satisfies design targets. Code is available at https://github.com/HannesStark/dirichlet-flow-matching.

View on arXivView PDF

Code Implementations(1)

MIT
14123PythonFeb 8, 20242 years agoMIT

Similar Papers

Cite this paper

@article{stark2024dirichlet,
  title  = {Dirichlet Flow Matching with Applications to DNA Sequence Design},
  author = {Hannes Stark and Bowen Jing and Chenyu Wang and Gabriele Corso and Bonnie Berger and Regina Barzilay and Tommi Jaakkola},
  year   = {2024},
  eprint = {2402.05841},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.05841v2},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05841.svg)](https://codeofpaper.com/paper/2402.05841)

Discussion