Abstract
As structure prediction methods generate millions of publicly available protein structures, searching these databases is becoming a significant computational bottleneck. Foldseek addresses this by aligning the structure of a query protein against a database through the description of tertiary amino acid interactions as sequences over a structural alphabet. This approach decreases computation times by four to five orders of magnitude while maintaining high sensitivity, achieving 86%, 88%, and 133% of the sensitivities of Dali, TM-align, and CE, respectively.
Introduction
The "AlphaFold revolution" has fundamentally shifted the primary challenge in structural biology from structure prediction to structure analysis. With databases like the AlphaFold Protein Structure Database and the ESM Metagenomic Atlas now containing nearly a billion predicted structures, traditional structural alignment tools—such as Dali or TM-align—have become prohibitively slow for large-scale queries.
For instance, searching a single query against 100 million structures with TM-align would take approximately one month on a single CPU. While sequence-based search methods like BLAST or MMseqs2 are significantly faster, they often fail to detect "distant homologs"—proteins that share a common ancestor and structural fold but have diverged so much in sequence that the relationship is undetectable at the amino acid level. Foldseek aims to provide the speed of sequence search with the sensitivity of structural alignment.
The 3Di Structural Alphabet and Search Pipeline
The core innovation of Foldseek is a novel structural alphabet called 3Di (3D interaction). Unlike previous structural alphabets that describe the local backbone geometry (e.g., angles between consecutive residues), 3Di describes tertiary interactions. For every residue $i$, Foldseek identifies its spatially closest neighbor $j$ and encodes their relative geometric orientation into one of 20 discrete states. These states were learned using a Vector Quantized-Variational Autoencoder (VQ-VAE) to ensure they are maximally conserved across evolution.
By converting 3D geometry into a 1D string of 3Di letters, Foldseek leverages highly optimized sequence alignment techniques. The pipeline consists of four stages:
- Discretization: Converting 3D structures into 1D 3Di strings.
- Prefiltering: Using MMseqs2 modules to quickly find candidate matches via k-mer indexing and ungapped alignment.
- Alignment: Performing a vectorized Smith-Waterman local alignment using SIMD (Single Instruction, Multiple Data) instructions. This stage combines scores from both the 3Di alphabet and the standard amino acid sequence to enhance sensitivity.
- Refinement: Optionally re-aligning high-scoring hits using a global structural aligner (Foldseek-TM) for increased precision.
Performance Benchmarking
Foldseek was evaluated using several gold-standard benchmarks, including SCOPe40 for single-domain sensitivity and HOMSTRAD for alignment quality.
Speed and Scalability
Foldseek is approximately 23,000 times faster than TM-align and 184,000 times faster than Dali when searching the AlphaFoldDB. This speedup transforms tasks that previously required weeks of supercomputing time into operations that can be performed in seconds on a standard workstation.
Sensitivity and Accuracy
Despite its speed, Foldseek maintains high sensitivity. On the SCOPe benchmark, it achieved 86%, 88%, and 133% of the sensitivity of Dali, TM-align, and CE, respectively. Furthermore, in the HOMSTRAD benchmark, Foldseek's alignment quality was found to be comparable to "gold standard" structural aligners, significantly outperforming other alphabet-based or alignment-free methods.
Discussion and Limitations
While Foldseek is highly robust, it does have limitations. It uses local alignment, which is advantageous for multi-domain proteins where domain orientations may shift, but it relies on specific thresholds (like LDDT) for defining true positives in multi-domain benchmarks. Additionally, as a 1D approximation of 3D space, 3Di may miss extremely subtle structural nuances that require full 3D superposition.
Future work may involve even faster prefilters or embedding-based approaches using deep learning to keep pace with the exponential growth of structural databases. However, Foldseek currently stands as the high-sensitivity alignment engine necessary for the next era of structural bioinformatics.
Summary updated