SpecHD: Hyperdimensional Computing Framework for FPGA-Based Mass Spectrometry Clustering

Sumukh Pinge, Weihong Xu, Jaeyoung Kang, Tianqi Zhang, Niema Moshiri, Wout Bittremieux, Tajana Rosing

Introduction

Mass spectrometry (MS) is a foundational tool in proteomics, enabling the identification of protein compositions in biological samples for applications ranging from basic research to personalized medicine. However, the field currently faces a significant data deluge; repositories now house hundreds of terabytes, and a single experiment can produce millions of spectra.

A vital step in managing this volume is spectral clustering, which groups similar spectra to reduce redundancy and accelerate downstream database searches. Traditional software tools running on CPUs or GPUs often struggle with these massive datasets, taking hours or days to complete tasks. Furthermore, they are frequently hampered by "data movement bottlenecks," where the energy and time required to move files between storage and processors exceed the cost of the actual computation.

Methods

To address these challenges, the authors developed SpecHD, an FPGA-accelerated framework that shifts away from traditional floating-point arithmetic toward Hyperdimensional Computing (HDC). The framework is built on three pillars:

  1. HDC Encoding: SpecHD maps high-dimensional spectral peaks into long, holographic binary vectors (hypervectors). This transformation allows the system to replace complex arithmetic with fast, hardware-friendly bitwise operations like XOR and popcount.
  2. Near-Storage Acceleration (MSAS): To mitigate the data movement bottleneck, SpecHD utilizes a specialized Mass Spectrometry Acceleration System (MSAS) module. This performs preprocessing—such as filtering and scaling—directly at the SSD level. Data is then moved via Peer-to-Peer (P2P) transfers to the FPGA's High Bandwidth Memory (HBM), bypassing the CPU and system RAM entirely.
  3. NN-Chain HAC: The framework implements the first FPGA-based Nearest-neighbor Chain Hierarchical Agglomerative Clustering algorithm. Unlike naive clustering methods with $O(n^3)$ complexity, the NN-chain approach builds local similarity chains, making it highly efficient for hardware implementation.
Figure 3: SpecHD system architecture featuring MSAS-enabled SSD and FPGA-based bucket processing.

Key Results

The researchers evaluated SpecHD using large-scale datasets from the PRIDE archive, including a 21.1 million spectra Human Proteome Draft. The results demonstrate that SpecHD can process 25 million spectra in just 5 minutes.

  • Performance and Efficiency: SpecHD achieved a 54x speedup over GLEAMS and a 6x speedup over HyperSpec (the previous GPU-based state-of-the-art). Additionally, the framework is 31x more energy-efficient than GPU-based HAC implementations.
  • Data Compression: The encoding process compresses the 131 GB raw human proteome dataset down to 5 GB of hypervectors, allowing the entire dataset to fit within the FPGA’s 8 GB of on-board HBM.
  • Clustering Quality: Despite the transition to binary vectors, SpecHD maintains high biological accuracy. It achieved a 45% clustered spectra ratio at a strict 1% Incorrect Clustering Ratio (ICR), outperforming several established CPU-based tools.
Figure 6: Performance comparison showing SpecHD's clustered spectra ratio versus incorrect clustering ratio (ICR) against other state-of-the-art tools.

Limitations and Future Work

While SpecHD offers superior speed and efficiency, FPGAs are inherently less flexible than GPUs; the hardware logic is "baked in" and requires a new bitstream for different analysis types. Additionally, scaling is currently limited by routing challenges on the FPGA chip as more clustering kernels are added.

Future research aims to integrate the SpecHD framework directly into mass spectrometer hardware. This would enable real-time protein identification as samples are scanned, potentially transforming the speed of clinical diagnostics.

Summary updated

BibTeX
@inproceedings{pinge2024spechd,
  author = {Sumukh Pinge and Weihong Xu and Jaeyoung Kang and Tianqi Zhang and Niema Moshiri and Wout Bittremieux and Tajana Rosing},
  title = {{SpecHD: Hyperdimensional Computing Framework for FPGA-Based Mass Spectrometry Clustering}},
  booktitle = {DATE},
  year = {2024},
  doi = {10.23919/date58400.2024.10546776},
}
Figure