Flexible Flows for Biological Sequence Design
Yogesh Verma, Dani Korpela, Harri Lähdesmäki, Vikas K Garg
TL;DR. We propose a discrete flow method for flexible-length biological sequence design with novel guidance scheme
Abstract. Designing functional biological sequences requires navigating vast discrete spaces under strict evolutionary and biophysical constraints. Discrete Flow Matching (DFM) offers a generative framework over such spaces, but existing approaches rely on biologically uninformative couplings and offer limited flexibility for variable-length sequence generation and fine-grained control. We propose a structured coupling that encodes domain-specific preferences among sequence elements, biasing the source distribution toward plausible regions without modifying the flow objective or training procedure. Building on this, we introduce a latent edit-based rate parameterization that models variable-length generation via edit operations conditioned on a shared global latent, akin to a latent variable model, while remaining tractable. We further introduce a latent classifier-free guidance mechanism that steers generation coherently in continuous latent space, along with Dirichlet-prior temperature scaling for test-time control over edit operations. Our method achieves state-of-the-art performance across diverse biological sequence tasks, including density estimation, unconditional and conditional DNA sequence generation, and peptide sequence generation.
From the authors: Yogesh Verma · edit · also an author?
Nothing yet.
edit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The reviewers agree the work is novel. The main concerns are experiments, in terms of biological relevance, fairness of comparison, and baselines.
Final justification
Major concerns have been addressed during rebuttal.
- Final justification
- Major concerns have been addressed during rebuttal.
Read meta-review
Meta-review
The reviewers agree the work is novel. The main concerns are experiments, in terms of biological relevance, fairness of comparison, and baselines.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes FlexFlow, an extension and application of EditFlows (discrete flow matching with edit operations to support variable sequence length generation) for biological sequence design. The authors propose 3 modifications to the EditFlows framework: (i) they introduce a structured coupling for biology informed priors, (ii) they propose a shared global latent vector for latent edit-based rate parameterization, which is also combined with CFG for global conditioning instead of per-token CFG, and (iii) they propose Dirichlet priors for operation mixing to control relative rates of insertion, substitution and deletion during generation. The authors show results on a toy example, DNA sequence generation and on a newly introduced benchmark for peptide sequence design.
In general, the paper reads very dense and in the beginning of new sections/subsections it is not always clear which parts are taken from prior work and what is newly introduced, which requires very careful reading.
Strengths and weaknesses
Clearly, these kind of works and also the underlying FlexFlow paper have their strengths, as the adaptation of new methods in the generative modeling space to the biology domain is far from trivial, so I want to acknowledge the work and effort that the authors have made. Intuitively, the proposed FlexFlow with its components seems a good idea, however I want to discuss some aspects below that need to be addressed to make this more convincing.
Regarding the structured coupling which corrects the prior by K, the effect is not entirely clear; also intuitively it seems rather generic. In Table 1, for the melanoma dataset it seems to be of minimal effect only; hence this would benefit to be shown also on the other datasets (what about the toy example?) to evaluate whether this gives larger benefits. In addition to this, the ablation in the same Table 1 on the frequency-informed prior is not clear, since there is nothing to be found on this in the method section. If you compare to EvoFlows [Deutschmann et al., 2026], they use the same distribution to sample from for both source and target, which gives not only a structured coupling but additionally a family-specific effect. This might be worth exploring further before the benefit of the proposed structured coupling can be stated clearly in my opinion.
In general, I find the missing comparison to EvoFlows one of the main limitations of the paper. Unlike stated in the references, EvoFlows is not just an arxiv preprint (which it is since March 12, 2026) but was published at an ICLR’26 workshop. I am aware that the authors did not release source code, which makes the comparison harder but to me the main difference seems to be the change of the source distribution, the shared global vector that FlexFlow introduces as well as CFG for conditioned generation, that EvoFlows lacks. In any case, even if the authors do not have the capacity to reimplement these changes into the EditFlows framework that they have, at least a discussion on EvoFlows in the Introduction/Background section has to be included (currently it is not even mentioned as a very closely related method).
In general, the varying baseline methods for the different tasks is also a source of confusion. This is not explained, why the baselines are varying for the tasks. E.g., why is there only D3PM and EditFlows in the comparison of the toy example? But then in general for the other tasks, why do you not compare to EditFlows anymore? This could directly show the benefit of FlexFlow.
The ablation on the time complexity mentions: “We compare inference speed against prior methods by …”, but then, looking at the table, FlexFlow is only compared to DirichletFM (despite methods in plural), and the benefit is not even much. This could even be within noise, if not repeated multiple times and compared to multiple baselines I suggest removing this part.
Moreover, on the ablations with respect to guidance: it seems that depending on which metrics you evaluate (FPD vs. DeepMHCII), the effect of the latent and rate guidance is opposite. A discussion on this is missing, while this seems to be important, as the authors mention the latent CFG as one of their contributions. Moreover, these subplots of the guidance ablations in Figure 4 are not even referenced and described in the main text (or please refer me to it, in case i missed this and the corresponding discussion).
Perhaps I missed this, but how is the dimension of the global latent representation chosen? And is there an ablation to show this effect, or was this a one-time heuristic choice that the authors did not investigate further? And what about of the global latent Gaussian?
On the ablation for the post-hoc operation control: it would be good to do the same experiment as for insertion also for the other two operations on the same setup, for the sake of transparency.
Another question that is not clear to me is why the authors decided to introduce a new benchmark for peptide sequence design, that they only compare to DirichletFM and FisherFM, instead of using an existing benchmark?
Minor: Table 2 caption: the (right) subplot misses the “toy data set” in its description.
Questions
To summarize, my main criticism and hence resulting suggestions is on 3 aspects.
-
The comparison to EvoFlows has to be addressed. This is wrt the choice of the prior but also in general this is very closely related work as they are also adapting EditFlows to biological sequence design. I find it concerning, that this is not even discussed in the current state, despite the authors being aware of it.
-
The paper would greatly benefit from revising the writing. In particular I am referring to the method subsections, where it was hard for me to distinguish prior methods from new contributions. Perhaps shifting one task to the appendix and doing the remaining tasks more thorough (showing all required steps, adding in clean evaluation with all comparison methods, detailed ablation over all components) would be more beneficial.
-
In general, all tasks would benefit from a more thorough evaluation with consistent baselines, ablations over the proposed blocks and a discussion for each of them.
Limitations
yes
Final justification
I would like to thank the authors for their detailed rebuttal and for addressing all my concerns. I know my initial assessment might seem harsh, but this was due to the state of the submitted paper which didn’t provide the necessary experimental depth or context on related work. Given the extensive clarifications, the ablations the authors presented, the additional discussion on EditFlows that will be added to the revised version, and the additional baseline for the DNA sequence experiment showing a direct comparison to FlexFlow, I am confident to raise my score now and recommend acceptance.
Formatting concerns
None noticed.
1 comment
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work presents FlexFlow, a discrete flow matching model for biological sequence design. FlexFlow introduces a structured coupling scheme, latent guidance, and the ability to model indels. Across a variety of conditional and unconditional generation tasks, FlexFlow demonstrates superior performance when compared to contemporary methods.
Strengths and weaknesses
Strengths:
Conditioning token mixtures on structural couplings is an intuitive and novel approach to incorporating an inductive bias to DFM.
The ability to model indels is a valuable addition to this work. Similarly, latent guidance is a useful improvement over classifier free guidance methods, enabling global cross-position coherence.
There are a healthy amount of methods evaluated against FlexFlow, clearly demonstrating the value add of this work.
Methods are described in clear enough detail to reproduce the work, though open source code would be appreciated.
Weaknesses:
While the toy model section provides an interesting assessment on the capability of FlexFlow, it feels out of place in the main text of a work on biological sequence design.
The compared methods are comprehensive, but the authors should consider adding more sequence design tasks to fully distinguish the strengths and weaknesses of FlexFlow. Current evaluation feels limited.
Overall, I have few critique points of this work. I am not well equipped to evaluate the formulas and propositions provided in this work; I leave this assessment to more qualified reviewers.
Questions
A structural inductive bias is a natural choice for most biological sequences. Have the authors considered a general function-derived bias for cases where this is less deterministic of sequence function?
Limitations
Missing limitations
Formatting concerns
Minor typos in the introduction.
1 comment
Rebuttal
Many thanks for your thoughtful review. We have carefully addressed your concerns and have outlined our responses to the key points raised in your review below.
The compared methods are comprehensive, but the authors should consider adding more sequence design tasks...
We thank the reviewer for this suggestion. Our evaluation already spans two distinct settings: conditional and unconditional de novo nucleotide and peptide sequence design, each benchmarked against the most recent state-of-the-art methods on open-source datasets. We complement these with controlled toy experiments that isolate FlexFlow's ability to capture multi-modal distributions, progressing from simple synthetic distributions to more complex conditional sequence design settings.
We designed this suite deliberately to stress two complementary axes rather than to maximize task count: (i) real-world performance across modalities with different sequence vocabularies and design constraints, and (ii) fine-grained distributional fidelity in settings where the ground-truth distribution is known, and conditioning strength can be controlled directly. The toy experiments, in particular, allow us to attribute performance differences to FlexFlow's modeling of multi-modality itself, rather than to confounds specific to any one biological task, which is difficult to isolate from benchmark results alone. We believe this combination of tasks, spanning distinct sequence modalities, alphabet sizes, and conditioning regimes, already evaluates FlexFlow across a diverse range of settings and demonstrates the method's efficacy.
A structural inductive bias is a natural choice for most biological sequences. Have the authors considered a general function-derived bias for cases where this is less deterministic of sequence function?
Thanks for raising this point. Our structured coupling encodes domain-specific preferences among sequence elements, reflecting evolutionary biases that tilt the source distribution toward biologically plausible regions of sequence space. This is a reasonable choice for much of DNA/peptide sequence design, where evolutionary biases and constraints tend to correlate with functional outcomes.
We agree, however, that this correlation is weaker in other settings, for example, sequences where function is driven more by dynamics, interaction context, or regulatory/expression-level factors than by static compositional or positional patterns. Our framework is naturally extensible to such cases: since the coupling only biases the source distribution without altering the flow objective or training procedure, a structural prior could be augmented with a function-derived signal, for instance, one informed by protein language model embeddings or functional/GO-term annotations. This also provides a promising direction for extending our approach to settings where function is not well predicted by structural/compositional features alone, and we will add this discussion to the revised manuscript.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes FlexFlow, a discrete flow-matching framework that combines:
- a biologically informed structured coupling based on substitution matrices,
- a latent edit-based rate parameterization for insertion/substitution/deletion operations,
- Dirichlet-controlled operation mixing for post-hoc edit control, and
- latent-space classifier-free guidance for conditional generation.
The method is evaluated on toy distributions, unconditional enhancer DNA generation, conditional promoter design, and a newly introduced MHC-II peptide generation benchmark.
The claims of the paper are that structured couplings provide useful biological inductive bias, latent edit rates enable flexible-length generation with controllable edit operations, and latent guidance improves conditional generation by providing more globally coherent control than rate-space guidance. The empirical results show improvements over several diffusion and flow-matching baselines on proxy metrics such as FBD, SEI-predicted promoter activity MSE, DeepMHCII score, and FPD.
Strengths and weaknesses
Quality
The paper is technically sound and presents a complete piece of work. The authors build upon the Discrete Flow Matching (DFM) and Edit Flows frameworks to introduce FlexFlow. The claims are well-supported by extensive empirical results across a diverse set of tasks: 1D and 2D toy datasets, unconditional enhancer DNA generation, conditional promoter DNA design, and a novel peptide-MHC II sequence design task.
The methodology is appropriate for the problem domain. By integrating domain-specific substitution matrices (like BLOSUM62) into a structured coupling, the authors directly address the limitations of prior DFM models that relied on uniform or biologically uninformative noise. Furthermore, the baselines used for comparison (e.g., Dirichlet FM, Fisher FM, DDSM) represent the current state-of-the-art, and FlexFlow consistently outperforms them across key metrics like Fréchet Biological Distance and DeepMHCII classification scores.
The authors demonstrate intellectual honesty by including an ablation study that highlights the diversity-quality trade-off inherent in their proposed Latent Guidance scheme. They note that while Latent Guidance improves binding plausibility, it does so at the cost of distributional coverage when compared to rate-space guidance.
Clarity
The paper is clearly written and logically organized. The mathematical formulations for the structured coupling, latent edit-based rates, and continuous latent guidance are well presented. The paper adequately informs the reader and provides sufficient detail for reproducibility.
Significance
The results are highly impactful for the computational biology and generative modeling communities. Designing functional biological sequences requires navigating vast discrete spaces under strict evolutionary constraints, and FlexFlow addresses this by embedding evolutionary priors into the generative flow.
Furthermore, the introduction of the new peptide-MHC II benchmark provides a unique and rigorous evaluation dataset that the community can use for future targeted ligand design tasks.
Originality
The work demonstrates strong originality by offering a novel combination of existing techniques alongside entirely new methods. While the foundation relies on DFM and Edit Flows, the introduction of a biologically informed structured prior () to bias the generative path without altering the flow objective is a highly original adaptation.
The Latent Guidance mechanism is another significant contribution. Finally, utilizing Dirichlet priors to afford post-hoc, temperature-controlled operation mixing (controlling the budget of insertions versus substitutions at test time) is a unique and practical solution to flexible-length sequence generation.
Questions
- Scalability of the Global Latent Representation to Larger Contexts
The hierarchical parameterization utilizing a global latent representation handles sequence-level context for lengths of 500 to 1024 base pairs. However, as genomic models push toward integrating vastly larger sequence contexts, I am curious about the theoretical and empirical limits of this bottleneck. Could the authors discuss or provide a minor empirical ablation on how the memory overhead and performance of the latent encoder scale when moving to much longer sequences (e.g., 10k+ tokens)?
- Biological Viability of Forced Edit Budgets
Figure 3 shows the post-hoc control over edit operations using the Dirichlet prior. However, it is unclear if forcing the model into an extreme budget (e.g., heavily prioritizing insertions) degrades the actual biological plausibility of the resulting sequences. It would be highly beneficial to see the FBD or DeepMHCII scores reported for a few of the shifted distributions in Figure 3.
Limitations
Yes.
Final justification
The rebuttal satisfactorily addressed both of my main questions. The additional scaling measurements demonstrate that the latent encoder remains computationally feasible for substantially longer sequences, including sequences up to 10k tokens. The edit-budget ablation also directly addresses my concern about biological plausibility and clearly characterizes the trade-off between controllability and sequence quality. I have no significant remaining concerns and therefore maintain my positive assessment and score of 5.
Formatting concerns
No.
2 comments
Rebuttal
Many thanks for your thoughtful review. We have carefully addressed your concerns and have outlined our responses to the key points raised in your review below.
Scalability of the Global Latent Representation to Larger Contexts
Thank you for raising an interesting point. Currently, we use CNNs as the latent encoder architecture over the residue one-hot embeddings, and the encoder scales linearly, , in both compute and memory with sequence length , since each layer applies fixed-size local filters rather than computing pairwise interactions across all positions. The global latent itself is not a fixed-size vector but a function of hidden dimension size and context length , so increasing context length does increase the latent's capacity requirements — with only the linear cost of the forward pass.
Moreover, based on your feedback, we measured the peak GPU memory and forward-pass latency of the encoder alone at increasing sequence lengths on an NVIDIA H100 GPU:
| Length | Latency (ms) | Peak memory (GB) |
|---|---|---|
| 100 | 3.14 | 0.093 |
| 500 | 3.46 | 0.095 |
| 1024 | 3.61 | 0.098 |
| 2000 | 6.21 | 0.108 |
| 10000 | 24.31 | 0.614 |
The results show that both latency and peak memory scale gracefully with sequence length, growing only modestly as inputs increase from 100 to 10k tokens. This favorable scaling stems from the dilated convolutional stack, whose exponentially growing receptive fields (dilation factors [1,4,16,64]) allow the encoder to aggregate long-range context efficiently without incurring the quadratic cost of self-attention. We therefore expect the encoder to remain tractable well beyond 10k tokens, with only a modest linear increase in wall-clock time and memory overhead, making it well-suited for future extensions to longer genomic contexts.
Biological Viability of Forced Edit Budgets
Thanks for this interesting suggestion. We conducted an ablation directly evaluating the biological plausibility of sequences generated under skewed edit budgets, by varying the Dirichlet concentration parameters and measuring the resulting FPD score on the peptide sequence design dataset.
Results are shown in table below. We observe that biasing toward substitutions yields the best FPD (0.60), biasing toward insertions is moderately worse (0.79), and biasing heavily toward deletions degrades quality substantially (1.21). DeepMHCII scores follow a similar trend but are more sensitive to these length-based modifications, with substitution-biased sequences scoring highest and deletion-biased sequences scoring lowest. This confirms that forcing extreme budgets does have a measurable effect on biological plausibility, with deletion-heavy regimes being the most detrimental, and we will include this analysis and discussion in the revised manuscript.
| FPD | DeepMHC | |||
|---|---|---|---|---|
| 0.90 | 0.05 | 0.05 | 0.79 | 0.37 |
| 0.09 | 0.05 | 0.05 | 0.71 | 0.45 |
| 0.05 | 0.90 | 0.05 | 0.60 | 0.60 |
| 0.05 | 0.05 | 0.90 | 1.21 | 0.25 |
Thank you for the detailed response and the additional experiments. The encoder scaling measurements clarify the computational feasibility of extending the method to substantially longer sequences. The edit-budget ablation also directly addresses my concern about biological plausibility and provides a useful characterization of the trade-off between controllability and sequence quality.
Overall, the rebuttal has satisfactorily addressed both of my questions. I have no further concerns and will maintain my positive assessment and score.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Many thanks for your thoughtful review. We have carefully addressed your concerns and incorporated additional analysis, ablation experiments, and further comparisons to strengthen our method. We’ve outlined our responses to the key points raised in your review below.
Regarding Structured Coupling
Thank you for this insightful comment. The structured coupling Kγ incorporates evolutionary biases into the generative prior by tilting the initial noise distribution instead of sampling from a uniform prior. As expected, its effect on Melanoma is modest due to the short, compositionally constrained sequences. However, on the more evolutionarily diverse Fly Brain benchmark, Kγ delivers a 2x improvement in FBD over EditFlows and a 20% reduction compared to the ablated variant.
In addition, we also conducted an ablation study to evaluate effect of this structured coupling on promoter design task. The below table shows the results, where FlexFlow with latent guidance and Kγ achieves an MSE of 0.022, compared to 0.025 without Kγ, a 12% reduction, and outperforms all baselines. Together, these results confirm that Kγ is not merely a generic correction but provides meaningful and task-dependent regularisation of the generative prior.
pfreq prior
Thanks for the opportunity to clarify this. The frequency-based prior pfreq refers to a choice of prior distribution in which the initial state is sampled from a frequency-based categorical distribution over the vocabulary, rather than a uniform categorical distribution. This choice of prior has been used in several discrete flow methods, such as DFM and EditFlows. Our modeling framework can accommodate various priors, and the aim of the ablation is to show how the choice of prior distribution affects downstream performance.
Comparison to EvoFlows
We thank the reviewer for this pointer and their suggestion. We would like to note that EvoFlows is concurrent work under the NeurIPS 2026 guidelines. We would also like to emphasize that the two approaches differ in ways that are conceptually fundamental rather than incremental:
We do acknowledge that EvoFlows shares a similar editing mechanism to ours, but applies it in a substantially different setting — one that assumes access to a starting natural sequence rather than the de novo, noise-to-sequence setting our method targets. We will include a dedicated paragraph summarizing these distinctions in the Background section of the revised manuscript.
Varying Baselines
Thank you for this helpful observation. The variation in baselines across tasks reflects both the availability of open-source implementations and each method's applicability to the respective problem. We included all methods with publicly available code that could be evaluated under identical data splits to ensure a fair comparison. Following your suggestion, we have added EditFlows to the DNA sequence design experiments. As shown below, FlexFlow outperforms EditFlows on both benchmarks, achieving an FBD of 3.4 vs. 3.7 on Melanoma and 4.2 vs. 7.9 on Fly Brain.
Time complexity
Thanks for this suggestion. We have expanded the comparison to include additional baselines (FisherFM, Dirichlet FDM) alongside FlexFlow, with results averaged over multiple seed runs shown below. Across these methods, FlexFlow's inference time is comparable to and within the same range as prior work, and will incorporate in the revised manuscript.
Ablation wrt guidance
Thank you for raising this point. We agree that the guidance ablations and the differing trends between FPD and DeepMHCII warrant clearer discussion, particularly since latent CFG is a key component of our method. We will explicitly reference and discuss the corresponding Figure 4 subplots in the main text.
The observed behaviour is consistent with the well-known quality--diversity trade-off of CFG. Increasing guidance steers samples toward regions that better satisfy the conditioning signal, improving conditional quality while reducing coverage of the data distribution. In our ablation, both rate-space and latent guidance improve DeepMHCII scores, indicating improved allele–peptide compatibility. However, latent guidance yields the larger improvement, while rate-space guidance has a smaller effect on FPD. We interpret this as a guidance-induced trade-off between distributional coverage and conditional biological quality: guidance steers generation toward regions of sequence space that are more compatible with the conditioned MHC allele, potentially concentrating samples in high-scoring regions.
The two metrics capture complementary aspects of generation. DeepMHCII evaluates the joint peptide–allele relationship and is therefore particularly informative for assessing whether conditional generation preserves biologically meaningful allele-specific sequence preferences. In contrast, FPD is computed in an allele-agnostic feature space to retain sufficiently large sample sizes and primarily measures global distributional similarity. Thus, an improvement in DeepMHCII need not directly correspond to an improvement in FPD.
Latent dimension and σr
The latent dimension is treated as a hyperparameter rather than a fixed architectural constraint, and can, in principle, be adjusted for different sequence lengths or task complexities. We chose a hidden dimension of 256, as it offered a good balance between representational capacity and computational efficiency in our experiments. Based on your suggestion, we have conducted an ablation study varying σr and evaluating downstream biological plausibility via DeepMHCII score. The results are shown below, and we observe that performance is fairly stable across values, having a dip when σr=0, showing that having non-zero σr improves the downstream performance.
New Benchmark
Thanks for the opportunity to clarify this. We introduced this benchmark to address a gap in existing evaluation resources. Specifically, it is built on the monoallelic peptide--MHC eluted-ligand (EL) dataset, which offers several complementary advantages. First, it evaluates the generation of variable-length amino-acid sequences, extending evaluation beyond nucleotide sequence design to a distinct biological modality. Second, the monoallelic EL setting naturally defines a biologically meaningful conditional-generation task, where the MHC allele specifies the conditioning variable and the model must learn allele-specific sequence preferences. Finally, it enables biologically relevant evaluation using an external pMHC binding/presentation predictor (DeepMHCII), alongside distributional metrics such as Fréchet-type distances.
We believe this benchmark will be a valuable addition to the generative modeling community, enabling more rigorous and targeted evaluation of generative methods on biologically meaningful tasks. To demonstrate its utility, we evaluated recent competitive methods on this benchmark, and we hope it encourages the development of stronger baselines and facilitates fair comparisons in future work.
Again, thank you for your constructive feedback. We hope we have sufficiently addressed your concerns, and would appreciate your stronger support for this paper.