TL;DR
Protriever introduces an end-to-end differentiable framework that replaces traditional, slow alignment-based protein homolog retrieval with a learned, fast vector search. By jointly optimizing retrieval and downstream sequence modeling, it achieves state-of-the-art protein fitness prediction on ProteinGym while running two orders of magnitude faster than existing GPU-accelerated alignment tools.
What Problem Does This Paper Address?
To predict how mutations affect a protein's function (fitness prediction), machine learning models rely heavily on evolutionary context by looking at homologous sequences—essentially, evolutionary cousins. Traditionally, this requires a two-stage workflow: first, building a Multiple Sequence Alignment (MSA) using heuristic search tools like JackHMMER or MMseqs2, and second, training a model conditioned on that static alignment.
However, this paradigm has major flaws. MSA-based retrieval is computationally expensive, often taking hours or days per query. It also relies on rigid sequence-similarity thresholds, meaning it frequently misses distantly related sequences or struggles with complex insertions, deletions, and structural rearrangements. Most importantly, the retrieval step operates completely independently of the downstream modeling objective, meaning the system cannot learn which homologs are actually the most informative for the task at whom.
Methods
Protriever shifts the paradigm from alignment heuristics to a data-driven, differentiable retriever-reader architecture, heavily inspired by Retrieval-Augmented Generation (RAG) in natural language processing. The framework consists of three main components:
- The Retriever: A Transformer encoder (initialized with ESM-2 35M) that maps protein sequences into a low-dimensional dense embedding space. It is pretrained using a Dense Passage Retrieval (DPR) contrastive learning paradigm to ensure homologous sequences sit closer together than non-homologous ones.
- The Index: A massive vector database containing embeddings for all ~62 million sequences in the UniRef50 database. To make similarity search fast and memory-efficient, the authors leverage the Faiss library, implementing an Inverted File Index (IVF) and Product Quantization (PQ) to compress the index down to just 12.6 GB.
- The Reader: A sequence-of-sequences model (specifically PoET) that takes both the query sequence and the retrieved homologs to predict the query's conditional likelihood.
During joint training, the entire system is optimized end-to-end using Multi-Document Reader and Retriever (EMDR) loss. Gradients flow from the reader back to the retriever, dynamically adjusting the embedding space so the retriever learns to fetch the most useful homologs for sequence reconstruction.
Datasets
- UniRef50 / UniRef100: Used for building the retrieval database index, pretraining the retriever via BLAST all-vs-all clusters, and training the reader backbone.
- ProteinGym: The primary evaluation benchmark, specifically the substitution challenge containing 217 deep mutational scanning (DMS) experiments. This benchmark systematically measures the functional effects of individual amino acid substitutions across various protein families and taxa.
Key Insights and Ideas
- Task-Aware Homology: Instead of relying on static, human-defined alignment heuristics, Protriever lets the downstream task define what makes a homolog "valuable."
- Alignment-Free Flexibility: By operating in a dense embedding space rather than requiring explicit residue-by-residue alignments, Protriever can leverage distantly related or structurally divergent sequences that traditional MSA tools discard due to low alignment scores.
- Portability & Modularity: Because the indexing phase is separated from retrieval, the pre-computed vector index is highly portable and can be updated incrementally (adding or removing sequences) without retraining the underlying language model.
Key Results
- State-of-the-Art Performance: Protriever achieves a Spearman rank correlation of 0.479 on the ProteinGym substitution benchmark, outperforming all sequence-based baselines, including pure protein language models (like ESM2) and hybrid models that rely on traditional MSAs (like MSA Transformer and the baseline PoET).
- Massive Speedups: At inference time, Protriever's vector similarity search takes just 0.0046 seconds per query. This is two orders of magnitude faster than the state-of-the-art GPU-accelerated alignment tool MMseqs2-GPU (0.613s) and orders of magnitude faster than JackHMMER (2501s), enabling proteome-wide scales of retrieval.
Limitations and Future Work
- Index Staleness: As the retriever's weights are updated during joint training, the pre-computed embeddings in the 62-million-sequence index become stale. Re-encoding the entire database is computationally expensive, forcing the authors to limit index updates to 10 times throughout training.
- Future Directions: The authors note that future work should focus on scaling to even larger databases and exploring how the specific sequences retrieved by this learned approach differ biologically from traditional MSA selections. They also suggest substituting the retriever with structure-aware models for tasks where 3D structure is paramount.
Summary updated