mlsanityData to 7 Oct 2026

Exploiting Structural Properties for Efficient Constraint-Aware HNSW Hyperparameter Tuning

arXiv 2607.04630 ↗First posted 6 Jul 2026cs.DBcited by 0

On the map: Retrieval-augmented generation → Vector search and ANN indexes

Abstract (arXiv)

Vector databases (VectorDBs) are a core component of modern retrieval systems, including Retrieval-Augmented Generation (RAG), where efficient Approximate Nearest Neighbor Search (ANNS) is critical. Among ANNS algorithms, Hierarchical Navigable Small World (HNSW) graphs are widely adopted for their strong recalllatency trade-off. However, configuring HNSW remains challenging: its hyperparameters jointly affect search quality, latency, build time, and index size in nonlinear ways, while production deployments impose strict resource and tuning-time constraints.We study HNSW hyperparameter tuning from a systems perspective and show that its configuration space exhibits strong structural regularities. Specifically, we identify monotonic, dominant unimodal, and separable relationships among search-time and construction-time parameters, which induce feasibility boundaries under performance and resource constraints. Building on this insight, we propose CHAT, a constraint-aware tuning framework for HNSW. Unlike generic black-box optimizers, CHAT exploits HNSW-specific structure to perform deterministic, sample-efficient search and prune resource-infeasible configurations before full index construction. Across multiple datasets and HNSW-based vector search engines, CHAT identifies configurations that maximize recall or throughput while satisfying constraints on accuracy, latency, build time, index size, and tuning budget. Compared to strong baselines, CHAT achieves up to 45% higher throughput or 11% higher recall, and converges up to 44x faster. These results show that principled, structure-aware tuning enables efficient and robust HNSW deployment beyond generic black-box optimization.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Vector search and ANN indexes, one of 15 directions in Retrieval-augmented generation. Builds on 18 of its 48 references that are in the map. First posted on arXiv 6 Jul 2026.

Builds on

18 of 48 references.

References · 18

  1. 2023GPT-4 Technical Reportcited by 18,132
  2. 2017Billion-scale similarity search with GPUscited by 2,477
  3. 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
  4. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,582
  5. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
  6. 2016Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphscited by 853
  7. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  8. 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
  9. 2024Hallucination is Inevitable: An Innate Limitation of Large Language Modelscited by 329
  10. 2020Distilling Knowledge from Reader to Retriever for Question Answeringcited by 226
  11. 2013Bayesian Optimization in a Billion Dimensions via Random Embeddingscited by 178
  12. 2018ANN-Benchmarks: A Benchmarking Tool for Approximate Nearest Neighbor Algorithmscited by 130
6 more
  1. 2020Hyper-Parameter Optimization: A Review of Algorithms and Applicationscited by 114
  2. 2017Fast Approximate Nearest Neighbor Search With The Navigating Spreading-out Graphcited by 103
  3. 2019Grid Search, Random Search, Genetic Algorithm: A Big Comparison for NAScited by 83
  4. 2021A Comprehensive Survey and Experimental Comparison of Graph-Based Approximate Nearest Neighbor Searchcited by 82
  5. 2023A Comprehensive Survey on Vector Database: Storage and Retrieval Technique, Challengecited by 55
  6. 2024boldsymbolSteiner-Hardness: A Query Hardness Measure for Graph-Based ANN Indexescited by 8

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025An Analysis of Hyper-Parameter Optimization Methods for Retrieval Augmented Generation
  2. 2025From HNSW to Information-Theoretic Binarization: Rethinking the Architecture of Scalable Vector Search
  3. 2026SearchGym: A Modular Infrastructure for Cross-Platform Benchmarking and Hybrid Search Orchestration
  4. 2025SPI: Query-Depth-Adaptive Indexing for Streaming RAG in Vector Databases
  5. 2025Graph-based Nearest Neighbors with Dynamic Updates via Random Walks
  6. 2024AutoRAG-HP: Automatic Online Hyper-Parameter Tuning for Retrieval-Augmented Generation
  7. 2025Beyond Nearest Neighbors: Semantic Compression and Graph-Augmented Retrieval for Enhanced Vector Search
  8. 2026FAVOR: Efficient Filter-Agnostic Vector ANNS Based on Selectivity-Aware Exclusion Distances