Adaptation Approaches for Nearest Neighbor Language Models
Not on the map. Why?
Abstract (arXiv)
Semi-parametric Nearest Neighbor Language Models (kNN-LMs) have produced impressive gains over purely parametric LMs, by leveraging large-scale neighborhood retrieval over external memory datastores. However, there has been little investigation into adapting such models for new domains. This work attempts to fill that gap and suggests the following approaches for adapting kNN-LMs -- 1) adapting the underlying LM (using Adapters), 2) expanding neighborhood retrieval over an additional adaptation datastore, and 3) adapting the weights (scores) of retrieved neighbors using a learned Rescorer module. We study each adaptation strategy separately, as well as the combined performance improvement through ablation experiments and an extensive set of evaluations run over seven adaptation domains. Our combined adaptation approach consistently outperforms purely parametric adaptation and zero-shot (kNN-LM) baselines that construct datastores from the adaptation data. On average, we see perplexity improvements of 17.1% and 16% for these respective baselines, across domains.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 23 of its 29 references that are in the map. First posted on arXiv 15 Nov 2022.
Builds on
23 of 29 references.
References · 23
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2017Billion-scale similarity search with GPUscited by 2,497
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2019Passage Re-ranking with BERTcited by 645
11 more
- 2019SAMSum Corpus: A Human-annotated Dialogue Dataset for Abstractive Summarizationcited by 535
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 478
- 2020AdapterHub: A Framework for Adapting Transformerscited by 444
- 2021XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languagescited by 347
- 2021Efficient Attentions for Long Document Summarizationcited by 345
- 2020Nearest Neighbor Machine Translationcited by 209
- 2021BookSum: A Collection of Datasets for Long-form Narrative Summarizationcited by 184
- 2022Re2G: Retrieve, Rerank, Generatecited by 102
- 2021Efficient Nearest Neighbor Language Modelscited by 93
- 2021Adaptive Semiparametric Language Modelscited by 83
- 2022Meta-Learning the Difference: Preparing Large Language Models for Efficient Adaptationcited by 14
Built on by
Citing papers per year: 2023: 3; 2024: 2; 2025: 1.
6 papers.
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advancescited by 33
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attributioncited by 25
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Modelscited by 23
- 2023Learn to Memorize: Scalable Continual Learning in Semiparametric Models with Mixture-of-Neighbors Induction Memorycited by 12
- 2024NNOSE: Nearest Neighbor Occupational Skill Extractioncited by 5
- 2025Long-Tail Crisis in Nearest Neighbor Language Modelscited by 1
- 2025Long-Tail Crisis in Nearest Neighbor Language Models28 Mar 2025
- 2024Nearest Neighbor Speculative Decoding for LLM Generation and Attribution29 May 2024
- 2024NNOSE: Nearest Neighbor Occupational Skill Extraction30 Jan 2024
- 2023Goodtriever: Adaptive Toxicity Mitigation with Retrieval-augmented Models11 Oct 2023
- 2023How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances11 Oct 2023
- 2023Learn to Memorize: Scalable Continual Learning in Semiparametric Models with Mixture-of-Neighbors Induction Memory2 Mar 2023