Introduction
In modern drug discovery, identifying structurally similar molecules within massive chemical databases is a fundamental yet computationally intensive task. Researchers often search through libraries containing millions to billions of compounds to find candidates similar to a known active molecule. This similarity is typically quantified using the Tanimoto coefficient (Jaccard similarity) applied to molecular fingerprints—high-dimensional bit-vectors representing chemical structures.
As database sizes explode, traditional CPU-based search methods struggle to meet the required throughput, and GPU implementations often encounter memory bandwidth limitations. This paper presents the first comprehensive hardware-algorithm co-design for an FPGA-based accelerator, achieving significant performance gains through optimized exhaustive and approximate search strategies.
System Architecture and Methodology
The proposed system utilizes a dual-track optimization strategy to handle both exhaustive (exact) and approximate similarity searches. The overall workflow involves embedding chemical structures into fingerprints, constructing hierarchical graphs for approximate search, and offloading the heavy computation to an FPGA system.
1. Exhaustive Search: BitBound and Folding
For applications requiring exact results, the researchers implemented a "BitBound" pruning technique. This method allows the engine to skip molecules that cannot mathematically meet a predefined similarity threshold, significantly reducing the number of full Tanimoto calculations. Additionally, "Folding" is used to compress fingerprints, optimizing memory usage and throughput.
2. Approximate Search: HNSW
To handle even larger scales, the Hierarchical Navigable Small World (HNSW) algorithm was adapted for hardware. HNSW uses a multi-layered graph to navigate the search space efficiently. The FPGA implementation features a custom graph traversal engine and a high-throughput register array-based priority queue for rapid sorting of potential neighbors.
Hardware Implementation
The design was deployed on an Alveo U280 FPGA, leveraging its High Bandwidth Memory (HBM) to overcome the "memory wall" typically associated with data-intensive search tasks.
The architecture emphasizes an "on-the-fly" query engine. By pipelining data movement, distance calculation, and sorting, the system achieves a pipeline interval (II) of 1. This means the engine can process one compound per clock cycle per computing engine. The use of HBM provides a bandwidth of 57.6 GB/s, ensuring the compute kernels remain fully utilized at a frequency of 450 MHz.
Key Results and Performance
The FPGA-based accelerator demonstrates substantial improvements over conventional platforms:
- Throughput: The exhaustive engine processes up to 450 million compounds per second.
- Query Performance: The HNSW approximate search achieves 103,385 Queries Per Second (QPS) on the Chembl database.
- Speedup: The design is 35× faster than optimized CPU implementations and over 3× faster than GPU-based brute-force methods.
- Accuracy: Despite the speed increase, the HNSW implementation maintains a high recall of 0.92.
Conclusion and Future Work
This work highlights the power of hardware-algorithm co-design in accelerating critical bioinformatics tasks. By tailoring sorting mechanisms and memory access patterns to FPGA constraints, the researchers achieved order-of-magnitude speedups in molecular similarity search. Future research will focus on scaling this architecture to multi-FPGA systems to handle ultra-large libraries exceeding billions of compounds and exploring higher precision for diverse fingerprint types.
Summary updated