Skip to main content
QUICK REVIEW

[Paper Review] Dirichlet Flow Matching with Applications to DNA Sequence Design

H. Stärk, Bowen Jing|PubMed|Feb 8, 2024
Machine Learning and AlgorithmsComputer Science10 citations
TL;DR

Dirichlet flow matching (Dirichlet FM) is introduced to model discrete data on the simplex, enabling one-step distillation and guided generation; it outperforms baselines on DNA promoter/enhancer design tasks and offers substantial speedups over autoregressive models.

ABSTRACT

Discrete diffusion or flow models could enable faster and more controllable sequence generation than autoregressive models. We show that na\"ive 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.

Motivation & Objective

  • Motivate and address the limitations of linear flow matching on the simplex for discrete data.
  • Propose Dirichlet flow matching using mixtures of Dirichlet distributions as probability paths.
  • Derive guidance mechanisms (classifier and classifier-free) within Dirichlet FM.
  • Demonstrate distillation for one-step generation to achieve large speedups.
  • Evaluate on promoter and enhancer DNA design tasks, showing superior distributional quality and design target satisfaction.

Proposed method

  • Define Dirichlet flow matching as transporting a uniform Dirichlet prior to a discrete data distribution via a time-evolving Dirichlet conditional p_t(x|x1).
  • Use a Dirichlet-based conditional path p_t(x|x1=e_i)=Dir(x; alpha=1+t e_i) to maintain full simplex support and avoid linear FM pathologies.
  • Parametrize the conditional vector field as u_t(x|x1=e_i)=C(x_i,t)(e_i−x) with a derived C(x_i,t) that yields smooth, contraction-controlled probability paths.
  • Establish a link between the model posterior p(x1|x) and the marginal flow v_t(x) to enable score-based guidance and classifier-free guidance (via a linear relation v = U D^{-1} s).
  • Implement distillation to map the teacher (multi-step Dirichlet FM) to a one-step student, enabling substantial inference speedups.
  • Extend to classifier-free guidance and, when available, classifier-guided variants by projecting scores onto the simplex tangent space and solving for posterior p.

Experimental results

Research questions

  • RQ1How can flow matching be effectively defined for discrete data on the probability simplex without the pathologies of linear FM?
  • RQ2Does Dirichlet FM outperform linear FM and discrete diffusion models (e.g., DDSM) on complex DNA sequence design tasks?
  • RQ3Can guidance (classifier and classifier-free) be integrated into Dirichlet FM to improve conditional generation or unconditional generation quality?
  • RQ4Is distillation feasible for Dirichlet FM to achieve one-step generation with minimal performance loss?

Key findings

  • Dirichlet FM scales to higher simplex dimensions far better than linear FM, avoiding the pathological posterior support shrinkage of linear FM.
  • In promoter design, Dirichlet FM achieves MSE 0.0269 (vs 0.0334 for DDSM and 0.0333 for a language model) with 100 function evaluations; distilled Dirichlet FM reaches 0.0278 with 1 NFE.
  • On enhancer generation, Dirichlet FM attains a Fréchet Biological Distance (FBD) of 5.3 (Melanoma) and 15.2 (Fly Brain), outperforming baselines; the distilled variant reaches 6.1 and 15.8 respectively, while classifier-free guidance (CFG) achieves 1.9 (Melanoma) and 1.0 (Fly Brain) with 200 NFEs.
  • Classifier-free guidance improves unconditional generation quality and enables cell-type conditional enhancer design; guided samples achieve substantial FBD improvements toward target distributions and higher target-class probabilities.
  • Distillation yields one-step generation with orders-of-magnitude speedups (e.g., 100x to 1024x over baselines), with minimal performance loss in promoter and enhancer tasks.
  • Dirichlet FM outperforms autoregressive and discrete diffusion baselines in distributional metrics across three DNA datasets (promoter and two enhancer datasets).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.