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

ED2LM:一种快速文档重排序推理的语言模型编码器-解码器

ED2LM: Encoder-Decoder to Language Model for Faster Document Re-ranking Inference

Google Research(谷歌研究院)

Kai Hui, Honglei Zhuang, Tao Chen, Zhen Qin, Jing Lu, Dara Bahri, Ji Ma, Jai Prakash Gupta, Cicero Nogueira dos Santos, Yi Tay, Don Metzler

摘要:

最先进的神经模型通常使用交叉注意对文档查询对进行编码以进行重新排序。为此,模型通常利用仅编码器(如BERT)范例或编码器-解码器(如T5)方法。然而,这些范例并非没有缺陷,即,在推理时对所有查询-文档对运行该模型会导致显著的计算成本。本文提出了一种新的训练和推理范式重新排名。我们建议微调一个预训练的编码器-解码器模型,以文档的形式用于查询生成。随后,我们表明,这种编码器-解码器架构可以分解成一个解码器只语言模型在推理。这导致了显著的推理时间加速,因为仅解码器架构仅需要学习在推理期间解释静态编码器嵌入。我们的实验表明,这种新的范式实现的结果是比较昂贵的交叉注意力排名方法,同时高达6.8倍的速度。我们相信这项工作为利用大型预训练模型的更有效的神经排名铺平了道路。

英文摘要:

State-of-the-art neural models typically encode document-query pairs using cross-attention for re-ranking. To this end, models generally utilize an encoder-only (like BERT) paradigm or an encoder-decoder (like T5) approach. These paradigms, however, are not without flaws, i.e., running the model on all query-document pairs at inference-time incurs a significant computational cost. This paper proposes a new training and inference paradigm for re-ranking. We propose to finetune a pretrained encoder-decoder model using in the form of document to query generation. Subsequently, we show that this encoder-decoder architecture can be decomposed into a decoder-only language model during inference. This results in significant inference time speedups since the decoder-only architecture only needs to learn to interpret static encoder embeddings during inference. Our experiments show that this new paradigm achieves results that are comparable to the more expensive cross-attention ranking approaches while being up to 6.8X faster. We believe this work paves the way for more efficient neural rankers that leverage large pretrained models.

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

↑