LineageFlow: Flow Matching for High-Fidelity Family-Aware Protein Sequence Generation
Langzhang Liang, Ming Yang, Yi Feng, Junfan Li, Shirui Pan, Yinghui Xu, Tianlei Ying, Yizhen Zheng, Zenglin Xu · 2026
Read LineageFlow: Flow Matching for High-Fidelity Family-Aware Protein Sequence Generation by Langzhang Liang, Ming Yang, Yi Feng, Junfan Li, Shirui Pan, Yinghui Xu, Tianlei Ying, Yizhen Zheng, Zenglin Xu (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-22252.txt.
Introduction
Liang and colleagues present LineageFlow, a model that drafts new protein sequences true to a chosen family. Most discrete generators start from blank or masked noise. They must then rebuild conserved parts from scratch. LineageFlow instead starts from lineage priors drawn from ancestral sequence reconstruction, so generation becomes guided mutation from an evolved scaffold. Family validity nears that of natural held-out sequences, and structural confidence beats uniform and masked baselines. A midway rerouting trick adds further gains without step-by-step predictor guidance.
Catalog record
| CREATOR | Langzhang Liang, Ming Yang, Yi Feng, Junfan Li, Shirui Pan, Yinghui Xu, Tianlei Ying, Yizhen Zheng, Zenglin Xu |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 85776 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.22252
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
LineageFlow: Flow Matching for High-Fidelity Family-Aware Protein Sequence Generation Langzhang Liang, Ming Yang, Yi Feng, Junfan Li, Shirui Pan, Yinghui Xu, Tianlei Ying, Yizhen Zheng, Zenglin Xu Abstract Protein sequence generation for engineering requires samples that are biophysically plausible and, when targeting a family/domain, remain recognizable members while exploring within-family diversity. Current discrete generative models typically start from uniform or masked-token noise, which discards strong position-specific constraints induced by evolution and forces the model to reconstruct conserved residues from scratch, leading to weak family control and low plausibility. We propose LineageFlow , a Dirichlet flow-matching model that initializes generation from lineage priors derived from ancestral sequence reconstruction, turning generation into structured mutation from an evolved scaffold. Across diverse protein families, LineageFlow achieves family validity close to held-out natural sequences and improves predicted structural confidence over uniform-/mask-initialized baselines while maintaining substantial novelty and diversity. Finally, we introduce rerouting , a single intermediate-time mutate–select–amplify intervention that enables objective-guided sampling without per-step predictor guidance and yields further gains in plausibility, including a zero-shot enzyme generation case study. Code is available at https://github.com/Jinx-byebye/LineageFlow . 1 Introduction Protein engineering requires searching sequence space for proteins that (i) remain members of a target family/domain and (ii) exhibit favorable properties ( 3 ; 25 ) . Deep generative models—ranging from large protein language models ( 22 ; 10 ; 18 ) to discrete diffusion and flow-based approaches ( 1 ; 4 ; 28 ) —offer a promising route. Here we study sequence generation under evolutionary constraints: samples should be biophysically plausible and, when conditioned on a specific family/domain, remain recognizable members while exhibiting nontrivial within-family diversity. These requirements are foundational: evolutionary consistency is closely tied to functional relevance, and plausibility (e.g., foldability) is a basic sanity check for protein-like sequences. A key yet underappreciated design choice in discrete generative processes is the initialization (prior / corruption distribution). Common choices—uniform simplex noise or masked-token corruption—are family-agnostic ( 23 ; 1 ) . However, family membership is characterized by site-specific evolutionary structure: many sites are highly conserved to maintain structural integrity and biochemical function, while others vary to allow for functional adaptation and conformational diversity ( 7 ; 26 ) . Generic priors erase this structure, forcing the denoiser to reconstruct nearly every residue—including conserved positions—from heavily corrupted states. This “from-scratch synthesis” burden is most severe early in the trajectory. We propose an alternative perspective: generation within a lineage is more naturally formulated as transport from an ancestral distribution rather than synthesis from generic noise. We introduce Lineage-Prior Flow Matching (LineageFlow), which replaces generic priors with phylogeny-informed ancestral priors computed via ancestral sequence reconstruction (ASR). Rather than learning to synthesize a protein from scratch, the model learns to mutate variable positions and preserve conserved scaffolds. To support targeted design, we further introduce Rerouting, an inference-time steering mechanism. Unlike continuous guidance methods that require gradients at every step, Rerouting applies a single , directed-evolution–inspired ”mutate–select–amplify” intervention within the flow ( 3 ) . This steers the trajectory toward user-specified fitness objectives while empirically preserving family validity under our evaluation. Figure 1 provides a schematic overview. Figure 1: LineageFlow overview. A: with noise/mask initialization, conditioning on only a family label can still require generating sequences from scratch and can fail to yield a recognizable family-domain sequence. B: lineage priors preserve conserved scaffolds, turning generation into structured mutation within a family manifold. C: rerouting applies a single intermediate-time mutate–select–amplify intervention for objective-guided sampling without per-step predictor guidance. Our main contributions and findings are: • Ancestral priors beat generic noise: Rather than generating protein sequences from noisy priors, we encode ancestral information in priors, turning generation from “from-scratch” denoising under uniform/mask noise into structured mutation from an evolved scaffold. • Manifold-preserving guidance via single-step rerouting: Instead of injecting predictor guidance at every Euler step, rerouting applies a single intermediate-time mutate–select–amplify intervention that steers samples toward objectives while empirically preserving family validity. • Near-natural family validity and improved plausibility: In large-scale experiments across diverse protein families, LineageFlow achieves family validity close to held-out natural sequences with improved plausibility proxies and strong novelty/diversity; rerouting enables a zero-shot enzyme case study on held-out families. 2 Related Work Protein sequence generative models. Large protein language models trained on massive corpora learn rich sequence regularities and can be used for unconditional generation or prompted design ( 22 ; 10 ; 18 ) . More recently, generative processes such as diffusion have been adapted to protein sequences ( 1 ) , and flow matching has been developed for discrete sequence design via probability-simplex transport ( 23 ) . Protein Bayesian flow networks provide another likelihood-based discrete generative framework ( 4 ) . These approaches differ in modeling assumptions and sampling procedures, but many default to generic priors/corruptions (uniform or masked noise), which can make accurate family control challenging when evolutionary constraints are strong. Family- and domain-conditioned generation. Conditioning mechanisms for protein generation typically provide family information explicitly. One strategy is to attach metadata/control tokens during training and prompt generation at inference (e.g., family tags) ( 18 ) . Another strategy conditions on evolutionary context directly, for instance by encoding an input MSA or a set of related sequences and generating new sequences in that context ( 21 ; 28 ) . However, our experiments show that such signals do not necessarily translate into accurate family recognition. In contrast, LineageFlow achieves high-fidelity family-aware generation by initializing the generative process from a family-specific ancestral prior without feeding family labels or an MSA prompt into the denoiser. Objective-guided generation and directed evolution. Beyond matching natural sequence statistics, many protein design tasks aim to optimize external objectives. In protein generation, such objectives are commonly incorporated either by (i) explicit conditioning (e.g., control tags or supervised labels) ( 18 ) , (ii) post-hoc reranking/filtering with learned property predictors ( 30 ) , or (iii) adapting the generator itself via reinforcement learning or model-based optimization ( 17 ; 5 ) . These strategies can be effective but may trade off against family fidelity if property optimization pulls samples off-manifold. Directed evolution provides a complementary experimental paradigm, iteratively mutating and selecting a population to improve function ( 3 ) . LineageFlow’s rerouting adapts this idea as an intermediate-time inference operator ( mutate–select–amplify ), enabling objective-guided sampling while retaining the family-conditioned generative trajectory. 3 Background: Flow Matching on the Probability Simplex Notation. Let K\in\mathbb{Z}^{+} be the amino-acid alphabet size and let S_{K}=\{\mathbf{x}\in\mathbb{R}^{K}_{\geq 0}:\mathbf{1}^{\top}\mathbf{x}=1\} denote the probability simplex. We embed a discrete residue y\in\{1,\dots,K\} as the corresponding vertex \mathbf{e}_{y}\in S_{K} . Let \mathcal{H} denote a collection of protein families. For each family h\in\mathcal{H} with aligned length L_{h} , define the relaxed sequence space \mathcal{X}_{h}:=(S_{K})^{L_{h}} . An element \mathbf{X}=(\mathbf{x}^{(1)},\dots,\mathbf{x}^{(L_{h})})\in\mathcal{X}_{h} represents per-position categorical distributions, and a discrete aligned sequence \mathbf{s}=(y^{(1)},\dots,y^{(L_{h})})\in\{1,\dots,K\}^{L_{h}} corresponds to the vertex \mathbf{X}(\mathbf{s})=(\mathbf{e}_{y^{(1)}},\dots,\mathbf{e}_{y^{(L_{h})}})\in\mathcal{X}_{h} . Problem setup: Family-aware generation as flow matching on simplex. Let p_{\mathrm{data}}^{(h)} denote the empirical distribution on \mathcal{X}_{h} , observed through samples \mathbf{X}_{1}\sim p_{\mathrm{data}}^{(h)} . Our goal is to learn a generator p_{\theta}^{(h)} whose decoded samples match p_{\mathrm{data}}^{(h)} ; we do so by introducing a tractable prior q_{0}^{(h)} and learning a neural time-dependent vector field \hat{\mathbf{v}}(\mathbf{X},t;\theta) (shared across families) that transports q_{0}^{(h)} toward p_{\mathrm{data}}^{(h)} via flow matching. We treat MSA gaps as missing data (excluded