Can Active Memory Replace Attention?

Łukasz Kaiser, Samy Bengio
10/27/2016
62 citations
cs.LGcs.CL

Official code: tensorflow/models (77,634 stars, Python, last commit 2026-04-29).

Abstract

Several mechanisms to focus attention of a neural network on selected parts of its input or memory have been used successfully in deep learning models in recent years. Attention has improved image classification, image captioning, speech recognition, generative models, and learning algorithmic tasks, but it had probably the largest impact on neural machine translation.

Show full abstract

Recently, similar improvements have been obtained using alternative mechanisms that do not focus on a single part of a memory but operate on all of it in parallel, in a uniform way. Such mechanism, which we call active memory, improved over attention in algorithmic tasks, image processing, and in generative modelling. So far, however, active memory has not improved over attention for most natural language processing tasks, in particular for machine translation. We analyze this shortcoming in this paper and propose an extended model of active memory that matches existing attention models on neural machine translation and generalizes better to longer sentences. We investigate this model and explain why previous active memory models did not succeed. Finally, we discuss when active memory brings most benefits and where attention can be a better choice.

View on arXivView PDF

Code Implementations(1)

tensorflow/modelsOfficial100%

Models and examples built with TensorFlow

77,63444,763Python, Jupyter NotebookFeb 5, 20167 months agoNOASSERTION

Similar Papers

Cite this paper

@article{kaiser2016active,
  title  = {Can Active Memory Replace Attention?},
  author = {Łukasz Kaiser and Samy Bengio},
  year   = {2016},
  eprint = {1610.08613},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1610.08613}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1610.08613.svg)](https://codeofpaper.com/paper/1610.08613)

Discussion