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.
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.
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