高维向量中最近邻搜索仍有效,文本嵌入抗维度灾难能力强
Exploring the Meaningfulness of Nearest Neighbor Search in High-Dimensional Space
- 对比不同距离度量,在多种高维嵌入数据上验证最近邻搜索意义
- 文本嵌入随维度升高更抗
密集高维向量在计算机视觉、机器学习和大语言模型(LLMs)中日益重要,已成为多模态数据的标准表示,其维度常超过数千。尽管最近邻搜索(NNS)广泛用于检索增强生成(RAG)等应用,但其在高维空间中的有效性仍存疑,因可能受
原文摘要 · Abstract (English)
Dense high dimensional vectors are becoming increasingly vital in fields such as computer vision, machine learning, and large language models (LLMs), serving as standard representations for multimodal data. Now the dimensionality of these vector can exceed several thousands easily. Despite the nearest neighbor search (NNS) over these dense high dimensional vectors have been widely used for retrieval augmented generation (RAG) and many other applications, the effectiveness of NNS in such a high-dimensional space remains uncertain, given the possible challenge caused by the "curse of dimensionality." To address above question, in this paper, we conduct extensive NNS studies with different distance functions, such as $L_1$ distance, $L_2$ distance and angular-distance, across diverse embedding datasets, of varied types, dimensionality and modality. Our aim is to investigate factors influencing the meaningfulness of NNS. Our experiments reveal that high-dimensional text embeddings exhibit increased resilience as dimensionality rises to higher levels when compared to random vectors. This resilience suggests that text embeddings are less affected to the "curse of dimensionality," resulting in more meaningful NNS outcomes for practical use. Additionally, the choice of distance function has minimal impact on the relevance of NNS. Our study shows the effectiveness of the embedding-based data representation method and can offer opportunity for further optimization of dense vector-related applications.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。