Ancestral protein sequence reconstruction using a tree-structured Ornstein-Uhlenbeck variational autoencoder

Lys Sanz Moreta, Ola Rønning, Ahmad Salim Al-Sibahi, Jotun Hein, Douglas Theobald, Thomas HamelryckICLR 2022

Ancestral Sequence Reconstruction (ASR) is a form of "molecular time travel." By analyzing the protein sequences of living organisms (extant sequences) alongside their evolutionary family tree (phylogeny), researchers attempt to infer the sequences of their extinct ancestors. This process is vital for understanding protein evolution, designing new enzymes, and developing vaccines.

However, ASR faces two major hurdles:

  1. The Independence Assumption: Most traditional phylogenetic methods (like Maximum Likelihood or Bayesian approaches) assume that each position in a protein sequence evolves independently. In reality, amino acids interact in complex 3D networks; a mutation in one spot often requires a compensatory mutation elsewhere (known as epistasis or coevolution).
  2. Ignoring the Tree in Deep Learning: While modern Variational Autoencoders (VAEs) are excellent at learning protein representations and capturing sequence-wide dependencies, they typically treat sequences as independent data points. They fail to exploit the rich evolutionary information contained in the phylogenetic tree that relates those sequences.

This paper introduces Draupnir, a deep generative model that bridges the gap between deep learning and classical phylogenetics by embedding evolutionary history directly into a VAE.

Methods: The Draupnir Model

Draupnir replaces the standard Gaussian prior of a VAE with a Tree-structured Ornstein-Uhlenbeck (TOU) process. This is a Gaussian process where the covariance between two sequences is defined by their distance in the phylogenetic tree. This "informative prior" forces the model to learn a latent space that explicitly respects evolutionary relationships.

Draupnir Architecture

The architecture consists of:

  • Encoder: Maps leaf (extant) sequences to the latent space.
  • Decoder: A bidirectional Gated Recurrent Unit (GRU) that reconstructs the sequences from the latent space.
  • Biochemical Context: The model incorporates BLOSUM embeddings (standard amino acid substitution matrices) to give the neural network a "head start" on understanding which amino acids are chemically similar.

The model is trained using Stochastic Variational Inference (SVI) to find Maximum A Posteriori (MAP) estimates of the latent representations for both living and ancestral nodes.

Key Insights and Ideas

  • Evolution as a Structural Constraint: The TOU prior acts as a powerful regularizer. Ablation studies showed that without the tree-structured prior, the latent space becomes disorganized, and the model fails to group related sequences correctly.
  • Capturing Epistasis: Because the GRU decoder processes the entire latent vector to generate a sequence, it can learn correlations between different positions. This allows Draupnir to model coevolution, something traditional site-independent methods simply cannot do.
  • Latent Space "Time Travel": Once the model is trained on extant sequences, reconstructing an ancestor is as simple as sampling from the latent coordinates corresponding to an internal node of the tree and passing it through the decoder.

Datasets and Key Results

The authors evaluated Draupnir on 11 different datasets, including experimental datasets (where ancestral sequences were previously resurrected in a lab, like Coral fluorescent proteins) and simulated datasets ranging from small families (32 leaves) to large ones (800 leaves).

Performance Comparison
  • Accuracy: Draupnir performed on par with or better than state-of-the-art phylogenetic tools like PAML, FastML, and IQ-Tree across both simulated and experimental data.
  • Coevolution Modeling: Using Direct Coupling Analysis (DCA), the authors demonstrated that Draupnir's sampling method captured coevolutionary signals with a correlation of 0.79, compared to near-zero for baseline methods that assume site independence.
  • Scalability: The model successfully handled a dataset with 800 sequences, proving that deep generative models can be computationally tractable for realistic protein families.

Limitations and Future Work

While Draupnir represents a significant step forward, the authors note a few areas for future development:

  • Scaling to Genomes: While 800 sequences is a strong start, "genomic scale" involves tens of thousands of sequences. The authors suggest using "inducing points" (a common technique in Gaussian Processes) to handle larger datasets.
  • Fixed Phylogeny: Currently, Draupnir requires a pre-computed phylogenetic tree. A natural next step would be a model that learns the tree structure and the sequences simultaneously (latent phylogeny).
  • Decoder Complexity: The current model uses a relatively simple GRU. More expressive architectures, such as MSA Transformers, could further improve performance on complex protein families.

Summary updated

BibTeX
@inproceedings{moreta2022ancestral,
  author = {Lys Sanz Moreta and Ola Rønning and Ahmad Salim Al-Sibahi and Jotun Hein and Douglas Theobald and Thomas Hamelryck},
  title = {{Ancestral protein sequence reconstruction using a tree-structured Ornstein-Uhlenbeck variational autoencoder}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=FZoZ7a31GCW},
}
Figure