Self-Attention with Relative Position Representations

By Peter Shaw, Jakob Uszkoreit, Ashish Vaswani. 2018

2,875 citations recorded by the source corpus.

Relying entirely on an attention mechanism, the Transformer introduced by Vaswani et al. (2017) achieves state-of-the-art results for machine translation. In contrast to recurrent and convolutional neural networks, it does not explicitly model relative or absolute position information in its structure. Instead, it requires adding representations of absolute positions to its inputs. In this work we present an alternative approach, extending the self-attention mechanism to efficiently consider representations of the relative positions, or distances between sequence elements. On the WMT 2014 English-to-German and English-to-French translation tasks, this approach yields improvements of 1.3 BLEU and 0.3 BLEU over absolute position representations, respectively. Notably, we observe that combining relative and absolute position representations yields no further improvement in translation quality. We describe an efficient implementation of our method and cast it as an instance of relation-aware self-attention mechanisms that can generalize to arbitrary graph-labeled inputs.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Quoc V. Le
  4. Luke S. Zettlemoyer
  5. Percy Liang
  6. Yoshua Bengio
  7. Yejin Choi
  8. Graham Neubig

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Ming-Hsuan Yang
  4. Xiaogang Wang
  5. Trevor Darrell
  6. Jitendra Malik
  7. Alan L. Yuille
  8. Andrew Zisserman

In Model Architectures

  1. Quoc V. Le
  2. Yoshua Bengio
  3. Jianfeng Gao
  4. Ruslan Salakhutdinov
  5. Alan L. Yuille
  6. Mohit Bansal
  7. Tie-Yan Liu
  8. Tao Qin

Citations in the corpus