paper-with-me

홈 › Papers

Log-Linear Attention

2025-06-05 · Han Guo, Songlin Yang, Tarushii Goel, Eric P. Xing, Tri Dao, Yoon Kim

The attention mechanism in Transformers is an important primitive for accurate and scalable sequence modeling. Its quadratic-compute and linear-memory complexity however remain significant bottlenecks. Linear attention and state-space models enable linear-time, constant-memory sequence modeling and can moreover be trained efficiently through matmul-rich parallelization across sequence length. However, at their core these models are still RNNs, and thus their use of a fixed-size hidden state to model the context is a fundamental limitation. This paper develops log-linear attention, an attention mechanism that balances linear attention's efficiency and the expressiveness of softmax attention. Log-linear attention replaces the fixed-size hidden state with a logarithmically growing set of hidden states. We show that with a particular growth function, log-linear attention admits a similarly matmul-rich parallel form whose compute cost is log-linear in sequence length. Log-linear attention is a general framework and can be applied on top of existing linear attention variants. As case studies, we instantiate log-linear variants of two recent architectures -- Mamba-2 and Gated DeltaNet -- and find they perform well compared to their linear-time variants.

📄 PDF Abstract BibTeX arXiv:2506.04761

Code (0)

등록된 구현이 없습니다.

Tasks

MambaState Space Models

Methods 이 논문이 사용한 방법론

Attention 설명 없음
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$…
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry

2024-02-06 · Michael Zhang, Kush Bhatia, Hermann Kumbong, Christopher Ré

Linear attentions have shown potential for improving Transformer efficiency, reducing attention's quadratic complexity to linear in sequence length. This holds exciting promise for (1) training linear Transformers from s…

SLA2: Sparse-Linear Attention with Learnable Routing and QAT

2026-02-13 · Jintao Zhang, Haoxu Wang, Kai Jiang, Kaiwen Zheng 외 arxiv

Sparse-Linear Attention (SLA) combines sparse and linear attention to accelerate diffusion models and has shown strong performance in video generation. However, (i) SLA relies on a heuristic split that assigns computatio…

Video Generation

Rectifying Magnitude Neglect in Linear Attention

2025-07-01 · Qihang Fan, Huaibo Huang, Yuang Ai, Ran He arxiv

As the core operator of Transformers, Softmax Attention exhibits excellent global modeling capabilities. However, its quadratic complexity limits its applicability to vision tasks. In contrast, Linear Attention shares a …

Instance SegmentationSemantic SegmentationImage ClassificationSpeech Recognition

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…

Gated Linear Attention Transformers with Hardware-Efficient Training

2023-12-11 · Songlin Yang, Bailin Wang, Yikang Shen, Rameswar Panda 외

Transformers with linear attention allow for efficient parallel training but can simultaneously be formulated as an RNN with 2D (matrix-valued) hidden states, thus enjoying linear-time inference complexity. However, line…

2kLanguage ModelingLanguage ModellingMamba