Skip to main content
arXiv is now an independent nonprofit! Learn more
archive
Search Submit Donate Log in
Press Enter to search · Advanced search

Computer Science > Computation and Language

arXiv:1803.02155 (cs)
[Submitted on 6 Mar 2018 (v1), last revised 12 Apr 2018 (this version, v2)]

Title:Self-Attention with Relative Position Representations

Authors:Peter Shaw, Jakob Uszkoreit, Ashish Vaswani
View a PDF of the paper titled Self-Attention with Relative Position Representations, by Peter Shaw and 2 other authors
View PDF
Abstract: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.
Comments: NAACL 2018
Subjects: Computation and Language (cs.CL)
Cite as: arXiv:1803.02155 [cs.CL]
  (or arXiv:1803.02155v2 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.1803.02155
arXiv-issued DOI via DataCite

Submission history

From: Peter Shaw [view email]
[v1] Tue, 6 Mar 2018 13:13:11 UTC (50 KB)
[v2] Thu, 12 Apr 2018 18:51:33 UTC (51 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Self-Attention with Relative Position Representations, by Peter Shaw and 2 other authors
  • View PDF
  • TeX Source
view license

Current browse context:

cs.CL
< prev   |   next >
new | recent | 2018-03
Change to browse by:
cs

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar

2 blog links

(what is this?)

DBLP - CS Bibliography

listing | bibtex
Peter Shaw
Jakob Uszkoreit
Ashish Vaswani
Loading...

BibTeX formatted citation

Data provided by:

Bookmark

BibSonomy Reddit

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
We gratefully acknowledge support from our major funders, member institutions, , and all contributors.
About · Help · Contact · Subscribe · Copyright · Privacy · Accessibility · Operational Status (opens in new tab)
Major funding support from
Simons Foundation Schmidt Sciences