When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories

Alex Mallen, Akari Asai, Victor Zhong, Rajarshi Das, Daniel Khashabi +1 more
12/20/2022
1,680 citations
cs.CLcs.AIcs.LG
rag

Official code: AlexTMallen/adaptive-retrieval (197 stars, Python, MIT, last commit 2025-07-02).

Abstract

Despite their impressive performance on diverse tasks, large language models (LMs) still struggle with tasks requiring rich world knowledge, implying the limitations of relying solely on their parameters to encode a wealth of world knowledge. This paper aims to understand LMs' strengths and limitations in memorizing factual knowledge, by conducting large-scale knowledge probing experiments of 10 models and 4 augmentation methods on PopQA, our new open-domain QA dataset with 14k questions.

Show full abstract

We find that LMs struggle with less popular factual knowledge, and that scaling fails to appreciably improve memorization of factual knowledge in the long tail. We then show that retrieval-augmented LMs largely outperform orders of magnitude larger LMs, while unassisted LMs remain competitive in questions about high-popularity entities. Based on those findings, we devise a simple, yet effective, method for powerful and efficient retrieval-augmented LMs, which retrieves non-parametric memories only when necessary. Experimental results show that this significantly improves models' performance while reducing the inference costs.

View on arXivView PDF

Code Implementations(1)

MIT
19712Python, Jupyter NotebookDec 19, 20221 years agoMIT

Similar Papers

Cite this paper

@article{mallen2022when,
  title  = {When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories},
  author = {Alex Mallen and Akari Asai and Victor Zhong and Rajarshi Das and Daniel Khashabi and Hannaneh Hajishirzi},
  year   = {2022},
  eprint = {2212.10511},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10511}
}

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

Discussion