arXiv:2507.21989cs.DBcs.DS2025-07被引 11

构建首个基于Transformer的文本嵌入过滤近邻搜索基准数据集

Benchmarking Filtered Approximate Nearest Neighbor Search Algorithms on Transformer-based Embedding Vectors

  • 构建包含270万篇arXiv论文嵌入向量的多属性数据集
  • 在11类真实属性上测试11种FANNS算法性能差异
  • 给出8条选型建议,指导实际应用中的方法选择

基于Transformer的文本嵌入模型推动了多个领域的发展,包括检索增强生成和推荐系统。这些应用常需在满足项目属性过滤条件的前提下,高效检索嵌入空间中与查询相近的项,即过滤近似最近邻搜索(FANNS)。通过深入分析文献,我们发现研究空白在于:缺乏公开可用的数据集,其包含来自先进Transformer模型的嵌入向量,并具备丰富多样的真实世界属性,涵盖广泛的属性类型与取值分布。为填补这一空白,我们引入arxiv-for-fanns数据集,包含超过270万篇arXiv论文摘要的嵌入向量,并附带11个真实属性(如作者、类别)。我们在该数据集上对11种FANNS方法进行基准测试,评估其在不同过滤类型、检索邻居数量、数据规模及查询选择性下的表现。我们总结出8项关键观察,帮助用户根据具体场景选择最合适的FANNS方法。

原文摘要 · Abstract (English)

Advances in embedding models for text, image, audio, and video drive progress across multiple domains, including retrieval-augmented generation, recommendation systems, and others. Many of these applications require an efficient method to retrieve items that are close to a given query in the embedding space while satisfying a filter condition based on the item's attributes, a problem known as filtered approximate nearest neighbor search (FANNS). By performing an in-depth literature analysis on FANNS, we identify a key gap in the research landscape: publicly available datasets with embedding vectors from state-of-the-art transformer-based text embedding models that contain abundant real-world attributes covering a broad spectrum of attribute types and value distributions. To fill this gap, we introduce the arxiv-for-fanns dataset of transformer-based embedding vectors for the abstracts of over 2.7 million arXiv papers, enriched with 11 real-world attributes such as authors and categories. We benchmark eleven different FANNS methods on our new dataset to evaluate their performance across different filter types, numbers of retrieved neighbors, dataset scales, and query selectivities. We distill our findings into eight key observations that guide users in selecting the most suitable FANNS method for their specific use cases.

嵌入检索近邻搜索基准测试Transformer

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。