arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.10448cs.CLcs.AIcs.LG
收藏

预计算记忆还是即时编码?一种用于检索增强的混合方法充分利用你的计算资源

Pre-computed memory or on-the-fly encoding? A hybrid approach to retrieval augmentation makes the most of your compute

University of Southern California(南加州大学);Google Research(谷歌研究院)

Michiel de Jong, Yury Zemlyanskiy, Nicholas FitzGerald, Joshua Ainslie, Sumit Sanghai, Fei Sha, William Cohen

AI总结:

本文提出混合检索增强模型 LUMEN,结合预计算记忆与问题条件化的实时编码,在更低计算成本下于多个问答任务中优于纯记忆方法和 FiD。

摘要:

诸如 Fusion-in-Decoder 之类的检索增强语言模型功能强大,在多种知识密集型任务上达到了最先进水平。然而,由于需要编码大量检索到的段落,它们的成本也很高。一些工作通过将文本语料库预编码到记忆中并直接检索稠密表示来避免这一成本。但是,预编码记忆会带来严重的质量损失,因为记忆表示不以当前输入为条件。我们提出了 LUMEN,这是介于这两个极端之间的混合方法:预计算大部分检索表示,并使用以问题为条件且针对任务进行微调的实时编码器即时完成编码。我们表明,LUMEN 在多个问答任务上显著优于纯记忆方法,同时比 FiD 便宜得多,并且在任何给定计算预算下都优于两者。此外,LUMEN 相对于 FiD 的优势会随着模型规模的增大而增加。

英文摘要:

Retrieval-augmented language models such as Fusion-in-Decoder are powerful, setting the state of the art on a variety of knowledge-intensive tasks. However, they are also expensive, due to the need to encode a large number of retrieved passages. Some work avoids this cost by pre-encoding a text corpus into a memory and retrieving dense representations directly. However, pre-encoding memory incurs a severe quality penalty as the memory representations are not conditioned on the current input. We propose LUMEN, a hybrid between these two extremes, pre-computing the majority of the retrieval representation and completing the encoding on the fly using a live encoder that is conditioned on the question and fine-tuned for the task. We show that LUMEN significantly outperforms pure memory on multiple question-answering tasks while being much cheaper than FiD, and outperforms both for any given compute budget. Moreover, the advantage of LUMEN over FiD increases with model size.

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

↑