Generative Models for Graph-Based Protein Design

John Ingraham, Vikas K. Garg, Regina Barzilay, Tommi S. JaakkolaDGS @ ICLR 2019

Introduction

In biology, the principle that "form follows function" is paramount, and for proteins, that form is dictated by their 3D structure. While computational biology has made massive strides in predicting a protein's structure from its amino acid sequence (folding), the reverse process—protein design or inverse folding—remains a formidable challenge.

Traditional methods for designing a sequence to fit a target structure often rely on complex, physics-simulating energy functions. These approaches are computationally expensive and frequently require multiple rounds of trial-and-error. Furthermore, existing deep learning models have historically struggled with this task: they either ignored the 3D geometry entirely (as seen in pure language models) or failed to capture the complex, higher-order interactions between distant parts of a protein chain that happen to sit next to each other in 3D space.

To address this, researchers have introduced the Structured Transformer, a generative model that solves the inverse protein folding problem by designing amino acid sequences that fit a specific 3D shape. By representing protein structures as sparse graphs and using a modified attention mechanism, the model achieves state-of-the-art accuracy and generalizes to entirely new protein folds unseen during training.

The Structured Transformer Architecture

The authors propose adapting the famous Transformer architecture—originally designed for sequential text data—to handle 3D molecular graphs.

Overview of the Structured Transformer architecture and graph representation.
  1. Graph Representation: Instead of treating a protein as a linear string of letters, the model treats it as a graph where each amino acid is a node. Edges are only drawn between the $k$-nearest neighbors in 3D space (specifically, $k=30$).
  2. Invariant Edge Features: To ensure the model "sees" the structure regardless of how it is rotated or translated in space, the authors engineered features that describe the relative distance, direction, and orientation (using quaternions) between residues.
  3. Structured Self-Attention: Standard Transformers look at every word in a sentence, incurring a quadratic computational cost. The Structured Transformer, however, only attends to the 3D neighbors defined in the graph. This crucial modification makes the model's computational cost scale linearly with the length of the protein.
  4. Autoregressive Decoding: The model generates the protein sequence one amino acid at a time. Each new choice is conditioned on both the target 3D structure and the amino acids that have already been placed.

Datasets and Evaluation

The researchers trained and evaluated their model using the CATH dataset (version 4.2), which hierarchically classifies protein domains.

Crucially, they performed a "topology-level" split. This means the test set contained protein "folds" (shapes) that were entirely absent from the training set. This establishes a much higher bar for generalization than a simple sequence-similarity split, testing whether the model truly understands structural constraints rather than just memorizing sequence patterns. The final dataset included roughly 18,000 training chains and 1,900 test chains.

Key Insights

3D Locality is the Key

The authors leveraged a fundamental principle of protein science: while dependencies might look "long-range" when viewing a linear sequence, they are almost always "short-range" in 3D space. By restricting the attention mechanism to 3D neighbors, they captured the most important physical interactions while keeping the model highly efficient.

Orientation Matters

Simply knowing the distance between two points in a protein isn't enough to accurately predict the sequence.

Local coordinate frames illustrating the relative orientation between residues.

The model performs significantly better when it is provided with the relative orientation—the 6-degrees-of-freedom transformation—between residues. This spatial awareness is critical for packing side chains correctly.

Language Models Aren't Enough

The paper demonstrates that "unconditional" protein language models (like those trained on millions of sequences without structural data) struggle with inverse folding. They are "semantically bottlenecked"; they know a lot about sequence statistics but lack an understanding of the underlying structural constraints required to stabilize a specific, novel fold.

Key Results

The primary metric used to evaluate the models was perplexity, a measure of how "surprised" the model is by the correct sequence (lower is better).

  • Superior Performance: The Structured Transformer achieved a perplexity of 6.56 on the full test set.
  • Comparison: It significantly outperformed SPIN2, a previous state-of-the-art model, which yielded perplexities between 12.11 and 12.86.
  • Generalization: While standard RNN-based language models hovered around a perplexity of 16-17 (barely better than random frequencies), the Structured Transformer's ability to "read" the 3D graph allowed it to successfully design sequences for totally novel shapes.

Limitations and Future Work

While the Structured Transformer represents a significant leap forward, the authors note a few limitations:

  • Fixed Backbone: The primary model assumes a "rigid backbone," meaning the 3D coordinates are fixed during design. In reality, proteins are highly flexible. While the authors touched on "flexible backbone" features using only connectivity, more work is needed to fully handle the dynamic nature of proteins.
  • Decoding Order: The model currently generates sequences sequentially from one end to the other (N-terminus to C-terminus). Alternative decoding orders or non-sequential generation strategies might yield even better results.
  • Experimental Validation: The model performs exceptionally well on computational benchmarks, but the ultimate test—synthesizing these designed proteins in a wet lab to verify they fold into the target shapes—remains a necessary next step for future research.

Summary updated

BibTeX
@inproceedings{ingraham2019generative,
  author = {John Ingraham and Vikas K. Garg and Regina Barzilay and Tommi S. Jaakkola},
  title = {{Generative Models for Graph-Based Protein Design}},
  booktitle = {DGS @ ICLR},
  year = {2019},
}
Figure