arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.09615cs.CL
收藏

关于检索增强与语言模型训练的局限性

On Retrieval Augmentation and the Limitations of Language Model Training

University of Southern California(南加州大学)

Ting-Rui Chiang, Xinyan Velocity Yu, Joshua Robinson, Ollie Liu, Isabelle Lee, Dani Yogatama

AI总结:

本文研究训练数据上的 kNN 检索为何能降低语言模型困惑度,排除 softmax 瓶颈假说,并通过新任务证明其对 GPT-2 和 Mistral 7B 的泛化提升,同时提出用多层感知机替代传统检索以降低 25 倍以上存储成本。

摘要:

仅基于训练数据对语言模型(LM)进行 k 近邻(kNN)检索增强,可以降低其困惑度,但其根本原因仍不清楚。本文首先排除了此前提出的一种可能性——“softmax 瓶颈”。随后,我们构建了一个新数据集,用于评估当训练数据包含与因果关系无关的额外信息时语言模型的泛化能力。该任务即使对 GPT-3.5 Turbo 也具有挑战性。我们证明,对于 GPT-2 和 Mistral 7B,kNN 检索增强在此设置下均能持续提升性能。最后,为使 kNN 检索更易于使用,我们提出使用一个多层感知机模型,将数据存储的键映射到值,作为传统检索的直接替代方案,从而将存储成本降低超过 25 倍。

英文摘要:

Augmenting a language model (LM) with $k$-nearest neighbors ($k$NN) retrieval on its training data alone can decrease its perplexity, though the underlying reasons for this remain elusive. In this work, we rule out one previously posited possibility -- the "softmax bottleneck." We then create a new dataset to evaluate LM generalization ability in the setting where training data contains additional information that is not causally relevant. This task is challenging even for GPT-3.5 Turbo. We show that, for both GPT-2 and Mistral 7B, $k$NN retrieval augmentation consistently improves performance in this setting. Finally, to make $k$NN retrieval more accessible, we propose using a multi-layer perceptron model that maps datastore keys to values as a drop-in replacement for traditional retrieval. This reduces storage costs by over 25x.

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

↑