arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2205.12674cs.CLcs.LG
收藏

基于记忆增强的语言模型训练

Training Language Models with Memory Augmentation

Princeton University(普林斯顿大学);Google Research(谷歌研究院)

Zexuan Zhong, Tao Lei, Danqi Chen

摘要:

最近的工作已经通过为语言模型(LM)配备非参数记忆组件来显著地改进它们。然而,大多数现有的方法只在测试时引入记忆或使用单独训练的编码器表示它们,导致语言模型的次优训练。在这项工作中,我们提出了TRIME,一种新颖而简单的训练方法,旨在训练LM与记忆增强。我们的方法使用了一个训练目标,直接将批处理中的示例作为可访问的内存。我们还提出了新的方法,内存建设和数据存储,这是用于适应不同的记忆集-本地,长期和外部存储器-在测试时。我们评估TRIME的多语言建模和机器翻译基准测试,并表明它能够在所有设置中实现显着的改进。具体地说,TRIME通过有效地利用来自训练语料库的大内存集,将WIKITEXT-103上的困惑度从18.70降低到15.37。与标准LM训练相比,TRIME增加的计算开销可以忽略不计,并且与不同的神经架构兼容,使其成为训练记忆增强LM的通用解决方案。

英文摘要:

Recent work has improved language models (LMs) remarkably by equipping them with a non-parametric memory component. However, most existing approaches only introduce mem-ories 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 in-batch 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, long-term, 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑