Metraipolis › archive › dc_ab492a648e9a
Turbocharging PiPNN for Proximity and $k$-NN Graph Building — arXiv:2611.05690
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2611.05690
- License (as archived)
- CC0-1.0
- Archived
- 2026-11-05T18:29:23.095Z
- SHA-256 of the archived text
1bffbf84acb0ba2207505a1d0db9717edd136d72b38e93dd5780f359db592878- Stable URL of this page
https://metraipolis.com/documento/dc_ab492a648e9a
How to cite
Turbocharging PiPNN for Proximity and $k$-NN Graph Building — arXiv:2611.05690 — arXiv (en), https://arxiv.org/abs/2611.05690 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_ab492a648e9a (Metraipolis archive dc_ab492a648e9a, sha256 1bffbf84acb0ba2207505a1d0db9717edd136d72b38e93dd5780f359db592878)
BibTeX
@misc{dcab492a648e9a,
title = {Turbocharging PiPNN for Proximity and $k$-NN Graph Building — arXiv:2611.05690},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2611.05690},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_ab492a648e9a; sha256 1bffbf84acb0ba2207505a1d0db9717edd136d72b38e93dd5780f359db592878},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2611.05690. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Graph-based Approximate Nearest Neighbor Search (ANNS) indexes such as HNSW and Vamana deliver state-of-the-art query performance at the cost of large indexing times. The recently introduced PiPNN method drastically accelerated index construction by way of a partitioning-based algorithm leveraging dense matrix multiplication and top-$K$ aggregation kernels. In this paper, we unlock the full potential of PiPNN's hardware-friendly algorithm design. We introduce PiPNN II, which optimizes multiple steps of the PiPNN recipe, giving up to $8\times$ speedups for graph-based ANNS index construction. In addition, we present GPiPNN, a GPU implementation which builds comparable ANNS indices up to $43.7\times$ faster than Jasper and up to $50\times$ faster than CAGRA. We also extend PiPNN II and GPiPNN to compute high-quality $k$-NN graphs directly, which unlocks massive speedups over methods used in many existing systems for clustering, anomaly detection, and more. For 10-NN graph building at $90\%$ recall, we obtain up to a $13\times$ speedup on CPUs and $6.6\times$ on GPUs as compared to the prior best methods. PiPNN II can build a billion-scale 10-NN graph in under 16 minutes. Common to both PiPNN II and GPiPNN is the use of quantization to reduce memory traffic and leverage fast low-precision matrix operations. Top-$K$ emerges as a new bottleneck, which we optimize with specialized code for specific $K$, and by fusing with the matrix kernel to avoid materializing the distance matrix to memory. On CPUs, we demonstrate further performance improvements by leveraging our matrix kernels in the RobustPrune procedure proposed in Vamana and used in PiPNN. On GPUs, we flatten recursive partitioning into segmented batches, use one fused top-$K$ abstraction for partitioning and leaf scoring, and prune with already-witnessed direct edges rather than new candidate-to-candidate scoring passes. Tema degli esploratori: statistica e scienza dei dati (elenco arXiv cs.IR, nuovi lavori del giorno). Categorie arXiv: Databases (cs.DB) ; Information Retrieval (cs.IR). Pagina del lavoro: https://arxiv.org/abs/2611.05690 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-11-05T18:19:33.958Z dalla pagina https://arxiv.org/list/cs.IR/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).