arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.04650cs.IR
收藏

提升大语言模型知识蒸馏在对话搜索中的效率与效果

Improving the Efficiency and Effectiveness of LLM Knowledge Distillation for Conversational Search

University of Amsterdam(阿姆斯特丹大学)

Stan Fris, Jan Hutter, Jan Henrik Bertrand, Simon Lupart, Mohammad Aliannejadi

AI总结:

本研究通过引入对比损失和正则化损失改进基于KLD的蒸馏方法,在对话搜索中同时提升了检索精度和推理效率。

摘要:

对话搜索(CS)考虑基于对话上下文检索相关文档。大语言模型(LLM)通过实现有效的查询重写显著增强了CS。然而,在推理过程中使用LLM会带来效率挑战。平衡效果与效率的一种方法是使用基于LLM的查询重写的知识蒸馏。最近的工作应用Kullback-Leibler散度(KLD)进行蒸馏,与先前方法相比放松了与教师信号的对齐。尽管有这些改进,基于KLD的对话搜索蒸馏的多个方面仍未被充分研究,我们在本文中对其进行研究。相关领域的先前工作表明,在KLD目标中添加对比损失可以提高性能;我们证实了这一点,并观察到在精度导向的排序指标上有显著提升。我们还发现,KLD损失的对比采样策略具有重要影响,必须谨慎选择。尽管理论表明更多样本能改善KLD估计,但实验显示使用样本数量的收益递减。最后,我们解决了较长对话中稀疏性降低的现象,这限制了稀疏检索方法的计算效率。我们发现,使用KLD损失蒸馏的模型表示可以通过正则化损失进行强正则化,从而显著提高稀疏性和推理效率,而不会严重损害检索效果。我们在TopiOCQA上实现了$2\times$的FLOPS减少,效果损失可忽略,对应Recall@100下降不超过2%。我们的结果为学习型稀疏对话检索器的蒸馏目标提供了见解,并为提高第一阶段检索的效果和效率提供了实用指南。

英文摘要:

Conversational Search (CS) considers retrieval of relevant documents based on conversational context. Large Language Models (LLMs) have significantly enhanced CS by enabling effective query rewriting. However, employing LLMs during inference poses efficiency challenges. A method to balance effectiveness and efficiency is the use of knowledge distillation from LLM-based query rewriting. Recent work applies the Kullback-Leibler Divergence (KLD) for distillation, relaxing the alignment with the teacher signal compared to previous methods. Despite these gains, several aspects of KLD-based distillation for conversational search remain understudied, and we investigate them in this work. Prior work in related fields suggests that adding a contrastive loss to the KLD objective can improve performance; we confirm this and observe significant gains in precision-oriented ranking metrics. We also find that contrastive sampling strategies for the KLD loss have a non-trivial impact and must be chosen carefully. Although theory suggests that more samples improve the KLD estimate, experiments show diminishing returns on the number of used samples. Finally, we address the phenomenon of decreased sparsity in longer conversations, which limits computational efficiency across sparse retrieval methods. We find that the representations from the model distilled with the KLD loss can be strongly regularized with a regularization loss, substantially improving sparsity and inference efficiency without significantly harming retrieval effectiveness. We achieve a $2\times$ decrease in FLOPS on TopiOCQA with negligible loss in effectiveness, corresponding to a $\leq 2%$ drop in Recall@100. Our results provide insights into distillation objectives for learned sparse conversational retrievers and offer practical guidelines for improving effectiveness and efficiency in first-stage retrieval.

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

↑