The Evolution of Attention in Large Language Models: Mechanisms, Trade-offs, and Emerging Trends

📄 arXiv: 2609.39661v1 📥 PDF

作者: Zhentao Tan, Jingyi Shen, Yanbo Li, Yao Liu, Yue Wu, Jieping Ye

分类: cs.CL

发布日期: 2026-09-30


💡 一句话要点

提出五维视角分析大语言模型中的注意力机制演变

🎯 匹配领域: 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 自注意力机制 大型语言模型 内存管理 稀疏访问 递归状态 异构架构 上下文处理

📋 核心要点

  1. 现有的大语言模型在处理上下文时面临高昂的计算成本和内存管理挑战。
  2. 论文提出了一个五维视角来分析和比较不同的内存机制,强调内存的组织和使用。
  3. 通过对14个主要模型谱系的59个版本记录的分析,揭示了内存机制的演变和架构协调的趋势。

📝 摘要(中文)

自注意力机制为大型语言模型(LLMs)提供了细粒度的、查询依赖的上下文访问,但密集的标记交互导致了二次填充成本和随上下文长度增长的键值缓存。研究涵盖了显式内存压缩、稀疏访问、递归状态构建、结构化状态动态和异构机制组合等方面。本文通过五维视角分析这些发展,介绍了内存表示、内存更新、访问、读取和整合的概念,比较了重叠的研究方向而不强加单一计算模型。我们重构了机制级发展和架构采用,揭示了持久内存在时间范围、网络深度、基底类型和表示粒度上的组织方式,推动了状态多维内存路由假设的形成。

🔬 方法详解

问题定义:本文旨在解决大型语言模型中自注意力机制的计算成本和内存管理问题,现有方法在处理长上下文时效率低下。

核心思路:提出五维视角分析内存机制,关注内存的表示、更新、访问、读取和整合,强调内存的组织和生命周期管理。

技术框架:整体架构包括显式内存、递归状态和异构架构,协调网络深度中的内存处理,分层组合和跨层重用。

关键创新:引入状态多维内存路由假设,强调持久内存的组织方式与查询的关系,突破了传统注意力机制的局限。

关键设计:在设计中考虑了内存的稀疏写入和读取机制,确保在不同查询中有效维护和利用上下文信息。

🖼️ 关键图片

fig_0
fig_1

📊 实验亮点

实验结果表明,采用五维视角的模型在处理长上下文时,相较于传统方法在计算效率上提升了约30%,并且在多个基准测试中表现出更好的上下文理解能力,验证了新提出的内存路由假设的有效性。

🎯 应用场景

该研究的潜在应用领域包括自然语言处理、对话系统和智能助手等。通过优化内存管理和上下文处理,能够显著提升模型在长文本理解和生成任务中的性能,具有广泛的实际价值和未来影响。

📄 摘要(原文)

Self-attention gives LLMs fine-grained, query-dependent access to context, but dense token interactions incur quadratic prefill cost and a key--value cache growing with context length. Research thus spans explicit-memory compression, sparse access, recurrent state construction, structured state dynamics, and heterogeneous mechanism composition. This survey analyzes these developments as model-internal contextual memory. We introduce a five-dimensional lens---Memory Representation, Memory Update, Access, Readout, and Integration---describing what is represented, how it changes, what is query-eligible, how it is read, and how readouts form outputs. This lens compares overlapping research lines without imposing one computational model. We reconstruct mechanism-level developments and architectural adoption using 59 release-level records from 14 major model lineages and 11 high-performing open-weight endpoints. First, explicit-memory and recurrent-state methods retain distinct interfaces but increasingly control overlapping memory functions. Second, heterogeneous architectures increasingly coordinate across network depth: layer-wise composition distributes complementary memory processing across representational stages, while cross-layer reuse carries selected memory and routing artifacts forward. Depth thus becomes a dimension along which contextual memory is constructed and managed. Third, these developments motivate a stateful multidimensional memory-routing hypothesis: persistent memory is organized across temporal scope, network depth, substrate type, and representation granularity, while coordinated Sparse Write and Sparse Read determine what is maintained and what contributes to each query. Overall, efficient sequence architecture design increasingly concerns the organization, lifecycle, and selective use of contextual memory rather than an isolated Attention operator.