Research map / Large language models / Retrieval and knowledge
Great Memory, Shallow Reasoning: Limits of kNN-LMs
Shangyi Geng, Wenting Zhao, Alexander M Rush
Cornell University
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
4improved
1no clear effect
5hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- GSM8K leaderboard accuracy 13.48 · rank 928 of 945 papers
- HotpotQA leaderboard accuracy 24.63 · rank 102 of 109 papers
- SST-2 leaderboard accuracy 84.68 · rank 245 of 272 papers
- ARC-Challenge leaderboard accuracy 41.04 · rank 156 of 191 papers
- NQ leaderboard accuracy 24 · rank 38 of 39 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add Wiki datastore via kNN-LM | Llama2-7b · Wikitext perplexity | perplexity: 10.63 -> 9.74 | Improved |
| use datastore from a different domain (Wiki on math test set) (ablation) | Llama2-7b kNN-LM · Math textbooks perplexity | perplexity: 7.90 -> 8.75 | Hurt |
| add kNN-LM datastore on memory-intensive classification tasks | Llama2-7B, Llama3-8B, Mistral-7B · sentiment, entailment and topic classification (9 datasets) | accuracy: e.g. CR 74.55 -> 76.95 (Llama2-7B + Wiki) | Improved |
| add Wiki kNN-LM datastore | Llama2-7B · Natural Questions | F1: 23.18 -> 22.53 | Hurt |
| add kNN-LM datastore on knowledge-intensive reasoning tasks | Llama2-7B, Llama3-8B, Mistral-7B · NQ, HotpotQA, ARC, OBQA, MMLU | accuracy / F1: e.g. Llama2-7B Arc-Challenge 41.81 -> 38.31 | Hurt |
| add kNN-LM datastore on GSM8K | Llama2-7B · GSM8K | accuracy: 14.83 -> 12.05 (Wiki), 13.48 (Math) | Hurt |
| add kNN-LM datastore on commonsense and math reasoning | Llama2-7B, Llama3-8B, Mistral · Winogrande, HellaSwag, DROP, GSM8K, BBH | accuracy | Hurt |
| retrieve from Math datastore instead of Wiki (ablation) | kNN-LM · GSM8K and DROP | accuracy / F1: Llama2-7B GSM8K 12.05 -> 13.48 | Improved |
| tune lambda on downstream task examples (ablation) | kNN-LM with Wiki · OpenbookQA and HotpotQA | log probability loss: minimum loss when lambda is close to 0 | No clear effect |
| oracle retrieval including correct answer among the k neighbors (ablation) | kNN-LM · OBQA | accuracy: 55.80 -> 95.60 | Improved |
| oracle retrieval including correct answer among the k neighbors (ablation) | kNN-LM · HotpotQA | accuracy: 25.14 -> 49.85 | Mixed |
Open problems in long-context and personalized retrieval
How can long-term memory for LLM assistants work beyond text-only, English, synthetic and costly multi-call setups?
- Memory handles text only, with no images, audio or sensor data. · 20 papers state it
- Extra LLM calls and multi-stage pipelines raise latency and cost. · 20 papers state it
- Evaluation covers English or only a few languages. · 17 papers state it
Closest papers by meaning
- Why do Nearest Neighbor Language Models Work? (ICML 2023 · similarity 0.92)
- Nearest Neighbor Zero-Shot Inference (EMNLP 2022 · similarity 0.91)
- Making Retrieval-Augmented Language Models Robust to Irrelevant Context (ICLR 2024 · similarity 0.87)
- Peripheral Memory for LLMs: Integration of Sequential Memory Banks with Adaptive Querying (ICML 2025 · similarity 0.87)
- metabench - A Sparse Benchmark of Reasoning and Knowledge in Large Language Models (ICLR 2025 · similarity 0.87)
- Simple is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generation (ICLR 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.