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

Fast, sensitive detection of protein homologs using deep dense retrieval

Liang Hong, Zhigang Hu, Siqi Sun, Xiangru Tang, Jiuming Wang, Qingxiong Tan, Liangzhen Zheng, Sheng Wang, Sheng Xu, Irwin King, Mark Gerstein, Yu LiNature Biotechnology 2024

Abstract

The identification of protein homologs in large databases using conventional methods, such as protein sequence comparison, often misses remote homologs. Here, we offer an ultrafast, highly sensitive method, dense homolog retriever (DHR), for detecting homologs on the basis of a protein language model and dense retrieval techniques. Its dual-encoder architecture generates different embeddings for the same protein sequence and easily locates homologs by comparing these representations. Its alignment-free nature improves speed and the protein language model incorporates rich evolutionary and structural information within DHR embeddings. DHR achieves a >10% increase in sensitivity compared to previous methods and a >56% increase in sensitivity at the superfamily level for samples that are challenging to identify using alignment-based approaches. It is up to 22 times faster than traditional methods such as PSI-BLAST and DIAMOND and up to 28,700 times faster than HMMER. The new remote homologs exclusively found by DHR are useful for revealing connections between well-characterized proteins and improving our knowledge of protein evolution, structure and function.

Introduction

Identifying protein homologs—sequences that share a common ancestor—is the bedrock of bioinformatics. It allows researchers to predict a protein's function, trace its evolution, and, crucially, predict its 3D structure. For decades, the field has relied on alignment-based tools like BLAST and HMMER. However, these tools often fail to find "remote homologs": proteins that share the same 3D fold and function but have diverged so much in sequence that they no longer "look" alike to character-matching algorithms. Furthermore, as genomic databases explode in size, the computational cost of traditional sensitive searches has become a massive bottleneck.

Published in Nature Biotechnology, the Dense Homolog Retriever (DHR) reimagines this process by moving away from character-by-character sequence alignment toward "dense retrieval" in a high-dimensional vector space.

Methods: The DHR Framework

DHR shifts the paradigm from alignment to embedding using a deep-learning framework.

Dual-Encoder Architecture and Dense Retrieval

DHR utilizes two separate encoders based on the ESM-1b protein language model. One encodes the "query" protein, while the other encodes "candidate" proteins in a database. Instead of comparing amino acid strings, DHR represents every protein as a fixed-length vector (an embedding). Finding a homolog becomes a mathematical problem: calculating the dot product (similarity) between two vectors. Because the database can be embedded "offline" once, searching for a new query only requires one forward pass through the encoder and a fast vector search, bypassing expensive dynamic programming.

Contrastive Learning

The model was fine-tuned using a contrastive loss function. During training, it was presented with pairs of known homologs (positive samples) and non-homologs (negative samples), teaching the model to "pull" related proteins together in the vector space and "push" unrelated ones apart.

Overview of the DHR framework. (a) The inference pipeline for dense retrieval and downstream MSA construction for AlphaFold2. (b) The contrastive learning module and data sampling strategy used during training.

Datasets and Evaluation

The model was trained on 2 million sequences from UniRef90. Evaluation was conducted on gold-standard databases like SCOPe and targets from CASP13-15. To ensure no data leakage, a custom "New-Protein Dataset" of 650 proteins released after the training cutoff was also used.

Key Results

DHR demonstrates significant improvements in both sensitivity and computational efficiency over traditional methods.

Enhanced Sensitivity for Remote Homologs

DHR achieved a >10% increase in sensitivity over previous methods on the SCOPe dataset. For challenging cases at the superfamily level, sensitivity increased by >56%. This suggests that protein language models can capture implicit structural constraints, allowing DHR to find homologs that share a 3D shape even with less than 20% sequence identity.

Benchmark comparison of DHR sensitivity against state-of-the-art alignment-based and structure-based search tools.

Unprecedented Speed

DHR is up to 22 times faster than PSI-BLAST and DIAMOND, and up to 28,700 times faster than HMMER. It can retrieve queries from a 70-million-entry database in seconds on a single GPU.

Improving Downstream Structure Prediction

When DHR-generated Multiple Sequence Alignments (MSAs) were fed into AlphaFold2, accuracy improved significantly, particularly for "Free Modeling" targets (proteins without known templates), reducing the r.m.s.d. by an average of 0.4 Å.

Discussion and Future Work

While DHR offers a major leap forward, it has limitations. Performance degrades for proteins longer than 1,000 amino acids due to the underlying ESM architecture. Additionally, storing dense embeddings for billions of sequences requires significant memory, though this is mitigated by vector search libraries like FAISS.

Future iterations may incorporate structural data directly into the training loop to further break the performance ceiling. DHR has the potential to become a standard pre-filtering step for large-scale genomic searches, making sensitive homology detection accessible without massive supercomputing clusters.

Summary updated

BibTeX
@inproceedings{hong2024fast,
  author = {Liang Hong and Zhigang Hu and Siqi Sun and Xiangru Tang and Jiuming Wang and Qingxiong Tan and Liangzhen Zheng and Sheng Wang and Sheng Xu and Irwin King and Mark Gerstein and Yu Li},
  title = {{Fast, sensitive detection of protein homologs using deep dense retrieval}},
  booktitle = {Nature Biotechnology},
  year = {2024},
  doi = {10.1038/s41587-024-02353-6},
}
Figure