paper-with-me

홈 › Papers

Multipole Attention for Efficient Long Context Reasoning

2025-06-16 · Coleman Hooper, Sebastian Zhao, Luca Manolache, Sehoon Kim, Michael W. Mahoney, Yakun Sophia Shao, Kurt Keutzer, Amir Gholami

Large Reasoning Models (LRMs) have shown promising accuracy improvements on complex problem-solving tasks. While these models have attained high accuracy by leveraging additional computation at test time, they need to generate long chain-of-thought reasoning in order to think before answering, which requires generating thousands of tokens. While sparse attention methods can help reduce the KV cache pressure induced by this long autoregressive reasoning, these methods can introduce errors which disrupt the reasoning process. Additionally, prior methods often pre-process the input to make it easier to identify the important prompt tokens when computing attention during generation, and this pre-processing is challenging to perform online for newly generated reasoning tokens. Our work addresses these challenges by introducing Multipole Attention, which accelerates autoregressive reasoning by only computing exact attention for the most important tokens, while maintaining approximate representations for the remaining tokens. Our method first performs clustering to group together semantically similar key vectors, and then uses the cluster centroids both to identify important key vectors and to approximate the remaining key vectors in order to retain high accuracy. We design a fast cluster update process to quickly re-cluster the input and previously generated tokens, thereby allowing for accelerating attention to the previous output tokens. We evaluate our method using emerging LRMs such as Qwen-8B, demonstrating that our approach can maintain accuracy on complex reasoning tasks even with aggressive attention sparsity settings. We also provide kernel implementations to demonstrate the practical efficiency gains from our method, achieving up to 4.5$\times$ speedup for attention in long-context reasoning applications. Our code is available at https://github.com/SqueezeAILab/MultipoleAttention.

📄 PDF Abstract BibTeX arXiv:2506.13059

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Fast Multipole Attention: A Divide-and-Conquer Attention Mechanism for Long Sequences

2023-10-18 · Yanming Kang, Giang Tran, Hans De Sterck

Transformer-based models have achieved state-of-the-art performance in many areas. However, the quadratic complexity of self-attention with respect to the input length hinders the applicability of Transformer-based model…

Language ModelingLanguage Modelling

Multipole Semantic Attention: A Fast Approximation of Softmax Attention for Pretraining

2025-09-12 · Rupert Mitchell, Kristian Kersting arxiv

Pretraining transformers on long sequences (entire code repositories, collections of related documents) is bottlenecked by quadratic attention costs. We present Multipole Semantic Attention (MuSe), which accelerates 64k-…

Linear Attention with Global Context: A Multipole Attention Mechanism for Vision and Physics

2025-07-03 · Alex Colagrande, Paul Caillon, Eva Feillet, Alexandre Allauzen

Transformers have become the de facto standard for a wide range of tasks, from image classification to physics simulations. Despite their impressive performance, the quadratic complexity of standard Transformers in both …

image-classificationImage Classification

Learning Greens Operators through Hierarchical Neural Networks Inspired by the Fast Multipole Method

2025-09-24 · Emilio McAllister Fognini, Marta M. Betcke, Ben T. Cox arxiv

The Fast Multipole Method (FMM) is an efficient numerical algorithm for computation of long-ranged forces in $N$-body problems within gravitational and electrostatic fields. This method utilizes multipole expansions of t…

Polarizable atomic multipoles for learning long-range electrostatics

2026-05-07 · Dongjin Kim, Daniel S. King, Yoonjae Park, Roya Savoj 외 arxiv

Long-range electrostatics and polarization remain central obstacles to extending machine learning interatomic potentials (MLIPs) to ionic, polar, and interfacial systems. Here, we introduce a semi-local framework for lea…