Lune

EMNLP2022顶会

Training Language Models with Memory Augmentation

Zexuan Zhong, Tao Lei, Danqi Chen

摘要

Recent work has improved language models (LMs) remarkably by equipping them with a non-parametric memory component. However, most existing approaches only introduce memories at testing time or represent them using a separately trained encoder, resulting in suboptimal training of the language model. In this work, we present TRIME, a novel yet simple training approach designed for training LMs with memory augmentation. Our approach uses a training objective that directly takes inbatch examples as accessible memory. We also present new methods for memory construction and data batching, which are used for adapting to different sets of memories-local, longterm, and external memory-at testing time. We evaluate TRIME on multiple language modeling and machine translation benchmarks and show that it is able to achieve significant improvements across all the settings. Concretely, TRIME reduces the perplexity from 18.70 to 15.37 on WIKITEXT-103, by effectively leveraging a large memory set from the training corpus. Compared to standard LM training, TRIME adds negligible computational overhead and is compatible with different neural architectures, making it a versatile solution for training memory-augmented LMs. 1 * TL currently works at Google Research. The collaboration was initialized before TL joined Google. 1 Our code and pre-trained models are publicly available at https://github.com/princeton-nlp/TRIME .

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflicts 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflicts 引用了 Enabling Large Language Models to Generate Text with Citations
  • Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflicts 引用了 Language Models are Few-Shot Learners
  • Big Bird: Transformers for Longer Sequences 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Language Models are Few-Shot Learners
  • Improving Language Models by Retrieving from Trillions of Tokens 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Enabling Large Language Models to Generate Text with Citations 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Enabling Large Language Models to Generate Text with Citations 引用了 Language Models are Few-Shot Learners
  • Language Models are Few-Shot Learners 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Lift Yourself Up: Retrieval-augmented Text Generation with Self-Memory 引用了 Big Bird: Transformers for Longer Sequences
  • Lift Yourself Up: Retrieval-augmented Text Generation with Self-Memory 引用了 Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Unlimiformer: Long-Range Transformers with Unlimited Length Input 引用了 Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
  • Unlimiformer: Long-Range Transformers with Unlimited Length Input 引用了 Big Bird: Transformers for Longer Sequences
  • Unlimiformer: Long-Range Transformers with Unlimited Length Input 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Focused Transformer: Contrastive Training for Context Scaling 引用了 Big Bird: Transformers for Longer Sequences
  • Focused Transformer: Contrastive Training for Context Scaling 引用了 Improving Language Models by Retrieving from Trillions of Tokens
  • Focused Transformer: Contrastive Training for Context Scaling 引用了 Language Models are Few-Shot Learners
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper39

  1. Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge ConflictsJian Xie, Kai Zhang, Jiangjie Chen, Renze Lou 等ICLR 2024 · 294 次引用
  2. Focused Transformer: Contrastive Training for Context ScalingSzymon Tworkowski, Konrad Staniszewski, Mikolaj Pacek, Yuhuai Wu 等NeurIPS 2023 · 190 次引用
  3. Lift Yourself Up: Retrieval-augmented Text Generation with Self-MemoryXin Cheng, Di Luo, Xiuying Chen, Lemao Liu 等NeurIPS 2023 · 177 次引用
  4. Unlimiformer: Long-Range Transformers with Unlimited Length InputAmanda Bertsch, Uri Alon, Graham Neubig, Matthew GormleyNeurIPS 2023 · 176 次引用
  5. Enabling Large Language Models to Generate Text with CitationsTianyu Gao, Howard Yen, Jiatong Yu, Danqi ChenEMNLP 2023 · 152 次引用

它引用的 Paper19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni 等NeurIPS 2020 · 19,162 次引用
  3. Big Bird: Transformers for Longer SequencesManzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie 等NeurIPS 2020 · 3,159 次引用
  4. Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 次引用
  5. Improving Language Models by Retrieving from Trillions of TokensSebastian Borgeaud, Arthur Mensch, Jordan Hoffmann, Trevor Cai 等ICML 2022 · 1,629 次引用

相关 Paper

  1. Prompting Neural Machine Translation with Translation MemoriesAbudurexiti Reheman, Tao Zhou, Yingfeng Luo, Di Yang 等AAAI 2023 · 11 次引用
  2. Fast and Accurate Neural Machine Translation with Translation MemoryQiuxiang He, Guoping Huang, Qu Cui, Li Li 等ACL 2021
  3. Pretraining with hierarchical memories: separating long-tail and common knowledgeHadi Pouransari, David Grangier, C Thomas, Michael Kirchhof 等ICLR 2026 · 11 次引用
  4. Neural Machine Translation with Contrastive Translation MemoriesXin Cheng, Shen Gao, Lemao Liu, Dongyan Zhao 等EMNLP 2022 · 10 次引用
  5. Pre-training Limited Memory Language Models with Internal and External KnowledgeLinxi Zhao, Sofian Zalouk, Christian K. Belardi, Justin Lovelace 等ICLR 2026 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖