用于低延迟检索的浅层交叉编码器
Shallow Cross-Encoders for Low-Latency Retrieval
AI总结:
本文提出在低延迟检索场景下使用浅层Transformer交叉编码器,并结合gBCE训练方案,在相同时间预算内评分更多文档,显著提升NDCG@10并降低对GPU的依赖。
摘要:
基于Transformer的交叉编码器在文本检索中实现了最先进的效能。然而,基于大型Transformer模型(如BERT或T5)的交叉编码器计算开销高昂,在合理的小延迟窗口内只能对少量文档进行评分。然而,保持较低的搜索延迟对于用户满意度和能源消耗都很重要。在本文中,我们表明,当被限制在这些实际的低延迟设置下时,较弱的浅层Transformer模型(即层数有限的Transformer)实际上比全尺寸模型表现更好,因为它们可以在相同的时间预算内估计更多文档的相关性。我们进一步表明,浅层Transformer可能受益于广义二元交叉熵(gBCE)训练方案,该方案最近在推荐任务中展示了成功。我们在TREC深度学习段落排序查询集上的实验表明,在低延迟场景下,浅层和全尺寸模型都有显著改进。例如,当延迟限制为每个查询25毫秒时,MonoBERT-Large(基于全尺寸BERT模型的交叉编码器)在TREC DL 2019上仅能达到0.431的NDCG@10,而TinyBERT-gBCE(基于TinyBERT并使用gBCE训练的交叉编码器)达到了0.652的NDCG@10,比MonoBERT-Large提升了51%。我们还表明,浅层交叉编码器即使在没有GPU的情况下也是有效的(例如,使用CPU推理时,与50毫秒延迟的GPU推理相比,NDCG@10仅下降3%),这使得交叉编码器即使没有专门的硬件加速也可以实际运行。
英文摘要:
Transformer-based Cross-Encoders achieve state-of-the-art effectiveness in text retrieval. However, Cross-Encoders based on large transformer models (such as BERT or T5) are computationally expensive and allow for scoring only a small number of documents within a reasonably small latency window. However, keeping search latencies low is important for user satisfaction and energy usage. In this paper, we show that weaker shallow transformer models (i.e., transformers with a limited number of layers) actually perform better than full-scale models when constrained to these practical low-latency settings since they can estimate the relevance of more documents in the same time budget. We further show that shallow transformers may benefit from the generalized Binary Cross-Entropy (gBCE) training scheme, which has recently demonstrated success for recommendation tasks. Our experiments with TREC Deep Learning passage ranking query sets demonstrate significant improvements in shallow and full-scale models in low-latency scenarios. For example, when the latency limit is 25ms per query, MonoBERT-Large (a cross-encoder based on a full-scale BERT model) is only able to achieve NDCG@10 of 0.431 on TREC DL 2019, while TinyBERT-gBCE (a cross-encoder based on TinyBERT trained with gBCE) reaches NDCG@10 of 0.652, a +51% gain over MonoBERT-Large. We also show that shallow Cross-Encoders are effective even when used without a GPU (e.g., with CPU inference, NDCG@10 decreases only by 3% compared to GPU inference with 50ms latency), which makes Cross-Encoders practical to run even without specialized hardware acceleration.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。