Towards Robustness: A Critique of Current Vector Database Assessments

Zikai Wang, Qianxi Zhang, Baotong Lu, Qi Chen, Cheng TanarXiv 2025 · DOI

Abstract

Average recall has long served as the primary benchmark for vector database performance. However, this metric often masks significant failures on difficult queries, which can be catastrophic for Retrieval-Augmented Generation (RAG) systems. This paper introduces Robustness-$\delta$@K, a novel metric designed to measure the fraction of queries meeting a minimum quality threshold. Through extensive benchmarking on diverse datasets, we demonstrate that Robustness-$\delta$@K is a more reliable predictor of end-to-end RAG performance than standard averages, revealing critical "fragility" in state-of-the-art graph-based and partition-based indexes.

Introduction: The Fragility of Average Recall

Vector databases are foundational to modern AI applications, yet their evaluation remains tethered to Average Recall—the mean percentage of relevant results retrieved across a query set. While an index might report a high average recall (e.g., 90%), this figure can obscure a "long tail" of failures. In production environments like RAG, if a retriever fails to return any relevant context for a specific query, the downstream Large Language Model (LLM) cannot generate a correct response. This "all-or-nothing" failure mode is invisible to average-based metrics but fatal to user experience.

Figure 1: Distribution of Recall for ScaNN and DiskANN. Note how DiskANN has a higher percentage of total failures (0 recall) despite competitive average performance.

Methodology and Metrics

To address these shortcomings, we propose Robustness-$\delta$@K. Unlike average recall, this metric calculates the proportion of queries that achieve a recall at or above a specific threshold ($\delta$). For instance, if a RAG application requires at least 2 out of 10 results to be correct ($\delta=0.2$), Robustness-0.2@10 quantifies the percentage of users who will receive a functional response.

We integrated this metric into standard benchmarks and evaluated six leading vector indexes: HNSW, DiskANN, ScaNN, IVFFlat, Zilliz, and Puck. Our evaluation spanned four massive datasets, including MSMARCO (8.8M documents) and Text-to-Image-10M, to ensure findings were consistent across diverse data distributions.

Key Insights: Graph vs. Partition Families

Our analysis reveals a "Fragility Paradox" where indexes with identical average recall exhibit vastly different robustness profiles.

  • Graph-based indexes (e.g., HNSW, DiskANN) often achieve superior peak recall but are prone to getting "stuck" in local optima, leading to a higher frequency of total failures (zero recall).
  • Partition-based indexes (e.g., ScaNN, IVFFlat) tend to be more "balanced." While they may miss some top-tier results, they provide a more uniform recall distribution, making them safer for context-dependent applications like RAG.

This introduces a three-way trade-off for developers: Latency, Recall, and Robustness. Improving average recall does not guarantee improved tail performance; in some cases, throughput must be sacrificed to "lift" the most difficult queries.

Key Results

In an end-to-end RAG case study using Gemini-2.0-Flash, we found that retrieval robustness at lower thresholds ($\delta=0.2$) correlated more strongly with final answer accuracy than average recall. Specifically, ScaNN (0.90 average recall) outperformed DiskANN (0.96 average recall) in accuracy because it was more robust at the critical $\delta=0.2$ threshold required by the LLM.

Figure 6: Robustness-0.1@10 vs. Average Recall@10 across different indexes. Robustness metrics provide a clearer health check for RAG systems.

Our findings suggest that Robustness-0.2@10 serves as a "sweet spot" for RAG tasks, as answer accuracy typically drops sharply when recall falls below this level. Furthermore, tuning parameters like $n\_probe$ in partition indexes stabilizes the tail much faster than it improves the average, highlighting a clear path for robustness optimization.

Conclusion and Future Work

Current vector database assessments are incomplete without a measure of robustness. While this study focuses on static benchmarks, future research should explore how robustness evolves in dynamic databases with frequent updates. Additionally, there is a significant opportunity to develop "robustness-aware" index architectures that specifically target and rescue "hard" queries in the long tail.

Summary updated

Abstract

Vector databases are critical infrastructure in AI systems, and average recall is the dominant metric for their evaluation. Both users and researchers rely on it to choose and optimize their systems. We show that relying on average recall is problematic. It hides variability across queries, allowing systems with strong mean performance to underperform significantly on hard queries. These tail cases confuse users and can lead to failure in downstream applications such as RAG. We argue that robustness consistently achieving acceptable recall across queries is crucial to vector database evaluation. We propose Robustness-$δ$@K, a new metric that captures the fraction of queries with recall above a threshold $δ$. This metric offers a deeper view of recall distribution, helps vector index selection regarding application needs, and guides the optimization of tail performance. We integrate Robustness-$δ$@K into existing benchmarks and evaluate mainstream vector indexes, revealing significant robustness differences. More robust vector indexes yield better application performance, even with the same average recall. We also identify design factors that influence robustness, providing guidance for improving real-world performance.
BibTeX
@misc{wang2025towards,
  author = {Zikai Wang and Qianxi Zhang and Baotong Lu and Qi Chen and Cheng Tan},
  title = {{Towards Robustness: A Critique of Current Vector Database Assessments}},
  year = {2025},
  eprint = {2507.00379},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.00379},
}
Figure