[论文解读] Internet-augmented language models through few-shot prompting for open-domain question answering
论文表明通过少量示例提示将检索的网络证据条件化大语言模型,能提升开放域问答性能,有时甚至超过更大规模的封闭记忆模型;通过增加推理时的计算并对多证据进行排序可以获得进一步提升。
In this work, we aim to capitalize on the unique few-shot capabilities of large-scale language models (LSLMs) to overcome some of their challenges with respect to grounding to factual and up-to-date information. Motivated by semi-parametric language models (LMs), which ground their decisions in external retrieved evidence, we use few-shot prompting to learn to condition LMs on information returned from the web using Google Search, a broad and constantly updated knowledge source. Our approach does not involve fine-tuning or learning additional parameters, thus making it applicable to any LM, offering therefore a strong baseline. Indeed, we find that LMs conditioned on the web surpass performance of closed-book models of similar, or even larger, model sizes in open-domain question answering. Finally, we find that increasing the inference-time compute of models, achieved via using multiple retrieved evidences to generate multiple answers followed by a reranking stage that uses scores generated by the same LMs, leads to better performance and alleviates lower performance of smaller few-shot LMs. All in all, our findings suggest that it might be beneficial to slow down the race towards the biggest model and instead shift attention towards finding more effective ways to use models, including but not limited to, better prompting or increasing inference-time compute.
研究动机与目标
- 利用少量示例提示将大语言模型(LLMs)与最新的网络信息相绑定。
- 证明网络条件化的LLMs在开放域问答中可以超越尺寸相近或更大规模的封闭记忆基线。
- 探索查询式网络检索(Google)作为超越维基百科的通用知识源的影响。
- 研究通过多段检索与重排序在推理时间增加计算量是否能提升问答性能。
提出的方法
- 使用 Google Search(前20个URL)为每个问题检索相关网页段落。
- 将检索到的文档切分为六句段落,并通过 TF-IDF 余弦相似性选取摘录,形成证据集 P。
- 以包含证据段落的 15-shot 上下文示例对 LLM 进行提示(不进行微调)。
- 每段落生成 4 个候选答案,结合直接推理、嘈声信道、PoE 等评分函数聚合以选出最终答案。
- 探索多次抽样的答案(n 最高可达 50 段落)并进行重新排序以提升准确性(RAG、Noisy Channel、PoE)。
- 在数据集(NQ、HotpotQA、Fever、StrategyQA)和模型大小(44m–280B)上进行评估,以评估缩放与推理时间的权衡。
实验结果
研究问题
- RQ1在少样本提示下以网络证据条件化 LLMs,是否相较于封闭记忆提示能提升开放域问答性能?
- RQ2通过 Google Search 的检索质量如何影响单跳与多跳的问答任务?
- RQ3通过多段落抽样与重排序增加推理时间计算是否能缩小小型开放记忆模型与较大封闭记忆模型之间的差距?
- RQ4是否可以在不微调的情况下通过互联网搜索让 LLMs 保持最新?
- RQ5使用商业搜索引擎作为检索骨干的局限性与安全性考量是什么?
主要发现
- 将 Gopher-280B 条件化为 Google 检索证据时,在所有四个数据集上均能持续提升开放域问答的表现,相对于封闭记忆基线。
- 在生成任务上提升最大(相对提升在 NQ 约为 ~30%),且对于较小的模型也能持续看到开放式记忆优于更大封闭记忆模型的情况。
- 使用多段检索并进行重排序(PoE、Noisy Channel、RAG)相较单一证据条件化带来额外提升,其中 PoE 在大多数重排序策略中往往表现最佳。
- 基于 Google 的检索显示出竞争性的召回率,在某些数据集甚至超过基于维基百科的密集检索器,说明网络作为灵活的知识源。
- 较小的模型在有网络证据和更高推理时计算时的支持下也能取得较强结果,有时甚至超过更大规模的封闭记忆模型。
- 类 Oracle 的黄金证据条件化代表上限,凸显通过更好的提示优化与受限解码的改进空间。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。