Addressing Some Limitations of Transformers with Feedback Memory

Angela Fan, Thibaut Lavril, Edouard Grave, Armand Joulin, Sainbayar Sukhbaatar
2/21/2020
cs.LGcs.CLstat.ML

Official code: facebookresearch/transformer-sequential (145 stars, last commit 2022-10-05).

Abstract

Transformers have been successfully applied to sequential, auto-regressive tasks despite being feedforward networks. Unlike recurrent neural networks, Transformers use attention to capture temporal relations while processing input tokens in parallel. While this parallelization makes them computationally efficient, it restricts the model from fully exploiting the sequential nature of the input. The representation at a given layer can only access representations from lower layers, rather than the higher level representations already available. In this work, we propose the Feedback Transformer architecture that exposes all previous representations to all future representations, meaning the lowest representation of the current timestep is formed from the highest-level abstract representation of the past. We demonstrate on a variety of benchmarks in language modeling, machine translation, and reinforcement learning that the increased representation capacity can create small, shallow models with much stronger performance than comparable Transformers.

View on arXivView PDF

Code Implementations(1)

Trains Transformer model variants. Data isn't shuffled between batches.

14519Shell, PythonMay 6, 20214 years agoNOASSERTION

Similar Papers

Cite this paper

@article{fan2020addressing,
  title  = {Addressing Some Limitations of Transformers with Feedback Memory},
  author = {Angela Fan and Thibaut Lavril and Edouard Grave and Armand Joulin and Sainbayar Sukhbaatar},
  year   = {2020},
  eprint = {2002.09402},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.09402}
}

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

Discussion