DiskANN++: Efficient Page-based Search over Isomorphic Mapped Graph Index using Query-sensitivity Entry Vertex

Jiongkang Ni, Xiaoliang Xu, Yuxiang Wang, Can Li, Jiajie Yao, Shihai Xiao, Xuecang ZhangarXiv 2023

Abstract

Given a vector dataset $\mathcal{X}$ and a query vector $\vec{x}_q$, graph-based Approximate Nearest Neighbor Search (ANNS) aims to build a graph index $G$ and approximately return vectors with minimum distances to $\vec{x}_q$ by searching over $G$. The main drawback of graph-based ANNS is that a graph index would be too large to fit into the memory especially for a large-scale $\mathcal{X}$. To solve this, a Product Quantization (PQ)-based hybrid method called DiskANN is proposed to store a low-dimensional PQ index in memory and retain a graph index in SSD, thus reducing memory overhead while ensuring a high search accuracy. However, it suffers from two I/O issues that significantly affect the overall efficiency: (1) long routing path from an entry vertex to the query's neighborhood that results in large number of I/O requests and (2) redundant I/O requests during the routing process. We propose an optimized DiskANN++ to overcome above issues. Specifically, for the first issue, we present a query-sensitive entry vertex selection strategy to replace DiskANN's static graph-central entry vertex by a dynamically determined entry vertex that is close to the query. For the second I/O issue, we present an isomorphic mapping on DiskANN's graph index to optimize the SSD layout and propose an asynchronously optimized Pagesearch based on the optimized SSD layout as an alternative to DiskANN's beamsearch. Comprehensive experimental studies on eight real-world datasets demonstrate our DiskANN++'s superiority on efficiency. We achieve a notable 1.5 X to 2.2 X improvement on QPS compared to DiskANN, given the same accuracy constraint.

Introduction

Approximate Nearest Neighbor Search (ANNS) is a foundational component of modern recommendation systems and search engines. While graph-based methods like HNSW provide exceptional speed, their memory requirements for billion-scale datasets—often exceeding 800 GB—are prohibitive for standard hardware. DiskANN addressed this by storing a compressed index in RAM and the full graph on SSD. However, DiskANN faces two major I/O bottlenecks: long routing paths from a static central entry vertex and inefficient SSD page utilization, where a single 4KB page read often fetches only one useful node. DiskANN++ addresses these limitations through dynamic entry point selection, a locality-aware SSD layout, and an asynchronous search strategy.

Proposed Methodology

DiskANN++ introduces three key optimizations to transform the standard DiskANN framework into a more I/O-efficient system.

Architecture comparison between DiskANN and DiskANN++, highlighting the query-sensitive entry vertex, isomorphic mapping, and Pagesearch algorithm.

Query-Sensitive Entry Vertex

Instead of starting every search from a static "central" vertex, DiskANN++ pre-clusters the dataset and identifies a set of entry candidates. At query time, a rapid RAM-based check selects the starting vertex closest to the query. This "teleports" the search closer to the target neighborhood, significantly shortening the initial routing phase. On the deep100M dataset, this strategy reduced the number of routing hops from 32 to 8.

Isomorphic Mapping and SSD Layout

To maximize the "I/O value" of every 4KB SSD page read, DiskANN++ reorganizes the graph storage. Using a technique called Star Packing, it ensures that a vertex and its immediate neighbors are physically stored on the same page. This "isomorphic" mapping preserves the graph's logical structure while ensuring that a single I/O request fetches multiple highly relevant nodes, reducing redundant reads.

Pagesearch Algorithm

Standard Beamsearch often leaves the CPU idling while waiting for SSD data. DiskANN++ introduces Pagesearch, which implements asynchronous page expansion. While waiting for an I/O request to complete, the CPU explores nodes already cached in a "page heap" from previous reads. This turns I/O wait time into productive search time, effectively overlapping computation and data retrieval.

Experimental Evaluation

The performance of DiskANN++ was evaluated on eight large-scale datasets, including public benchmarks like sift100M, deep100M (up to 1B), and turing100M, as well as commercial image data.

Reduction in SSD I/O requests achieved by Pagesearch compared to standard and cached Beamsearch across three 100M-scale datasets.

Performance and Efficiency

DiskANN++ consistently outperformed DiskANN, SPANN, and BBANN, achieving a 1.5x to 2.2x improvement in throughput (QPS) at high recall levels (e.g., 97%). As shown in the experimental results, the Pagesearch algorithm reduces the total number of SSD I/O requests by nearly 50% compared to standard Beamsearch. The speedup remained stable as the dataset scaled from 10 million to 1 billion vectors, demonstrating the method's industrial scalability.

Conclusion and Future Work

DiskANN++ overcomes the primary I/O bottlenecks of SSD-based graph search by maximizing the utility of every disk read and shortening search paths. While high-dimensional datasets (e.g., gist with 960 dimensions) show more modest gains due to physical page size limits, the use of vector compression (like sq8) can further mitigate this. Future work will explore more aggressive page-level optimizations and hardware-specific tuning for modern NVMe SSD features to further push the boundaries of billion-scale ANNS.

Summary updated

BibTeX
@misc{ni2023diskann,
  author = {Jiongkang Ni and Xiaoliang Xu and Yuxiang Wang and Can Li and Jiajie Yao and Shihai Xiao and Xuecang Zhang},
  title = {{DiskANN++: Efficient Page-based Search over Isomorphic Mapped Graph Index using Query-sensitivity Entry Vertex}},
  year = {2023},
  eprint = {2310.00402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00402},
}
Figure