PRX LifeBioinformaticsPeer-reviewed journal article
RAG-ESM: Improving pretrained protein language models via sequence retrieval
Abstract
AO_SCPLOWBSTRACTC_SCPLOWProtein language models are significantly advancing the modeling of sequence-function relationships. However, most of them are not directly informed of homology and evolutionary relationships between protein sequences. Here, we propose a method to make them homology-aware. We introduce RAG-ESM, a retrieval-augmented framework that allows to condition pretrained ESM2 protein language models on homologous sequences, using a minimal number of additional cross-attention parameters and minimal computational cost. We show that RAG-ESM models outperform larger ESM2 models for masked amino acid prediction. We find that sequence alignment capabilities spontaneously emerge in specific cross-attention heads of RAG-ESM. By using a discrete diffusion objective for training, and by conditioning on homologs during inference, RAG-ESM reaches state-of-the-art performance for conditional protein sequence generation and motif scaffolding, among sequence-based models. Our method thus possesses strong potential for scalable, efficient and controlled protein engineering.
- assay: protein sequence
- research focus: protein structure prediction
- approach: deep learning
- approach: contrastive learning
- Citations
- 3
- FWCI
- 0.91
- Field percentile
- top 29%
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- E1: Retrieval-Augmented Protein Encoder Models
Sarthak Jain, Joel Beazer, … Ali Madani·bioRxiv·Nov 12, 2025
- MSA Transformer
Roshan Rao, Jason J. Liu, … Alexander W. Rives·bioRxiv·Feb 12, 2021
- Retrieved Sequence Augmentation for Protein Representation Learning
Chang Ma, Haiteng Zhao, … Lingpeng Kong·bioRxiv·Feb 22, 2023
- ProtMamba: a homology-aware but alignment-free protein state space model
Damiano Sgarbossa, Cyril Malbranke, Anne‐Florence Bitbol·BioinformaticsPeer-reviewed·Jun 1, 2025
- Scaling down protein language modeling with MSA Pairformer
Yo Akiyama, Zhidian Zhang, … Sergey Ovchinnikov·bioRxiv·Aug 2, 2025
- Prot2Token: A multi-task framework for protein language processing using autoregressive language modeling
Mahdi Pourmirzaei, Farzaneh Esmaili, … Dong He Xu·bioRxiv·May 31, 2024