Manuscript Offprint

arXiv:2609.39661

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Self-attention provides large language models with fine-grained, query-dependent access to contextual information, but dense token interactions incur quadratic prefill cost and require a key-value cache that grows with context length. Research has consequently evolved along several interacting directions, including explicit-memory compression, sparse access, recurrent state construction, structured state dynamics, and heterogeneous mechanism composition. This survey analyzes these developments through the shared notion of model-internal contextual memory. We introduce a five-dimensional analytical lens—Memory Representation, Memory Update, Access, Readout, and Integration—that distinguishes what information remains represented, how it changes, what is made eligible for a query, how eligible memory is read, and how one or more completed readouts are transformed or coordinated into the module output. This lens enables historically distinct and overlapping research lines to be compared without reducing them to a single computational model.

We use this perspective to reconstruct mechanism-level developments and examine their architectural adoption through a longitudinal inventory of 59 release-level records spanning 14 major model lineages, complemented by a frozen comparison of 11 high-performing open-weight model endpoints. A three-level synthesis emerges. At the mechanism level, explicit-memory and recurrent-state methods retain different memory interfaces, yet increasingly extend design control across an overlapping set of memory functions. At the architecture level, designs remain heterogeneous, but their coordination increasingly operates along network depth: layer-wise composition distributes complementary memory processing across representational stages, while emerging cross-layer reuse allows selected memory and routing artifacts to persist into later layers. Together, these developments make network depth an emerging dimension along which contextual memory is constructed and managed. Looking forward, they motivate a stateful multidimensional memory-routing hypothesis in which persistent memory is organized across temporal scope, network depth, substrate type, and representation granularity, with coordinated Sparse Write and Sparse Read governing what information is maintained and what stored information contributes to each query. Overall, efficient sequence architecture design is increasingly concerned with the joint organization, lifecycle, and selective use of contextual memory rather than the optimization of an isolated Attention operator.

Contents

1 Introduction 4

2 A Unified Memory-Centric View of Attention 6
2.1 Five Analytical Dimensions 6
2.2 Classification Principles and Family-Level Mapping 9

3 Softmax Attention 10
3.1 Memory-Representation Efficiency 11
3.2 Sequence-Representation Compression 12
3.3 Readout and Integration Modulation 14
3.4 Summary 14

4 Sparse Attention 15
4.1 Structure-Constrained Sparse Attention 16
4.2 Self-Routing Sparse Attention 17
4.3 Auxiliary-Proxy Sparse Routing 21
4.4 Temporal and Cross-Layer Reuse 24
4.5 Summary 26

5 Linear Attention 26
5.1 Memory Update: From Accumulation to Controlled State Editing 27
5.2 Capacity Expansion 32
5.3 Temporal Expansion 33
5.4 Auxiliary Coordination and Routing Enhancements 35
5.5 Summary 36

6 State Space Models 36
6.1 State Dynamics and Selective Control 36
6.2 State Organization and Read-Write Refinements 40
6.3 Summary 41

7 Hybrid Architecture: Composing Heterogeneous Memory Mechanisms 42
7.1 Layer-wise Hybrid 42
7.2 Head-wise Hybrid 44
7.3 Branch-wise Hybrid 45
7.4 Token-wise Hybrid 47
7.5 Summary 47

8 Attention Designs in Publicly Documented LLM Architectures: Evolution, Coordination, and Frontier Adoption 48
8.1 Diversification Rather Than Convergence in Attention Design 48

8.2 Increasing Hybridization and Emerging Cross-Layer Reuse ..... 49
8.3 Attention Designs among High-Performing Open-Weight Models ..... 50
8.4 Summary ..... 50
9 Synthesis Across Mechanisms, Architectures, and Future Directions ..... 51
9.1 Mechanism Level: Distinct Starting Points and Expanding Control Scopes ..... 51
9.2 Architecture-Level Synthesis: From Complementary Placement to Memory-Artifact Lifecycles ..... 52
9.3 Forward-Looking Hypothesis: Stateful Multidimensional Memory Routing ..... 53
10 Conclusion ..... 55
A Supplementary Materials: Publicly Documented Architecture Inventory ..... 57

References (100)

Couldn't load all references. Reload the page to try again.