cs.CLDec 16, 2025

Multiscale Aggregated Hierarchical Attention (MAHA): A Constrained and Consensus-Based Approach to Efficient Contextual Modeling in Large Language Models

Authors: Caner Erden

Organizations: Department of Computer Engineering, Faculty of Technology, Sakarya University of Applied Science, Sakarya, Türkiye

Abstract

The quadratic computational complexity of Multi-Head Self-Attention (MHSA) remains a fundamental bottleneck in scaling Large Language Models (LLMs) for long-context tasks. While sparse and linearized attention mechanisms attempt to mitigate this, they often compromise the representation of global dependencies or fail to capture multiscale semantic granularity effectively. In this paper, we propose Multiscale Aggregated Hierarchical Attention (MAHA), a novel architectural framework that reformulates the attention mechanism through hierarchical decomposition and explicitly constrained aggregation. Unlike conventional approaches that treat token interactions at a single resolution, MAHA dynamically partitions the input sequence into hierarchical scales via learnable downsampling operators. The aligned scale outputs are combined either by softmax-normalized weights on the probability simplex or by a fixed number of differentiable consensus updates based on scale-to-consensus discrepancy. The latter is a game-inspired update and is not claimed to compute a Nash equilibrium. Implemented within a hybrid dilated-convolutional transformer backbone, MAHA enables end-to-end training. With four compressed scales and a compression ratio of two, MAHA requires 66.8% fewer attention-score computations than full-resolution attention at every sequence length (5.57M versus 16.8M per head at N=4096), and single-run benchmark experiments indicate downstream performance competitive with standard attention. This work offers a scalable multiscale solution for next-generation LLMs.

Figures & tables

Explore similar work

CardsList
  1. Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling

    Jul 3, 2026Xiang Hu, Xinyu Wei, Hao Gu +10Long-Context Language Model InferenceLong-Context Language Modeling

  2. Subquadratic Attention with a Hierarchical Tree-Structured Indexer

    Oct 30, 2026Leon Lufkin, Cutter Dawes, Alexander Speicher +3Efficient AttentionLong-Context Language Modeling

  3. DashAttention: Differentiable and Adaptive Sparse Hierarchical Attention

    May 18, 2026Yuxiang Huang, Nuno M. T. Gonçalves, Federico Alvetreti +5Self-AttentionHierarchical Attention