REWEAVE: Online Learning for Workload-Adaptive HNSW Indexes
Minghao Li, Nick Koudas, Raghav Mittal
Abstract
Vector databases rely on Hierarchical Navigable Small World (HNSW) indexes for similarity search, but a graph built from data alone can be poorly matched to a skewed or changing query workload. We present REWEAVE (Reward-Guided Rewiring of Vector Graphs), an online index-maintenance method that learns edge utility from query feedback and periodically rewires the bottom layer within the original per-node degree cap. The method supports sparse exact-neighbor feedback combined with self-labels, and standard HNSW serving without learning overhead once adaptation is disabled. Under explicit assumptions we prove value-estimation and graph-stabilization guarantees. Under stationary skew, REWEAVE improves held-out recall by up to 23.3 percentage points over HNSW. In comparisons with query-aware baselines on up to 100M vectors, it achieves up to 3.3x NGFix's query throughput at recall@100 of 0.80. On Amazon-ESCI with query drift, it increases stream recall@100 from 0.745 to 0.979 with 34% fewer search distance computations than frozen HNSW. These results illustrate the potential to improve retrieval quality and reduce search effort within an existing graph-degree budget, while incurring additional work during adaptation.
Create a lesson
Related papers
Standardized Tolerance for Adaptive Reuse and Repair: A Method for HNSW Migration Under Embedding Model Change Scenarios
Shared title terminology · Hengzhao Ma, Chenyang Zhu, Bin Wang et al.
Towards Online Adaptive LLM-based Semantic Filtering
Shared title terminology · Ziqi Zou, Zhenyan Nie, Kangfei Zhao et al.
SAIL: Self-Adaptive Index Learning with Hybrid Models (Extended Version)
Shared title terminology · Kasun Amarasinghe, Farhana Choudhury, Jianzhong Qi
CRAFT: Constrained Route planning with Adaptive Framework and Template-based code generation
Shared title terminology · Shahd Elmahallawy, Ahmed Eldawy
Logical Design Tuning via Workload-aware E/R-to-Relational Mapping
Shared title terminology · Hasara Kalumin, Amol Deshpande
Pelorus: Warped-Product Graph Indexing for Hyperbolic Vector Search
Shared title terminology · Wenxuan Xiao, Xu Cao