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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Colagrande, Alex, Caillon, Paul, Feillet, Eva, Allauzen, Alexandre
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911037118218240
author Colagrande, Alex
Caillon, Paul
Feillet, Eva
Allauzen, Alexandre
author_facet Colagrande, Alex
Caillon, Paul
Feillet, Eva
Allauzen, Alexandre
contents 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 memory and time with respect to the input length makes them impractical for processing high-resolution inputs. Therefore, several variants have been proposed, the most successful relying on patchification, downsampling, or coarsening techniques, often at the cost of losing the finest-scale details. In this work, we take a different approach. Inspired by state-of-the-art techniques in $n$-body numerical simulations, we cast attention as an interaction problem between grid points. We introduce the Multipole Attention Neural Operator (MANO), which computes attention in a distance-based multiscale fashion. MANO maintains, in each attention head, a global receptive field and achieves linear time and memory complexity with respect to the number of grid points. Empirical results on image classification and Darcy flows demonstrate that MANO rivals state-of-the-art models such as ViT and Swin Transformer, while reducing runtime and peak memory usage by orders of magnitude. We open source our code for reproducibility at https://github.com/AlexColagrande/MANO.
format Preprint
id arxiv_https___arxiv_org_abs_2507_02748
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Linear Attention with Global Context: A Multipole Attention Mechanism for Vision and Physics
Colagrande, Alex
Caillon, Paul
Feillet, Eva
Allauzen, Alexandre
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
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 memory and time with respect to the input length makes them impractical for processing high-resolution inputs. Therefore, several variants have been proposed, the most successful relying on patchification, downsampling, or coarsening techniques, often at the cost of losing the finest-scale details. In this work, we take a different approach. Inspired by state-of-the-art techniques in $n$-body numerical simulations, we cast attention as an interaction problem between grid points. We introduce the Multipole Attention Neural Operator (MANO), which computes attention in a distance-based multiscale fashion. MANO maintains, in each attention head, a global receptive field and achieves linear time and memory complexity with respect to the number of grid points. Empirical results on image classification and Darcy flows demonstrate that MANO rivals state-of-the-art models such as ViT and Swin Transformer, while reducing runtime and peak memory usage by orders of magnitude. We open source our code for reproducibility at https://github.com/AlexColagrande/MANO.
title Linear Attention with Global Context: A Multipole Attention Mechanism for Vision and Physics
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2507.02748