Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

LotusFilter: Fast Diverse Nearest Neighbor Search via a Learned Cutoff Table

About

Approximate nearest neighbor search (ANNS) is an essential building block for applications like RAG but can sometimes yield results that are overly similar to each other. In certain scenarios, search results should be similar to the query and yet diverse. We propose LotusFilter, a post-processing module to diversify ANNS results. We precompute a cutoff table summarizing vectors that are close to each other. During the filtering, LotusFilter greedily looks up the table to delete redundant vectors from the candidates. We demonstrated that the LotusFilter operates fast (0.02 [ms/query]) in settings resembling real-world RAG applications, utilizing features such as OpenAI embeddings. Our code is publicly available at https://github.com/matsui528/lotf.

Yusuke Matsui• 2025

Related benchmarks

TaskDatasetResultRank
Diverse Nearest Neighbor SearchMS SpaceV 1M (full)
Search Cost1.06e+4
4
Diverse Nearest Neighbor SearchOpenAI dataset
Search Cost0.358
4
Showing 2 of 2 rows

Other info

Code

Follow for update