Lune

EMNLP2021顶会

Efficient Nearest Neighbor Language Models

Junxian He, Graham Neubig, Taylor Berg-Kirkpatrick

摘要

Non-parametric neural language models (NLMs) learn predictive distributions of text utilizing an external datastore, which allows them to learn through explicitly memorizing the training datapoints. While effective, these models often require retrieval from a large datastore at test time, significantly increasing the inference overhead and thus limiting the deployment of non-parametric NLMs in practical applications. In this paper, we take the recently proposed k-nearest neighbors language model (Khandelwal et al., 2019) as an example, exploring methods to improve its efficiency along various dimensions. Experiments on the standard WikiText-103 benchmark and domain-adaptation datasets show that our methods are able to achieve up to a 6x speed-up in inference speed while retaining comparable performance. The empirical analysis we present may provide guidelines for future research seeking to develop or deploy more efficient non-parametric NLMs. 1

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 47 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Learning Sparse Prototypes for Text Generation 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Learning Sparse Prototypes for Text Generation 引用了 Nearest Neighbor Machine Translation
  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval 引用了 Learning Sparse Prototypes for Text Generation
  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
  • Neuro-Symbolic Language Modeling with Automaton-augmented Retrieval 引用了 Nearest Neighbor Machine Translation
  • RECOMP: Improving Retrieval-Augmented LMs with Context Compression and Selective Augmentation 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memories 引用了 Language Models are Few-Shot Learners
  • SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore 引用了 Language Models are Few-Shot Learners
  • Nearest Neighbor Machine Translation 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Nearest Neighbor Machine Translation 引用了 Accelerating Large-Scale Inference with Anisotropic Vector Quantization
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper47

  1. RECOMP: Improving Retrieval-Augmented LMs with Context Compression and Selective AugmentationFangyuan Xu, Weijia Shi, Eunsol ChoiICLR 2024 · 260 次引用
  2. When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric MemoriesAlex Mallen, Akari Asai, Victor Zhong, Rajarshi Das 等ACL 2023 · 233 次引用
  3. The Efficiency MisnomerMostafa Dehghani, Yi Tay, Anurag Arnab, Lucas Beyer 等ICLR 2022 · 116 次引用
  4. SILO Language Models: Isolating Legal Risk In a Nonparametric DatastoreSewon Min, Suchin Gururangan, Eric Wallace, Weijia Shi 等ICLR 2024 · 91 次引用
  5. Neuro-Symbolic Language Modeling with Automaton-augmented RetrievalUri Alon, Frank F. Xu, Junxian He, Sudipta Sengupta 等ICML 2022 · 79 次引用

它引用的 Paper6

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2020 · 1,038 次引用
  3. Accelerating Large-Scale Inference with Anisotropic Vector QuantizationRuiqi Guo, Philip Sun, Erik Lindgren, Quan Geng 等ICML 2020 · 539 次引用
  4. Nearest Neighbor Machine TranslationUrvashi Khandelwal, Angela Fan, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2021 · 323 次引用
  5. Learning Sparse Prototypes for Text GenerationJunxian He, Taylor Berg-Kirkpatrick, Graham NeubigNeurIPS 2020 · 26 次引用

相关 Paper

  1. Adaptation Approaches for Nearest Neighbor Language ModelsRishabh Bhardwaj, George Polovets, Monica SunkaraACL Findings 2023 · 7 次引用
  2. You can't pick your neighbors, or can you? When and How to Rely on Retrieval in the kNN-LMAndrew Drozdov, Shufan Wang, Razieh Rahimi, Andrew McCallum 等EMNLP Findings 2022 · 10 次引用
  3. Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 次引用
  4. Simple and Scalable Nearest Neighbor Machine TranslationYuhan Dai, Zhirui Zhang, Qiuzhi Liu, Qu Cui 等ICLR 2023 · 9 次引用
  5. Efficient Cluster-Based k-Nearest-Neighbor Machine TranslationDexin Wang, Kai Fan, Boxing Chen, Deyi XiongACL 2022 · 35 次引用
黄昏的海面,两侧是细线勾勒的悬崖