Is Attention All What You Need? -- An Empirical Investigation on Convolution-Based Active Memory and Self-Attention

Thomas Dowdell, Hongyu Zhang
12/27/2019
cs.LGcs.CLstat.ML
transformer-attention

Official code: Anon-111/Active-Memory (4 stars, Python, last commit 2019-12-23).

Abstract

The key to a Transformer model is the self-attention mechanism, which allows the model to analyze an entire sequence in a computationally efficient manner. Recent work has suggested the possibility that general attention mechanisms used by RNNs could be replaced by active-memory mechanisms.

Show full abstract

In this work, we evaluate whether various active-memory mechanisms could replace self-attention in a Transformer. Our experiments suggest that active-memory alone achieves comparable results to the self-attention mechanism for language modelling, but optimal results are mostly achieved by using both active-memory and self-attention mechanisms together. We also note that, for some specific algorithmic tasks, active-memory mechanisms alone outperform both self-attention and a combination of the two.

View on arXivView PDF

Code Implementations(1)

Repository for 'Is Attention All What You Need ? - An Empirical Investigation on Convolution-Based Active Memory and Self-Attention'

40PythonDec 20, 20196 years ago

Similar Papers

Cite this paper

@article{dowdell2019attention,
  title  = {Is Attention All What You Need? -- An Empirical Investigation on Convolution-Based Active Memory and Self-Attention},
  author = {Thomas Dowdell and Hongyu Zhang},
  year   = {2019},
  eprint = {1912.11959},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1912.11959}
}

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/1912.11959.svg)](https://codeofpaper.com/paper/1912.11959)

Discussion