potentialpaper

Branching Flows: Discrete, Continuous, and Manifold Flow Matching with Splits and Deletions

Lukas Billera, Hedwig Nora Nordlinder, Jack Collier Ryder, Anton Oresten, Aron Stålmarck, Theodor Mosetti Björk, Ben Murrell

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. For discrete, continuous, and manifold state spaces, Branching Flows enables generative models of sequences whose length is determined by the model during the generative process.

Abstract. Diffusion and flow matching approaches to generative modeling have shown promise in domains where the number of elements in a state is fixed in advance (e.g. images), but require ad hoc solutions when, for example, the length of a response from a large language model, the number of atoms in a molecule, or the number of amino acids in a protein chain is not known a priori. Here we propose Branching Flows, a generative modeling framework that, like diffusion and flow matching approaches, transports a simple distribution to the data distribution. But in Branching Flows, the elements in the state evolve over a forest of binary trees, branching and dying stochastically with rates that are learned by the model. This allows the model to control, during generation, the number of elements in the sequence. We show that Branching Flows can compose with any flow matching base process on discrete sets, continuous Euclidean spaces, Riemannian manifolds, and `multimodal' product spaces that mix these components, and we demonstrate distribution matching on small molecules and antibody sequences, and that this scales to complicated domains such as protein structures. Code available at https://github.com/MurrellGroup/BranchingFlows.jl

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

FromAToBDateVersionSubmitted toPDFEvidence
5 Feb 2026GEM @ ICLR 2026submittedGEM @ ICLR 2026Accepted—[1]
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Their titles, abstracts and, where both have a PDF, the text.Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper proposes Branching Flows, a flow-matching framework for variable-length or variable-cardinality generation, where elements may split or be deleted through learned stochastic rates. The framework is developed for discrete, continuous, manifold, and mixed spaces, with experiments on molecules, antibody sequences, and protein structure/sequence generation.

The reviews indicate a promising but not yet fully resolved case. Reviewer WdYU is positive, emphasizing the importance, generality, theoretical contribution, and empirical breadth. Reviewers 2qvX and 5RPW also find the idea interesting and relevant, but raise significant concerns about clarity, exposition, and positioning. In particular, the method section is viewed as difficult to follow, with unclear explanation of the extended generator, split/deletion process, anchors, and tree alignment construction. There are also concerns about the relationship to generator matching and Edit Flows, the restrictions or inductive biases introduced by auxiliary tree alignment, and the main empirical takeaway beyond not requiring target length at inference time.

My current assessment is that this paper needs clarification, but could move toward acceptance if the authors respond convincingly. Please prioritize the following points in the author response: 1 Clearly explain the core Branching Flow construction, especially the extended generator, split/deletion jump process, anchors, and conditional paths. 2 Clarify the relation to generator matching and Edit Flows, including which parts are inherited and which are new. 3 Explicitly discuss restrictions and inductive biases introduced by the auxiliary tree/alignment space. 4 Sharpen the main empirical takeaway and justify the selected baselines for the evaluated domains. 5 Provide compact practical-cost information, including training time, sampling time, memory, and scaling with generated length or number of split/deletion events.

If these issues are resolved satisfactorily, the paper’s novelty, scope, and potential impact would make a positive recommendation plausible.

Final justification

The authors need to include their responses to the weaknesses in the next version of the paper.

Area Chair Gdyw · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper proposes Branching Flows, a flow-matching framework for variable-length or variable-cardinality generation, where elements may split or be deleted through learned stochastic rates. The framework is developed for discrete, continuous, manifold, and mixed spaces, with experiments on molecules, antibody sequences, and protein structure/sequence generation.

The reviews indicate a promising but not yet fully resolved case. Reviewer WdYU is positive, emphasizing the importance, generality, theoretical contribution, and empirical breadth. Reviewers 2qvX and 5RPW also find the idea interesting and relevant, but raise significant concerns about clarity, exposition, and positioning. In particular, the method section is viewed as difficult to follow, with unclear explanation of the extended generator, split/deletion process, anchors, and tree alignment construction. There are also concerns about the relationship to generator matching and Edit Flows, the restrictions or inductive biases introduced by auxiliary tree alignment, and the main empirical takeaway beyond not requiring target length at inference time.

My current assessment is that this paper needs clarification, but could move toward acceptance if the authors respond convincingly. Please prioritize the following points in the author response: 1 Clearly explain the core Branching Flow construction, especially the extended generator, split/deletion jump process, anchors, and conditional paths. 2 Clarify the relation to generator matching and Edit Flows, including which parts are inherited and which are new. 3 Explicitly discuss restrictions and inductive biases introduced by the auxiliary tree/alignment space. 4 Sharpen the main empirical takeaway and justify the selected baselines for the evaluated domains. 5 Provide compact practical-cost information, including training time, sampling time, memory, and scaling with generated length or number of split/deletion events.

If these issues are resolved satisfactorily, the paper’s novelty, scope, and potential impact would make a positive recommendation plausible.

Final justification

The authors need to include their responses to the weaknesses in the next version of the paper.

1 comment
Authors · CommentOpenReview ↗

Response to AC metareview, and overview of the discussion so far.

We thank the AC for their initial meta-review. During the discussion phase, in our responses to reviewers we believe we have addressed all reviewer concerns, including those highlighted by the meta-review. This has substantially strengthened the manuscript. To the specific points:

  1. "Clearly explain the core Branching Flow construction, especially the extended generator, split/deletion jump process, anchors and conditional paths"

With the guidance of the reviewer suggestions (and with the additional space allowed in the final version), we have re-organized the methods section to include material that was previously in the appendix, and streamlined this for clarity. We believe this substantially strengthens the manuscript. Reviewers WdYU and 2qvX were satisfied with the quoted clarifications, with reviewer WdYU maintaining their score (5) and reviewer 2qvX increasing their score to 5.

Reviewer 5RPW stated, understandably, that without seeing the new version they could not raise their score, but stated "That said, my concerns are about presentation rather than substance, and I would not object to acceptance if the AC/other reviewers are satisfied that the described revisions are carried out". We then offered to show them the new version in the comments, and they very generously agreed to review it, which we truly appreciate. We are awaiting their feedback on this, although we fully understand if this is not possible by the close of the discussion period, of course. We hope they will agree that this is an improvement over the submitted version, and we will happily make any further adjustments requested in their final assessment.

  1. "Clarify the relation to generator matching and Edit Flows, including which parts are inherited and which are new"

Branching Flows generalizes theorems from both Edit Flows and Generator Matching (allowing the time-dependent discrete latent process of Edit Flows, but with the full state space generality of Generator Matching, where observations can be discrete, continuous, or on manifolds. Further, Branching Flows uses a novel tree-based coupling construction not used in any prior method. This is now clarified in our revised methods text, and will further be clearly stated in our enumerated Contributions section.

  1. "Explicitly discuss restrictions and inductive biases introduced by the auxiliary tree/alignment space"

We have clarified this in our first response to reviewer 5RPW. As stated in that rebuttal, we now include a clearer characterization of this in the appendix, and refer the reader there in a brief section in the discussion. Reviewer 5RPW acknowledges that our rebuttal has addressed this concern.

  1. "Sharpen the main empirical takeaway and justify the selected baselines for the evaluated domains"

This point was primarily raised by 2qvX, and we have addressed it in our rebuttal there. In our updated manuscript this point will be more clearly stated in our discussion. Reviewer 2qvX was satisfied with our response, and has stated that it addressed their questions, and raised their score to a 5.

  1. "Provide compact practical-cost information, including training time, sampling time, memory, and scaling with generated length or number of split/deletion events"

This point was raised by WdYU. We have in our response to them included the requested wall-clock time results, which strengthens the manuscript. The reviewer noted that “The runtime and memory comparisons directly address my main concern”.

Overall, we would like to once again thank all reviewers and the AC for their time and consideration, and we believe our manuscript is substantially stronger as a result of their effort.

Reviewer 5RPWOpenReview ↗
Rating
3/6
Confidence
4/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 presents a new paradigm to model variable cardinality modalities with flow matching by introducing a branching dynamic to be learned.

Strengths and weaknesses

Strength:

  • The model tackles a very relevant problem in a novel and interesting way.
  • They empirically show the validity of the model for some "toyisch" problem on real-world data, as is common in the field.

Weaknesses:

My main critique is for the method presentation and its relation/presentation within the related work and concepts. To contextualise the weaknesses, I am familiar with the related work and have published adjacent papers on similar problems and modalities. This is not meant as a critique on the method itself, which I find very interesting, but rather how the authors are presenting it.

  • Model motivation/connection to generator matching is used extensively, while I am unsure if its really necessary or benefitial, given the generality of generator matching and its relationship to almost all model in the flow and diffusion direction. But this doubt could mainly be a product of the missing alignment and introduction to and of this related work throughout the introduction, background and method. If you draw this significantly on relations and derivations from generator matching its should be more properly introduced within the paper (not appendix).
  • I am further missing a unification of formalisms, notation, concepts and definitions, which are most kept very loose and implicit.
  • The auxiliary tree "aligment" seems to introduce quite a few restrictions (in comparison to e.g. the alignment space of EditFlows), i.e., |X_0|<|X_1|, which are neither properly disclosed nor discussed and analized. I am not arguing that this makes it a worse contribution, but think its important to be very explicit and open about it. Relatedly, a discussion on which implicit biases are possible and which aren't would be nice.
    1. Method section lacks clear structure. At its current state it feels like a stitched together consortium of topics that should be known, but does not provide a clear structure and guidance.
  • The paper brings together a lot of pretty mathematical topics (flow matching, CTMCs, hazard function, generator matching, etc.) without formally introducing them and giving a joint understanding. The paper heavily relies on very loose and verbose conceptual description and analogies, which to an outsider (and also me, even though I have spend quite some time with the related work before) is not very intuitive and clear. To me it feels like the author is very familiar within this concept space but lost perspective on how to make it understandable and intuitive for a broader audience.
  • After the first half of somewhat informal method section part, the very abstract theorems and formal definitions feel badly motivated and detached. Again this exposes limited presentation of the connection and derivation from the generator matching paper.

Some small example points:

  • Figure 2: is simultaneously visually overloaded and not to informative, while being hard to grasp.
  • Tips vs leafes.
  • Z- is not introduced or defined.
  • Anchor definition is very implicit and unspecific.

Given that my criticism is mainly rooted in presentation I am more than willing to revisit my score if my criticism is sufficiently addressed.

Questions

See weaknesses.

Limitations

See weaknesses on limitations stemming from tree induced alignment space.

Final justification

Comparing original vs. revised text the changes are mainly reordering plus light connecting sentences. Notational density is essentially unchanged, making it still not very accessible and intuitive. The core idea is pretty "simple" yet I feel like the authors are not making a good job getting it across to a broader audience.

I maintain my score. That said, this is fundamentally a presentation judgment where my read may not generalize and I would not oppose acceptance if the AC/other reviewers find the method section adequately clear.

Formatting concerns

No

8 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your thoughtful review, and for highlighting the presentation issues which we strongly agree with.

First:

Non-presentation issue: 4. "The auxiliary tree "alignment" seems to introduce quite a few restrictions..., i.e., ∣X0∣<∣X1∣|X_0|<|X_1|, ...Relatedly, a discussion on which implicit biases are possible and which aren't would be nice."

To clarify the first point (∣X0∣<∣X1∣|X_0|<|X_1|): this is not the case. Without deletions, ∣X0∣<∣X1∣|X_0|<|X_1|, but with deletions there is no such constraint (which is part of the motivation for allowing deletions). During training, after sampling X1X_1 and X0X_0, the X1X_1 state is augmented with "to be deleted" elements (denoted X1+∅X_1^{+\varnothing}), such that it is at least as long as X0X_0. You can choose any scheme to set the values of these elements (we prefer to duplicate random elements of X1X_1), and you can control how many additional elements you wish to introduce (i.e. beyond the length of max(X1,X0)max(X_1,X_0)). We now state clearly in the main text that |X_0| must be less than X1+∅X_1^{+\varnothing}, but not necessarily less than the original sample length ∣X1∣|X_1|.

Regarding inductive biases, for a given modeling problem, the key design choices are how the tree is sampled, and how the anchors are selected. For the tree sampling schemes, some of these choices are dictated by the task. Cases we have instantiated:

  • If the elements form a sequence, then the trees must be planar (i.e. coalescence must be between neighbours in the sequence), so that the extra token that arises from a split event is in the right position. If the elements are from an unordered set (as in the "equivariant" QM9 variation), then there is no planar restriction on merging when sampling the trees.
  • If there is some substructure in your sequences that you want to preserve (e.g. if you want to control the number of chains in a protein, as in the ChainStorm example), then you can enforce this via the trees: simply only coalesce elements within chains, but never between chains.
  • If you wish to have some part of the sequence fixed length (e.g. in conditional design tasks), then disallow coalescence between any pair of nodes when one of them is in the fixed-length set. This demonstrates that the tree structure is a flexible device for adapting Branching Flows to respect or enforce structural requirements of different tasks, and there are very likely more opportunities than the ones we list above. For any given task simply consider what moves you wish to allow or prevent during sampling, and then construct trees that enforce this.

Within these constraints, there are still many ways to sample tree couplings between X0X_0 and X1X_1. As we show in the QM9 variations, when elements are points in some space, sampling quality improves when tree neighbours tend to also be spatial neighbours (and we can explicitly bias the tree sampling to encourage this if we wish - see the Proximity Weighted variation). The worst case for a tree-like generative process over continuous elements is when elements form a sequence, but the spatial position of elements is completely unrelated to their position in the sequence. We show this for the deliberately-adversarial "random ordering" QM9 variation. Note that the theory is still valid here, but the marginal generator is very hard to learn.

Since the anchors control the flow on internal branches, you generally want the anchors to be bringing the element closer to its children. Taking the mean of child values (recursively), and selecting a random child value both appear to work well. See response 2qvX.

Overall, a reasonable heuristic for the continuous case is "choose a tree and anchor sampling scheme that, if you place the x_1 elements on the leaf nodes and anchors on the internal nodes, will reduce the total sum of branch lengths across the tree" (where the branch length is just the distance between nodes).

We now include a clearer characterization of this in the Appendix, and refer the reader to this in the discussion.

Presentation issues:

1. "Model motivation/connection to generator matching is used extensively, while I am unsure if its really necessary or benefitial... it should be more properly introduced within the paper" related to AC point 2: "Clarify the relation to generator matching and Edit Flows, including which parts are inherited and which are new"

Yes we believe Generator Matching is required. In fact, we first conjectured the Branching Flows construction without it, but we were unable to formally show that it would work without Generator Matching. This both because we wish to handle a diverse collection of base processes on continuous, discrete, and manifold-valued state spaces, and because the splits and deletions themselves define a jump process. These jumps need to compose with the various base processes, all of which is naturally handled by the GM framework.

In the main text, we now clarify that we employ and extend GM, and generalize the marginalization theorem from Edit Flows (but do not use a specific instance of their particular construction for Branching Flows) and clarify how GM and Edit Flows.

...But this doubt could mainly be a product of the missing alignment and introduction to and of this related work throughout the introduction, background and method.

We agree. We faced severe space constraints in the initial submission, and unfortunately the preliminaries were sacrificed. However the final manuscript allows an additional page, and we will use this to resolve the clarity issues in the initial version. We reproduce key revised sections in our comments where space allows, and sketch the changes to the rest.

2. "I am further missing a unification of formalisms, notation, concepts and definitions, which are most kept very loose and implicit."

Given the extra page and our added introduction to generator matching and methods refactoring, we now believe formalisms, notation and concepts are more clear. See various responses with new text examples of the nature of these revisions.

Method section lacks clear structure.

Sec. 3 is now clarifies structure with clear subsections: 3.1 Generator Matching background; 3.2 The latent Z, coupling X0X_0 and X1X_1 with trees; 3.3 Branching Flows: Conditional Process; 3.4 Branching Flows: Learning the marginal process (Theorems 3.4, 3.8); 3.5 Loss and training; 3.6 Sampling.

5. "...the very abstract theorems and formal definitions feel badly motivated and detached."

We believe we have addressed this in the new text. In addition to the new sections in response to reviewer 2qvX, here is an example from our revised text of what we hope is viewed as a better integration of theory and main text:

3.4 Learning the marginal process. Let ptp_t denote the marginal law of XtX_t obtained by drawing Z∼pZZ \sim p_Z and (Xt,Gt)∼pt∣Z(X_t, G_t) \sim p_{t \mid Z}. The following result extends the static-latent Generator Matching argument to the evolving auxiliary variable GtG_t. Assumptions and proofs are given in App. H.4.

Theorem 1. Suppose that Ltz,g,branch\mathcal{L}_t^{z,g,\mathrm{branch}} is linearly parametrized by Ftz,g,branchF_t^{z,g,\mathrm{branch}}. Then

Ltbranchf(x):=E[LtZ,Gt,branchf(x)∣Xt=x]\mathcal{L}_t^{\mathrm{branch}} f(x) := \mathbb{E}\bigl[\mathcal{L}_t^{Z,G_t,\mathrm{branch}} f(x) \mid X_t = x\bigr]

generates a process with marginal laws ptp_t and is linearly parametrized by

Ftbranch(x)=E[FtZ,Gt,branch(x)∣Xt=x].F_t^{\mathrm{branch}}(x) = \mathbb{E}\bigl[F_t^{Z,G_t,\mathrm{branch}}(x) \mid X_t = x\bigr].

Proof. See App. H.4.1.

Because every conditional path terminates at its sampled X1X_1, the marginal process has p1=pdatap_1 = p_{\mathrm{data}}. Trees, anchors, and branch indicators are therefore required to construct conditional training paths but not to sample from the learned marginal process. The theorem extends the static-latent result of Holderrieth et al. (2024) and the discrete auxiliary-process result of Havasi et al (2025)

6. "Figure 2: is simultaneously visually overloaded and not to informative..."

The revised version will replace this with a bigger-picture "overview" figure, and move this figure to the appendix. The new figure will have multiple visual panels, showing (left) coupling samples with trees, (middle) the conditional process (i.e. a simpler version of the right panel of the current figure), and (right) sampling from the marginal process.

7. "Z- is not introduced or defined."

This is now clearly introduced in the Generator Matching "Preliminaries" section. See response to 2qvX

"Tips vs leaves."

Fixed, using "leaves" throughout.

Anchor definition is very implicit and unspecific.

We now precisely define anchors (via a more precise definition of the base process, with the state space etc now clarified prior):

Base generator and anchors. Between split and deletion events, each element evolves independently of the others along its branch, governed by a "base" generator, which can be any element-wise conditional generator from Generator Matching. In fixed-length flow matching this generator is conditioned on the endpoint x1(i)x_1^{(i)} of the element, and we write Ltbase(⋅∣e)\mathcal{L}^\mathrm{base}_t(\cdot \mid e) for the generator conditioned to terminate at e∈Ee \in E, so that p1∣sbase(⋅∣x,e)=δep^\mathrm{base}_{1 \mid s}(\cdot \mid x, e) = \delta_e. An element of XtX_t cannot be conditioned on an element of x1x_1, because until its final split it is ancestral to several of them. Anchors supply the target instead. The anchor a(v)a(v) of a node vv of T\mathcal{T} is an element of EE that serves as the target of the base generator along the branch ahead of vv. At a surviving leaf the anchor is the element of X1+∅X_1^{+\varnothing} associated with that leaf; at all other nodes it is unconstrained. An element on branch vv evolves under Ltbase(⋅∣a(v))\mathcal{L}^\mathrm{base}_t(\cdot \mid a(v)): it would terminate at a(v)a(v) were it to reach t=1t = 1 without splitting or being deleted.

Reviewer 5RPW · CommentOpenReview ↗

The rebuttal addresses the conceptual concerns I raised (motivation for Generator Matching, inductive biases from tree/anchor sampling) and provides some concrete revised text (e.g. the anchor definition, Theorem 1 framing) that reads well. However, the rebuttal describes an extensive set of further revisions, e.g. restructured Section 3, new preliminaries, notation unification throughout, a new figure, without showing the revised text for most of these. I understand that this type of paper-wide revision cannot be fully demonstrated within the space of a NeurIPS rebuttal, but given the scope of what's being promised, I don't think I can responsibly raise my score based on a description of a plan rather than a demonstrated revision.

That said, my concerns are about presentation rather than substance, and I would not object to acceptance if the AC/other reviewers are satisfied that the described revisions are carried out.

Authors · CommentOpenReview ↗

Maybe we can resolve this in the discussion period.

Thank you for your quick response, and we understand your position. However, since we have addressed your non-presentation concerns, and since it is possible that, if decided by score alone, everything may hinge on this presentation issue, we do wonder if we cannot use the remaining discussion time to get to a point where you can be sufficiently satisfied that the revised manuscript should merit, for example, a 4 (which is defined as "Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject...")?

First: the new figure. Yes, we do not have a way of communicating this. You did list this as a "small example point" though. So perhaps, if you consider an un-reviewable new figure to be a risk, and since you did not request a replacement for it, then maybe we can come up with an alternative resolution? For example, we could either remove the current figure entirely (without replacing it) so that there is no new figure to review, or move the current figure to the appendix without replacing it in the main text?

Then: Our presentation changes are primarily expanding the methods section, and moving detail that was previously in the appendix and integrating this into the main text. Our revised methods section, in total, is around 12000 character (formatted in markdown). Given the 5k content limit on an Official Comment, and given that I don't think there are restrictions on the number of these comments we can post, if you would be happy to look over a revised methods section it seems feasible for us to provide this here?

Reviewer 2qvXOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/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 authors propose a new approach, called BranchingFlows (BFs), to address the problem of diffusion and flow matching autoregressive generative modeling, when the output sequence length is not known a priori.

The main distinguishing feature of BFs is in their state space: its elements evolve over a forest of binary trees which by their nature can branch and die, as defined by rates that are learned by the model, which allows controlling output sequence length.

Experiments show the flexibility of the proposed approach, which is illustrated through several applications including molecules, antibody and protein sequence generation.

Strengths and weaknesses

Strengths:

  • Extremely important topic: working on alternatives to Transformer architectures for autoregressive modeling has received growing attention, and this work is a fresh contribution in this space, addressing a known limitation which restricts the generation to a hardcoded sequence length.
  • The intuition I have about the inner workings of the proposed method (a generalization of generator matching, following the steps in the original paper) induce me to rate the method as technically sound. However, see also my notes on the weaknesses.
  • Empirical results cover a wide range of important and interesting applications. I particularly appreciate the flexibility of Branching Flows to be finetuned into existing pretrained fixed-length models at very low cost, in the protein structure and sequence use-case.

Weaknesses:

  • The technical part of the paper that explains the proposed method is very difficult to follow. My understanding is that the authors made a stylistic choice of placing all the nitty gritty details in the appendix, where the method is developed across tens of pages, whereas the intention was to give an intuition in the main paper. However, the intuitive description of the method is heavy in notation, and I found it difficult to properly assess the way the "extended generator" works. The base generator is clear, but the jump process governing split and deletion events is much less clear to me.
  • While none of the application use-cases developed in the experimental part of the paper fall in my domain of expertise, I wonder what is the take home message here: the metrics presented in the various tables do not seem to indicate a significant edge for the proposed method, except for the fact that baselines are given sequence lengths in advance.
Questions
  • Line 142: what are Kt,n\mathcal{K}_{t,n}? I can't find a definition. Is this related to operator splitting?
  • Overall technical definition: I understand that the "blueprint" of your formal proofs follow in some sense those in Generator matching and flow matching. You first show the conditional variants of the generator and loss, and you prove that the linear parametrized conditional generator can be marginalized meaningfully, and that the marginal loss is aligned with the conditional loss. What remains unclear to me is the role of anchors, and their role in steering the conditional paths. Can you give an intuition?
  • Can you elaborate on the take home message from the experiments? See weakness above. Did you consider relevant baselines, those that a domain expert would pick as state of the art? If so, given that the main strength of the proposed method is that it does not need an a-priori sequence length, while this information is given for the baselines, aren't you explicitly giving a competitive advantage to those baselines?
Limitations

Yes

Final justification

I raised my score after the rebuttal from the authors. They have provided solid answers to my questions, and helped me better understand their method. I already had a quite positive position w.r.t. this work, and reading other reviews and rebuttals helped me to finalize my assessment.

Formatting concerns

N/A

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We appreciate your review, and believe we can satisfactorily address all of your points in a revised manuscript.

W1: "The technical part of the paper that explains the proposed method is very difficult to follow...

We agree. In finalizing the initial submission we struggled with space constraints, and pruned the preliminaries far too heavily, which was a mistake. Fortunately NeurIPS allows an additional page for the final manuscript, and this affords much more clarity. We believe we can fully address these exposition issues, making it both more formally precise and clearer. We now properly introduce generators and Generator Matching, and clarify all of the details (see next Q) of the split and deletion jump process (such as the hazard rates and their parameterization, previously buried in the appendix), and how this composes with the base generator.

Preliminaries. Generator Matching (Holderrieth et al., 2024; Lipman et al., 2024) provides a common framework for generative processes based on flows, diffusions, and jumps. For a suitable test function ff, the infinitesimal generator of a time-inhomogeneous Markov process is Ltf(x):=ddh∣h=0+E[f(Xt+h)Xt=x].\mathcal{L}_t f(x) := \frac{d}{dh} |_{h=0^+} \mathbb{E}[f(X_{t+h}) X_t = x].

It describes the instantaneous evolution of the process. For example, a Euclidean jump diffusion with drift utu_t, diffusion covariance ata_t, and jump kernel QtQ_t has generator

Ltf(x)=∇f(x)Tut(x)+12tr(at(x)∇2f(x))+∫(f(y)−f(x))Qt(dy;x).\mathcal{L}_t f(x) = \nabla f(x)^T u_t(x) + \frac{1}{2} \mathrm{tr}\bigl(a_t(x) \nabla^2 f(x)\bigr) + \int \bigl(f(y) - f(x)\bigr) Q_t(dy;x).

The test functions are used only to characterize the process and do not appear in model outputs or training targets. A generator admits a linear parametrization when

Ltf(x)=⟨Kt,xf,Ft(x)⟩t,x,\mathcal{L}_t f(x) = \langle \mathcal{K}_{t,x} f, F_t(x) \rangle_{t,x},

where Kt,x\mathcal{K}_{t,x} is fixed by the state space and process family, while the finite-dimensional quantity Ft(x)F_t(x) specifies the process. For a flow, FtF_t contains the velocity; for a diffusion, it may contain drift and diffusion parameters; for a process with finitely many possible jumps, it contains their rates.

Please also see response to 5RPW below for more details about our revised presentation.

Q1. "Line 142: what are Kt,nsplit\mathcal{K}^{\mathrm{split}}_{t,n}? I can't find a definition. Is this related to operator splitting?" and "The base generator is clear, but the jump process governing split and deletion events is much less clear to me"

In our methods reformulation, we found it clearer to leave the general form of the composed generator (with Kt,nsplit\mathcal{K}^{\mathrm{split}}_{t,n}) in the appendix) and now include the specific instantiation (where the hazard rates etc are clearly defined in the preceding sections):

Choose absolutely continuous split- and deletion-time distributions HsplitH_\mathrm{split} and HdelH_\mathrm{del} on [0,1][0,1], with cumulative distributions satisfying Fb(t)<1for t<1,Fb(1)=1,F_b(t) < 1 \quad \text{for } t < 1, \qquad F_b(1) = 1, and hazards hb(t)=fb(t)1−Fb(t),b∈split,del.h_b(t) = \frac{f_b(t)}{1 - F_b(t)}, \qquad b \in \\{\mathrm{split}, \mathrm{del}\\}. Consequently, each required event occurs before t=1t = 1 almost surely.

Let GtG_t record the current branch of every element, and let viv_i be the branch occupied by element ii when (Z,Gt)=(z,g)(Z, G_t) = (z,g). Define

Rt,iz,g(x):=w(vi)−1,ρt,iz,g(x):=δ(vi).R^{z,g}_{t,i}(x) := w(v_i) - 1, \qquad \rho^{z,g}_{t,i}(x) := \delta(v_i).

The first quantity is the number of splits remaining in the subtree ahead of element ii; a binary tree with w(vi)w(v_i) leaves contains w(vi)−1w(v_i) - 1 such splits. The second indicates whether the current branch terminates in deletion. The corresponding instantaneous event rates are

hsplit(t)Rt,iz,g(x)andhdel(t)ρt,iz,g(x).h_\mathrm{split}(t) R^{z,g}_{t,i}(x) \quad \text{and} \quad h_\mathrm{del}(t) \rho^{z,g}_{t,i}(x).

When element ii splits, it is replaced in place by two copies assigned to vi↑v_i^\uparrow and vi↓v_i^\downarrow. When it is deleted, it is removed. The augmented process X~t=(Xt,Gt)\tilde{X}_t = (X_t, G_t) is Markov conditional on ZZ, although XtX_t alone need not be.

Let spliti(x)\mathrm{split}_i(x) duplicate element ii in xx, and let deli(x)\mathrm{del}_i(x) remove it. Let Ltz,g,base\mathcal{L}_t^{z,g,\mathrm{base}} be the sum of the per-element base generators. For x∈Enx \in E^n, the conditional generator acting on functions of XtX_t is

Ltz,g,branchf(x)=Ltz,g,basef(x)+hsplit(t)∑i=1nRt,iz,g(x)[f(spliti(x))−f(x)]+hdel(t)∑i=1nρt,iz,g(x)[f(deli(x))−f(x)].\begin{aligned} \mathcal{L}_t^{z,g,\mathrm{branch}} f(x) ={} & \mathcal{L}_t^{z,g,\mathrm{base}} f(x) \\\\ &+ h_\mathrm{split}(t) \sum_{i=1}^{n} R^{z,g}_{t,i}(x) \bigl[f(\mathrm{split}_i(x)) - f(x)\bigr] \\\\ &+ h_\mathrm{del}(t) \sum_{i=1}^{n} \rho^{z,g}_{t,i}(x) \bigl[f(\mathrm{del}_i(x)) - f(x)\bigr]. \end{aligned}

The three terms respectively govern element values, splits, and deletions.

As you can see, the generic Kt,nsplit\mathcal{K}^{\mathrm{split}}_{t,n} is replaced with the concrete f(spliti(x))−f(x)f(\mathrm{split}_i(x)) - f(x), and the role of the hazard rates (which are what must be understood in practice) is clarified.

Q2: "...What remains unclear to me is the role of anchors, and their role in steering the conditional paths. Can you give an intuition?"

This was insufficiently explained. Informally, when sampling conditional paths, an element that is evolving along an internal branch of a tree does not have a single "target" element ahead of it (as it would in standard flow matching). Instead, it can have a whole subtree of descendant elements ahead of it, each with a different state value, that will be reached by splitting and flow/diffusion. But a single element can only have a single drift/diffusion "target" that controls its direction, which is what the anchors do. Our "anchor" construction allows you to specify a scheme that distills a single endpoint target (the "anchor") from the subtree element, and along the internal branch the element behaves as though it is drifting/diffusing/mutating towards that specific anchor value.

In terms of how the anchors steer the path of an element, anchors behave identically to how an x1x_1 element steers the paths in standard flow matching: the corresponding xtx_t element evolves as though it is conditioned to terminate at the anchor state value when t=1t=1 (instead of terminating at the corresponding x1x_1 element state value, as in standard flow matching). Note that along an internal branch the element will split before t=1, and each child will then drift towards a new target. How exactly this behaves depends on your "base" process (drift vs diffusion vs discrete mutation, etc, and all the various ways of parameterizing these).

Interestingly, the theory doesn't require a specific scheme for selecting anchors. Intuitively, it makes the learning problem easier for the model if you choose anchors that will move an element closer to the collection of elements ahead of it, reducing the post-split velocities. For example, our preferred scheme for continuous states is to to recursively average the elements from leaves to tips.

We have reworked our methods section to both be more precise about the anchors. See response to reviewer 5RPW for excerpts from the new methods section.

W2 / Q3. Take home message from experiments: "Did you consider relevant baselines, those that a domain expert would pick as state of the art?"

We believe so.

QM9: ADiT is a SOTA fixed-length small molecule sampler, TD-jumps is the only variable length comparison we could make, and our architecture-matched oracle-length flow matching QM9 sampler appears on par with ADiT, so it is also an extremely strong baseline.

Antibodies: we did not use pretrained models here, but used SOTA frameworks to train architecture-matched comparisons: Discrete Flow Matching (Gat et al) for oracle length models, and Edit Flows for variable-length discrete-only generation.

Proteins: La Proteina is a recent SOTA all-atom protein sampler. ChainStorm was chosen because it 1) natively handles multiple chains, 2) has SO(3) rotations (and we wanted a manifold example), and 3) exhibits interesting spontaneous symmetry generation and we were curious about whether Branching Flows would retain this behavior.

W2 / Q3. "If so, given that the main strength of the proposed method is that it does not need an a-priori sequence length, ... aren't you explicitly giving a competitive advantage to those baselines?"

Yes, the baselines have this advantage. For unconditional generation, we show that we can approximately match fixed length models without needing to provide the length information. This establishes that, in practice, Branching Flows achieves the promise of its theory.

However, the second, more important, empirical take home relates to variable length conditional generation (e.g. "completing the molecule" for QM9, or infix sampling for antibody sequences and protein structure). For fixed length models in the unconditional sampling context, it is always possible to sample a length in advance, but when you're given part of a sample and must generate the rest, the distribution of the length of the missing part is generally not available. So for the conditional generation tasks, fixed length models are just not capable of approaching these tasks at all, and we provide the "oracle length" results purely to calibrate the reader's interpretation of the metrics. So here it is not the case that the variable length models lack "a significant edge" over the fixed length baselines, is it that there are no true baselines that can solve these tasks at all, whereas a Branching Flows model can clearly learn to sample from the appropriate conditional distribution. We anticipate that tasks of this nature, which are not standard or have not been explored yet because they are not easy to approach by standard methods, to be where Branching Flows will be most valuable in the future.

We now clarify the general empirical take home, as well as the "conditional sampling" point, in the discussion.

Reviewer 2qvX · CommentOpenReview ↗

Thank you for your rebuttal

Dear authors, indeed your rebuttal answered my questions and helped quite a lot to understand the method.

In particular, thank you for the clarification on the role and functioning of anchors, I think I understand well now!

I agree with your view on wisely using the additional page for a possible camera ready to streamline the technical part, including among others the discussion on anchors.

I am willing to align my score to that of R#WdYU.

Authors · CommentOpenReview ↗

Thank you.

Thank you for your response, and thank you again for your original review highlighting that we should more thoroughly explain the role of anchors, which will strengthen our manuscript.

And thank you for being willing to increase your score to align with R#WdYU (5). Just so that this doesn't get accidentally missed, we would like to politely request that you formally adjust your score in the system.

Reviewer WdYUOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes Branching Flows, a variable-length flow matching framework where elements can split or be deleted during generation. This allows the model to generate sequences or sets whose length is not fixed in advance. The framework is developed for discrete, continuous, manifold-valued, and mixed state spaces, and is evaluated on small molecules, antibody sequences, and protein structure/sequence generation.

Strengths and weaknesses

Strengths

  • The paper addresses an important limitation of current diffusion and flow matching models: their difficulty with variable-length generation.
  • The proposed framework is general and can be applied to discrete, continuous, manifold-valued, and multimodal product spaces.
  • The theoretical contribution is substantial and connects variable-length generation with Generator Matching and Edit Flows.
  • The empirical results are strong across several domains, including QM9, antibody sequence generation, and protein structure/sequence generation.
  • I find the comparison to fixed-length oracle models particularly compelling. Branching Flows often approaches the performance of models that are given the true length, while not requiring this information at inference time.
  • The method has clear potential beyond the scientific domains studied here, including variable-length language or sequence generation.

Weaknesses

  • The paper would benefit from a clearer practical compute analysis. Although the authors discuss asymptotic conditional path sampling and some compute resources, I would like to see end-to-end training/inference time and memory comparisons against the main baselines.
  • The design space is large, and the paper itself acknowledges that there is no formal theory guiding many choices.
Questions
  1. Can the authors provide a compact wall-clock comparison of training time, sampling time, and peak memory usage against the main baselines, especially the fixed-length oracle models, Edit Flows, and transdimensional jump diffusion?
  2. How does the practical inference latency scale with generated length and the number of split/deletion events? A small table or plot would help understand the practical cost of the added branching mechanism.
Limitations

Yes.

Final justification

I am keeping my score at 5. The rebuttal addressed my main concern regarding practical training and inference costs, and I continue to view the work as technically strong, general, and well supported empirically. I have no major unresolved concerns.

Formatting concerns

None.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank you for the careful reading and for the positive assessment. Your main request concerns empirical timing results clarifying the practical cost of training and inference. We agree that this is useful to include in our manuscript, and it often goes in our favour, relative to fixed-length baselines.

The reason we did not include this in the original version should become clear when you see the timing results: there is basically zero practical overhead for the Branching Flows operations, and the only thing that matters is the number of elements processed by the model. To explain:

  • For training: the CPU is preparing batches in parallel with the GPU processing them and, just as in regular flow matching (whose asymptotic cost we match), the batch preparation is much faster than the GPU training pass, so there is no overall cost to constant-factor overhead. The only thing that matters for training throughput is how many tokens the large model is processing. For cases where the x0x_0 is a long sequence (e.g. unconditional antibodies), and/or when the deletion rates are large, then the model sees (slightly) more tokens than the fixed-length models, and is slightly slower. A similar effect is seen for the "deletion-only" QM9 ablation, which has longer sequences on average than the fixed-length model. But in cases where Branching Flows starts x0x_0 from one element (e.g. most of our QM9 models) or a short sequence, the number of tokens per sample is, on average, less than for the fixed-length case, and so training proceeds faster.

  • For sampling: the insertion and deletion bookkeeping is negligible (just editing a single token sequence) compared to the large forward model pass, and can happen on device. So as in training, the cost is entirely dominated by the number of tokens that the model sees, and also as in training, Branching Flows can have a (slight) disadvantage when starting from a longer sequence, or an advantage when starting from a single element.

Our revised manuscript will include training and sampling timing tables and plots, as well as the explanations above (in the appendix), and a brief statement pointing to these in the main text.

Q1 / W1. "...a compact wall-clock comparison of training time, sampling time, and peak memory usage against the main baselines..."

Our revised manuscript includes the following table (Appendix) that spans a range of different configurations for QM9 and Antibody Sequence tasks, and states the take home message in the main text Results. For each task, these timings are architecture matched to the maximum extent (except where e.g. Branching Flows vs Edit Flows vs Fixed-Length differ in output heads, and except for QM9 TD-jumps sampling times where we used their model).

Training:

Task Conditioning Model Batch Tokens/batch Steps/s Samples/s Peak memory
Antibodies Unconditional Oracle length 512 62539.5 1.586 812.2 20.97 GiB
Antibodies Unconditional BF 512 67152.8 1.473 754.0 22.45 GiB
Antibodies Unconditional EF 512 63830.7 1.540 788.3 21.43 GiB
Antibodies Conditional Oracle length 512 62548.7 1.574 805.9 21.06 GiB
Antibodies Conditional BF 512 56232.3 1.736 888.9 19.28 GiB
Antibodies Conditional EF 512 52138.7 1.833 938.6 17.97 GiB
QM9 Unconditional Oracle length 1024 18483.3 1.872 1916.8 18.57 GiB
QM9 Unconditional Baseline 1024 12818.7 2.608 2671.1 13.07 GiB
QM9 Unconditional Insertion only 1024 11444.7 2.880 2949.0 11.63 GiB
QM9 Unconditional Deletions only 1024 29767.4 1.078 1104.1 32.77 GiB

Sampling:

Task Conditioning Model Batch Tokens/batch-step Samples/s Sample-steps/s Peak memory
Antibodies Unconditional Oracle length 256 31336.5 2.391 2391.1 1.14 GiB
Antibodies Unconditional BF 256 33362.5 2.246 2246.5 1.21 GiB
Antibodies Unconditional EF 256 31824.5 2.348 2348.3 1.17 GiB
Antibodies Conditional Oracle length 256 31193.0 2.373 2373.3 1.14 GiB
Antibodies Conditional BF 256 28982.3 2.519 2518.7 1.16 GiB
Antibodies Conditional EF 256 26198.2 2.822 2821.9 1.14 GiB
QM9 Unconditional Oracle length 2048 36841.5 6.392 6391.7 1.71 GiB
QM9 Unconditional Baseline 2048 24214.3 9.859 9858.8 1.41 GiB
QM9 Unconditional Insertion only 2048 22430.3 10.624 10624.0 1.39 GiB
QM9 Unconditional Deletions only 2048 59156.5 3.682 3681.8 4.27 GiB
TD-jumps Unconditional TD-jumps 2048 59392.0 1.042 1036.8 10.13 GiB

One point: for QM9 Transdimensional Jumps we used their pretrained model, and do not have training times. We did time their inference sampling (using their code, unmodified) on identical hardware to our models (see table). Their sampling appears to be ~10 times slower than ours, but we do not think this is a property of the Transdimensional Jumps framework. It is almost certainly due to model and/or implementation differences. Even though this comparison goes in our favour, we would prefer to not include this result in our timing table. Since it is not architecture matched or implementation matched, it is at best irrelevant and at worst misleading. If you disagree and wish for us to include it then we will defer to your better judgement and do so, with strong caveats about the cause of the difference.

Q2. "...how does the practical inference latency scale with generated length and the number of split/deletion events?"

Along with the table, the revised manuscript includes plots showing that the time per sample is straightforwardly predicted by the number of tokens processed by the model, and nothing else. Plotting an association between e.g. insertion events and speed would be misleading, because, for example, models that start from 1 token have more insertion events (since the length must grow more) but sample faster, since the model processes fewer tokens on average. So "number of insertion events" and "tokens processed" are confounded, and we don't want to give the impression that insertion events somehow speed up sampling, so here we will simply show that "tokens processed" perfectly predicts sampling speed. We believe, however, that the above discussion, tables, and this figure fully satisfy both empirical timing questions.

W2. "The design space is large, and the paper itself acknowledges that there is no formal theory guiding many choices."

Yes, we agree. We would like to note, however, that the manuscript establishes that the method is extremely robust across this design space (except for deliberately adversarial choices), and that the "good" choices have empirically turned out to be the natural ones, and for each task the first configuration we tried worked very well. So we consider the lack of formal theory to guide design choices to not be so harmful in practice. Further, the broad design space affords choices (e.g. merging elements that are spatially most proximal) that you can reasonably expect, a priori, to better match the inductive bias required of certain tasks, and allows you to encode structural properties of various tasks (permutation equivariance, proteins with multiple chains, allowing some regions to be fixed length - see the response to the non-presentation related issue raised by 5RPW), which is a strong advantage.

Reviewer WdYU · CommentOpenReview ↗

Rebuttal Acknowledgement

Thank you to the authors for the detailed response and additional analysis. The runtime and memory comparisons directly address my main concern, and the explanation that practical cost is driven primarily by the number of tokens processed rather than the branching operations is clear and convincing. The discussion of how this scales with sequence length, as well as the robustness across the broader design space, was also helpful.

I agree that the TD-jumps timing result should not be included, since the models and implementations are not sufficiently matched for a fair comparison. I am happy with the response and will keep my score at 5.

Authors · CommentOpenReview ↗

Thank you for your review.

We would like to again thank you for your review, and for suggesting the timing comparisons which have strengthened our manuscript.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…