You May Not Need Attention

Ofir Press, Noah A. Smith
10/31/2018
cs.CL

Official code: ofirpress/YouMayNotNeedAttention (294 stars, Python, last commit 2018-12-17).

Abstract

In NMT, how far can we get without attention and without separate encoding and decoding? To answer that question, we introduce a recurrent neural translation model that does not use attention and does not have a separate encoder and decoder.

Show full abstract

Our eager translation model is low-latency, writing target tokens as soon as it reads the first source token, and uses constant memory during decoding. It performs on par with the standard attention-based model of Bahdanau et al. (2014), and better on long sentences.

View on arXivView PDF

Code Implementations(1)

Code for the Eager Translation Model from the paper You May Not Need Attention

29426PythonOct 30, 20187 years ago

Similar Papers

Cite this paper

@article{press2018need,
  title  = {You May Not Need Attention},
  author = {Ofir Press and Noah A. Smith},
  year   = {2018},
  eprint = {1810.13409},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.13409}
}

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

Discussion