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

Extreme-Scale Many-against-Many Protein Similarity Search

Oguz Selvitopi, Saliya Ekanayake, Giulia Guidi, Muaaz G. Awan, Georgios A. Pavlopoulos, Ariful Azad, Nikos Kyrpides, Leonid Oliker, Katherine A. Yelick, Aydin Buluç · DOI

TL;DR

This paper presents a groundbreaking approach to protein similarity search, achieving an all-vs-all comparison on a massive dataset of 405 million proteins in under 3.5 hours using over 20,000 GPUs. This dramatically cuts down computation time from weeks to hours, enabling unprecedented scalability for biological discovery. The key innovation lies in novel matrix-based blocking techniques that overcome significant memory limitations and load imbalance challenges inherent in such large-scale searches.

What Problem Does This Paper Address?

The exponential growth of biological data, particularly protein sequences, has made similarity search a critical but increasingly challenging computational task. Identifying similarities between proteins is fundamental to understanding their functions, evolutionary relationships, and roles in biological systems. However, performing an "all-vs-all" comparison (where every protein is compared against every other protein) on massive datasets, like the 405 million proteins used here, is computationally intensive. This is due to:

  • Scalability: The sheer volume of data requires immense computational resources.
  • Memory Footprint: Storing and managing the indices for all pairwise comparisons creates a huge memory demand, making it difficult to scale to larger datasets.
  • Sparsity and Irregularity: Protein sequence lengths vary, and only a small fraction of pairwise comparisons will yield significant similarities. This inherent sparsity and irregularity make efficient parallelization difficult, leading to potential load imbalance across computational nodes.
  • I/O Bottlenecks: Traditional approaches often rely heavily on disk I/O, which can become a significant bottleneck at scale.

The paper aims to overcome these challenges to enable faster and more scalable protein similarity searches, crucial for fields like metagenomics and comparative genomics.

Methods

The authors developed a system called PASTIS (Protein Alignment via Sparse Matrices) that leverages several key innovations:

  • GPU Acceleration: They harness the massive parallelism of GPUs for the compute-intensive alignment tasks, which are well-suited for SIMD operations.
  • Matrix-Based Blocking (Blocked 2D Sparse SUMMA): This is the core innovation for memory management. Instead of processing the entire comparison matrix at once, they break it down into smaller blocks. This allows them to manage the memory footprint more effectively and perform the search incrementally. This technique is inspired by linear algebra operations and adapted for sparse matrices.
  • Load Balancing Techniques: To address the uneven distribution of work that can arise from blocking, they propose two schemes:
  • Triangularity-based load balancing: This method only computes blocks that intersect with the upper triangular portion of the similarity matrix, reducing sparse computation but potentially leading to load imbalance in partial blocks.
  • Index-based load balancing: This scheme aims for better load balance by pruning blocks while preserving the original distribution of non-zeros, ensuring each pair is aligned only once.
  • Pre-blocking: This optimization technique allows for the pre-computation of candidate pairs for the next block while the current block's alignments are being processed on GPUs. This effectively hides the overhead of sparse computations and improves resource utilization.
  • Heterogeneous Node Architecture Utilization: They strategically assign memory-bound sparse computations to CPUs and compute-bound alignment tasks to GPUs, maximizing the use of each node's resources.

Datasets

The primary dataset used for the full-scale evaluation was a collection of 405 million protein sequences. This dataset was derived from clustering and assembling approximately 1.59 billion protein sequence fragments from over two thousand metagenomic and metatranscriptomic datasets. A subset of this data was used for smaller-scale experiments (e.g., 20 million sequences).

Key Insights and Ideas

  • Memory is the Primary Bottleneck: The paper strongly emphasizes that for many-against-many protein similarity search, the sheer memory requirement is the most significant hurdle to scaling. Their blocking techniques directly address this.
  • GPUs are Ideal for Alignment, CPUs for Sparse Operations: By intelligently partitioning tasks based on their computational characteristics (compute-bound vs. memory-bound), they achieve higher overall performance.
  • Blocking is Crucial for Scalability, but Introduces Trade-offs: While blocking is essential for managing memory, it can increase communication overhead and potentially lead to load imbalance. The paper's contribution lies in developing effective blocking and load-balancing strategies to mitigate these issues.
  • Pre-computation Can Hide Overhead: The pre-blocking technique demonstrates that by overlapping computation and communication, significant performance gains can be achieved by hiding the latency of sparse computations.
  • Sparse Matrix Operations as a Unifying Framework: Framing the problem in terms of sparse matrix operations (like SpGEMM) allows them to leverage decades of research in linear algebra and graph computations.

Key Results

  • Extreme-Scale Performance: Performed an all-vs-all similarity search on 405 million proteins in 3.44 hours using 20,184 GPUs (across 3364 nodes).
  • Unprecedented Speed: Achieved a sustained rate of 690.6 million alignments per second, a significant improvement over previous state-of-the-art tools.
  • Massive Scale Increase: The scale of the solved problem was increased by an order of magnitude (15.0x) compared to prior work.
  • Significant Time Reduction: Cut down the time-to-solution from weeks to hours for many use cases.
  • Load Balancing Efficiency: The index-based load balancing scheme achieved better load balance and parallel efficiency (66% on 400 nodes) compared to the triangularity-based scheme (76% on 400 nodes) for strong scaling.
  • Pre-blocking Efficiency: The pre-blocking technique reduced the overall runtime by up to 30% for the index-based scheme and 20% for the triangularity-based scheme.
  • Low I/O and Communication Overhead: I/O and communication wait times constituted a very minor portion (typically <3%) of the overall runtime.

Limitations and Future Work

  • Load Imbalance in Triangularity-based Scheme: While the triangularity-based scheme offers computational savings, it can lead to load imbalance, especially with fewer blocks. The index-based scheme provides better load balance.
  • Memory Requirements for Pre-blocking: The pre-blocking technique requires slightly more memory to store the next block, though this is generally manageable.
  • Future Work: The authors suggest that future supercomputers with specialized hardware like NVIDIA's Hopper architecture (with DPX instructions) could further accelerate protein sequence search. They also highlight the need for sparse matrix libraries on GPUs to support custom operators beyond floating-point arithmetic, which would be beneficial for future advancements. They also point out that while their approach is faster and more sensitive than DIAMOND, further work could explore even more sensitive search parameters.

Summary updated

BibTeX
@inproceedings{selvitopi2022extreme,
  author = {Oguz Selvitopi and Saliya Ekanayake and Giulia Guidi and Muaaz G. Awan and Georgios A. Pavlopoulos and Ariful Azad and Nikos Kyrpides and Leonid Oliker and Katherine A. Yelick and Aydin Buluç},
  title = {{Extreme-Scale Many-against-Many Protein Similarity Search}},
  booktitle = {SC},
  year = {2022},
  doi = {10.1109/sc41404.2022.00006},
}
Figure