Research map / Architectures and efficiency / Attention and transformers
DA-Transformer: Distance-aware Transformer
Chuhan Wu, Fangzhao Wu, Yongfeng Huang
Tsinghua University · Microsoft Research Asia
Read the paperPlace an idea next to itCheck your own paper ↗
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
- SNLI leaderboard accuracy 84.18 · rank 83 of 111 papers
- AG's News leaderboard accuracy 93.72 · rank 5 of 26 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add distance-aware attention re-scaling (DA-Transformer) | Transformer · AG's News | accuracy: 93.01 -> 93.72 | Improved |
| add distance-aware attention re-scaling (DA-Transformer) | Transformer · Amazon Electronics | macro-F: 42.14 -> 44.29 | Improved |
| add distance-aware attention re-scaling (DA-Transformer) | Transformer · SNLI | accuracy: 81.45 -> 84.18 | Improved |
| add distance-aware attention re-scaling (DA-Transformer) | Transformer · MIND | AUC: 67.76 -> 68.32 | Improved |
| add distance information to Transformer via existing methods | Transformer · five datasets | accuracy / AUC | Improved |
| use relative position representations (Transformer-RPR) instead of Transformer-XL or Adapted Transformer | Transformer · benchmarks | accuracy | Hurt |
| use Adapted Transformer instead of Transformer-XL | Transformer · SST | accuracy: 90.06 -> 90.15 | Improved |
| use clip or linear mapping instead of the learnable sigmoid (ablation) | DA-Transformer · AG, Amazon, MIND | performance | Hurt |
| use learnable sigmoid instead of standard sigmoid (ablation) | DA-Transformer · AG, Amazon, MIND | performance | Improved |
| use sigmoid mapping instead of exponent (ablation) | DA-Transformer · AG, Amazon, MIND | performance | Improved |
| adjust attention before softmax instead of after (ablation) | DA-Transformer · AG, Amazon, MIND | performance | Improved |
| multiply coefficients instead of adding them (ablation) | DA-Transformer · AG, Amazon, MIND | performance | Improved |
Later papers that compared with this method
1 later accepted paper reports DA-Transformer as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.
- Non-Autoregressive Document-Level Machine Translation (EMNLP 2023 · better on 2 of 2 shared results)
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 1 of 1 on most shared results.
- Transformer-XL — Transformer-XL: Attentive Language Models beyond a Fixed-Length Context (ACL 2019) · better on 7 of 7 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
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
- ETC: Encoding Long and Structured Inputs in Transformers (EMNLP 2020 · similarity 0.89)
- MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformers (NeurIPS 2020 · similarity 0.88)
- Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Models (ACL 2021 · similarity 0.88)
- Which transformer architecture fits my data? A vocabulary bottleneck in self-attention (ICML 2021 · similarity 0.88)
- Temporal Attention for Language Models (NAACL 2022 · similarity 0.88)
- Symmetric Dot-Product Attention for Efficient Training of BERT Language Models (ACL 2024 · similarity 0.87)
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.