CapCover Filter: Semantic Approximate Membership Queries over Embeddings
Dvir David Biton, Shay Hahiashvili, Nadav Keren, Gil Einziger, Roy Friedman
Abstract
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.
Create a lesson
Related papers
Towards Online Adaptive LLM-based Semantic Filtering
Shared title terminology · Ziqi Zou, Zhenyan Nie, Kangfei Zhao et al.
Cascadeability and the Realization Gap: An Empirical Study of LLM-Powered Semantic Filtering
Shared title terminology · Nan Hou, Kangfei Zhao, Jiadong Xie et al.
Dynamic Graph Indexing for Label-Filtered Approximate Nearest Neighbor Search
Shared title terminology · Mengxu Jiang, Zhi Yang, Fangyuan Zhang et al.
CascadeFilter: Cost-Efficient Semantic Filtering with Joint Threshold Selection
Shared title terminology · Yanji He, Tao Zhong, Hongyang Chen et al.
Per-Query Recall Guarantees for Approximate Nearest Neighbor Search in Dynamic Vector Databases
Shared title terminology · Woong-Kee Loh, Suan Lee
Navigating Runtime Dynamism in Semantic Query Serving
Shared title terminology · Hengrui Zhang, Xupeng Miao