Parallelizing Linear Transformers with the Delta Rule over Sequence Length
By Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, Yoon Kim. Neural Information Processing Systems, 2024
322 citations recorded by the source corpus.
Transformers with linear attention (i.e., linear transformers) and state-space models have recently been suggested as a viable linear-time alternative to transformers with softmax attention. However, these models still underperform transformers especially on tasks that require in-context retrieval. While more expressive variants of linear transformers which replace the additive update in linear transformers with the delta rule (DeltaNet) have been found to be more effective at associative recall, existing algorithms for training such models do not parallelize over sequence length and are thus inefficient to train on modern hardware. This work describes a hardware-efficient algorithm for training linear transformers with the delta rule, which exploits a memory-efficient representation for computing products of Householder matrices. This algorithm allows us to scale up DeltaNet to standard language modeling settings. We train a 1.3B model for 100B tokens and find that it outperforms recent linear-time baselines such as Mamba and GLA in terms of perplexity and zero-shot performance on downstream tasks. We also experiment with two hybrid models which combine DeltaNet layers with (1) sliding-window attention layers every other layer or (2) two global attention layers, and find that these hybrids outperform strong transformer baselines.
Subfields: Artificial Intelligence, Computational Theory and Mathematics
View Paper: https://www.semanticscholar.org/paper/7afaabb73bec969c0937be46b9f0f757e07c8534
Citations in the corpus
- Learning to (Learn at Test Time): RNNs with Expressive Hidden States (2024, unknown): “Many other modern RNN layers such as linear attention [44, 63] and DeltaNet [62, 83] are also inspired by the idea of FWPs.”
- Quasi Linear Kernel Attention with Infinite Capacity (2026, unknown): “Building on this, Arora et al. (2024b) combine linear attention with sliding windows, while gated linear attention (Yang et al., 2024a) and DeltaNet (Yang et al., 2024b) use data-dependent gating and delta-rule updates of the recurrent state, respectively, to better use a fixed-size state.”