The Extender: A Log-Structured Transformer
Abstract
We introduce the Extender, a log-structured variant of the standard Transformer architecture. In a standard Transformer, each layer communicates with subsequent layers exclusively via the residual , a superposition channel. The Extender adds a concatenation channel : each layer emits both a residual update which is added to , and a much smaller extension which is appended to . While both the FFN and see , the attention projections take only as input. As a result, the fully extended contains the complete input for the projections of all layers, reducing the persistent attention memory footprint from to . We find that with , the Extender matches Transformer accuracy on short-context (CORE) tasks at 199M-924M parameters, and exceeds Transformer accuracy on long-context (RULER) workloads, again at 924M parameters. For our 1664-wide, 924M model, the Extender's persistent attention memory footprint is smaller than MHA. The memory savings grow with model width.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
Critical Sequence Length: A Note on How Document Structure Bounds Gradient-Noise Reduction
Shared title terminologycs.LGSunny Guha
MLP Cache: A Post-Hoc Memory-Compute Trade-off for Transformer Inference
Shared title terminologycs.LGHuzheng Yang, Yiqiao Huang, Qingqiao Hu et al.
ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors
Shared title terminologycs.LGCharlie Galvin, Katie Kitchen, Chiara Picardi
Geometric Inductive Biases for Semi-Supervised Equalization: The Constellation-Aware Transformer
Shared title terminologycs.LGAvi Caciularu
Pretraining Transformers with Quantized Softmax in Attention
Shared title terminologycs.LGShangzhen Zhu, Muyan Hu, Tomasz Kozlowski
SLP-ProbHard: Probabilistic Hard-Constrained Learning via Structural Latent Parameterization
Shared title terminologycs.LGWondesen Teshome Bekele, Marco D'Oria