CLLGJul 10, 2019

Large Memory Layers with Product Keys

arXiv:1907.05242v2175 citations
Originality Highly original
AI Analysis

This addresses the challenge of scaling language models efficiently for large-scale tasks, offering a novel solution to improve accuracy-computation trade-offs.

The paper tackles the problem of increasing neural network capacity without computational overhead by introducing a structured memory layer based on product keys, achieving up to a billion parameters and enabling a 12-layer memory-augmented model to outperform a 24-layer baseline transformer while being twice as fast at inference.

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.

Code Implementations7 repos

Data from Papers with Code (CC-BY-SA-4.0)

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes