paper-with-me

홈 › Papers

Scaling Context Requires Rethinking Attention

2025-07-06 · Carles Gelada, Jacob Buckman, Sean Zhang, Txus Bach arxiv

We argue that neither transformers nor sub-quadratic architectures are well suited to training at long sequence lengths: the cost of processing the context is too expensive in the former, too inexpensive in the latter. Approaches such as sliding window attention which reduce the cost-per-token of a transformer impair in-context learning, and so are also unsuitable. To address these limitations, we introduce power attention, an architectural layer for linear-cost sequence modeling whose state size can be adjusted independently of parameters, unlocking the advantages of linear attention on practical domains. We develop and open-source a set of GPU kernels for efficient power attention, identifying a novel pattern of operation fusion to avoid memory and bandwidth bottlenecks. Our experiments on the in-context learning of power attention shows that these models dominate both exponential attention and linear attention at long-context training.

📄 PDF Abstract BibTeX arXiv:2507.04239

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Rethinking the Role of Efficient Attention in Hybrid Architectures

2026-06-13 · Ziqing Qiao, Yinuo Xu, Chaojun Xiao, Zhou Su 외 arxiv

Modern language models increasingly adopt hybrid architectures that combine full attention with efficient attention modules, such as sliding-window attention (SWA) and recurrent sequence mixers. However, how these effici…

ScalableViT: Rethinking the Context-oriented Generalization of Vision Transformer

2022-03-21 · Rui Yang, Hailong Ma, Jie Wu, Yansong Tang 외

The vanilla self-attention mechanism inherently relies on pre-defined and steadfast computational dimensions. Such inflexibility restricts it from possessing context-oriented generalization that can bring more contextual…

TokenFormer: Rethinking Transformer Scaling with Tokenized Model Parameters

2024-10-30 · Haiyang Wang, Yue Fan, Muhammad Ferjad Naeem, Yongqin Xian 외

Transformers have become the predominant architecture in foundation models due to their excellent performance across various domains. However, the substantial cost of scaling these models remains a significant concern. T…

model

Rethinking Efficacy of Softmax for Lightweight Non-Local Neural Networks

2022-07-27 · Yooshin Cho, Youngsoo Kim, Hanbyel Cho, Jaesung Ahn 외

Non-local (NL) block is a popular module that demonstrates the capability to model global contexts. However, NL block generally has heavy computation and memory costs, so it is impractical to apply the block to high-reso…

Rethinking Learned Image Compression: Context is All You Need

2024-07-16 · Jixiang Luo

Since LIC has made rapid progress recently compared to traditional methods, this paper attempts to discuss the question about 'Where is the boundary of Learned Image Compression(LIC)?'. Thus this paper splits the above p…

AllDecoderImage Compression