Fold2Seq: A Joint Sequence(1D)-Fold(3D) Embedding-based Generative Model for Protein Design

Yue Cao, Payel Das, Vijil Chenthamarakshan, Pin-Yu Chen, Igor Melnyk, Yang Shen

Introduction

In the field of "inverse protein design," the goal is to find an amino acid sequence that will predictably fold into a specific 3D shape. Most current deep learning models focus on designing sequences for a specific backbone structure—the exact XYZ coordinates of every atom.

However, nature is far more flexible. Many different sequences can adopt the same general fold (the overall topological arrangement of helices and sheets). Targeting a specific atomic backbone is often too restrictive and limits the diversity of designed proteins. Furthermore, real-world structural data is often "messy"—it might be low-resolution, have missing residues, or come as an ensemble of slightly different shapes (like NMR data). Existing coordinate-based models struggle with this ambiguity.

To address this, researchers introduce Fold2Seq, a novel transformer-based generative model that designs protein sequences based on a desired 3D fold rather than a rigid backbone. By learning a joint embedding space for 1D sequences and 3D voxelized structural densities, Fold2Seq generates diverse and reliable sequences that outperform existing methods, especially when dealing with low-quality or incomplete structural data.

Methodology

The authors introduce a framework that treats protein design as a translation task between two modalities: 1D sequences and 3D folds.

1. Fold Representation (3D Voxels)

Instead of using raw atomic coordinates, the model discretizes the 3D space into a $20 \times 20 \times 20$ grid of voxels. Each voxel stores the density of four Secondary Structure Elements (SSEs): alpha-helices, beta-strands, loops, and bends/turns. This makes the representation "scale-free" and far less sensitive to minor atomic fluctuations or missing data.

Voxelization process of a protein structure

2. Joint Embedding Learning

The core innovation of Fold2Seq is its ability to map both 1D sequences and 3D structures into a shared latent space. The architecture consists of:

  • Sequence Encoder (Transformer): Maps 1D amino acid sequences to the latent space.
  • Fold Encoder (3D ResNet + Transformer): Maps the 3D voxel grid to the same latent space.
  • Sequence Decoder (Transformer): Generates sequences autoregressively from this shared space.
Fold2Seq training and inference architecture

3. Loss Functions

To ensure the sequence and fold domains are perfectly aligned during training, the model employs a combination of specific losses:

  • Cross-domain Cosine Similarity: Forces the fold embedding and sequence embedding of the same protein to be close in the latent space.
  • Cyclic Loss: Ensures that a sequence generated from a fold, when passed back through the sequence encoder, returns to the original fold embedding.
  • Fold Classification Loss: A supervised task that forces the model to recognize which of the known CATH folds a representation belongs to.

Datasets and Evaluation

The model was primarily trained on the CATH 4.2 dataset, which hierarchically classifies protein domains. The data was split into In-Distribution (ID) and Out-of-Distribution (OD) sets, with the OD test set containing entirely novel folds not seen during training to test generalization.

Additionally, the authors curated specific real-world challenge sets to test robustness, including low-resolution structures (6–12Å), structures with missing residues (up to 30% removed), and NMR ensembles.

Key Results and Insights

  • The "Forest for the Trees" Advantage: By focusing on SSE densities (voxels) rather than exact atomic coordinates, the model captures the essential topology of a fold. This allows it to handle "blurry" or incomplete structural inputs that would break a coordinate-based model.
  • Superior Coverage and Diversity: The joint embedding approach effectively "translates" the language of 3D shapes into the language of 1D amino acid strings. Fold2Seq provides significantly better "coverage" (diversity of valid sequences) within a fold compared to structure-based models like Graph_trans or physics-based models like RosettaDesign. The authors even proposed new metrics (ppl_fold and cov_fold) to evaluate this fold-level diversity.
  • Robustness to Noise: In tests with 30% missing residues, Fold2Seq maintained a sequence recovery rate nearly double that of backbone-based competitors.
  • Speed and Reliability: Fold2Seq is roughly 100x faster than RosettaDesign on a CPU and 5,000x faster when using a GPU, making large-scale protein library design highly feasible. Using the iTasser structure prediction tool, the authors confirmed that sequences designed by Fold2Seq reliably fold into structures highly similar to the target fold.

Limitations and Future Work

While highly effective, the current model is limited to single-chain, single-domain proteins with fewer than 200 residues. Additionally, the 3D voxel grid is fixed and discrete. The authors suggest that moving toward continuous, SE(3)-equivariant representations (which inherently understand 3D rotations) could further improve performance. Future iterations will also need to tackle multi-chain complexes and multi-domain proteins, which are critical for therapeutic applications.

Summary updated

BibTeX
@inproceedings{cao2021fold,
  author = {Yue Cao and Payel Das and Vijil Chenthamarakshan and Pin-Yu Chen and Igor Melnyk and Yang Shen},
  title = {{Fold2Seq: A Joint Sequence(1D)-Fold(3D) Embedding-based Generative Model for Protein Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=1LjU_ItdqC},
}
Figure