mlsanityData to 14 Oct 2026

Long-Tail Crisis in Nearest Neighbor Language Models

arXiv 2503.22426 ↗First posted 28 Mar 2025cs.CLcited by 1

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

  1. 2023Why do Nearest Neighbor Language Models Work?7 Jan

Other references · 14

  1. 2016Pointer Sentinel Mixture Modelscited by 3,096
  2. 2017Billion-scale similarity search with GPUscited by 2,497
  3. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
  4. 2020Nearest Neighbor Machine Translationcited by 209
  5. 2017Generating Sentences by Editing Prototypescited by 88
  6. 2017Learning to Remember Rare Eventscited by 63
  7. 2022Neuro-Symbolic Language Modeling with Automaton-augmented Retrievalcited by 60
  8. 2021Adaptive Nearest Neighbor Machine Translationcited by 58
  9. 2017Unbounded cache model for online language modeling with open vocabularycited by 37
  10. 2021Learning Kernel-Smoothed Machine Translation with Retrieved Examplescited by 25
  11. 2022You can't pick your neighbors, or can you? When and how to rely on retrieval in the kNN-LMcited by 18
  12. 2020Learning Sparse Prototypes for Text Generationcited by 15
2 more
  1. 2022Adaptation Approaches for Nearest Neighbor Language Modelscited by 6
  2. 2020Neural Language Modeling With Implicit Cache Pointerscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Great Memory, Shallow Reasoning: Limits of kNN-LMs
  2. 2024On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Models
  3. 2022kNN-Prompt: Nearest Neighbor Zero-Shot Inference
  4. 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution
  5. 2023BTR: Binary Token Representations for Efficient Retrieval Augmented Language Models
  6. 2023Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval
  7. 2024The Impact of Quantization on Retrieval-Augmented Generation: An Analysis of Small LLMs
  8. 2024Inference Scaling for Long-Context Retrieval Augmented Generation