Transformer Architecture · 2018

Self-Attention with Relative Position Representations / Transformer-XL

Peter Shaw, Jakob Uszkoreit, Ashish Vaswani, Zihang Dai, Zhilin Yang, Quoc V. Le, Ruslan Salakhutdinov

Transformer-XL adds a recurrence mechanism that reuses hidden states from prior segments plus a relative positional encoding, removing the fixed-length context limit and the context fragmentation caused by processing text in independent chunks.

Editorial record

Plain-language summary

Standard Transformers split long text into fixed segments processed independently, so the model never sees dependencies crossing a segment boundary. Transformer-XL caches the hidden states of the previous segment and lets the current segment attend back into them, while switching from absolute to relative position encodings so the reused states stay positionally consistent. This extended the effective context well beyond a single segment and sped up evaluation, enabling coherent modeling of longer-range dependencies.

Knowledge graph

Relationships

Antecedents

Source record

Provenance

Record ID
P-006
Record created
2026-07-13
Last reviewed
2026-07-14
Record version
2

Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.