On Retrieval Augmentation and the Limitations of Language Model Training

Ting-Rui Chiang, Xinyan Velocity Yu, Joshua Robinson, Ollie Liu, Isabelle Lee +1 more
11/16/2023
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chiang2023retrieval,
  title  = {On Retrieval Augmentation and the Limitations of Language Model Training},
  author = {Ting-Rui Chiang and Xinyan Velocity Yu and Joshua Robinson and Ollie Liu and Isabelle Lee and Dani Yogatama},
  year   = {2023},
  eprint = {2311.09615},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.09615v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.09615.svg)](https://codeofpaper.com/paper/2311.09615)

Discussion