arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05752cs.LGcs.DBcs.IR
收藏

探索高维空间中最近邻搜索的有效性

Exploring the Meaningfulness of Nearest Neighbor Search in High-Dimensional Space

Hong Kong University of Science and Technology(香港科技大学);China Unicom (Hong Kong) Operations Ltd(中国联通(香港)运营有限公司)

Zhonghan Chen, Ruiyuan Zhang, Xi Zhao, Xiaojun Cheng, Xiaofang Zhou

AI总结:

该研究针对高维空间中最近邻搜索(NNS)的有效性存疑问题,通过多数据集多距离函数的实验发现,高维文本嵌入受维度灾难影响更小,距离函数选择对NNS相关性影响微弱,验证了嵌入表示的有效性并为相关应用优化提供方向。

摘要:

稠密高维向量作为多模态数据的标准表示形式,在计算机视觉、机器学习和大语言模型(LLMs)等领域正变得日益重要。目前这类向量的维度可轻松超过数千维。尽管针对这些稠密高维向量的最近邻搜索(NNS)已被广泛应用于检索增强生成(RAG)及诸多其他场景,但受“维度灾难”可能带来的挑战影响,NNS在如此高维空间中的有效性仍不明确。为解决上述问题,本文针对不同类型、维度和模态的多种嵌入数据集,采用$L_1$距离、$L_2$距离和角距离等不同距离函数开展了大量NNS研究,旨在探究影响NNS有效性的因素。实验表明,与随机向量相比,高维文本嵌入的抗干扰性会随着维度升高至更高水平而增强。这种抗干扰性说明文本嵌入受“维度灾难”的影响更小,能在实际应用中产生更具意义的NNS结果。此外,距离函数的选择对NNS的相关性影响极小。本研究验证了基于嵌入的数据表示方法的有效性,可为稠密向量相关应用的进一步优化提供契机。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑