Research map / Architectures and efficiency / Attention and transformers
Self-Attention with Relative Position Representations
Peter Shaw, Jakob Uszkoreit, Ashish Vaswani
Read the paperPlace an idea next to itCheck your own paper ↗
10measured effects
7improved
3no clear effect
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- WMT14 En-De newstest2014 leaderboard BLEU 29.2 · rank 13 of 36 papers
- WMT14 En-Fr newstest2014 leaderboard BLEU 41.5 · rank 6 of 13 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace absolute (sinusoidal) with relative position representations | Transformer (big) · WMT14 EN-DE newstest2014 | BLEU: 27.9 -> 29.2 | Improved |
| replace absolute with relative position representations | Transformer (base) · WMT14 EN-DE newstest2014 | BLEU: 26.5 -> 26.8 | Improved |
| replace absolute with relative position representations | Transformer (base) · WMT14 EN-FR newstest2014 | BLEU: 38.2 -> 38.7 | Improved |
| replace absolute with relative position representations | Transformer (big) · WMT14 EN-FR newstest2014 | BLEU: 41.2 -> 41.5 | Improved |
| add sinusoidal position encodings on top of relative position representations | Transformer with relative position representations · WMT14 EN-DE / EN-FR | BLEU | No clear effect |
| increase clipping distance from k=0 to k=1 (ablation) | Transformer (base) relative positions · WMT14 EN-DE newstest2013 | BLEU: 12.5 -> 25.5 | Improved |
| increase clipping distance beyond k=2 (up to 256) (ablation) | Transformer (base) relative positions · WMT14 EN-DE newstest2013 | BLEU: 25.8 -> 25.8 (k=256) | No clear effect |
| add a^K (relative representations in compatibility) when a^V is present (ablation) | Transformer (base) relative positions · WMT14 EN-DE newstest2013 | BLEU: 25.3 -> 25.8 | Improved |
| add a^V (relative representations in value) when a^K is present (ablation) | Transformer (base) relative positions · WMT14 EN-DE newstest2013 | BLEU: 25.8 -> 25.8 | No clear effect |
| add relative position representations to a model with no position information (a^V and a^K both removed) (ablation) | Transformer (base) · WMT14 EN-DE newstest2013 | BLEU: 12.5 -> 25.8 | Improved |
Open problems in long-context KV and memory attention
How can long-context attention be made fast and small in memory without losing quality against full attention?
- Validated only on models up to about 13B parameters. · 8 papers state it
- Speedups are limited because the code is not fused or kernel-optimized. · 5 papers state it
- Compressed or sparse attention still trails full attention. · 4 papers state it
Closest papers by meaning
- The Case for Translation-Invariant Self-Attention in Transformer-Based Language Models (ACL 2021 · similarity 0.92)
- Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Models (ACL 2021 · similarity 0.92)
- Improve Transformer Models with Better Relative Position Embeddings (EMNLP 2020 · similarity 0.90)
- Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translation (EMNLP 2020 · similarity 0.90)
- Self-Attention with Structural Position Representations (EMNLP 2019 · similarity 0.90)
- Recurrent Positional Embedding for Neural Machine Translation (EMNLP 2019 · similarity 0.90)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.