多尺度聚合层次注意力(MAHA):一种基于博弈论和优化驱动的高效上下文建模方法,用于大型语言模型
Multiscale Aggregated Hierarchical Attention (MAHA): A Game Theoretic and Optimization Driven Approach to Efficient Contextual Modeling in Large Language Models
AI总结:
MAHA通过层次化分解和数学优化方法,提升大型语言模型在长上下文任务中的计算效率与上下文建模能力。
摘要:
多头自注意力(MHSA)的二次计算复杂性仍然是扩展大型语言模型(LLMs)以处理长上下文任务的根本瓶颈。尽管稀疏和线性化注意力机制试图缓解这一问题,但它们往往牺牲了全局依赖关系的表示,或未能有效捕捉多尺度语义粒度。在本文中,我们提出了多尺度聚合层次注意力(MAHA),一种新颖的架构框架,通过层次分解和数学严谨的聚合重新公式化注意力机制。与传统方法不同,MAHA通过可学习的下采样操作动态地将输入序列划分为层次化尺度。核心创新在于其聚合策略:我们将尺度特定的注意力矩阵的融合建模为资源分配问题,通过凸优化框架或基于纳什均衡的博弈论方法求解。这确保了在局部细节和全局上下文保真度之间达到理论最优的平衡。在混合扩张卷积变压器主干网络中实现,MAHA利用可微优化层以实现端到端训练。实验评估表明,MAHA实现了优越的可扩展性;经验FLOPs分析证实,与标准注意力相比,在序列长度为4096时,计算成本减少了81%。这项工作弥合了优化理论与序列建模之间的差距,为下一代LLMs提供了一种可扩展的解决方案。
英文摘要:
The quadratic computational complexity of MultiHead SelfAttention (MHSA) remains a fundamental bottleneck in scaling Large Language Models (LLMs) for longcontext 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 mathematically rigorous 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 core innovation lies in its aggregation strategy: we model the fusion of scalespecific attention matrices as a resource allocation problem, solved via a convex optimization framework or a Nash equilibriumbased gametheoretic approach. This ensures a theoretically optimal balance between local nuance and global context fidelity. Implemented within a hybrid dilatedconvolutional transformer backbone, MAHA utilizes differentiable optimization layers to enable endtoend training. Experimental evaluations demonstrate that MAHA achieves superior scalability; empirical FLOPs analysis confirms an 81% reduction in computational cost at a sequence length of 4096 compared to standard attention. This work bridges the gap between optimization theory and sequence modeling, offering a scalable solution for nextgeneration LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。