We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.CL

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Computation and Language

Title: Large Memory Layers with Product Keys

Abstract: 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.
Comments: Advances in Neural Information Processing Systems, 2019
Subjects: Computation and Language (cs.CL); Machine Learning (cs.LG)
Cite as: arXiv:1907.05242 [cs.CL]
  (or arXiv:1907.05242v2 [cs.CL] for this version)

Submission history

From: Guillaume Lample [view email]
[v1] Wed, 10 Jul 2019 14:52:12 GMT (170kb,D)
[v2] Mon, 16 Dec 2019 03:46:57 GMT (181kb,D)

Link back to: arXiv, form interface, contact.