arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.05062cs.IRcs.LG
收藏

信息检索中嵌入维度的缩放规律

Scaling Laws for Embedding Dimension in Information Retrieval

Center for Intelligent Information Retrieval(智能信息检索中心);University of Massachusetts Amherst(马萨诸塞大学阿姆赫斯特分校)

Julian Killingback, Mahta Rafiee, Madine Manas, Hamed Zamani

AI总结:

本研究分析了嵌入维度与检索性能之间的缩放关系,发现性能随嵌入维度增加而改善,但存在边际效益递减,同时提出基于嵌入维度和模型规模的联合缩放规律。

摘要:

密集检索通过将查询和文档编码为单个密集向量,因其简单性和与快速近似最近邻算法的兼容性,已成为主导的神经检索方法。随着密集检索所执行的任务复杂性增加,底层数据结构和相似性度量的基本限制--即向量和内积--变得愈加明显。最近的研究表明,单个向量和内积固有的理论限制通常与嵌入维度相关。鉴于嵌入维度对检索能力的重要性,理解嵌入维度缩放时密集检索性能的变化对于构建平衡有效性和效率的下一代检索模型至关重要。在本工作中,我们对嵌入维度与检索性能之间的关系进行了全面分析。我们的实验包括两个模型家族和每个家族的一系列模型规模,以构建嵌入缩放行为的详细图景。我们发现,缩放行为符合幂律,使我们能够仅根据嵌入维度推导出性能的缩放规律,以及同时考虑嵌入维度和模型规模的联合规律。我们的分析显示,对于与训练任务对齐的评估任务,随着嵌入尺寸的增加,性能持续改善,尽管回报逐渐减少。对于与训练任务对齐较少的评估数据,我们发现性能变得不那么可预测,某些任务中随着嵌入维度的增大,性能会下降。我们希望我们的工作能为嵌入的局限性和其行为提供额外的见解,并为选择模型和嵌入维度以在减少存储和计算成本的同时实现最佳性能提供实用指南。

英文摘要:

Dense retrieval, which encodes queries and documents into a single dense vector, has become the dominant neural retrieval approach due to its simplicity and compatibility with fast approximate nearest neighbor algorithms. As the tasks dense retrieval performs grow in complexity, the fundamental limitations of the underlying data structure and similarity metric -- namely vectors and inner-products -- become more apparent. Prior recent work has shown theoretical limitations inherent to single vectors and inner-products that are generally tied to the embedding dimension. Given the importance of embedding dimension for retrieval capacity, understanding how dense retrieval performance changes as embedding dimension is scaled is fundamental to building next generation retrieval models that balance effectiveness and efficiency. In this work, we conduct a comprehensive analysis of the relationship between embedding dimension and retrieval performance. Our experiments include two model families and a range of model sizes from each to construct a detailed picture of embedding scaling behavior. We find that the scaling behavior fits a power law, allowing us to derive scaling laws for performance given only embedding dimension, as well as a joint law accounting for embedding dimension and model size. Our analysis shows that for evaluation tasks aligned with the training task, performance continues to improve as embedding size increases, though with diminishing returns. For evaluation data that is less aligned with the training task, we find that performance is less predictable, with performance degrading with larger embedding dimensions for certain tasks. We hope our work provides additional insight into the limitations of embeddings and their behavior as well as offers a practical guide for selecting model and embedding dimension to achieve optimal performance with reduced storage and compute costs.

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

↑