Generating functional protein variants with variational autoencoders

Alex Hawkins-Hooker, Florence Depardieu, Sebastien Baur, Guillaume Couairon, Arthur Chen, David Bikard

TL;DR

This paper introduces variational autoencoders (VAEs) for generating novel, functional protein variants. By training VAEs on natural protein sequence data, they demonstrate the ability to create functional variants of bacterial luciferase, with models trained on aligned sequences outperforming those trained on raw sequences in capturing functional constraints.

What Problem Does This Paper Address?

Designing proteins with specific functions and properties is a major goal in bioengineering. Traditional methods like directed evolution and rational design have limitations. While deep learning models show promise, there's a need for experimental validation of their ability to generate functional protein variants directly from sequence data, especially by learning from the vast natural sequence variation available in protein databases. The challenge lies in effectively capturing the complex sequence-function relationships that govern protein behavior.

Methods

The core of this work involves using Variational Autoencoders (VAEs), a type of deep generative model. They developed two main VAE architectures:

  • MSA VAE: This model takes aligned protein sequences (from a Multiple Sequence Alignment) as input. It uses fully-connected feed-forward networks for both the encoder and decoder. The alignment helps capture long-range dependencies, likely reflecting 3D structure.
  • AR-VAE: This model works with raw, unaligned protein sequences. It employs a convolutional neural network for the encoder and a hybrid decoder that combines upsampling with an autoregressive component. This autoregressive decoder predicts amino acids sequentially, conditioned on previous predictions and a latent representation.

They also explored conditional VAEs, where auxiliary information (like predicted solubility) is fed into the model to guide the generation of variants with specific properties.

Datasets

  • Training Data: Approximately 70,000 sequences from the luciferase-like oxidoreductase family, obtained from InterPro (IPR011251). This dataset was split into training and validation sets.
  • Target Protein for Validation: The luxA subunit of bacterial luciferase from P. luminescens (UniProt id: P19839).

Key Insights and Ideas

  • Aligned vs. Unaligned Sequences: Training VAEs on aligned sequences (MSA VAE) proved more effective at capturing long-distance dependencies and functional constraints compared to models trained on raw sequences (AR-VAE). This highlights the importance of evolutionary context for understanding protein function.
  • Generative Power for Function: The VAEs weren't just generating plausible sequences; they were generating sequences that retained measurable luminescence activity, demonstrating their practical utility in protein design.
  • Conditional Generation for Property Engineering: The ability to use conditional VAEs to specifically engineer for increased protein solubility while maintaining function is a significant step towards controlled protein design.
  • Latent Space Organization: The latent space learned by the MSA VAE appears to be organized in a way that encourages exploration of functional regions between existing sequences, allowing for the generation of variants with substantial differences from known sequences.

Key Results

  • Functional Variants:
    • 9 out of 11 sequences generated by the MSA VAE showed measurable luminescence.
  • 6 out of 12 sequences generated by the AR-VAE showed measurable luminescence.
  • All 23 variants generated using conditional models (for solubility) retained measurable luminescence.
  • Distant Functional Variants: The most distant functional variant generated contained 35 differences relative to the nearest training set sequence.
  • Solubility Engineering: Conditional VAEs successfully generated variants with increased solubility while preserving luminescence. For example, 5 out of 12 MSA VAE generated variants showed improved solubility, with 4 of those maintaining high luminescence.
  • Model Performance: The MSA VAE model's likelihood scores were the best predictors of experimental luminescence values, outperforming the AR-VAE and baseline methods (BLOSUM score, PFAM HMM score).

Limitations and Future Work

  • MSA Dependence: The MSA VAE requires the construction of a large multiple sequence alignment, which can be challenging and may limit the diversity of sequences that can be effectively modeled if alignments become too wide or unreliable.
  • AR-VAE Limitations: While AR-VAE can handle raw sequences, it showed a bias towards local dependencies and was less effective at capturing long-range interactions compared to the MSA VAE.
  • Future Directions:
    • Exploring alternative sequence models like transformers for capturing long-range interactions in raw sequence data.
  • Developing better quantitative measures for evaluating the quality of generated sequences.
  • Combining these generative approaches with existing engineering techniques for more powerful and widely applicable protein design.
  • Further investigation into how to effectively leverage raw sequence data for generative protein design.

Summary updated

BibTeX
@article{hawkinshooker2021generating,
  author = {Alex Hawkins-Hooker and Florence Depardieu and Sebastien Baur and Guillaume Couairon and Arthur Chen and David Bikard},
  title = {{Generating functional protein variants with variational autoencoders}},
  journal = {PLOS Computational Biology},
  year = {2021},
  url = {https://openreview.net/forum?id=iNJely6V-M},
}
Figure