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

利用自适应相关边距的自蒸馏学习高效检索表示

Learning Effective Representations for Retrieval Using Self-Distillation with Adaptive Relevance Margins

Lukas Gienapp, Niklas Deckers, Martin Potthast, Harrisen Scells

AI总结:

本文提出一种无参数的自蒸馏损失函数,利用预训练语言模型能力进行隐式难负样本挖掘,无需教师模型和批量采样,仅用13.5%数据即可匹配教师蒸馏效果,训练提速3-15倍。

摘要:

基于表示学习的检索模型,即所谓的双编码器,通过计算查询与文档各自嵌入之间的相似度来估计文档与查询的相关性。当前最先进的双编码器采用昂贵的训练方案,该方案涉及从教师模型进行知识蒸馏以及批量采样。我们不依赖教师模型,而是提出了一种新颖的无参数损失函数用于自监督学习,该函数利用编码器模型的预训练语言建模能力作为训练信号,并通过隐式难负样本挖掘消除了对批量采样的需求。我们通过大量实验研究了所提出方法的性能,证明自蒸馏仅使用13.5%的数据即可达到与教师蒸馏相当的效果,同时与参数化损失相比,训练时间加速了3倍至15倍。所有代码和数据均已公开提供。

英文摘要:

Representation-based retrieval models, so-called bi-encoders, estimate the relevance of a document to a query by calculating the similarity of their respective embeddings. Current state-of-the-art bi-encoders are trained using an expensive training regime involving knowledge distillation from a teacher model and batch-sampling. Instead of relying on a teacher model, we contribute a novel parameter-free loss function for self-supervision that exploits the pre-trained language modeling capabilities of the encoder model as a training signal, eliminating the need for batch sampling by performing implicit hard negative mining. We investigate the capabilities of our proposed approach through extensive experiments, demonstrating that self-distillation can match the effectiveness of teacher distillation using only 13.5% of the data, while offering a speedup in training time between 3x and 15x compared to parametrized losses. All code and data is made openly available.

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

↑