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

带有产品密钥的大型内存层

Large Memory Layers with Product Keys

Facebook AI Research(脸书人工智能研究院);Sorbonne Universités, UPMC Univ Paris 06(索邦大学,巴黎第六大学皮埃尔和玛丽·居里大学)

Guillaume Lample, Alexandre Sablayrolles, Marc'Aurelio Ranzato, Ludovic Denoyer, Hervé Jégou

摘要:

本文介绍了一种结构化存储器,它可以很容易地集成到一个神经网络。存储器的设计非常大,大大增加了架构的容量,多达十亿个参数,计算开销可以忽略不计。它的设计和访问模式是基于产品密钥,这使得快速和准确的最近邻搜索。在保持相同计算预算的同时增加参数数量的能力使整个系统在训练和测试时都能在预测精度和计算效率之间取得更好的平衡。这个内存层允许我们处理非常大规模的语言建模任务。在我们的实验中,我们考虑了一个高达300亿字的数据集,我们将我们的内存层插入到一个最先进的基于transformer的架构中。特别是,我们发现只有12层的内存增强模型优于24层的基线Transformer模型,同时在推理时间上快了两倍。我们发布我们的代码是为了重现性。

英文摘要:

This paper introduces a structured memory which can be easily integrated into a neural network. The memory is very large by design and significantly increases the capacity of the architecture, by up to a billion parameters with a negligible computational overhead. Its design and access pattern is based on product keys, which enable fast and exact nearest neighbor search. The ability to increase the number of parameters while keeping the same computational budget lets the overall system strike a better trade-off between prediction accuracy and computation efficiency both at training and test time. This memory layer allows us to tackle very large scale language modeling tasks. In our experiments we consider a dataset with up to 30 billion words, and we plug our memory layer in a state-of-the-art transformer-based architecture. In particular, we found that a memory augmented model with only 12 layers outperforms a baseline transformer model with 24 layers, while being twice faster at inference time. We release our code for reproducibility purposes.

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

↑