[Paper Review] When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories
The paper analyzes how much factual knowledge LMs memorize, how popularity and relation types affect memory, and how retrieval-augmented memories and adaptive retrieval can improve performance and efficiency on open-domain QA.
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. 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.
Motivation & Objective
- Understand factors that affect factual knowledge memorization in LMs (popularity of subjects and relationship types).
- Assess the effectiveness of non-parametric memories (retrieval) in complementing parametric knowledge.
- Investigate whether adaptive retrieval can optimally combine parametric and non-parametric memories while reducing costs.
- Evaluate adaptive retrieval on large-scale open-domain QA benchmarks PopQA and EntityQuestions.
Proposed method
- Evaluate ten open-domain LMs (OPT, GPT-Neo, GPT-3) across multiple sizes without fine-tuning.
- Introduce PopQA, a 14k-question open-domain QA dataset over long-tail entities derived from Wikidata and Wikipedia popularity.
- Analyze memorization as a function of subject popularity and relationship type across models.
- Test retrieval-augmented LMs using BM25, Contriever, and GenRead to augment prompts with non-parametric memories.
- Assess adaptive retrieval that selectively retrieves based on popularity thresholds per relationship type to optimize performance and efficiency.
- Report performance and efficiency metrics, including accuracy, latency, and API costs.
Experimental results
Research questions
- RQ1RQ1: How much factual knowledge is memorized by LMs and what factors affect memorization?
- RQ2RQ2: To what extent can non-parametric memories alleviate limitations of parametric memories?
- RQ3RQ3: Can we build a system to adaptively combine non-parametric and parametric memories?
Key findings
- Memorization correlates with subject entity popularity across models; larger models show stronger correlations.
- Scaling primarily improves memorization for popular knowledge and yields limited gains on long-tail questions.
- Retrieval augmentation substantially improves long-tail performance, especially for less popular entities; however, it can hurt performance for popular entities if retrieved context misleads the model.
- Non-parametric memories (BM25/Contriever) outperform unassisted LMs on less popular questions, with Contriever generally yielding better results on PopQA; GenRead helps some larger models but is less effective for small ones.
- Adaptive Retrieval—retrieving only when necessary based on popularity thresholds—outperforms always-retrieve strategies, achieving up to 46.5% accuracy on PopQA with GPT-3 davinci-003 using GenRead and Contriever.
- Adaptive Retrieval reduces inference costs and latency, with up to ~9% latency reduction for large LMs and up to 50% API cost reduction in GPT-3 scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.