[论文解读] ERNIE-Search: Bridging Cross-Encoder with Dual-Encoder via Self On-the-fly Distillation for Dense Passage Retrieval
ERNIE-Search 提出了一种新颖的跨架构蒸馏框架,通过自适应的在线蒸馏和级联蒸馏,弥合了交叉编码器与双编码器之间的差距,从而提升了密集段落检索性能。该方法通过有效迁移表达性强的交互模型(如 ColBERT 和交叉编码器)的知识到高效的双编码器检索器,在 MS MARCO 和 Natural Question 基准测试中实现了最先进性能。
Neural retrievers based on pre-trained language models (PLMs), such as dual-encoders, have achieved promising performance on the task of open-domain question answering (QA). Their effectiveness can further reach new state-of-the-arts by incorporating cross-architecture knowledge distillation. However, most of the existing studies just directly apply conventional distillation methods. They fail to consider the particular situation where the teacher and student have different structures. In this paper, we propose a novel distillation method that significantly advances cross-architecture distillation for dual-encoders. Our method 1) introduces a self on-the-fly distillation method that can effectively distill late interaction (i.e., ColBERT) to vanilla dual-encoder, and 2) incorporates a cascade distillation process to further improve the performance with a cross-encoder teacher. Extensive experiments are conducted to validate that our proposed solution outperforms strong baselines and establish a new state-of-the-art on open-domain QA benchmarks.
研究动机与目标
- 解决复杂教师模型(如交叉编码器、ColBERT)向结构更简单的双编码器学生模型进行知识迁移时因架构差异和交互机制不匹配导致的次优知识迁移问题。
- 克服传统蒸馏方法将教师与学生模型视为独立个体的局限性,未能充分考虑其在交互机制上的差异。
- 通过从晚期交互(ColBERT)到度量交互(双编码器)的有效蒸馏,进一步通过级联管道从交叉编码器到 ColBERT,提升双编码器性能。
- 通过结合交互蒸馏与级联蒸馏,建立开放域问答任务的新最先进水平,显著提升检索有效性。
提出的方法
- 提出交互蒸馏:对齐教师模型(ColBERT)与学生模型(双编码器)之间的同一 Transformer 编码器,二者仅在交互机制上不同——晚期交互 vs. 度量交互,从而实现对交互知识的聚焦蒸馏。
- 提出自适应在线蒸馏:在训练过程中使用教师模型动态生成的伪标签进行蒸馏,无需预计算的知识。
- 实施级联蒸馏:按顺序从交叉编码器 → ColBERT → 双编码器进行知识迁移,利用 ColBERT 作为中间桥梁以弥合结构差距。
- 采用多阶段训练策略,结合双调节(DualReg)与跨批次(CB)采样方法,以稳定并提升蒸馏性能。
- 在级联蒸馏中应用多种损失函数,包括硬标签交叉熵损失与知识蒸馏损失,联合优化检索与对齐效果。
- 在交互蒸馏中,教师与学生模型使用统一的编码器主干网络,以确保语义一致性并减少分布偏移。
实验结果
研究问题
- RQ1尽管存在结构差异,是否能够有效将更表达性强的交叉编码器或 ColBERT 模型的知识迁移至更简单的双编码器模型?
- RQ2自适应在线蒸馏是否能改善双编码器检索中晚期交互与度量交互之间的对齐?
- RQ3级联蒸馏管道(交叉编码器 → ColBERT → 双编码器)是否优于直接从交叉编码器到双编码器的蒸馏?
- RQ4不同训练策略(如 Post-Train、CB、DualReg)如何影响蒸馏后双编码器的性能?
- RQ5交互蒸馏与级联蒸馏联合使用,在 MRR@10 和 R@1000 等检索指标上的提升程度如何?
主要发现
- ERNIE-Search 在 MS MARCO 段落排序基准测试中优于强基线模型(如 PAIR 和 RocketQAv2(检索器)),在基础规模双编码器中实现了新的 MRR@10 最先进水平。
- ERNIE-Search 2.4B 在 MS MARCO 和 Natural Question(NQ)数据集上均实现了新的最先进性能,展现出良好的可扩展性与有效性。
- 交互蒸馏(ID´)、跨批次采样(CB)与双调节(DualReg)的组合取得了最佳性能,相比基线 MRR@10 提升 0.31 分。
- 消融实验证实,级联蒸馏中的所有组件——多损失函数、顺序知识迁移——均对性能提升有贡献,联合优化效果最佳。
- Post-Train 结合 ID´(在全部聚合样本上)在 MRR@10 和 R@1000 上优于原始 Post-Train 与微调基线,表明全局蒸馏信号具有显著优势。
- 级联蒸馏管道显著提升了检索质量,消融实验表明,移除任一损失组件均导致所有指标性能下降。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。