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

文档排序中统一结构知识蒸馏的实证研究

An Empirical Study of Uniform-Architecture Knowledge Distillation in Document Ranking

Xubo Qin, Xiyuan Liu, Xiongfeng Zheng, Jie Liu, Yutao Zhu

摘要:

基于BERT的排序模型在商业搜索引擎中得到了广泛的应用,但对于在线排序任务来说,它们通常是耗时的。知识蒸馏是一种减少在线推理延迟的常用策略,其目的是学习性能与较大模型相当的较小模型。在本文中,我们研究了不同的损失函数的均匀结构蒸馏的BERT排序模型的效果。这里的“统一架构”表示教师和学生模型都在交叉编码器架构中,而学生模型包括小规模的预训练语言模型。我们的实验结果表明,排序任务的最佳蒸馏配置与一般的自然语言处理任务有很大的不同。具体而言,当学生模型处于交叉编码器架构中时,成对丢失硬标签对于训练学生模型至关重要,而中间Transformer层的蒸馏目标可能会损害性能。这些发现强调了仔细设计一个蒸馏策略(交叉编码器的学生模型)的必要性,为文档排序与成对训练样本量身定制。

英文摘要:

Although BERT-based ranking models have been commonly used in commercial search engines, they are usually time-consuming for online ranking tasks. Knowledge distillation, which aims at learning a smaller model with comparable performance to a larger model, is a common strategy for reducing the online inference latency. In this paper, we investigate the effect of different loss functions for uniform-architecture distillation of BERT-based ranking models. Here "uniform-architecture" denotes that both teacher and student models are in cross-encoder architecture, while the student models include small-scaled pre-trained language models. Our experimental results reveal that the optimal distillation configuration for ranking tasks is much different than general natural language processing tasks. Specifically, when the student models are in cross-encoder architecture, a pairwise loss of hard labels is critical for training student models, whereas the distillation objectives of intermediate Transformer layers may hurt performance. These findings emphasize the necessity of carefully designing a distillation strategy (for cross-encoder student models) tailored for document ranking with pairwise training samples.

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

↑