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

大型语言模型是内置的自回归搜索引擎

Large Language Models are Built-in Autoregressive Search Engines

University of Notre Dame(圣母大学)

Noah Ziems, Wenhao Yu, Zhihan Zhang, Meng Jiang

AI总结:

本文发现大型语言模型(LLMs)能遵循指令直接生成URL进行文档检索,在三个开放域问答基准的零样本和少样本设置下,检索性能显著优于现有方法。

摘要:

文档检索是标准Web搜索引擎的关键阶段。现有的双编码器密集检索器独立获取问题和文档的表示,仅允许它们之间进行浅层交互。为克服这一限制,近期的自回归搜索引擎直接生成候选池中相关文档的标识符,以取代双编码器架构。然而,随着候选文档数量的增加,此类自回归搜索引擎的训练成本急剧上升。在本文中,我们发现大型语言模型(LLMs)能够遵循人类指令,直接生成用于文档检索的URL。令人惊讶的是,当提供少量{Query-URL}对作为上下文示例时,LLMs生成的Web URL中,有近90%的对应文档包含开放域问题的正确答案。由于LLMs并未被显式训练将问题映射到文档标识符,因此可以将其视为内置的搜索引擎。实验表明,在零样本和少样本设置下,在三个开放域问答基准上,我们的方法能以显著优势持续取得优于现有检索方法的检索性能。本工作的代码可在https://github.com/Ziems/llm-url找到。

英文摘要:

Document retrieval is a key stage of standard Web search engines. Existing dual-encoder dense retrievers obtain representations for questions and documents independently, allowing for only shallow interactions between them. To overcome this limitation, recent autoregressive search engines replace the dual-encoder architecture by directly generating identifiers for relevant documents in the candidate pool. However, the training cost of such autoregressive search engines rises sharply as the number of candidate documents increases. In this paper, we find that large language models (LLMs) can follow human instructions to directly generate URLs for document retrieval. Surprisingly, when providing a few {Query-URL} pairs as in-context demonstrations, LLMs can generate Web URLs where nearly 90\% of the corresponding documents contain correct answers to open-domain questions. In this way, LLMs can be thought of as built-in search engines, since they have not been explicitly trained to map questions to document identifiers. Experiments demonstrate that our method can consistently achieve better retrieval performance than existing retrieval approaches by a significant margin on three open-domain question answering benchmarks, under both zero and few-shot settings. The code for this work can be found at \url{https://github.com/Ziems/llm-url}.

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

↑