Protein Representation Learning by Capturing Protein Sequence-Structure-Function Relationship

Eunji Ko, Seul Lee, Minseon Kim, Dongki Kim, Sung Ju Hwang

TL;DR

Existing protein representation learning methods typically rely on just one or two modalities and ignore the asymmetric reality of biology: protein structure and function are tightly coupled, whereas sequence correlates much more loosely with both. To solve this, the authors introduce AMMA (Asymmetric Multi-modal Masked Autoencoder), a framework that integrates sequence, 3D structure, and functional text descriptions via a unified multi-modal encoder and asymmetric decoders. AMMA achieves state-of-the-art performance on standard function prediction benchmarks while using a fraction of the parameters and pretraining compute of prior models.

What Problem Does This Paper Address?

Proteins adhere to the sequence-structure-function paradigm: amino acid sequences fold into 3D structures, which in turn dictate biological functions. However, their interrelationships are inherently asymmetric:

  • Proteins that perform identical functions through convergent evolution often share virtually no sequence similarity, yet their 3D binding geometries and chemical active sites are closely conserved.
  • A single mutation can drastically alter function without noticeably shifting the backbone, or substantial mutations can occur with zero functional change.

Most existing self-supervised methods either model sequences alone or use contrastive learning across pairs (e.g., sequence-structure or sequence-text). The authors show that contrastive pairing distorts modality relationships—forcing artificial sequence alignment at the expense of natural structure-function correspondence. Furthermore, contrastive methods cannot easily ingest incomplete or unpaired data (e.g., proteins with known structures but no curated functional text).

Methods

AMMA approaches representation learning via a masked autoencoding setup designed around modality asymmetry:

[Sequence, Structure, Function] 
       │ (Frozen Pretrained Encoders + Projection)
       ▼
[Dirichlet Mask Sampling] (Preserves M = 160 tokens total)
       │
       ▼
[Unified Multi-modal Encoder] (8-layer Transformer)
       │
       ├─► Sequence Decoder  <-- takes only Z_seq
       ├─► Structure Decoder <-- takes Z_seq + Z_func (auxiliary)
       └─► Function Decoder  <-- takes Z_seq + Z_str  (auxiliary)
  1. Uni-modal Feature Extraction: Off-the-shelf frozen encoders extract raw representations: ESM-1b (sequence), GearNet (structure), and PubMedBERT-abs (functional text), each projected to dimension $D = 512$.
  2. Dirichlet Mask Sampling: Token keeping ratios ($\lambda_{\text{seq}}, \lambda_{\text{str}}, \lambda_{\text{func}}$) are sampled from a Dirichlet distribution ($\alpha = [1, 2, 2]$) and masked down to a fixed budget of $M = 160$ tokens before concatenation.
  3. Unified Multi-modal Encoder: An 8-layer Transformer models inter-token self-attention across all preserved modalities jointly.
  4. Asymmetric Decoding:
  5. The sequence decoder takes only sequence latents ($Z'_{\text{seq}}$) to keep sequence representations grounded.
  6. The structure decoder takes sequence and function latents ($Z'_{\text{seq}}, Z'_{\text{func}}$).
  7. The function decoder takes sequence and structure latents ($Z'_{\text{seq}}, Z'_{\text{str}}$).

By providing structure and function as auxiliary inputs to each other rather than letting them autoencode themselves, the decoders cannot trivially "cheat." Instead, the multi-modal encoder is forced to bake rich structural and functional context directly into the sequence tokens.

Datasets

  • Pretraining Dataset: A curated set of 120k triplets (sequence, structure, function text) created by taking the intersection of AlphaFold v2 (440k structures) and ProtDescribe (553k functional text descriptions).
  • Unpaired Scaling Dataset: An additional 50k dataset (25k sequence-structure pairs from AlphaFoldDB and 25k sequence-function pairs from ProtDescribe) used to evaluate semi-supervised pretraining.
  • Evaluation Benchmarks: Evaluated on downstream Enzyme Commission (EC) number prediction and Gene Ontology (GO) term prediction (split into GO-MF, GO-CC, and GO-BP) at a 95% sequence identity cutoff.

Key Insights and Ideas

  • Preserving fewer sequence tokens helps: Setting Dirichlet parameters to $\alpha_{\text{seq}}=1, \alpha_{\text{str}}=2, \alpha_{\text{func}}=2$ yields the highest downstream performance. Heavy sequence masking forces the sequence latents to compress dense biological information, while higher retention of structural/functional tokens provides necessary auxiliary cues.
  • Symmetric decoding fails: When decoders only reconstruct a modality from its own masked tokens (symmetric baseline), performance collapses (average $F_{\text{max}}$ drops from 63.2 to 52.0). Decoders over-rely on self-reconstruction rather than backpropagating inter-modal associations.
  • Biologically faithful attention: Cross-attention maps from functional tokens to sequence residues closely match true ligand-binding sites identified by AutoDock Vina (e.g., ATP- and NADP-binding pockets), suggesting the model naturally learns active site localization.

Key Results

  • Downstream Accuracy: AMMA achieves the highest overall scores on EC and GO tasks, reaching 63.2 average $F_{\text{max}}$ and 56.5 average AUPR, outperforming pure sequence models (ESM-1b: 61.4 / 54.3), structure models (GearNet: 62.7 / 52.9), and contrastive sequence-text models (ProtST: 62.7 / 55.8).
  • High Efficiency: While ProtST requires 650M parameters and 205 pretraining hours on 4× Tesla V100 GPUs, AMMA uses only 111M trainable parameters and completes pretraining in 120 hours on 2× RTX 3090 GPUs.
  • Flexibility with Unpaired Data: Pretraining on the additional 50k unpaired pairs further improved average performance from 77.2 to 77.5 on EC/GO-MF, demonstrating that AMMA scales to incomplete experimental records.

Limitations and Future Work

  • Dependency on Pretrained Uni-modal Models: AMMA relies on frozen feature extractors (ESM-1b, GearNet, PubMedBERT); errors or blind spots in these upstream representations can propagate into the fused latent space.
  • Downstream Testing Scope: Benchmarking was limited to EC and GO annotation tasks; evaluating on binding affinity, variant effect prediction, or de novo design remains open.
  • Active Site Discovery: Although qualitative visualizations show strong alignment with true binding pockets, the authors did not quantitatively evaluate AMMA on pocket detection or active-site identification benchmarks.

Summary updated

BibTeX
@inproceedings{ko2024protein,
  author = {Eunji Ko and Seul Lee and Minseon Kim and Dongki Kim and Sung Ju Hwang},
  title = {{Protein Representation Learning by Capturing Protein Sequence-Structure-Function Relationship}},
  booktitle = {MLGenX @ ICLR},
  year = {2024},
  url = {https://openreview.net/forum?id=1YBM58iaNt},
}

Loading related content...

Figure