Distilling Structural Representations into Protein Sequence Models

Jeffrey Ouyang-Zhang, Chengyue Gong, Yue Zhao, Philipp Kraehenbuehl, Adam Klivans, Daniel Jesus Diaz

Protein language models, such as the widely used ESM2, have revolutionized how we extract evolution-based representations for downstream biological tasks. However, a persistent "modality gap" remains in protein machine learning. Sequence-only models are incredibly accessible and fast because they only require an amino acid string, but they often lack a deep understanding of a protein's 3D tertiary structure. Conversely, structure-based models are highly accurate for tasks like predicting mutational impacts on stability, but they require explicit 3D coordinates. These coordinates are often computationally expensive to obtain (e.g., via AlphaFold) or simply unavailable.

To bridge this gap, researchers have introduced the Implicit Sequence Model (ISM). ISM is a sequence-only protein language model that effectively "imagines" 3D structures to improve its predictions. By distilling fine-grained structural information from an atomic autoencoder into a standard sequence model, ISM achieves state-of-the-art performance on structural tasks and mutation stability—without requiring any 3D coordinates at inference time.

Methodology: Structure-Tuning

The core innovation behind ISM is a two-stage training process called structure-tuning, which teaches a sequence model to implicitly capture structural features during its pre-training phase.

  1. The Structural Expert (Atomic Autoencoder): The process begins by training a "structure encoder" using a Graph Transformer on 35,000 high-quality protein structures from the Protein Data Bank (PDB). This model examines a "microenvironment"—the specific 3D arrangement of atoms around a single amino acid—and learns to compress that spatial information into a discrete "structure token" within a codebook.
  2. The Distillation (Structure-Tuning): Next, a pre-trained ESM2 model is fine-tuned on a massive dataset of 5.8 million proteins from Uniclust30, paired with their AlphaFold-predicted structures. Alongside the standard masked language modeling task of predicting missing amino acids, the model is now tasked with predicting the discrete structure tokens generated by the structural expert.

Essentially, the sequence model learns to look at a 1D string of letters and predict the local 3D neighborhood of each letter.

Overview of the structure-tuning process, where a sequence model learns to predict tokens derived from a structural expert.

Key Insights and Innovations

Several clever design choices make ISM particularly effective:

  • Microenvironments vs. Global Folds: Unlike previous attempts that tried to teach models about the overall "fold" of a protein, ISM focuses strictly on the local atomic neighbors (the microenvironment). This fine-grained approach is much more effective at capturing the specific chemical interactions that drive protein stability and function.
  • Filtering AlphaFold's "Dark Matter": During training, the authors discovered that their structure tokens could naturally identify regions where AlphaFold's predictions were of low quality or represented intrinsically disordered ("unfolded") regions. By isolating these noisy regions into specific tokens, they could exclude them from the distillation loss, leading to a much cleaner training signal.
  • Implicit is Efficient: Because the structural knowledge is baked directly into the weights of the sequence model, ISM runs 20x faster than models that require explicit structural inputs, all while maintaining competitive accuracy.
  • Drop-in Replacement: ISM utilizes the exact same architecture as ESM2. Integrating it into existing bioinformatics pipelines requires changing only a single line of code to point to the new model weights.

Key Results

ISM consistently outperforms its parent model, ESM2, and matches or beats specialized structural models across several well-studied benchmarks:

  • Structure Prediction: On the CAMEO benchmark, ISM achieved a GDT-TS score of 0.67, a notable improvement over ESM2's 0.64.
  • Contact Prediction: ISM demonstrated a massive 40% improvement in long-range contact precision (0.49 vs. 0.35 for ESM2). This proves the model has developed a vastly superior grasp of how distant parts of a protein chain interact in folded 3D space.
  • Mutation Stability: On the gold-standard S669 dataset for predicting thermodynamic stability changes ($\Delta\Delta G$), ISM achieved an AUC of 0.76. This matches specialized, computationally heavy structure-based models while remaining entirely sequence-only at inference.
Quantitative comparison showing ISM outperforming other sequence and structural models across multiple benchmarks.

Limitations and Future Directions

While ISM represents a significant leap forward, it does have limitations. Because it relies on AlphaFold-predicted structures for its distillation training, any systematic biases present in AlphaFold's predictions might be inherited by ISM.

Furthermore, while ISM excels at biophysical and structural tasks, its performance on purely functional tasks (like predicting sub-cellular localization) remains similar to standard ESM2. This suggests that the evolutionary information already present in standard sequence models is sufficient for many functional predictions, and structural enrichment provides the most value for direct biophysical assessments.

Looking ahead, scaling the number of structure tokens or utilizing even more diverse structural experts—such as those specifically trained on protein-protein interfaces—could further boost the capabilities of implicit sequence models.

Summary updated

BibTeX
@inproceedings{ouyangzhang2025distilling,
  author = {Jeffrey Ouyang-Zhang and Chengyue Gong and Yue Zhao and Philipp Kraehenbuehl and Adam Klivans and Daniel Jesus Diaz},
  title = {{Distilling Structural Representations into Protein Sequence Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=KXrgDM3mVD},
}
Figure