NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structure-Aligned Protein Language Model

Can Chen, David Heurtel-Depeiges, Robert M. Vernon, Christopher James Langmead, Yoshua Bengio, Quentin Fournier · DOI

Abstract

Protein Language Models (pLMs) have revolutionized protein sequence analysis, yet they often lack explicit 3D structural knowledge. This paper introduces a highly efficient post-training method to inject structural intuition into sequence-only pLMs like ESM2. By aligning pLM representations with a protein Graph Neural Network (GNN) and training the model to predict discrete 3D structure tokens, the resulting "Structure-aligned" models (SaESM2) achieve massive gains in structural and fitness prediction tasks. Crucially, these models retain their sequence-only nature, requiring no 3D structures as input during inference.

Introduction

Standard pLMs are typically trained on massive sequence databases using Masked Language Modeling (MLM). While these models capture impressive biophysical representations, they lack direct knowledge of a protein's 3D fold—the primary driver of biological function. Previous attempts to bridge this gap often require 3D structures as inputs during inference, which limits their application to proteins with known structures. This work addresses the challenge: Can we teach a sequence-only pLM about 3D structures during training so it can apply that intuition to raw sequences during inference?

Methodology

The authors propose a lightweight post-training framework applied to existing pLMs (ESM2 and AMPLIFY) using a dual-task approach:

  1. Latent-Level Task (Inter-protein): Contrastive learning is used to align the pLM's residue-level embeddings with those from a frozen, pre-trained protein GNN (GearNet). This teaches the pLM how residues relate to each other across different structural contexts.
  2. Physical-Level Task (Intra-protein): The pLM is trained to predict discrete "structure tokens" (Foldseek tokens) directly from its sequence embeddings. These tokens represent local 3D geometric conformations, reinforcing the model's understanding of a residue's place within a specific fold.
  3. Residue-Level Curation: To handle noisy PDB data, the authors prioritize training on residues with high "excess loss"—where the current model struggles but a reference model succeeds—ensuring efficient learning from challenging but reliable data.
The physical-level task architecture and the resulting downstream performance gains across various metrics.

Key Results and Discussion

The structure-alignment process yields significant improvements across multiple benchmarks:

  • Structural Prediction: SaESM2 650M achieved a 59.1% increase in Precision@L/5 for contact prediction on the CASP16 dataset compared to the base ESM2 model.
  • Zero-Shot Fitness Prediction: The aligned models consistently outperformed base models on ProteinGym. This improvement suggests that structural alignment helps the model recognize when mutations physically break a protein's 3D fold, a key factor in experimental fitness.
  • Computational Efficiency: The post-training step is remarkably fast; aligning the 650M parameter ESM2 model took less than 6 hours on 8 H100 GPUs.

Visualization of the latent space reveals that SaESM2 develops more distinct structural clustering compared to the base model, indicating a successful injection of 3D knowledge into the model's internal weights.

t-SNE visualization comparing the embedding spaces of the base ESM2 650M and the structure-aligned SaESM2 650M.

Conclusion

By baking structural intuition directly into pLM weights, the authors provide a path toward more capable sequence-only models. While there is a minor trade-off in pure sequence modeling fidelity and limited gains in some functional tasks, the massive improvements in structural and fitness prediction establish SaESM2 as a powerful tool for protein engineering and characterization.

Summary updated

BibTeX
@misc{chen2025structure,
  author = {Can Chen and David Heurtel-Depeiges and Robert M. Vernon and Christopher James Langmead and Yoshua Bengio and Quentin Fournier},
  title = {{Structure-Aligned Protein Language Model}},
  year = {2025},
  eprint = {2505.16896},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16896},
}
Figure