Lune

EMNLP Findings2022

You can't pick your neighbors, or can you? When and How to Rely on Retrieval in the kNN-LM

Andrew Drozdov, Shufan Wang, Razieh Rahimi, Andrew McCallum, Hamed Zamani, Mohit Iyyer

摘要

Retrieval-enhanced language models (LMs), which condition their predictions on text retrieved from large external datastores, have recently shown significant perplexity improvements compared to standard LMs. One such approach, the kNN-LM, interpolates any existing LM's predictions with the output of a knearest neighbors model and requires no additional training. In this paper, we explore the importance of lexical and semantic matching in the context of items retrieved by kNN-LM. We find two trends: (1) the presence of large overlapping n-grams between the datastore and evaluation set plays an important factor in strong performance, even when the datastore is derived from the training data; and (2) the kNN-LM is most beneficial when retrieved items have high semantic similarity with the query. Based on our analysis, we define a new formulation of the kNN-LM that uses retrieval quality to assign the interpolation coefficient. We empirically measure the effectiveness of our approach on two English language modeling datasets, Wikitext-103 and PG-19. Our re-formulation of the kNN-LM is beneficial in both cases, and leads to nearly 4% improvement in perplexity on the Wikitext-103 test set.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Deduplicating Training Data Makes Language Models Better
  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent Advances 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • SILO Language Models: Isolating Legal Risk In a Nonparametric Datastore 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • 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 引用了 Deduplicating Training Data Makes Language Models Better
  • Unlimiformer: Long-Range Transformers with Unlimited Length Input 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Unlimiformer: Long-Range Transformers with Unlimited Length Input 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Nearest Neighbor Speculative Decoding for LLM Generation and Attribution 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Nearest Neighbor Speculative Decoding for LLM Generation and Attribution 引用了 Generalization through Memorization: Nearest Neighbor Language Models
  • Nearest Neighbor Speculative Decoding for LLM Generation and Attribution 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper12

  1. Unlimiformer: Long-Range Transformers with Unlimited Length InputAmanda Bertsch, Uri Alon, Graham Neubig, Matthew GormleyNeurIPS 2023 · 176 次引用
  2. SILO Language Models: Isolating Legal Risk In a Nonparametric DatastoreSewon Min, Suchin Gururangan, Eric Wallace, Weijia Shi 等ICLR 2024 · 91 次引用
  3. Repoformer: Selective Retrieval for Repository-Level Code CompletionDi Wu, Wasi Uddin Ahmad, Dejiao Zhang, Murali Krishna Ramanathan 等ICML 2024 · 78 次引用
  4. Nearest Neighbor Speculative Decoding for LLM Generation and AttributionMinghan Li, Xilun Chen, Ari Holtzman, Beidi Chen 等NeurIPS 2024 · 29 次引用
  5. How Do Large Language Models Capture the Ever-changing World Knowledge? A Review of Recent AdvancesZihan Zhang, Meng Fang, Ling Chen, Mohammad-Reza Namazi-Rad 等EMNLP 2023 · 22 次引用

它引用的 Paper19

  1. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 等NeurIPS 2020 · 19,162 次引用
  2. Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai 等ICML 2022 · 1,629 次引用
  3. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2020 · 1,038 次引用
  4. Deduplicating Training Data Makes Language Models BetterKatherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang 等ACL 2022 · 844 次引用
  5. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier 等ICLR 2020 · 833 次引用

相关 Paper

  1. Why do Nearest Neighbor Language Models Work?Frank F. Xu, Uri Alon, Graham NeubigICML 2023 · 33 次引用
  2. kNN-LM Does Not Improve Open-ended Text GenerationShufan Wang, Yixiao Song, Andrew Drozdov, Aparna Garimella 等EMNLP 2023 · 3 次引用
  3. Adaptation Approaches for Nearest Neighbor Language ModelsRishabh Bhardwaj, George Polovets, Monica SunkaraACL Findings 2023 · 7 次引用
  4. Efficient Nearest Neighbor Language ModelsJunxian He, Graham Neubig, Taylor Berg-KirkpatrickEMNLP 2021
  5. Neuro-Symbolic Language Modeling with Automaton-augmented RetrievalUri Alon, Frank F. Xu, Junxian He, Sudipta Sengupta 等ICML 2022 · 79 次引用
黄昏的海面,两侧是细线勾勒的悬崖