← Latest papers
📊 statistics

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

Branching Flows is a new generative modeling framework that enables the generation of sequences with variable lengths by allowing elements to stochastically branch or die within a forest of binary trees, while remaining compatible with various flow matching processes across discrete, continuous, and manifold state spaces.

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

Published 2026-04-28
📖 4 min read☕ Coffee break read

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a robot how to build something, but there’s a catch: you don’t know how big the final object is going to be.

If you were teaching it to draw a picture, you’d give it a fixed-size canvas. If you were teaching it to write a sentence, you’d tell it to stop after a certain number of words. But what if you wanted it to design a protein molecule, a new drug, or a complex biological chain? In nature, these things don't come in "standard sizes." One protein might have 50 links, and another might have 500.

Current AI models are like artists working on fixed-size canvases. They are great at filling in a specific space, but they struggle when the "canvas" itself needs to grow or shrink.

This paper introduces "Branching Flows," a new way for AI to generate things that change in length.


The Analogy: The Magic Growing Tree

To understand how Branching Flows works, stop thinking about a flat canvas and start thinking about a Magic Tree.

1. The Seed (The Starting Point):
Most AI models start with a "blank" version of the final product. Branching Flows starts with a "seed"—a very simple, small starting point (like a single trunk).

2. The Branching (Growing the Length):
As time passes (during the AI's "thinking" process), the tree begins to grow. A single branch might suddenly split into two. This is how the AI decides, "Actually, I need more pieces here to make this molecule work." It’s not just adding pieces; it’s growing the structure from the inside out.

3. The Pruning (Deleting the Mistakes):
Sometimes, the tree grows a branch that doesn't belong—a "dead end" that doesn't lead to a useful part of the molecule. Branching Flows has a "pruning" mechanism. It can look at a branch and say, "This is a mistake; let's delete it," effectively shrinking the structure back down to the perfect size.

4. The Anchors (Guiding the Growth):
To make sure the tree doesn't grow into a chaotic mess, the AI uses "anchors." Think of these as invisible guideposts in the air. As a branch grows, it is constantly being pulled toward these guideposts, ensuring that even as the tree splits and grows, it is always moving toward the shape of a real, functional molecule.


Why is this a big deal? (The "Infix" Problem)

The researchers highlight a specific problem called "Infix Sampling."

Imagine you are building a bridge. You have the left side finished, and you have the right side finished. Now, you need to build the middle section to connect them. But you don't know how long that middle section needs to be to make the bridge stable!

Old AI models would struggle because they'd try to guess a length first, and if they guessed wrong, the bridge wouldn't fit. Branching Flows solves this. It can start with the two ends and let the "tree" grow the middle section naturally until the two sides are perfectly connected.

Real-World Applications

The researchers tested this "Magic Tree" approach on three very difficult tasks:

  • Small Molecules (Chemistry): They taught the AI to build tiny molecules. The AI successfully learned how many atoms to add and where to put them to create realistic chemical structures.
  • Antibodies (Medicine): Antibodies are the "soldiers" of our immune system. They come in many different lengths. The AI learned to grow antibody sequences that look and act like the real ones found in nature.
  • Proteins (Biology): This is the "final boss" of biology. Proteins are massive, complex 3D shapes. The AI was able to design protein structures that were so realistic that when they were run through other advanced biological simulators, they looked like real, functional proteins.

Summary

In short, Branching Flows moves AI from being a "painter" (stuck on one canvas size) to being a "gardener." It allows AI to grow, split, and prune structures, making it a powerful new tool for designing the complex, variable-sized building blocks of life.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →