AI
New attention mechanism cuts LLM computation by a third while preserving performance
Researchers propose MAHA, a hierarchical approach to attention that reduces computational demands in large language models by exploiting multiscale token interactions.
The computational cost of self-attention in large language models has long posed a barrier to processing longer contexts. As sequence length increases, the quadratic scaling of Multi-Head Self-Attention (MHSA) means that models become increasingly expensive to run. While researchers have explored sparse and linearized alternatives, these typically sacrifice either the model's ability to capture global patterns or its grasp of meaning across different levels of abstraction.
A hierarchical rethinking of attention#
Researchers have now introduced Multiscale Aggregated Hierarchical Attention (MAHA), a redesigned attention architecture that reorganizes how tokens interact by breaking sequences into hierarchies at different levels of detail. Rather than processing all tokens at a single resolution, the approach uses learnable downsampling to create progressively compressed versions of the input, then intelligently combines what each level learns.
The outputs from each scale are merged through two possible strategies. The first uses softmax-normalized weights that sit on a probability simplex—a standard balancing approach. The second employs a fixed number of differentiable updates based on how far each scale's representation diverges from a consensus, inspired by game-theoretic concepts (though the authors do not claim this computes a true Nash equilibrium).
Computational savings without compromising quality#
When integrated into a transformer backbone that combines dilated convolutions with the standard architecture, MAHA can be trained end-to-end. Using four compressed scales and a compression ratio of two, the method needs 66.8% fewer attention-score computations than full-resolution attention across all sequence lengths. At a typical sequence length of 4096 tokens, this translates to roughly 5.57 million computations per attention head instead of 16.8 million.
Initial benchmark experiments show that downstream task performance remains competitive with standard attention despite this computational reduction, suggesting the multiscale decomposition captures the essential semantic patterns without redundancy.
Why this matters for large models#
Scaling LLMs for practical long-context applications remains bottlenecked by attention's computational demands. MAHA offers a pathway to handle longer sequences more efficiently by explicitly modeling meaning at multiple granularities—an approach aligned with how humans process hierarchical information. The work positions multiscale methods as a scalable alternative for next-generation language model design.

