VDTuner: Automated Performance Tuning for Vector Data Management Systems

Tiannuo Yang, Wen Hu, Wangqi Peng, Yusen Li, Jianguo Li, Gang Wang, Xiaoguang Liu

Introduction

Vector Data Management Systems (VDMSs), such as Milvus and Qdrant, have become the foundational infrastructure for modern Retrieval-Augmented Generation (RAG) applications. By providing Large Language Models (LLMs) with long-term memory through efficient vector similarity search, these systems are critical to the performance of AI-driven services. However, achieving peak performance in a VDMS is a complex optimization challenge, often requiring manual tuning of a vast array of interdependent parameters. VDTuner is a new automated framework designed to address these complexities by leveraging Multi-objective Bayesian Optimization (MOBO) and a "successive abandon" strategy.

The Tuning Bottleneck

Traditional database tuning tools are often ill-equipped for the unique demands of VDMSs. The authors identify three primary hurdles that make manual or standard automated tuning difficult:

  1. Intricate Interdependence: System-level parameters (e.g., buffer sizes) and index-specific parameters (e.g., HNSW's node degree) interact in non-linear ways. A change in one can negate the benefits of another.
  2. Conflicting Objectives: There is an inherent trade-off between search latency and recall accuracy. In a VDMS, you generally cannot maximize one without sacrificing the other, requiring a nuanced search for a Pareto-optimal balance.
  3. Non-fixed Parameter Spaces: Different indexing algorithms (such as HNSW versus IVF_PQ) possess entirely different sets of "knobs." This makes it difficult for standard optimizers to compare configurations across different index types effectively.

The VDTuner Methodology

VDTuner addresses these challenges by treating the VDMS as a "black box" and employing Multi-objective Bayesian Optimization (MOBO). The framework introduces several key technical innovations to streamline the tuning process:

Holistic BO Model

Instead of tuning each index type in a silo, VDTuner uses a unified model that incorporates shared system parameters. This allows the tuner to learn that a specific system setting might be beneficial regardless of which index is currently being tested, facilitating knowledge transfer across the configuration space.

Polling Surrogate & Normalization

To enable "apples-to-apples" comparisons between disparate index types (e.g., comparing a fast but inaccurate index to a slow, accurate one), VDTuner utilizes a Normalized Performance Improvement (NPI) metric. This prevents the optimizer from getting stuck in local optima by favoring one index type too early in the process.

Successive Abandon Strategy

Recognizing that index rebuilding is computationally expensive and time-consuming, VDTuner employs a "tournament-style" approach. It scores index types based on their contribution to the "hypervolume" of the Pareto front. Using a windowed variance metric, it identifies "losers" early and dynamically abandons poorly performing index types, focusing the remaining tuning budget on the most promising candidates.

Constraint Handling

For production environments with strict operational requirements, VDTuner includes a specialized acquisition function (Constraint EI). This allows users to set a "hard floor" for recall (e.g., "at least 90% recall") while the system optimizes for the fastest possible search speed within that constraint.

Experimental Evaluation

The researchers evaluated VDTuner using the vector-db-benchmark framework across several representative datasets:

  • GloVe: 1.18M vectors (100 dimensions), a standard for word embeddings.
  • Keyword-match: 1M vectors (100 dimensions).
  • Geo-radius: 100k vectors (2048 dimensions), representing high-dimensional data.
  • Deep-image: A 10x larger dataset used specifically to test the framework's scalability.

Key Results and Insights

The evaluation demonstrated that VDTuner significantly outperforms default settings and state-of-the-art baselines like qEHVI and OpenTuner:

  • Massive Performance Gains: Compared to default settings, VDTuner improved search speed by 14.12% and recall rate by a staggering 186.38% on the Geo-radius dataset.
  • Superior Efficiency: VDTuner reached optimal configurations significantly faster than baselines—up to 3.57x faster in terms of total tuning time.
  • Pareto Dominance: In almost every test case, VDTuner's Pareto front (the set of best trade-offs) was strictly better than those produced by random sampling or other heuristic methods.
  • Scalability: The system maintained its advantages even when scaled up to the 10x larger Deep-image dataset, proving it can handle production-grade workloads.

Limitations and Future Work

While VDTuner represents a significant advancement, the authors identify areas for future growth. Currently, the system operates via offline workload replay; future iterations aim to support active online tuning to adjust to live query traffic in real-time. Additionally, the authors plan to explore deeper levels of the stack, such as data partitioning strategies and hardware-specific resource utilization, and work on reducing the "cold start" time required during the initial polling phase.

Summary updated

BibTeX
@inproceedings{yang2024vdtuner,
  author = {Tiannuo Yang and Wen Hu and Wangqi Peng and Yusen Li and Jianguo Li and Gang Wang and Xiaoguang Liu},
  title = {{VDTuner: Automated Performance Tuning for Vector Data Management Systems}},
  booktitle = {ICDE},
  year = {2024},
}
Figure