More Room for Language: Investigating the Effect of Retrieval on Language Models

David Samuel, Lucas Georges Gabriel Charpentier, Sondre Wold
4/16/2024
cs.CL

No official code found. Best implementation: ltgoslo/more-room-for-language (4 stars, GPL-3.0, last commit 2024-06-16).

Abstract

Retrieval-augmented language models pose a promising alternative to standard language modeling. During pretraining, these models search in a corpus of documents for contextually relevant information that could aid the language modeling objective. We introduce an 'ideal retrieval' methodology to study these models in a fully controllable setting. We conduct an extensive evaluation to examine how retrieval augmentation affects the behavior of the underlying language model. Among other things, we observe that these models: i) save substantially less world knowledge in their weights, ii) are better at understanding local context and inter-word dependencies, but iii) are worse at comprehending global context.

View on arXivView PDF

Code Implementations(1)

GPL-3.0
40Shell, PythonMar 28, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{samuel2024more,
  title  = {More Room for Language: Investigating the Effect of Retrieval on Language Models},
  author = {David Samuel and Lucas Georges Gabriel Charpentier and Sondre Wold},
  year   = {2024},
  eprint = {2404.10939},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.10939v1}
}

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/2404.10939.svg)](https://codeofpaper.com/paper/2404.10939)

Discussion