NUDGE:面向检索的轻量级非参数嵌入微调
NUDGE: Lightweight Non-Parametric Fine-Tuning of Embeddings for Retrieval
AI总结:
NUDGE提出一种非参数嵌入微调方法,通过直接修改数据记录嵌入并施加可高效求解的约束,在保持语义的同时显著提升检索准确率,且比现有微调方法更快。
摘要:
对来自预训练嵌入模型的稠密向量嵌入进行$k$-最近邻搜索($k$-NN检索)是文本和图像以及检索增强生成(RAG)流水线中的主要检索方法。在实践中,应用开发者通常会对嵌入进行微调,以提高其在手头数据集和查询负载上的准确性。现有方法要么微调预训练模型本身,要么以牺牲准确性为代价、更高效地训练适配器模型来转换预训练模型的输出。我们提出NUDGE,这是一系列新颖的非参数嵌入微调方法,其准确性和效率都显著优于上述两类现有方法。NUDGE直接修改数据记录的嵌入,以最大化$k$-NN检索的准确性。我们对NUDGE的非参数方法进行了深入的理论和实验研究。我们表明,尽管底层问题是NP-Hard的,但受约束的变体可以被高效求解。这些约束还确保对嵌入的改动是适度的,避免对预训练期间学到的语义造成大的扭曲。在跨五个预训练模型和九个标准文本与图像检索数据集的实验中,NUDGE在几分钟内即可运行,并且相比现有微调方法,NDCG@10通常提升超过10%。平均而言,与微调预训练模型和训练适配器相比,NUDGE分别提供了3.3倍和4.3倍的准确率提升,同时运行速度分别快200倍和3倍。
英文摘要:
$k$-Nearest Neighbor search on dense vector embeddings ($k$-NN retrieval) from pre-trained embedding models is the predominant retrieval method for text and images, as well as Retrieval-Augmented Generation (RAG) pipelines. In practice, application developers often fine-tune the embeddings to improve their accuracy on the dataset and query workload in hand. Existing approaches either fine-tune the pre-trained model itself or, more efficiently, but at the cost of accuracy, train adaptor models to transform the output of the pre-trained model. We present NUDGE, a family of novel non-parametric embedding fine-tuning approaches that are significantly more accurate and efficient than both sets of existing approaches. NUDGE directly modifies the embeddings of data records to maximize the accuracy of $k$-NN retrieval. We present a thorough theoretical and experimental study of NUDGE's non-parametric approach. We show that even though the underlying problem is NP-Hard, constrained variations can be solved efficiently. These constraints additionally ensure that the changes to the embeddings are modest, avoiding large distortions to the semantics learned during pre-training. In experiments across five pre-trained models and nine standard text and image retrieval datasets, NUDGE runs in minutes and often improves NDCG@10 by more than 10% over existing fine-tuning methods. On average, NUDGE provides 3.3x and 4.3x higher increase in accuracy and runs 200x and 3x faster, respectively, over fine-tuning the pre-trained model and training adaptors.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。