Aha.
正在载入中英对照阅读…

arXiv:2208.03299 · 中英对照阅读

Atlas:基于检索增强语言模型的少样本学习

Atlas: Few-shot Learning with Retrieval Augmented Language Models

Gautier Izacard gizacard@fb.com、Patrick Lewis plewis@fb.com、Maria Lomeli marialomeli@fb.com、Lucas Hosseini hoss@fb.com、Fabio Petroni fabiopetroni@fb.com、Timo Schick schick@fb.com、Jane Dwivedi-Yu janeyu@fb.com、Armand Joulin ajoulin@fb.com、Sebastian Riedel sriedel@fb.com、Edouard Grave egrave@fb.com

中文速览

知识密集型任务往往需要模型记住大量事实,因此人们一直不确定:模型能否少看几个例子就学会新任务,是否非得靠庞大的参数量来“背知识”。Atlas把记忆交给外部文档库:先检索相关资料,再让语言模型结合资料生成答案,并通过预训练把检索器和语言模型一起训练好。实验显示,只有64个示例时,Atlas在Natural Questions问答上准确率达到42.4%,用的参数不到5400亿参数PaLM的五十分之一,却高出近3个百分点;在问答、事实核查等任务上也表现出色。结果说明,少样本学习不一定要靠模型内部存下海量知识,外部资料既能让小模型更强,也更方便更新和检查。

摘要

大型语言模型在广泛的任务中展现出令人瞩目的少样本表现。然而,当知识是取得此类表现的关键时,例如问答和事实核查等任务,似乎需要庞大的参数量来存储知识。众所周知,检索增强模型在知识密集型任务上表现出色,且无需那么多参数,但它们能否在少样本设置下发挥作用尚不明确。在这项工作中,我们提出了 Atlas,这是一种经过精心设计和预训练的检索增强语言模型,能够仅凭极少的训练样例学习知识密集型任务。我们在广泛的任务上进行评估,包括 MMLU、KILT 和 NaturalQuestions,并研究文档索引内容的影响,表明该索引可以轻松更新。值得注意的是,Atlas 仅使用 64 个样例,在 NaturalQuestions 上的准确率就超过 42%,尽管参数量少了 50 倍,仍比一个拥有 540B 个参数的模型高出 3%。

Large language models have shown impressive few-shot results on a wide range of tasks. However, when knowledge is key for such results, as is the case for tasks such as question answering and fact checking, massive parameter counts to store knowledge seem to be needed. Retrieval augmented models are known to excel at knowledge intensive tasks without the need for as many parameters, but it is unclear whether they work in few-shot settings. In this work we present Atlas, a carefully designed and pre-trained retrieval augmented language model able to learn knowledge intensive tasks with very few training examples. We perform evaluations on a wide range of tasks, including MMLU, KILT and NaturalQuestions, and study the impact of the content of the document index, showing that it can easily be updated. Notably, Atlas reaches over 42% accuracy on Natural Questions using only 64 examples, outperforming a 540B parameters model by 3% despite having 50x fewer parameters.

术语表

Large Language Model (LLM)
大型语言模型(LLM)
few-shot learning
少样本学习
in-parameter memorisation
参数内记忆
generalisation
泛化
retrieval-augmented language model
检索增强语言模型
non-parametric memory
非参数记忆
parametric language model
参数化语言模型
external knowledge source
外部知识源
Atlas
Atlas
MMLU
MMLU
KILT
KILT
NaturalQuestions
NaturalQuestions
TriviaQA
TriviaQA
FEVER
FEVER
PaLM
PaLM
Contriever
Contriever
Fusion-in-Decoder
Fusion-in-Decoder
dual-encoder architecture
双编码器架构
dense retriever
稠密检索器
continuous dense embeddings
连续稠密嵌入
MoCo contrastive loss
MoCo 对比损失
T5
T5
sequence-to-sequence model
序列到序列模型
cross-attention
交叉注意力
product quantisation
乘积量化
sample efficiency
样本效率
text-to-text framework
文本到文本框架