Discrete Flow Matching Policy Optimization

Maojiang Su, Po-Chung Hsieh, Weimin Wu, Mingcheng Lu, Jiunhau Chen, Jerry Yao-Chieh Hu, Han LiuarXiv 2026

Generative models for discrete data—like DNA sequences, molecular graphs, and protein structures—have seen a massive shift toward continuous-time formulations. Discrete Flow Matching (DFM) has emerged as a powerful alternative to diffusion, offering more flexible sampling and better performance. However, a major hurdle remains: how do we fine-tune these models to maximize a specific reward (like the biological activity of a DNA strand) without making the generated samples look like "gibberish" or breaking the underlying math?

A new paper from researchers at Northwestern and National Taiwan University introduces DoMinO (Discrete flow Matching policy Optimization), a framework that reinterprets DFM through the lens of Reinforcement Learning (RL) to solve exactly this problem.

TL;DR

DoMinO is a unified framework that enables stable, unbiased RL fine-tuning of Discrete Flow Matching models by reinterpreting their sampling process as a multi-step Markov Decision Process (MDP). By applying policy gradient methods like PPO and introducing new Total Variation (TV) regularizers, DoMinO achieves state-of-the-art results in designing functional DNA sequences that remain biologically "natural."

What Problem Does This Paper Address?

While DFM models are excellent at learning the distribution of natural data, we often want to steer them toward specific goals—a process called reward-driven fine-tuning. For example, in drug discovery, we don't just want a "natural-looking" molecule; we want one that binds to a specific protein.

Tuning DFM models for rewards is difficult for three reasons:

  1. Tractability: DFM parameterizes transition rates (how fast one state turns into another) rather than an explicit policy, making it hard to calculate the likelihoods needed for standard RL.
  2. Non-differentiable Rewards: Many biological or chemical rewards are "black boxes" that you can't take a gradient through.
  3. Policy Collapse: If you optimize purely for a reward, the model often drifts away from the natural data distribution, producing high-scoring but physically impossible sequences (a phenomenon known as over-optimization).

Methods

The core innovation of DoMinO is reinterpreting the DFM sampling procedure as an inner MDP.

In this view, each step of the DFM's Euler sampler is treated as a "time step" in an RL environment. The "action" is simply the choice of the next discrete state. Crucially, the authors show that the one-step transition probability (the "jump distribution") has a tractable log-likelihood. This allows them to plug DFM directly into standard, stable policy gradient algorithms like REINFORCE and PPO without needing the biased estimators or complex surrogates used in previous diffusion-based RL methods.

To tackle the "naturalness" problem, the authors introduce two new regularizers based on Total Variation (TV) distance:

  • Cross-Entropy (CE) Regularizer: Keeps the fine-tuned model's posterior distributions close to the pre-trained reference.
  • Generalized KL (GKL) Regularizer: Aligns the transition velocities of the new model with the old one.

Theoretically, they prove that the error introduced by discretizing the continuous-time flow is small ($O(\Delta t)$) and that their regularizers provide mathematically sound upper bounds on how much the model drifts from its original state.

Datasets

The authors evaluated DoMinO on a high-stakes task: Regulatory DNA Sequence Design.

  • Dataset: A large-scale enhancer dataset containing ~700,000 DNA sequences (200 base pairs long) with measured expression levels in the HepG2 human cell line.
  • Reward Oracles: They used the Enformer architecture to build two oracles—one to provide the reward signal during training and a separate, independent one for final evaluation.
  • Naturalness Metric: They used 3-mer Pearson Correlation, which compares the frequency of short DNA patterns in generated sequences versus real human DNA.

Key Insights and Ideas

  • The MDP "Aha" Moment: By treating the sampler as an MDP, the authors bypassed the need to differentiate through the entire sampling chain. This makes the optimization much more stable and allows for the use of non-differentiable rewards.
  • TV > KL: Most prior work uses path-wise KL divergence for regularization. The authors argue this is too restrictive because it constrains the entire path the model takes to get to a sample. By focusing on TV distance at the terminal step, DoMinO allows the model more flexibility to find high-reward sequences while ensuring the final output still looks "real."
  • DFM as a Stronger Backbone: The results suggest that Discrete Flow Matching is inherently a better starting point for RL fine-tuning than discrete diffusion, likely due to its more direct parameterization of transition dynamics.

Key Results

DoMinO significantly outperformed previous state-of-the-art baselines like DRAKES and SEPO:

  • Higher Activity: DoMinO-PPO achieved a predicted enhancer activity score of 8.35, compared to 7.55 for SEPO and 6.37 for DRAKES.
  • Better Naturalness: While most reward-optimized models ended up with negative correlations to natural DNA (meaning they looked very unnatural), DoMinO-REINFORCE with GKL was the only method to achieve a positive correlation (0.013) while maintaining high functional performance.
  • Accessibility: The sequences designed by DoMinO showed high chromatin accessibility (99.2% ATAC-Acc), a key indicator that the designed DNA would actually function in a real cell.

Limitations and Future Work

  • Computational Overhead: The regularization requires an extra forward pass through the reference model for every training step, which increases the computational cost.
  • Oracle Dependency: Like all reward-driven methods, DoMinO is only as good as the reward oracle. If the Enformer model has blind spots, DoMinO might exploit them.
  • Broader Applications: While the DNA results are impressive, the authors note that future work should explore DoMinO in other domains like protein folding, graph-based molecule generation, and even discrete reasoning tasks in Large Language Models.

For researchers looking to build controllable generative models for discrete structures, DoMinO provides a mathematically rigorous and highly effective new toolkit.

Summary updated

BibTeX
@misc{su2026discrete,
  author = {Maojiang Su and Po-Chung Hsieh and Weimin Wu and Mingcheng Lu and Jiunhau Chen and Jerry Yao-Chieh Hu and Han Liu},
  title = {{Discrete Flow Matching Policy Optimization}},
  year = {2026},
  eprint = {2604.06491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.06491},
}
Figure