Determining whether an embedding is sufficiently similar to any vector in a vector store without performing a nearest-neighbor search can substantially improve query throughput in vector-store systems. We study Semantic Approximate Membership Queries (SAMQs), which allow queries to be rejected when no indexed vector meets the requested similarity threshold, while guaranteeing no false negatives. We introduce CapCover Filter, a geometric data structure that summarizes a set of embeddings using spherical caps. Its representation is independent of the query threshold, allowing a single filter to support arbitrary thresholds without reconstruction. We evaluate alternative construction and quantization methods, compare CapCover Filter with competing filters, and measure its impact on query throughput. Across five real-world datasets, at a cosine similarity threshold of 0.95, CapCover Filter eliminates approximately 20--100% of index accesses while using only 2% of the raw (FP32) embedding memory. When placed before a FAISS flat index, it improves query throughput by up to 382% and by approximately 116% on average across the five datasets, while returning the same range-search result. We also evaluate lower similarity thresholds. Our results show that CapCover Filter can substantially improve vector-store throughput when similarity thresholds are tight, retrieval is expensive, and indexed embeddings are highly clustered. We release an optimized implementation of CapCover Filter and its evaluation framework.
Figures & tables
Fig. 1: Embeddings on the unit sphere are covered by k caps, each defined by a direction ui and an angle θi . On query, each cap is conceptually widened by the angle ατ=arccos(1−τ) corresponding to the cosine-distance threshold τ , resulting in an outer boundary of θi+ατ . A query vector is accepted for verification if it falls within at least one widened cap.
Symbol
Meaning
X , n , d
Indexed set, size, dimension
q , Xi
Query vector; members assigned to cap i
τ
Cosine-distance threshold
ατ , δτ
Angular and chord thresholds
IX(q,τ)
Exact membership predicate
C(ui,θi)
Cap with direction ui and angle θi
TABLE I: Main notation; specialized symbols are defined in the text.
Fig. 2: Filtering benefit of CapCover Filter. Top: memory ratio Mfilter/Mraw=0.5 – 5% at τ=0.05 . Bottom: cosine-distance threshold τ=0.005 – 0.2 at a memory ratio of 2% . The first three columns report FPR for negative queries grouped by their maximum similarity to the indexed set. The last column reports index accesses saved; dashed lines show each dataset’s negative-query fraction. Each filter uses automatic encoding selection; a band is not drawn where it has no negative queries. Error bars show ±1 standard deviation across five folds.
Fig. 3: Throughput improvement (%) by adding a CapCover Filter to a flat FAISS index. Left: vs. τ (cosine distance) at 2% of Mraw . Middle: vs. the memory ratio Mfilter/Mraw , at τ=0.05 . Right: modeled improvement versus backend lookup cost, using independently measured filter-only query time and the acceptance rate at τ=0.05 and 2% memory. Markers show measured end-to-end improvement at the measured flat-index cost. Negative improvements denote slowdowns. Error bars in the left and middle panels: ±1 standard deviation over five folds.
Fig. 4: FPR (top) and modeled throughput improvement (%, bottom) versus Mfilter/Mraw at τ=0.05 , one column per corpus. Auto (thick black line, stars) and seven fixed encodings are shown: SPQ 16×12 , 12×12 , 6×8 , and TQ1–TQ4, selected by mean rank of accesses saved across corpus–budget cells. The model combines batched filter-query cost and acceptance rates with a mean flat-index lookup cost of 5.29 ms from end-to-end measurements. The horizontal axis is logarithmic; the bottom vertical axis is symmetric-log, with negative values indicating slowdowns. Curves show means over five folds. Auto selects the feasible encoding with the smallest unexpanded cap volume.
Fig. 5: FPR versus log10V , the unexpanded cap-volume sum, at τ=0.05 , one panel per corpus. Each point averages FPR and log10V over five folds for one encoding–budget pair, using the seven fixed encodings in Figure 4 with the same markers. Auto (stars) repeats the point of the encoding it selects and is excluded from the correlations. Panel annotations give the Spearman correlation over the fixed-encoding points, pooling budgets.
Fig. 6: FPR versus memory ratio Mfilter/Mraw at cosine-distance threshold τ=0.05 , for Gonzalez, minimax, and soft anneal. Each method is shown with unquantized FP32, TQ4, and TQ2 directions. The memory axis is logarithmic. Error bars: ±1 standard deviation over five folds.
Fig. 7: Mean FPR of zero-false-negative methods, at cosine-distance threshold τ=0.05 . Curves begin at the first sampled feasible budget.
Fig. 8: FPR (left) and FNR (right) versus Mfilter/Mraw on Quora at τ=0.05 , with CapCover Filter (zero FNR) as reference. Curves begin at the first sampled feasible budget.
We introduce Semantic Recall, a novel metric to assess the quality of approximate nearest neighbor search algorithms by considering only semantically relevant objects that are theoretically retrievable via exact nearest neighbor search. Unlike traditional recall, semantic recall does not penalize algorithms for failing to retrieve objects that are semantically irrelevant to the query, even if those objects are among their nearest neighbors. We demonstrate that semantic recall is particularly useful for assessing retrieval quality on queries that have few relevant results among their nearest neighbors-a scenario we uncover to be common within embedding datasets. Additionally, we introduce Tolerant Recall, a proxy metric that approximates semantic recall when semantically relevant objects cannot be identified. We empirically show that our metrics are more effective indicators of retrieval quality, and that optimizing search algorithms for these metrics can lead to improved cost-quality tradeoffs.
Leonardo Kuffo, Ioanna Tsakalidou, Roberta De Viti +3
Retrieval-Augmented Generation (RAG) systems increasingly power enterprise LLM applications, yet the vector retrieval layer introduces two underexplored challenges: (1) trained codebook quantizers may expose corpus statistics during index construction, creating a leakage channel in multi-tenant deployments, and (2) post-hoc filtering for tenant isolation degrades recall on selective queries. We study TurboVec, an open-source vector index built on TurboQuant - a codebook-oblivious scalar quantizer requiring no corpus-dependent training. On the DBpedia OpenAI embeddings benchmark (d=1536, 100K-999K vectors), TurboQuant 4-bit outperforms trained FAISS Product Quantization at the same memory budget by 8.5-8.9 percentage points in Recall@5 across all scales. Compared to HNSW (R@5=0.991) and IVF-PQ (R@5=0.840), TurboQuant occupies a distinct design point: higher recall than IVF-PQ without training, at 4-8x less memory than HNSW. Deployed on Snowpark Container Services, TurboVec achieves 11ms median query latency at 100K vectors versus 707ms for warehouse brute-force scan. Kernel-level allowlist filtering maintains 0.86-0.93 Recall@10 across 10-1000 tenant workloads versus 0.09-0.19 for post-filter baselines. Codebook-oblivious design reduces membership inference accuracy to near-random (50.0%) versus 57.3% for PQ codebooks. Limitations include single dataset evaluation, uncompressed HNSW comparison, and privacy evaluation on synthetic data only.
Navnit Shukla, Kamal Pandey, Omsankar Tiwari
Snowflake Inc. Tustin, California, USA · Rivian Automotive Inc. Irvine, United States of America · Google Deepmind Sunnyvale, California, USA
Dense vector retrieval has become the foundation of modern semantic search, yet existing approximate nearest neighbor (ANN) indexes treat an embedding as an indivisible point in a high-dimensional space. In this work, we propose the Hypergraph Embedding Index (HEI), a framework that instead organizes documents according to combinations of highly activated latent embedding dimensions. This formulation enables inverted-index style candidate generation while preserving the semantic ranking capabilities of dense embeddings. We further demonstrate that constructing multiple complementary hypergraphs substantially improves retrieval coverage without the combinatorial growth associated with increasing the dimensionality of a single hypergraph. Finally, we establish that the statistical properties of embedding activations strongly influence coordinate-inverted indexing efficiency, introducing activation diversity as a diagnostic metric governing embedding indexability in coordinate-inverted frameworks.