Introduction
Modern data-intensive applications, ranging from image retrieval to recommendation systems, increasingly rely on Approximate Nearest Neighbor (ANN) search to navigate massive datasets. The Hierarchical Navigable Small World (HNSW) algorithm has emerged as a state-of-the-art solution due to its high search accuracy and speed. However, as datasets scale to billions of vectors (multi-terabyte scale), they exceed the capacity of host RAM, leading to a "data movement wall." In these scenarios, the latency of moving data from storage to the processing unit via the PCIe bus becomes the dominant bottleneck, often accounting for over 70% of total search time.
The Computational Storage Approach
To address the I/O and memory bottlenecks, this work proposes a specialized computational storage platform utilizing Samsung SmartSSDs. By integrating an FPGA-based accelerator directly onto the storage device, the system can process data locally, significantly reducing the need for expensive data transfers across the PCIe bus.
System Workflow and Co-Design
The system operates by loading the HNSW database from the host to the SSD, then fetching sub-graphs into the local DRAM via Peer-to-Peer (P2P) communication. The FPGA-based HNSW accelerator then finds local nearest neighbors, which are subsequently merged into a global result.
The proposed system implements several key optimizations to maximize the performance of the FPGA-based HNSW accelerator:
- Graph Partitioning: Due to the limited local DRAM (4GB) on the SmartSSD, the monolithic billion-vector HNSW graph is partitioned into $N$ smaller sub-graphs. Independent searches are performed on these sub-graphs, followed by a final brute-force merge step.
- Database Restructuring: The HNSW data structures were reorganized into aligned Index, List, and Raw Data tables. This 64-byte alignment ensures that memory fetches are efficient and minimizes redundant data access.
- Custom RTL Design: While High-Level Synthesis (HLS) allows for rapid development, the authors developed a custom Register-Transfer Level (RTL) design to handle the irregular memory access patterns of graph traversal. This RTL implementation achieved a 7.74x speedup over the HLS baseline.
- Visited List Optimization: To manage on-chip memory constraints, the system uses a "Single-bit Tag-based Visited List," reducing the memory footprint for tracking visited nodes by 32x compared to standard integer-based lists.
Experimental Results
The platform was evaluated using the SIFT1B dataset, which contains one billion 128-dimensional vectors (approx. 119GB). Using a configuration of four SmartSSDs in parallel, the system achieved significant performance gains over traditional CPU and GPU-based servers.
- Throughput: The system reached 75.59 Queries Per Second (QPS).
- Speedup: This represents a 12.83x improvement over a CPU-based server and a 17.91x improvement over a GPU-based server (when storage I/O is included).
- Energy Efficiency: The computational storage approach proved to be 10.43x more energy-efficient than the CPU server and 24.33x more efficient than the GPU server.
- Scalability: Performance scaled almost linearly as more SmartSSD devices were added to the system.
Conclusion
By bringing computation closer to the data, this platform effectively overcomes the "data movement wall" for large-scale ANN searches. The combination of hardware-friendly data restructuring and custom RTL acceleration on SmartSSDs provides a scalable, high-performance, and energy-efficient alternative to traditional server architectures for billion-scale graph-based search.
Summary updated