Long-Tail Crisis in Nearest Neighbor Language Models
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
The k-nearest-neighbor language model (kNN-LM), one of the retrieval-augmented language models, improves the perplexity for given text by directly accessing a large datastore built from any text data during inference. A widely held hypothesis for the success of kNN-LM is that its explicit memory, i.e., the datastore, enhances predictions for long-tail phenomena. However, prior works have primarily shown its ability to retrieve long-tail contexts, leaving the model's performance remain underexplored in estimating the probabilities of long-tail target tokens during inference. In this paper, we investigate the behavior of kNN-LM on low-frequency tokens, examining prediction probability, retrieval accuracy, token distribution in the datastore, and approximation error of the product quantization. Our experimental results reveal that kNN-LM does not improve prediction performance for low-frequency tokens but mainly benefits high-frequency tokens regardless of long-tail contexts in the datastore.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 15 of its 30 references that are in the map. First posted on arXiv 28 Mar 2025.
Builds on
15 of 30 references.
Closest ancestors · 1
Same direction, newest first
Other references · 14
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2020Nearest Neighbor Machine Translationcited by 209
- 2017Generating Sentences by Editing Prototypescited by 88
- 2017Learning to Remember Rare Eventscited by 63
- 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
- 2021Adaptive Nearest Neighbor Machine Translationcited by 58
- 2017Unbounded cache model for online language modeling with open vocabularycited by 37
- 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
- 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LMcited by 18
- 2020Learning Sparse Prototypes for Text Generationcited by 15
2 more
- 2022Adaptation Approaches for Nearest Neighbor Language Modelscited by 6
- 2020Neural Language Modeling With Implicit Cache Pointerscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2024Great Memory, Shallow Reasoning: Limits of kNN-LMs
- 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Models
- 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inference
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution
- 2023BTR: Binary Token Representations for Efficient Retrieval Augmented Language Models
- 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval
- 2024The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs
- 2024Inference Scaling for Long-Context Retrieval Augmented Generation