TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Linear Attention with Global Context: A Multipole Attentio...

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

Alex Colagrande, Paul Caillon, Eva Feillet, Alexandre Allauzen

2025-07-03Image Classification
PaperPDFCode(official)

Abstract

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.

Results

TaskDatasetMetricValueModel
Image ClassificationTiny ImageNet ClassificationValidation Acc87.52MANO-tiny
Image ClassificationFlowers-102Accuracy89MANO-tiny
Image ClassificationCIFAR-100Percentage correct85.08MANO-tiny
Image ClassificationFood-101Accuracy (%)82.48MANO-tiny
Image ClassificationOxford-IIIT Pet DatasetAccuracy88.31MANO-tiny
Image ClassificationStanford CarsAccuracy65.68MANO-tiny
Fine-Grained Image ClassificationOxford-IIIT Pet DatasetAccuracy88.31MANO-tiny
Fine-Grained Image ClassificationStanford CarsAccuracy65.68MANO-tiny

Related Papers

Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Hashed Watermark as a Filter: Defeating Forging and Overwriting Attacks in Weight-based Neural Network Watermarking2025-07-15Transferring Styles for Reduced Texture Bias and Improved Robustness in Semantic Segmentation Networks2025-07-14FedGSCA: Medical Federated Learning with Global Sample Selector and Client Adaptive Adjuster under Label Noise2025-07-13