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

Contrasting Sequence with Structure: Pre-training Graph Representations with PLMs

Louis Robinson, Timothy Atkinson, Liviu Copoiu, Patrick Bordes, Thomas Pierrot, Thomas D Barrett

TL;DR

BioCLIP introduces a multimodal contrastive pre-training framework that aligns 3D Protein Structure Models (PSMs) with pre-trained Protein Language Models (PLMs). By transferring rich sequence representations learned from hundreds of millions of sequences into an $\mathrm{SE}(3)$-invariant graph neural network at both the residue and whole-chain levels, BioCLIP creates general-purpose structural representations that match or outperform task-specific architectures across protein function and interaction benchmarks.

What Problem Does This Paper Address?

While machine learning has unlocked massive advances in protein modeling, progress has been asymmetric. Protein Language Models (PLMs) (e.g., ESM) excel because they train on vast databases containing hundreds of millions of amino acid sequences using proven self-supervised objectives like masked language modeling.

In contrast, Protein Structure Models (PSMs) face two fundamental bottlenecks:

  1. Data scarcity: High-confidence experimental 3D structures (such as those in the PDB) number only in the hundreds of thousands—orders of magnitude fewer than available sequences.
  2. Objective complexity: Formulating self-supervised objectives over continuous, multi-dimensional geometric graphs is significantly harder than predicting discrete sequence tokens.

BioCLIP addresses this by asking: Can we use the representational strength of pre-trained sequence models to supervise and bootstrap geometric structure models?

Methods

BioCLIP employs a dual-encoder framework inspired by CLIP (Contrastive Language–Image Pre-training), pairing a sequence encoder with a geometric graph encoder:

[Protein Sequence]  -->  [ PLM (ESM-2, Frozen) ]  --> S (Residue & Chain Embeddings)
                                                             ↕  Scaled Cosine Alignment
[Protein Structure] -->  [ PSM (SE(3) GNN)      ]  --> G (Residue & Chain Embeddings)
  • PLM Stream: Uses a frozen esm2_t30_150M_UR50D (150M parameters). Residue representations are drawn from the final layer, and the sequence-level representation is derived via mean-pooling.
  • PSM Stream: An $\mathrm{SE}(3)$-invariant Graph Attention Network (GAT). Nodes represent $\mathrm{C}_\alpha$ atoms with amino acid identities and positional encodings; edges capture local spatial orientations, relative distances (via radial basis functions), and $k$-nearest neighbor connectivity. A learned cross-attention pooling layer aggregates residue nodes into a single chain-level vector.
  • Dual-Level Contrastive Loss: The pre-training objective minimizes the sum of symmetric InfoNCE losses at two granularities: $$L = L_P \text{ (protein-level)} + L_R \text{ (residue-level)}$$ For residue alignment, 2,048 residues are sampled per batch to keep compute tractable.

  • Clustered Batching: Sequences in PDB can be trivial to distinguish. To generate hard negative pairs, the authors cluster pre-training structures at 50% sequence identity and construct batches by sampling within these clusters.

  • Downstream Fine-Tuning: The projection heads are discarded; structural representations from the GNN are concatenated with ESM sequence embeddings and fed into a small MLP head. The GNN, MLP, and the top 3 layers of ESM are fine-tuned end-to-end.

Datasets

  • Pre-training: ~490,000 sequence-structure pairs curated from RCSB PDB (filtered for structures deposited prior to May 2020, resolution $< 9\,\text{Å}$, and $< 80\%$ single amino acid redundancy).
  • Evaluation Benchmarks:
  • Function Prediction: Gene Ontology (GO) classification across Biological Process (BP), Molecular Function (MF), and Cellular Component (CC), plus Enzyme Commission (EC) number prediction (benchmarked against DeepFRI).
  • Protein–Protein Interaction (PPI): Binary interaction classification on Human (HPRD) and S. cerevisiae (DIP) datasets (benchmarked against Jha et al.).
  • Per-Residue PPI: Residue interface binding prediction evaluated on the MaSIF-site dataset (benchmarked against PeSTo).

Key Insights and Ideas

  • Cross-modal transfer compensates for structural scarcity: Rather than inventing pure-graph self-supervision heuristics (e.g., node masking or structural noise), grounding graph embeddings in mature PLM representations enables sample-efficient geometric representation learning.
  • Structural and sequence representations are additive: Even though the GNN was explicitly pre-trained to align with ESM embeddings, combining both during fine-tuning surpassed ESM alone in 25/28 evaluation checkpoints and the pre-trained GNN alone in 23/28. The two modalities offer complementary inductive biases rather than redundant signals.
  • Hierarchical contrastive objectives matter: Simultaneously aligning chain-level semantics and local residue-level coordinates equips the structural encoder to handle both global fold classifications (e.g., EC numbers) and local binding site predictions.

Key Results

BioCLIP demonstrates consistent gains over models trained from scratch and competes favorably against specialized architectures:

Task / Metric Baseline SOTA ESM Alone GNN (Pre-trained) BioCLIP (Combined)
GO: Molecular Function ($F_{\max}$) 0.546 (DeepFRI) 0.611 0.500 0.607
Enzyme Commission ($F_{\max}$) 0.798 (DeepFRI) 0.850 0.782 0.868
GO: Cellular Component ($F_{\max}$) 0.497 (DeepFRI) 0.423 0.389 0.428
GO: Biological Process ($F_{\max}$) 0.449 (DeepFRI) 0.431 0.337 0.440
Human PPI (AUCPR) 0.995 (Jha et al.) 0.992 0.994 0.993
Yeast PPI (AUCPR) 0.973 (Jha et al.) 0.934 0.981 0.974
Per-Residue PPI (Median AUCROC) 0.924 (PeSTo) 0.803 0.796 0.833
  • Outperforming specialized baselines: BioCLIP exceeds DeepFRI on EC prediction and GO Molecular Function. On GO Cellular Component and Biological Process, it achieves within 7% of DeepFRI without task-specific engineering.
  • Rapid convergence: In protein-protein interaction tasks, BioCLIP approaches final baseline performance within the first 1–3 epochs, far outpacing randomly initialized GNNs.

Limitations and Future Work

  • Coarse structural granularity: The PSM represents residues by their $\mathrm{C}_\alpha$ frames rather than an all-atom cloud. This abstraction likely explains why BioCLIP trailed PeSTo (0.833 vs. 0.924 AUCROC) on per-residue binding site prediction, as side-chain surface atoms are critical for atomic contact prediction.
  • GNN scale and over-smoothing: The PSM (3 layers, 512 hidden dimension) is substantially smaller than the 150M-parameter PLM. Exploring deeper graph backbones or Transformer-based geometry engines (such as AlphaFold’s Evoformer) could close the capacity gap.
  • Contrastive batch sizing: Training relied on standard softmax InfoNCE with batch size 128. Adopting memory-efficient sigmoid loss formulations (e.g., SigLIP) could unlock substantially larger batch sizes and harder negative sampling.

Summary updated

BibTeX
@inproceedings{robinson2023contrasting,
  author = {Louis Robinson and Timothy Atkinson and Liviu Copoiu and Patrick Bordes and Thomas PIERROT and Thomas D Barrett},
  title = {{Contrasting Sequence with Structure: Pre-training Graph Representations with PLMs}},
  booktitle = {AI4Science @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=fhCSDMkrFr},
}
Figure