scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Transformer-XL: Attentive Language Models beyond a Fixed-Length Context

Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V. Le, Ruslan Salakhutdinov

ACL 2019Architectures and efficiency › Attention and transformersapproach: Sparse efficient transformers for long contextopen problems in this approach4,079 citations (OpenAlex)

Google · Carnegie Mellon University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
11improved
2no 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

This paper tried a common change: Add positional encoding

use the proposed relative positional encoding instead of the prior one · WikiText-103 · perplexity: 27.94 -> 26.77 Improved

What 733 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add segment-level recurrence (ablation)Transformer-XL (128M) · WikiText-103perplexity: 29.02 -> 26.77Improved
use the proposed relative positional encoding instead of the prior one (ablation)Transformer-XL (128M) · WikiText-103perplexity: 27.94 -> 26.77Improved
use full loss instead of half loss (ablation)Transformer-XL (128M) · WikiText-103perplexity: 28.33 -> 26.77Improved
add segment-level recurrence (ablation)Transformer-XL · One Billion Wordperplexity: 27.1 -> 25.2Improved
use the proposed relative positional encoding instead of the prior one (ablation)Transformer-XL · One Billion Wordperplexity: 25.7 -> 25.2Improved
increase evaluation attention length (300 to 640) (ablation)Transformer-XL (151M) · WikiText-103perplexity: 23.35 -> 23.09Improved
increase evaluation attention length with absolute encodings (ablation)Transformer without proposed encoding · WikiText-103perplexity: 29.75 -> 29.75 (attn len stays 120)No clear effect
add recurrence and proposed encoding (ablation)Transformer-XL 128M vs Transformer · WikiText-103RECL (r=0.1): 128 -> 700Improved
use Transformer-XL instead of vanilla Transformer12L model · enwik8bpc: 1.11 -> 1.06Improved
scale Transformer-XL from 12 to 24 layersTransformer-XL · enwik8bpc: 1.06 -> 0.99Improved
use Transformer-XL on short-sequence dataTransformer-XL Large · One Billion Wordperplexity: 23.7 -> 21.8Improved
use state reuse during evaluationTransformer-XL vs vanilla Transformer · evaluation speedper-token time: up to 1,874x speedupImproved

Later papers that compared with this method

36 later accepted papers report Transformer-XL as a baseline in their results tables; 30 of them report a better number on most of the results they share with it.

28 more not listed.

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 sparse efficient transformers for long context

Do sparse and efficient long-context attention methods keep their quality and speed at larger model scale?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy