// NATURE NEWS — SPAZIO & SCIENZA
A general framework for modelling realistic protein evolution in time
Nature
(2026) Cite this article
Models of protein evolution are foundational to biology, underpinning essential techniques such as phylogenetic tree inference1,2,3, ancestral sequence reconstruction4, multiple sequence alignment5, variant effect prediction6 and protein design7. Historically, for computational tractability, these models have relied on the simplifying—but biologically unrealistic—assumption that sites in a given protein evolve independently of each other. A crucial test of any evolutionary model is its ability to simulate realistic evolutionary trajectories, but the independent-sites assumption leads to simulations that poorly reflect the complexity of natural protein evolution. Here we introduce PEINT (protein evolution in time)—a flexible and generalizable deep learning framework for modelling how the entire protein sequence evolves over time while incorporating complex interactions between sites. This framework enables learning realistic patterns of constrained evolutionary transitions directly from millions of protein sequences spanning diverse fold families. Furthermore, unlike classical models that require pre-aligned sequences, PEINT learns indel dynamics directly from raw, unaligned sequences, thereby eliminating potential biases from alignment errors that can lead to incorrect inference of evolutionary patterns. By capturing higher-order epistatic interactions and modelling insertion–deletion processes that classical models typically ignore, PEINT accurately reproduces key signatures of natural evolution, including conservation patterns and family-specific dynamics. When simulating evolution along phylogenetic trees, PEINT generates sequences that preserve protein function, which we validate through experimental characterization of simulated carbonic anhydrase variants that retain enzymatic activity. PEINT thus enables realistic simulation of protein evolution that explores new sequence space while respecting structural and functional constraints. This evolution-informed generative modelling framework offers a powerful new tool for advancing both phylogenetic inference and protein engineering.
Models of protein evolution describe how protein sequences evolve over time under mutation and various selective pressures. These models are at the core of most applications in evolutionary biology, and act as the engine that powers a variety of phylogenetic methods1,2,3,4,5,6,7. Classical models of protein evolution date back to Margaret Dayhoff8, and further refinements of her seminal work have proceeded in lockstep with ever-increasing data in sequencing databases9,10,11. These methods typically use continuous-time Markov chains (CTMCs) to model protein evolution. A CTMC is parametrized by a rate matrix (frequently denoted by Q) that describes the relative mutation rates and transition probabilities of different amino acids as a function of evolutionary time. Until now, the models of protein evolution used most widely are the WAG10 and LG11 models, both parametrized by a rate matrix Q that is learned using maximum likelihood methods. The LG model generalizes WAG by adding the notion of site-rate variation, in which different sites are allowed to evolve with different overall rates, providing a means to deal with different patterns of conservation across sequences.
Although successful, these classical models come with two important shortcomings: they require sequences to be pre-aligned with gap characters (‘–’) to ensure equal length, and they assume that each site evolves independently of all other sites. Although alignment errors can lead to incorrect inference of evolutionary patterns and the independent-sites assumption is biologically unrealistic, these simplifications have remained standard in phylogenetics due to computational tractability. If a model of protein evolution is viewed as translating between ‘past’ and ‘future’ versions of a protein, then the independent-sites