Transformer Architecture · 2018
Self-Attention with Relative Position Representations / Transformer-XL
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
Depends onEvidence: Strongly supported
DeBERTa: Decoding-enhanced BERT with Disentangled Attention
Relative position representations underpin disentangled attention
P-024 Sec 2
GeneralizesEvidence: Strongly supported
RoFormer: Rotary Position Embedding (RoPE)
Rotary embedding continues the relative-position lineage
P-002 related work
Source record
Provenance
- Record ID
- P-006
- Record created
- 2026-07-13
- Last reviewed
- 2026-07-14
- Record version
- 2
- https://arxiv.org/abs/1901.02860
- arXiv:1901.02860
Citation caveat: Citation metadata is approximate and marked unverified in the source dataset.