paper-with-me

Papers

Parallelizing Linear Transformers with the Delta Rule over Sequence Length

2024-06-10 · Songlin Yang, Bailin Wang, Yu Zhang, Yikang Shen, Yoon Kim

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.

📄 PDF Abstract BibTeX arXiv:2406.06484

Code (3)

fla-org/flash-linear-attention 공식 구현 pytorch
sustcsonglin/flash-linear-attention 공식 구현 pytorch
torchrwkv/flash-linear-attention pytorch

Tasks

Language ModelingLanguage ModellingMambaState Space Models

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Focus 설명 없음

Similar Papers 제목 키워드 기반

MDN: Parallelizing Stepwise Momentum for Delta Linear Attention

2026-05-07 · Yulong Huang, Xiang Liu, Hongxiang Huang, Xiaopeng Lin 외 arxiv

Linear Attention (LA) offers a promising paradigm for scaling large language models (LLMs) to long sequences by avoiding the quadratic complexity of self-attention. Recent LA models such as Mamba2 and GDN interpret linea…

Gated Delta Networks: Improving Mamba2 with Delta Rule

2024-12-09 · Songlin Yang, Jan Kautz, Ali Hatamizadeh

Linear Transformers have gained attention as efficient alternatives to standard Transformers, but their performance in retrieval and long-context tasks has been limited. To address these limitations, recent work has expl…

Common Sense ReasoningLanguage ModelingLanguage ModellingLong-Context Understanding+1

ParallelFlow: Parallelizing Linear Transformers via Flow Discretization

2025-04-01 · Nicola Muca Cirone, Cristopher Salvi

We present a theoretical framework for analyzing linear attention models through matrix-valued state space models (SSMs). Our approach, Parallel Flows, provides a perspective that systematically decouples temporal dynami…

ChunkingState Space Models

Exact Flow Linear Attention: Exact Solution from Continuous-Time Dynamics

2025-12-14 · Jingdi Lei, Di Zhang, Soujanya Poria arxiv

In this paper, we introduce Exact Flow Linear Attention~(EFLA), an exact-flow formulation of delta-rule linear attention. We show that the delta-rule update can be interpreted as an explicit Euler discretization of an un…

Enhancing Linear Attention with Residual Learning

2025-09-24 · Xunhao Lai, Jialiang Kang, Jianqiao Lu, Tong Lin 외 arxiv

Linear attention offers a linear-time alternative to self-attention but often struggles to capture long-range patterns. We revisit linear attention through a prediction-correction lens and show that prevalent variants ca…