Submitted:
14 October 2026
Posted:
16 October 2026
You are already at the latest version
Abstract
Large Language Models (LLMs) have advanced rapidly through increases in model scale, data, and computation, while their underlying architectures have also undergone substantial evolution. Beyond the canonical Transformer architecture, recent designs seek greater efficiency, scalability, and flexibility by rethinking how sequence information is processed, represented, and transformed. We survey efficient attention and state management, modern recurrent and other linear-complexity sequence models, Mixture-of-Experts architectures, and advances in activation functions, normalization, residual connections, positional encoding, and tokenization. We also cover multi-token prediction and adaptive and recurrent depth. Across these areas, we highlight key design principles and trade-offs among representational power, optimization stability, and computational cost. Complementing this component-wise treatment, we take a system-level perspective. We trace representative open-weight LLM families to identify recurring patterns in how architectural choices are combined, and synthesize these developments along four dimensions—processing structure, transformation dynamics, state management, and output commitment—characterizing how recent designs preserve, refine, or relax the assumptions of the canonical decoder. Together, this survey aims to provide a systematic overview of LLM architectural evolution and to chart pathways toward next-generation designs.
Keywords:
large language model
; architecture
; algorithm
; artificial intelligence
; sparsity and efficiency
1. Introduction
Large language models (LLMs) have revolutionized artificial intelligence research and applications, demonstrating remarkable capabilities across a wide range of tasks. As one of the most important foundation models, they now serve as the backbone of modern AI systems, driving progress in language understanding, generation, reasoning, and multimodal applications. The success of these models is grounded in decades of research in language modeling (Section 3), culminating in architectures capable of learning from massive text corpora and exhibiting emergent abilities, such as advanced reasoning, code generation, and complex problem solving. This progress has also benefited from substantial long-run reductions in the cost of computation [65,329]1, making it economically feasible to train models that would have been prohibitively expensive just a decade ago.
Figure 1.
Overview of the recent evolution of large language model architectures. Section 15 develops this view.
Figure 1.
Overview of the recent evolution of large language model architectures. Section 15 develops this view.

A distinctive feature of modern LLM development is that capabilities tend to improve systematically when models are trained with larger parameter counts and data. This has pushed current practice toward a regime in which scaling is a central means of obtaining stronger language models. In this large-scale regime, contemporary LLMs commonly contain tens to hundreds of billions of parameters, are trained on hundreds of billions to trillions of tokens, and require substantial compute budgets. Across such scales, empirical scaling laws reveal relatively smooth relationships between model size, training data, compute, and achievable loss [168,217]. Across successive generations, a combination of increased scale, improved training recipes, and refined architectures has led to steady gains on standardized benchmarks such as MMLU (Massive Multitask Language Understanding) [157] (Figure 2), GPQA (Graduate-Level Google-Proof Q&A) [385], and SWE-bench (Software Engineering Benchmark) [208], reflecting advances in broad language understanding, expert-level reasoning, and practical coding ability.
The remarkable success of large language models across diverse applications has created an urgent demand for improved computational efficiency and scalability. As models continue to grow in size and are deployed to tasks requiring longer context windows, the computational costs for both training and inference have emerged as a major bottleneck. Balancing efficiency and stability in large-scale training, while simultaneously advancing model performance, remains a fundamental challenge for the field. At the core of these challenges is the model architecture, which dictates computational complexity, optimization dynamics, and representational capacity.
While early pretrained language models were based on Long Short-Term Memory (LSTM) networks [166,167] (e.g., ELMo [357], ULMFiT [171]), architecturally, most contemporary LLMs instantiate variations of the modern Transformer architecture proposed by Vaswani et al. in 2017 [489], whose core attention mechanism traces back to the Unnormalized Linear Transformer (ULTRA) [406,408,419,420] proposed in 1991 by the same lab that introduced LSTM. A standard Transformer stack, as will be introduced in Section 4, typically consists of multi-head self-attention, position-wise feed-forward network, positional encoding, residual connection, and normalization. Tokenization further defines the interface between raw text and model inputs. Despite its empirical success and dominant status, the modern Transformer architecture exhibits inherent inefficiencies that become increasingly pronounced at scale, underscoring the need for targeted improvements to its core components. The primary source of inefficiency, especially for long sequences, is the quadratic computational complexity of the self-attention mechanism [465], with respect to sequence length T, together with the linear growth of the key–value (KV) cache [147,432] during inference, which heavily strains memory resources. These limitations have motivated extensive research into alternative architectures.
Recent efforts to address them can be broadly categorized into two directions. The first category comprises Efficient Attention and KV Cache Management. These methods preserve the core structure of quadratic attention while reducing the effective computational cost and memory usage (especially regarding the growth of the KV cache) by decreasing the number of key–value pairs involved in the computation. Efficient attention methods can be organized along four axes of KV storage and access, with different implications for attention computation: token-oriented [46,282,519,547], head-oriented [1,432], dimension-oriented [73], and layer-oriented [270,591]. Token-oriented methods use fixed or input-dependent selection, eviction, or merging to reduce attended or stored entries; head-oriented methods share KV heads among query heads; dimension-oriented methods compress cached representations; and layer-oriented methods share KV states across layers. These changes primarily target storage and memory traffic, and only some also reduce the quadratic arithmetic cost of dense attention.
The second category, which we refer to as Linear Language Models, seeks linear or near-linear complexity through a more fundamental architectural shift. Instead of modifying or sparsifying quadratic attention, these approaches adopt alternative sequence modeling mechanisms that avoid explicit pairwise token interactions, thereby achieving intrinsically linear scaling. The technical roots of linear language models can be traced back to fast weight programmers (FWPs) [406,408,416] and LSTM. ULTRA in 1991 represents the early linear architecture, which is an FWP with the additive outer-product fast-weight principle. This principle resurfaces in modern linear attention: Katharopoulos et al. [219] proposed kernel-based mechanisms to approximate quadratic attention, which are mathematically equivalent to ULTRA equipped with a feature map on queries and keys and a running normalizer [403], and further highlighted the close connection between linear attention and linear recurrent neural network (RNN) formulations. LSTM is an influential precursor on the recurrent side: it maintains a bounded, constant-size state updated additively under an input-dependent decay [117], from which outputs are read (its constant-error carousel [167] can also be seen as the residual connection which is now ubiquitous in deep networks [152,415,418,444]). Recent research has introduced linear recurrent models derived from RNNs [343,352] and LSTM [24], FWPs [354,403,540,541], and state space models [70,135,136]. Despite their diverse appearance and origin, these models share a common recurrent skeleton such that their core linear operators can be analyzed within a unified framework [498,540]. Notably, the recurrent state update in some of these models can be interpreted as the online update mechanism in FWPs: each new token provides a key–value association, and the model immediately updates its state during the forward pass, analogous to analytic online regression or one step of online gradient descent [498,541]. This form of test-time adaptation was already present in the 1991 FWP/ULTRA [406,408]. Current research actively investigates both the representational capacity in linear models [131,294] and the development of hybrid architectures [12,24,72,196,321,541] that combine linear operators with quadratic attention to balance efficiency and expressiveness.
Beyond the attention mechanism, feed-forward network (FFN) layers represent another critical target for improvement. As the primary channel-mixing component and a major repository of model knowledge, FFNs can dominate the computational load when sequence length is not the primary factor. To address this, the Mixture of Experts (MoE) [144,200,211] architecture has emerged as a promising technique for scaling model capacity without a proportional increase in computational cost [96,246,434]. Sparse MoE replaces selected FFNs with multiple expert sub-networks and routes each token to a small subset (e.g., top-2). Only the selected experts are evaluated for that token, so expert computation scales with active rather than total expert capacity. This enables a larger total parameter capacity at a comparable per-token expert-compute budget [62]. Realized training and inference speed also depends on routing, communication, load balance, and implementation. Recent efforts focus on routing strategies [96,248,579], module integration [68,246,382,563], and training stability [590], with successful adoption in several large-scale models [68,313,320,435,515].
Another critical component within the FFN layers is the Activation Function, which provides the non-linearity enabling models to learn complex patterns [142]. Activation designs include the ReLU/ELU family, such as Rectified Linear Unit (ReLU) [105,106] and Scaled Exponential Linear Unit (SELU) [231], and smooth functions such as Gaussian Error Linear Unit (GELU) and Sigmoid Linear Unit (SiLU) [92,156]. Swish [383] equals SiLU when its sigmoid-scale parameter is one. A parallel development, Gated Linear Units (GLU) [71], adapted multiplicative gating from LSTM [167] to feed-forward networks. SwiGLU [433] combines an explicit dual-path FFN with a SiLU gate and has been widely adopted following strong empirical results for the complete gated design.
The continuous evolution of the Transformer architecture also encompasses several critical auxiliary components. Positional Encoding (PE) supplies explicit order information. Full self-attention without positional or other order-dependent signals is permutation-equivariant; causal masking also introduces ordering constraints, so explicit PE is not the only possible source of sequence order. Absolute Positional Encoding (APE) is adopted in the early Transformers based on dot-product attention, such as sinusoidal functions [489] or learnable embeddings [80,378]. However, APE often struggles with length extrapolation. Relative Positional Encoding (RPE) represents displacement between tokens directly within attention, as in the relative key and value representations of Shaw et al. [431]. Later methods realize relative-position dependence through different mechanisms, including rotations of queries and keys [450] and other position-dependent transformations [127]. Rotary Position Embedding (RoPE) [450], a new form of relative positional encoding, has emerged as an advanced choice in LLMs like LLaMA [295,486], owing to its mathematical elegance and strong empirical effectiveness. Ongoing research continues to explore more flexible and adaptive PE techniques capable of extrapolating to longer context windows [48,51,82,355]. In addition, Residual Connections, exemplified by Highway Networks and ResNets [152,444], facilitate the optimization of deep networks [443,496,523]. LSTM provides an earlier example of a protected additive state pathway with multiplicative gates [167], while the forget gate was introduced subsequently [117]. Normalization mechanisms [13,183] help control activation scales and support optimization. Many recent models, including LLaMA, use RMSNorm [486,555], which omits the mean-centering step of LayerNorm. Current research develops more efficient normalization methods [207,328] and studies their interplay with residual connections [81,252,336,523], particularly in balancing representational capacity with training stability.
Finally, the interface between a neural network and raw text data, Tokenization, represents another crucial component. Although often treated as a preprocessing step, tokenization directly impacts both the efficiency and capability of an LLM [358]. The choice of granularity, ranging from characters to words to the now-dominant subword schemes, introduces a fundamental trade-off among vocabulary size, sequence length, and linguistic expressiveness [299]. Recent studies have identified vocabulary size itself as a key scaling dimension, demonstrating that its optimization can yield performance gains comparable to scaling model parameters, but at reduced computational cost [176,464]. Building on this, techniques such as decoupling input and output vocabularies [176,544] and progressively expanding the vocabulary during pre-training [545] turn the vocabulary and input interface into design variables rather than fixed preprocessing choices. In parallel, a complementary line of research explores tokenization-free models that operate directly on raw bytes, aiming to bypass fixed-vocabulary constraints entirely to foster more universal systems [344,531] capable of handling open-ended data streams.
Beyond the design of individual layers, two more recent lines of work revisit how a decoder allocates computation along the two axes of generation: how many tokens it predicts per forward pass, and how many layers each token traverses. Multi-Token Prediction (MTP) extends the standard next-token objective so that each position is trained to predict several future tokens [123,362,446]. This densifies the training signal and encourages representations that encode longer-horizon information; moreover, the additional predictors can be reused at inference as cheap drafts of the next few tokens, which the model verifies in a single parallel forward pass under the draft-then-verify paradigm of speculative decoding [35,247,256]. Architectural designs range from parallel prediction heads on a shared backbone [35,123] to sequential predictors that preserve the causal chain among future tokens [256,269], and sequential MTP has rapidly become a standard component of recent open-weight LLMs [269,278,477,479]. In a complementary direction, Adaptive and Recurrent Depth architectures relax the assumption that every token must pass through a fixed stack of layers. Early-exit and layer-reduction methods terminate computation once an intermediate representation is sufficiently predictive [91,93,95,425]; conditional-depth routing such as Mixture-of-Depths lets only a subset of tokens execute a given block [384]; and looped, or depth-recurrent, Transformers repeatedly apply a shared block to an evolving latent state, adding computational depth without adding parameters [16,77,111,587]. These designs turn depth from a fixed hyperparameter into an allocatable resource, while raising their own questions about supervising intermediate states, maintaining dynamical stability under repeated computation, and quantifying the exchange rate between parameter capacity and repeated computation [426].
Several existing surveys cover parts of this landscape, but typically from the perspective of a single component or a single objective. Component-specific surveys address efficient and sparse attention [465], KV cache management [147], mixture of experts [36,319], state space models [350,369], positional encoding and length extrapolation [573], activation functions [87,142], and speculative decoding [517]; broader surveys of LLMs [574] and of efficient LLMs [492,582] treat architecture as one topic among training, data, alignment, and serving. This survey differs in three respects. First, it covers the full set of architectural components of a modern decoder, from tokenization and positional encoding to attention, FFNs, normalization, residual pathways, output objectives, and depth allocation, so that design decisions can be compared under a common notation. Second, it pairs the component-wise review with a system-level view that traces how open-weight model families actually combine these components (Section 14). Third, it offers a unified reading of these developments in terms of the implicit assumptions of the canonical decoder that each of them preserves or relaxes (Section 15).
The central aim of this survey is to systematically examine the diverse architectural innovations that aspire to shape the next generation of Large Language Models. The following sections explore these emerging paradigms, spanning efficient attention mechanisms, linear language models, conditional computation strategies such as mixture of experts, advances in core components, multi-token prediction, and adaptive depth. We carefully examine their potential to overcome current limitations and reshape the future landscape of AI. The system-level and unified perspectives of Section 14 and Section 15 then organize these developments along four broad directions: flexible and conditional processing, refined transformation dynamics, selective and flexible state management, and lookahead and delayed commitment. This perspective emphasizes that modern architectures are better understood as joint configurations of interdependent design dimensions than as collections of independently chosen modules.
To situate these developments empirically, we close this introduction with two snapshots that together span the recent history of LLMs. Figure 2 covers the earlier generations, released between 2021 and 2025, by plotting MMLU performance [157] against release date and parameter count, and four trends stand out. Consistent with empirical scaling laws [168,217], larger models (larger bubbles) reliably outperform their smaller contemporaries; at the same time, improvements in data quality, optimization, and architecture let newer, smaller models frequently surpass older and much larger ones, reflecting a shift toward compute-optimal, data-rich training regimes. MoE architectures emerge as a prevailing design, reaching top-tier performance even at high sparsity while offering substantial inference-efficiency benefits [96], and a clear stratification separates proprietary from open-weight models, with proprietary systems (e.g., the GPT and Claude series) consistently defining the performance upper bound. By 2026, however, MMLU was approaching saturation, so Figure 3 turns to the most recent generation of open-weight models, released mainly in 2026, and evaluates them on Humanity’s Last Exam (HLE) [40], a far more discriminative benchmark of frontier capabilities. The picture extends the earlier trends: nearly all of the plotted models are sparse MoE architectures, HLE scores still rise with total parameter count along the observed Pareto frontiers, and tool use adds well over ten points for the strongest systems. The gap to proprietary models also persists: the best plotted open-weight model reaches 56.0% with tools, whereas Anthropic’s latest limited-access model, Claude Mythos 5 [10], scores 59.0% without tools and 64.5% with tools. Because reported HLE results mix tool-enabled and non-tool protocols, however, these scores should be compared with caution.
2. Overview
This survey focuses on the architectural design of autoregressive language-model backbones, including sequence processing, parameter activation, representation and state management, and prediction and depth allocation. Earlier language models and related architectures are included where they clarify the origins or mechanisms of contemporary designs. Training objectives, decoding procedures, and systems techniques are discussed insofar as they shape architectural choices or determine their practical costs. The literature covered extends through August 2026. We select representative methods based on their introduction of distinct mechanisms, their role in clarifying important design trade-offs, or their adoption in documented model families. This selection includes foundational approaches, influential variants, and alternative designs that expose limitations of prevailing choices.
Our discussion draws on original research papers, technical reports, and official implementation materials. Research papers provide the primary basis for mathematical formulations, theoretical claims, and experimental findings, with conclusions interpreted under their stated assumptions and evaluation settings. Technical reports document model-scale configurations, training recipes, and reported results; these observations establish practical use but generally do not isolate the contribution of individual components. Official code and released configurations clarify implementation details and variant-specific settings that may be omitted from the text. Where sources or versions differ, we identify the configuration being discussed. Throughout the survey, we distinguish formal results, empirical findings, documented adoption, and our own synthesis of architectural trends.
Figure 4 provides a detailed roadmap of this survey. Section 3 first traces the history of language modeling architectures, from statistical n-gram models through recurrent networks and fast weight programmers to the Transformer. We then revisit in Section 4 the modern Transformer architecture and its core building blocks, including self-attention, feed-forward networks, and positional encoding. Next, we turn to methods that optimize the self-attention module: Section 5 surveys efficient attention and key–value (KV) cache management approaches that reduce computation and memory along four axes: token reduction, head reduction, dimension reduction, and layer reduction; Section 6 focuses on linear language models that approximate or substitute the attention mechanism to reduce its complexity from quadratic to linear. We introduce mixture of experts in Section 7, tracing three overlapping developments from sparsely gated FFNs through fine-grained shared-expert designs to systems-oriented variants; we then review the evolution of activation functions in Section 8, and discuss residual connections and normalization techniques in Section 9. Positional encoding variants are examined in Section 10, while related work on tokenization is covered in Section 11. The next two sections turn from individual layers to how computation is allocated during generation. Section 12 discusses multi-token prediction, classifying methods by how the K future tokens are factored: parallel prediction heads that are conditionally independent given the backbone representation, and sequential predictors that preserve the causal chain among future tokens. A third group, inference integration, cuts across both factorizations: it collects methods that improve how drafted tokens are verified and accepted under draft-then-verify, through acceptance rules, tree-structured verification, adaptive draft lengths, and drafter alignment. Section 13 reviews adaptive and recurrent depth, covering early exit and layer reduction, conditional depth over distinct layers, looped (depth-recurrent) Transformers, and the training and scaling issues that arise when executed depth becomes variable. In Section 14, we synthesize these perspectives at the system level: we first trace the evolution of open-weight LLM families and their precursors, including the LLaMA series [295,296,486,487], Qwen series [20,370,371,476], and DeepSeek series [30,68,73,269], and then identify recurring architectural design patterns that cut across families, namely canonical dense decoders, sparse capacity with compressed attention state, hybrid sequence and state processing, and prediction-augmented backbones. Section 15 then offers a unified view of architectural design that goes beyond individual components: it makes explicit the implicit assumptions of the canonical decoder, organizes the surveyed mechanisms into four broad directions (flexible and conditional processing, refined transformation dynamics, selective and flexible state management, and lookahead and delayed commitment), and examines the interdependencies that make joint design necessary. We conclude this survey in Section 16.
3. History of Language Modeling Architectures
The transformative power of modern large language models did not emerge in isolation; it is the result of a decades-long pursuit to address the fundamental challenge of language modeling: developing statistical models that can assign probabilities to arbitrary sequences of words. Understanding this historical trajectory illuminates both the foundations upon which current LLMs are built and the recurring themes that continue to drive architectural innovation.
Contemporary generative language models are fundamentally grounded in viewing natural language as a stochastic process. In this formulation, random variables take values from a finite alphabet (characters, words, or subword tokens) and natural sentences are interpreted as samples drawn from these random sequences. The central task of a language model is to estimate transition probabilities, namely the conditional probability of the next symbol given a preceding context, thereby emulating the generative dynamics of language. This probabilistic paradigm traces back to foundational work in the early twentieth century. Prior to modern information theory, A. A. Markov established the mathematical basis for modeling dependent sequences; his empirical analysis of vowel-consonant patterns in literary text provided the first quantitative evidence that language exhibits non-trivial conditional probability structure [286]. Building on this insight, Claude Shannon explicitly proposed modeling language as a stochastic process that generates finite symbol sequences, formally equating it with a discrete information source [430]. By using n-gram models, such as digrams and trigrams, to capture what he termed “adjacent dependencies”, Shannon demonstrated how the choice of a symbol depends on its preceding history, and validated this perspective by generating increasingly realistic approximations of English text. His subsequent investigations into the redundancy and compressibility of English further established the theoretical feasibility of statistical language modeling [429].
Following Shannon’s paradigm, early statistical language models (SLM) primarily relied on finite-order Markov assumptions, estimating conditional distributions for discrete n-gram contexts. This stochastic perspective was formally operationalized for continuous speech recognition by Jelinek [203], and rigorously formulated as a maximum likelihood problem by Bahl et al. [18]. By modeling the speaker as a text generator (source) and the acoustic processor as a noisy channel, these works established the “Language Model” as a critical prior probability component in the linguistic decoder [18,203]. To address the inherent data sparsity that assigns zero probability to unseen contexts, early systems incorporated various smoothing techniques, such as discounting [125,509], back-off [220,234,326], and interpolation [204]. By the 1990s, research expanded to address the problem of “data fragmentation” inherent in high-order n-grams, introducing structured generalization mechanisms like class-based models [33,233], decision trees [19], and Maximum Entropy frameworks [28,79,242]. Finite-order n-grams remained limited to local contexts, whereas trigger-based Maximum Entropy models and related approaches attempted to incorporate longer-range information. Efficiently capturing complex dependencies and deeper linguistic structure nevertheless remained difficult. As noted by Rosenfeld [392], the field faced a persistent tension: while “knowledge-impoverished” n-gram techniques proved remarkably robust and data-optimal, attempts to incorporate deeper linguistic structure often struggled to overcome the trade-off between computational tractability and the effective modeling of complex dependencies.
A fundamental shift emerged with the introduction of distributed representations [162,323,360,393,427] into language modeling [27,422]. By embedding linguistic units into shared continuous latent spaces, these models captured semantic and syntactic regularities implicitly through parameter sharing, rather than through manually engineered back-off rules or smoothing heuristics. In this way, generalization was internalized within the model itself, encoded as inductive biases induced by continuous, parameterized neural architectures. Early work in 1996 [422] demonstrated the viability of this paradigm in character-level language modeling with feed-forward neural networks (FFNs), showing the advantage of neural approaches in text compression compared with statistical methods; the lineage of such networks runs from perceptrons and early multilayer learning systems [161,198,199,212,390,391,445] (see Schmidhuber [414] for a review). Subsequent research [27] extended to word-level modeling, further establishing the potential of neural language models. From this point onward, neural architectures gradually displaced traditional statistical models and became the dominant paradigm in language modeling. Progress thereafter became increasingly tied to architectural innovations aimed at balancing representational capacity, optimization stability, and computational efficiency.
Subsequent progress in language modeling was driven largely by architectural innovations. Language-modeling research expanded from feed-forward networks to recurrent neural networks (RNNs) [94,301], a transition rooted in a long historical context. Unlike feed-forward architectures, RNNs incorporate a memory mechanism via feedback connections that allows information from previous time steps to influence current predictions [405]. The conceptual foundations of recurrent computation can be traced back to non-learning dynamical systems from the 1920s, such as the Ising model (or Lenz-Ising model) [197,237,245,506], which can be viewed retrospectively as early models of interacting units with cyclic dependencies, rather than as recurrent sequence models with learned temporal memory. Later, foundational works [232,289] proved that such recurrent structures could function as formal computational units capable of processing sequences. Work on trainable feedback networks around the early 1970s included adaptive association and learning rules [6,324]; Hopfield’s associative-memory networks followed in 1982 [170]. Related studies examined biological neural dynamics [133] and hippocampal memory [287]. Recurrent models were used to investigate linguistic sequence structure around 1990 [94], and were also applied to acoustic modeling for speech recognition [388] and recursive translation [100]. Recurrent neural language models subsequently gained prominence through work such as Mikolov et al. [300,301,302] and Graves [128]. However, while RNNs can in principle process sequences of arbitrary length, the vanishing and exploding gradient problems [164,165] make it difficult for them to capture long-range dependencies in practice.
Long Short-Term Memory (LSTM) networks [166,167] address a central aspect of the vanishing-gradient problem analyzed in earlier work [165]. Their constant error carousels (CECs) preserve error flow along a designated memory-state pathway; this does not guarantee that every gradient in the full network avoids vanishing or explosion. The protected additive pathway offers a structural comparison with later gated skip and residual connections [152,444], without making the mechanisms historically or mathematically identical. The original LSTM uses multiplicative input and output gates [167]; later variants introduce a forget gate to regulate retention in the memory cell [117]. LSTMs proved far more effective at modeling long-range dependencies and became a pivotal advancement in neural language modeling [128,458,550]. Sutskever et al. [460] further demonstrated their scalability, showing that LSTMs could successfully model long sequences in large-scale neural machine translation using approximately 12 million sentence pairs. However, the inherently sequential nature of recurrent models restricts parallelization across time steps within a single training example, creating a substantial computational challenge for scaling to long sequences and large datasets [489].
A line of research attempted to further enhance recurrent architectures by improving their access to stored information. Attention mechanisms became widely adopted in neural sequence-to-sequence modeling beginning with the work of Bahdanau et al. [17], which allowed decoders to softly align to different parts of the source sequence at each decoding step. This content-based access significantly improved the model’s ability to handle long-term dependencies. Subsequently, attention rapidly became ubiquitous, applied to speech recognition [59], reading comprehension [53], sentence embedding [266], textual entailment [346], and summarization [351]. As Vaswani et al. [489] note, by the mid-2010s, attention mechanisms were an integral part of sequence modeling; however, they were nearly always used in conjunction with RNNs and thus did not remove the sequential bottleneck inherent to recurrent computation. Convolutional sequence models such as ByteNet [215] and ConvS2S [110] offered one route to parallel training by replacing recurrence with stacked (dilated) convolutions, but the number of layers needed to relate two distant positions still grows with their distance.
A different line of work pursued architectures that could replace recurrence altogether, which was started as early as 1991. Fast Weight Programmers (FWPs) [406,408,416] introduce the idea of a slow neural network that dynamically programs the fast weights [97,163,490] of other NNs. This explicitly separates storage and control [406], similar to traditional computers, allowing the network to rapidly encode short-term information without compressing it into static parameters. A particularly relevant instance, which is now recognized as the Unnormalized Linear Transformer (ULTRA) [406,408], implements an additive outer-product rule over key and value representations, offering a parallelizable formulation of attention (see Section 6.5). In retrospect, FWPs can be viewed as an early architectural direction where dynamic, rapidly updated weights provide associative memory, echoing principles that later proved central in modern attention mechanisms. As noted in 1993 [412] (where the terminology of learning “internal spotlights of attention” was introduced), “intra-sequence weight changes essentially occur only if the network pays a lot of attention to certain units by strongly exciting them or strongly inhibiting them”, hinting at the same context-dependent modulation in attention today. Later work revisited dynamic parameter generation, including HyperNetworks with recurrent applications [143] and analyses of attention as a hypernetwork [423].
The architectural developments led to the modern quadratic Transformer architecture [489], which, like ULTRA, completely removes recurrence and uses attention as its sole sequence-mixing primitive. Similarly, in the causal dot-product attention mechanism of modern Transformers, keys and values are generated by learnable model weights. For each output token, queries attend to the accumulated key–value collection through softmax-normalized aggregation to retrieve relevant information. This architectural shift enables full parallelization across sequence positions and has unlocked the massive scaling that defines modern large language models. The Transformer also became the vehicle of the pretrain-then-adapt paradigm: contextual representations from pretrained bidirectional LSTMs (ELMo [357]) were quickly superseded by pretrained Transformers, with GPT [378] and BERT [80] establishing decoder-only generative and encoder-only bidirectional pre-training, respectively, and the decoder-only recipe then scaled into the GPT-2 and GPT-3 lineage [34,379] that defines today’s LLMs. As discussed in the introduction, recent architectural advances largely build upon refinements to the 2017 Transformer’s internal components, which we examine in detail in the subsequent sections.
4. Basic Modules in Transformer
In this section, we introduce the basic modules of the original quadratic Transformer2 architecture. The initial configuration [489] has a sequence-to-sequence framework that incorporates both an encoder and a decoder. Subsequent developments, as we will see in Section 4.7, include encoder-only, decoder-only (causal Transformers), and encoder-decoder architectures, which vary in their learning strategies. In general, the Transformer is characterized by its central components: the Transformer block, which consists of an attention module, a feed-forward network, residual connections, and normalization. Additionally, it features positional encoding accompanying the attention module, as well as the basic tokenizer and embeddings module.
The input and output structure of a Transformer model is as follows. The input sequence is first tokenized into a sequence of tokens using a tokenizer. These tokens are then mapped to initial embeddings through an embedding module. The initial embeddings are subsequently processed through L layers of Transformer blocks, producing the final contextual embeddings. Typically, these contextual embeddings are passed through a linear layer to generate the model’s output, the interpretation of which depends on the specific learning strategy employed.
4.1. Multi-head Attention (MHA)
The core computational primitive of the Transformer is the multi-head attention mechanism, which enables each token to dynamically attend to other tokens in the sequence through a Query-Key-Value (QKV) formulation. This design allows the model to capture long-range dependencies and diverse relational patterns within a single layer. Let denote the input to an attention layer, where T is the sequence length and d is the model dimensionality. Multi-head attention projects into H parallel attention subspaces (heads), each operating on a lower-dimensional representation. For the h-th head, the query, key, and value matrices are obtained via learned linear projections:
where and denotes the dimensionality of each head.
Within each head, attention weights are computed by comparing queries and keys through scaled dot products. Specifically, the attention matrix for head h is defined as
where the softmax is applied row-wise. The scaling factor stabilizes optimization by preventing the dot-product magnitudes from growing excessively with dimension.
The output of the multi-head attention layer is obtained by applying the attention weights to the values within each head and then projecting the aggregated result back to the model dimension. A common formulation first concatenates the per-head outputs and applies a single output projection:
where . Equivalently, it can be formulated as the “sum with per-head” form:
where is the output projection matrix for head h. The equivalence follows by partitioning into H block rows, , so that multiplying the concatenated head outputs by is exactly the sum of the head-wise products in Equation (3). This formulation makes each head’s contribution explicit, which is convenient when analyzing head-level modifications (e.g., head reduction in Section 5.2).
4.1.0.1. Causal Attention in the Decoder.
In decoder-only and autoregressive Transformer architectures, the attention mechanism is modified to enforce causality, ensuring that each token can attend only to itself and preceding tokens. This is achieved by adding a causal mask to the attention logits:
where
This lower-triangular mask prevents information leakage from future positions during training and inference.
Equivalently, for a given time step t, the causal attention output can be written in token-wise form as
with attention weights
where , , and .
4.2. Feed-Forward Network
Complementing the attention mechanism, each Transformer block contains a position-wise Feed-Forward Network (FFN), which applies non-linear transformations independently to each token representation.
Formally, given an input matrix , the FFN operates identically on every row and is defined as
where is a non-linear activation function. Here, and are learned weight matrices, and , are bias vectors.
The intermediate dimensionality is typically chosen to be substantially larger than d (commonly ), enabling the FFN to project token representations into a higher-dimensional space before mapping them back to the model dimension. With a conventional two-layer FFN and , the FFN contributes approximately two-thirds of the weight parameters within a standard Transformer block, excluding embeddings, the output vocabulary projection, and small bias or normalization terms (cf. Table 1). Its share of computation also depends on sequence length and execution phase: the attention interaction cost grows quadratically during a full-sequence forward pass, whereas the FFN cost grows linearly. This parameter concentration has motivated extensive research into FFN variants, including sparsification strategies such as Mixture of Experts (Section 7).
4.3. Positional Encoding
Unlike RNNs, which encode sequential order through their recurrence, Transformers can process all positions in parallel during training. Full self-attention without positional or other order-dependent signals is permutation-equivariant, so positional encodings provide explicit order information. Causal masking itself introduces ordering constraints, however, and models can recover aspects of position without explicit PE [184,188].
Vaswani et al. [489] introduced sinusoidal positional encodings, which constitute a canonical form of absolute positional encoding (APE). More generally, APEs and alternative positional encoding schemes will be discussed in detail in Section 10.
Formally, let i denote the token position and let d be the model dimensionality (assumed to be even). The positional encoding vector is defined element-wise as
for . Stacking these vectors for all positions yields the positional encoding matrix
In the original Transformer architecture, positional information is injected by adding to the token embeddings at the input layer, allowing the model to jointly reason over content and position. While this additive approach is widely used, modern variants may inject positional information differently, such as within the attention mechanism itself, as discussed in Section 10.
4.4. Residual Connections and Normalization
In a Transformer block, the outputs of the MHA layer and the FFN layer are each followed by a residual connection and normalization. The original 2017 Transformer [489] employed Post-LN, where normalization (commonly Layer Normalization [13]) is applied after the residual connection:
where denotes a normalization operator.
Together, residual connections and normalization support information propagation across layers and facilitate optimization of deep Transformer stacks; the Post-LN arrangement described here nevertheless becomes difficult to optimize at large depth without learning-rate warmup or careful initialization. Alternative arrangements of residual connections and normalization (e.g., Pre-LN) and other normalization variants are discussed in detail in Section 9.
4.5. Tokenization and Input Embeddings
In Transformer models, tokenization and embeddings define the interface between raw textual input and the continuous vector representations processed by the network. Given an input text sequence, a tokenizer first maps the text into a sequence of discrete tokens drawn from a finite vocabulary .
Let , with , denote the resulting token sequence of length T. Each token is mapped to a continuous vector representation via a learned embedding matrix , producing
where denotes the row of indexed by token . Stacking all token embeddings yields the embedding matrix . In the original implementation [489], the input embeddings are scaled by .
The token embeddings are subsequently combined with positional encodings (cf. Section 4.3) to form the input to the first Transformer layer:
Thus, tokenization determines the discrete units over which the Transformer operates, while the embedding layer provides their initial continuous representations for subsequent computation.
4.6. Output Projection and Autoregressive Generation
The final hidden states produced by the Transformer are mapped back to the vocabulary space through an output projection. Given a hidden representation at position i, the output projection maps it to vocabulary logits,
where and . Applying a softmax converts these logits into a categorical distribution over the vocabulary:
The output projection is often weight-tied with the input embedding matrix, such that .
Under the standard next-token prediction (NTP) formulation, the joint probability of a sequence is factorized into next-token conditional probabilities,
Accordingly, the distribution produced at position i is trained to approximate the conditional distribution , with the next token as the prediction target. The NTP objective is then written as
During autoregressive generation, a token is selected from the predicted distribution at each decoding step and appended to the current sequence, after which the model proceeds to predict the next token. Thus, the standard decoder generates sequentially while committing to one output token at each step.
4.7. Encoder/Decoder Transformer Configurations
Widely used Transformer-based models in natural language processing are commonly instantiated by choosing how to deploy the encoder and decoder components of the original sequence-to-sequence architecture. Concretely, retaining only the encoder yields encoder-only models, retaining only the decoder yields decoder-only (autoregressive) models, and combining both yields the full encoder-decoder configuration. Although these configurations share the same core building blocks as we introduced above, their information flow and training objectives differ, leading to distinct strengths for contextual representation learning, autoregressive generation, and sequence-to-sequence transformation, respectively.
4.7.1. Decoder-only
Decoder-only Transformers consist solely of a stack of Transformer decoder blocks and employ causal (masked) self-attention to model sequences autoregressively. At each position, the representation is computed using information from the current and preceding tokens, inducing a left-to-right factorization of the sequence probability. This design is particularly well suited for language modeling. The GPT (Generative Pre-trained Transformer) family [34,378] is a representative instantiation of this architecture. In GPT-style models, each layer contains masked multi-head self-attention followed by a position-wise feed-forward network, without the encoder–decoder cross-attention present in the original Transformer decoder (Figure 5). By scaling depth, width, and training data, decoder-only Transformers have become the dominant paradigm for large-scale generative language models
4.7.2. Encoder-only
Encoder-only Transformers retain only the encoder stack of the original architecture and leverage unrestricted self-attention, allowing each token to attend to all other tokens in the sequence (Figure 5). BERT (Bidirectional Encoder Representations from Transformers) [80] exemplifies this configuration. Through bidirectional pre-training objectives, encoder-only models learn contextualized token representations that capture semantic and syntactic relationships across the entire input sequence, which can be readily adapted to downstream tasks such as classification, retrieval, and span prediction.
4.7.3. Encoder–Decoder
Encoder–decoder Transformers preserve the full structure of the original sequence-to-sequence architecture. In this configuration, the encoder maps the input sequence into a set of contextual representations, while the decoder generates the output sequence autoregressively, attending both to previously generated tokens and to the encoder outputs via cross-attention. This separation between encoding and generation provides a natural inductive bias for sequence transformation tasks. The T5 (Text-to-Text Transfer Transformer) model [381] is a prominent example of this architecture. T5 adopts a unified text-to-text formulation, in which both inputs and outputs are represented as token sequences, allowing the same encoder–decoder framework to be applied across tasks such as translation, summarization, and question answering.
Despite their natural fit for sequence-to-sequence transformation, encoder–decoder Transformers are comparatively less common among contemporary general-purpose LLMs. The reasons are less about asymptotic cost (an encoder pass is comparable to a decoder-only prefill, and cross-attention to encoder states is comparable to attending over a cached prefix) than about simplicity and generality: decoder-only models condition on inputs by simple prefixing within a single autoregressive stack, treat prompts, generated text, and multi-turn continuations uniformly, and were found to generalize better zero-shot after pure language-model pre-training [502]. This offers a more streamlined architecture for instruction following and open-ended generation.
4.8. Computational Complexity
The computational cost of the Transformer architecture is primarily driven by its two main components: the multi-head attention mechanism and the feed-forward networks. Figure 6 provides a visualization of the key matrix operations within the MHA. Assuming a typical configuration where the intermediate dimension of the FFN is , the computational and memory requirements are summarized in Table 1. Note that the model dimension d is composed of H attention heads, each with a dimension of , such that .
As shown in the table, the two columns measure different things: the training column is the cost of processing an entire sequence in parallel, whereas the decoding column is the cost of producing a single additional token given a context of length T. Making the per-token decoding cost linear in T relies on the KV cache [147,189,432], a fundamental optimization technique that has been widely used in Transformer implementations.
To understand the necessity of KV cache, consider the autoregressive generation process in decoder models. When generating text, each new token must attend to all previously generated tokens in the sequence. From Equation (6), we observe that computing the output for token t requires the Key and Value vectors and for all positions . Naively, at each generation step, we would need to recompute these K and V vectors for the entire preceding context, which is highly redundant since these vectors remain unchanged once computed.
The KV cache addresses this inefficiency by storing the computed Key and Value states from previous time steps. When generating token , instead of recomputing and for all , the model simply retrieves them from the cache and only computes the K and V vectors for the new token . This cached approach fundamentally alters the computational profile of the attention mechanism, leading to the following two distinct operational modes:
- Parallel Processing (Training & Pre-filling): In this mode, the model processes the entire input sequence in a single forward pass. This occurs during training for efficiency and during the inference pre-fill stage, where the initial prompt is encoded to populate the KV cache. In both cases, the full attention matrix is computed, leading to an attention cost of (in addition to the projections), which scales quadratically with the sequence length (T).
- Sequential Generation (Decoding): In this mode, the model generates the output autoregressively, i.e., one token at a time. This phase relies heavily on the KV cache. At each step, the model takes the newest token, computes its Query (Q) vector, and retrieves the cached Key (K) and Value (V) vectors from all previous steps. By only attending to the cached K/V pairs, the model avoids recomputing these values for the entire context. Without the cache, every step would have to recompute the key and value projections of all T context tokens, costing per step in projections alone; with the cache, the per-step cost is , of which the term is the attention over the cached context and the term is the projections of the single new token.
5. Efficient Attention and KV Cache Management
Despite the remarkable success of Transformer-based large language models in language processing tasks [338], they encounter two distinct efficiency bottlenecks when processing and generating long sequences. During training and prefill, the dot-product attention mechanism incurs a computational cost that grows quadratically with the input length. During autoregressive decoding, the per-step attention cost is linear in the context length, but the key–value (KV) cache that must be stored and re-read at every step grows linearly with the context, so memory footprint and memory bandwidth become the dominant constraints.
As introduced in Section 4.8, the size of the KV cache, and hence the memory traffic of decoding, is governed by four axes: sequence length T, the number of key–value heads , the per-token size of each cached key or value, and the number of layers L. For conventional KV heads, the cache contains elements. We distinguish from the query-head count , with under the standard head-width convention. Most current methods specialize in a single axis: token-oriented approaches reduce the number of cached or attended positions (e.g., SepLLM [46]); head-oriented approaches reduce the number of KV heads shared among query heads (e.g., GQA [1]); and dimension-oriented approaches compress the per-token KV representation into a low-rank latent shared across heads (e.g., MLA [73]). The fourth axis, the number of layers L, is exploited by layer-oriented approaches that share or merge KV states across adjacent layers (e.g., MiniCache [270]). We note that these axes primarily target KV cache memory and decoding-time memory traffic; only a subset of token-oriented methods, mainly those that sparsify attention during prefill, also reduce the quadratic attention computation itself, and head- or dimension-oriented compression can even increase attention FLOPs while shrinking the cache.
5.1. Token Reduction
Recently, a broad class of token reduction techniques has been proposed to improve the efficiency of attention by reducing the number of stored or attended entries through selection or compression. These methods primarily aim to alleviate KV cache memory pressure and decoding-time memory traffic, thereby improving inference throughput, often with limited degradation in model quality; a subset of them, mainly prefill-oriented or training-based sparse-attention designs, also reduces the quadratic cost of attention itself, whereas methods that compress the cache after a dense prefill do not. Representative approaches are illustrated in Figure 7 and summarized in Table 2, which groups them by the mechanism through which attention cost is reduced: (a) eviction and compression methods that bound the cache, so that unselected entries are gone; (b) methods that retain the full cache and sparsify only which entries each decoding step reads, i.e., inference-time approximations of dense attention; and (c) natively sparse attention, in which the sparsity pattern is produced by a trained component and is part of the model definition. The remaining columns record design dimensions that cut across the three groups: when the selection is made (Phase), what training it requires (Train.), which cost it reduces (Saves), which tokens are exempt from selection (Kept), the signal used to score tokens, whether unselected entries are dropped, merged, or kept, and the shape (Budget) and unit (Gran.) of the selection. We discuss the three groups in turn and then these dimensions.
At a high level, token reduction methods define an importance or relevance metric over tokens and apply a selection rule (e.g., top-k or thresholding) to determine which keys and values should remain active. For selection-based methods, an additional selection mask sparsifies attention by disallowing interactions with unselected entries. This mask describes which entries are read or retained; merging and compression instead construct new KV representations through an aggregation or encoding map and are not captured by a binary mask alone.
where is the standard causal mask, and is defined as
Which of the three costs a method saves follows from how is realized: if pruned entries are removed from the cache, or never written to it, memory is saved; if the mask is realized by a kernel that skips the unselected pairs during prefill or training, rather than by masking a fully materialized score matrix, the attention compute falls from to the number of selected pairs, although a selector that scores every pair, such as an indexer, keeps a quadratic term of its own; if the mask only restricts the entries read at each decoding step, memory bandwidth is saved.
(a) KV Eviction and Compression.
Methods in group (a) of Table 2 bound the cache by discarding or merging entries. Together with MoSA in group (c), they are the only methods that reduce KV memory without moving it elsewhere, and the only ones in which a wrong decision is irreversible; their evolution is largely a search for better proxies of a token’s future usefulness.
The earliest proxies use position alone. StreamingLLM [519] observes that autoregressive LLMs place a large share of attention on the first few tokens regardless of their content, an attention sink, and that window attention collapses as soon as these tokens are evicted; keeping the sinks plus a rolling window of recent tokens, with positions re-indexed relative to the cache, gives stable perplexity on streams of millions of tokens without any training. LM-Infinite [145] arrives at the same -shaped pattern from a length-generalization analysis, adds a ceiling on the relative distances fed to the positional encoding, and optionally lets each head in the upper layers attend to the top-k middle tokens by attention logit.
Content-based eviction during decoding replaces position with attention statistics. Scissorhands [277] formulates the persistence of importance hypothesis, that tokens receiving high attention at one step keep receiving it later, verifies it empirically, and evicts under a fixed budget using importance accumulated over a history window while always keeping the most recent tokens. O [570] keeps the heavy hitters, the few tokens that accumulate most of the attention mass, alongside an equal budget of recent tokens, and shows that this greedy policy comes with a guarantee under a dynamic submodular view of the cache. BUZZ [572] refines the heavy-hitter idea by segmenting the history outside the sinks and the sliding window into chunks and retaining the strongest tokens of each chunk, sampling new and old tokens at different strides, in both prefill and decoding. FastGen [109] instead profiles each head once, during prompt encoding, and assigns it one of several caching policies: heads that attend locally drop distant context, heads that attend to special tokens or punctuation drop everything else, and only broadly attending heads keep the full cache.
A second lineage compresses the prompt once, after a dense prefill. SnapKV [255] observes that the attention pattern of the last few prompt tokens, the observation window, predicts what will be attended during generation, and per head keeps the window plus the prompt positions it attends to most, after pooling neighbouring scores so that selected positions form clusters. Its selection rule became the substrate for a family of budget schemes. PyramidKV [566] decreases per-layer budgets arithmetically with depth, following the funneling of attention toward a few tokens in upper layers; DynamicKV [578] sets per-layer budgets from the task-specific attention observed during prefill and updates the preceding layers progressively; PrefixKV [494] searches a global prefix configuration that maximizes the cumulative priority retained in each layer, for vision instruction-following models; CAKE [367] derives layer preferences from the spatial dispersion and temporal shift of attention, manages the resulting budgets in a cascading manner within a peak-memory limit during prefill, and adds an eviction indicator that accounts for the variability of a token’s importance over time; AdaKV [98] bounds the attention-output loss of eviction and shows that a global top-k across the heads of a layer, which gives concentrated heads small budgets and dispersed heads large ones, tightens the bound; and HeadKV [104] sizes head budgets from an offline estimate of each head’s retrieval-and-reasoning importance. NACL [49] also evicts in a single operation during encoding but scores tokens by the attention they receive from proxy tokens, typically the question at the end of the prompt, and mixes in random eviction to counter the bias of attention statistics. Scoring criteria have since moved from attention weights to the perturbation of the attention output. CriticalKV [99] shows that the value states and the output projection also determine how much dropping an entry perturbs the output and derives a perturbation-constrained selection rule that plugs into existing methods; DropKV [554] notes that choosing the evicted set that minimizes this perturbation is NP-hard, decouples it into independent per-token scores that combine a token’s attention weight with the residual of its value vector relative to the attention output, and proves a constant-factor approximation guarantee under an empirically verified cone condition, with fused kernels that avoid materializing the attention matrix.
Coarser than any of these, a third lineage decides per head or per layer. RazorAttention [461] identifies a small fraction of retrieval heads (about 15% in its setting) through echo and induction tests, keeps their cache intact, reduces all other heads to sinks and a recent buffer, and folds each head’s dropped entries into a single compensation token; DuoAttention [520] learns the same split with one trainable gate per head, optimized on synthetic retrieval data with the LLM frozen, and streams the non-retrieval heads at inference; SimLayerKV [564] identifies lazy layers, whose attention concentrates on the initial and recent tokens, at prefill time and replaces their full attention with streaming attention. LeanKV [565] adds a precision axis, sorting each head’s tokens by attention into full-precision, quantized, and evicted tiers under per-head dynamic budgets.
Two recent directions relax the dependence on the queries seen so far. KVzip [223] scores each entry by how much the frozen model attends to it when prompted to reconstruct the context from the cache, so that the compressed cache can be reused across arbitrary later queries; it reports a 3– reduction at negligible loss across question answering, retrieval, reasoning, and code tasks. For long chain-of-thought decoding, where the cache is dominated by generated tokens, BeaconKV [224] shows that certain decoding steps re-attend to distant context, such as a plan formulated early in the trace, which the most recent queries do not anticipate; observing that the queries of such steps cluster into a small number of groups, it maintains a compact set of beacon queries that are refreshed during decoding and scores cached entries with the beacon queries together with the recent ones while always retaining a recent window, reporting up to memory reduction on open-weight reasoning models while nearly preserving full-cache accuracy. ReasonAlloc [274] addresses the same regime at the budget level: it combines an offline layer-wise pre-allocation, following an architecture-dependent demand profile the authors call a “reasoning wave”, with an online head-wise reallocation toward information-rich heads during decoding, and is plug-and-play with existing eviction rules such as SnapKV.
Finally, the policy itself can be learned. DMC [325] retrofits a pretrained model, by continued pre-training on a negligible fraction of the original data and without new parameters, to predict for every new key–value pair whether to append it or to accumulate it into the most recent entry, yielding learned per-head compression ratios without any entry being discarded outright. KVpop [150] keeps sinks and a protected window of recent tokens per KV head and trains lightweight per-head scorers to rank the remaining tokens for a fixed long-range top-k budget; the scorers are supervised by the attention a token receives after it leaves the protected window, i.e., at the eviction boundary where the keep-or-drop decision is actually made, and the backbone is adapted to the resulting sparse pattern by distillation from the full-attention model. SepLLM [46] builds on the observation that separator tokens receive disproportionately large attention and compresses each segment into the KV of its separator, keeping separators, initial tokens, and neighbouring tokens; it can be applied training-free, by post-training, or from scratch.
Across the group the trade-off is uniform: memory falls in proportion to the budget, but the retained set is chosen against the queries available at eviction time. Methods that compress the prompt approach full-attention quality on single-query benchmarks at moderate budgets, lose accuracy under aggressive compression, and can degrade in multi-turn use because context relevant to a follow-up question may already be gone; the extent of this degradation depends on the method, budget, and task. Decoding-time methods face the analogous risk that a token discarded early in a reasoning trace is needed later.
(b) Sparse Reads over a Retained Cache.
Group (b) starts from two observations: decoding is bound by memory traffic rather than arithmetic, and the entries a query needs are few but change from query to query. Rather than deciding once which entries to keep, these methods retain every entry, on the GPU or in host memory, and estimate cheaply at each step which ones to read. The model parameters are unchanged and no entry is permanently discarded; each step, however, attends over an estimated subset, so its output is an approximation of dense attention whose error can be traded against the number of entries read.
The simplest estimators approximate the scores of individual tokens or pages. SparQ [386] uses only the r largest-magnitude components of the current query to approximate the attention scores from the corresponding slice of the key cache, fetches the full keys and values of the top-k tokens, and adds the mean of the remaining values to compensate for the mass it skips. Quest [462] works at page granularity: it stores per-dimension minima and maxima of the keys in each page, so that an upper bound on any query’s score for that page can be computed from the metadata alone, and loads only the top-k pages. InfiniGen [244] exploits the similarity of consecutive layers’ inputs to rehearse the next layer’s attention at the current layer, using skewed partial query and key weights prepared during prefill, and prefetches only the predicted-critical entries from a CPU-resident cache pool. AttentionPredictor [536] learns the estimator: a small convolutional model, trained offline on collected attention maps, predicts the next step’s attention from its recent temporal pattern at block granularity, recomputes dense attention periodically to correct drift, and drives block prefetching from an offloaded cache.
A second family organizes the cache as a retrievable memory. InfLLM [518] splits the distant context into block-level memory units, represents each unit by the few tokens that received the most attention within it, retrieves the units most relevant to the current tokens alongside the initial tokens and a local window, and offloads rarely used units to the CPU; because the local window bounds the effective attention span, it also lets models trained on short contexts process sequences of up to 1M tokens without training. QuickLLaMA [250] builds on it by keeping the user’s question in the window so that the lookup is query-aware. EM-LLM [101] segments the stream into variable-length episodic events at points of high Bayesian surprise, refines the boundaries with graph-theoretic criteria, and retrieves events by k-NN similarity together with their temporal neighbours; since only the events read at a step reside on the GPU, context length is limited by CPU memory or disk rather than by GPU memory. PQCache [556] treats attention as an embedding-retrieval problem and borrows the classic tools of approximate nearest-neighbour search (ANNS) [23]: during prefill it product-quantizes [202] the keys, clustering each subspace with K-means, and keeps the full cache in CPU memory; during decoding it approximates scores from the codes and centroids and fetches the top-k tokens, deliberately at token rather than block granularity because relevant tokens are scattered. RetrievalAttention [272] notes that queries and keys follow different distributions, so that off-the-shelf approximate nearest-neighbour indexes over keys must scan a large fraction of the vectors; it builds an attention-aware index that connects the prefill queries to their exact nearest keys, so that a decoding query first finds similar past queries and through them the relevant keys, keeps a static set of initial and recent tokens on the GPU, and merges the partial attention computed on the CPU and the GPU. MagicPIG [52] questions top-k retrieval itself: attention is often less sparse than its sink-dominated shape suggests (the top 20% of keys may cover only 70% of the mass), so it replaces selection with self-normalized importance sampling whose proposal distribution comes from locality-sensitive hashing, runs the hash tables and the sampled attention on the CPU, and keeps sinks and local tokens on the GPU. SqueezedAttention [169] targets a fixed context shared across requests: it clusters the keys offline into a hierarchy of centroids, compares each query with the centroids online to retrieve the relevant clusters, and calibrates the threshold so that heads with flatter attention read more keys, accelerating both prefill and generation.
Two members differ in when they act. SampleAttention [586] accelerates prefill rather than decoding: it samples a few query rows per chunk to find the head-specific column stripes and local window that carry a target fraction of cumulative attention, then computes only those blocks. RefreshKV [525] keeps a small cache of the tokens most attended at the last full-attention step and decides at every layer and step, from the similarity between the current query and that step’s query, whether to attend over the subset or to refresh it with a full pass.
The advantages of the group mirror the weaknesses of group (a): every query can reach the full history, so a follow-up question is not penalized by an eviction made for an earlier one, and quality is governed by the per-step read budget and the recall of the estimator rather than by a one-shot decision; a read that misses a relevant entry still changes the output, and that error can propagate into later hidden states. Its costs are that GPU memory is saved only by offloading, which makes PCIe bandwidth and CPU compute the new bottleneck; that indexes or metadata must be built at prefill; and that the estimators add per-step work of their own.
(c) Natively Sparse Attention.
Group (c) makes sparsity part of the model: the pattern is produced by a trained component, so there is no approximation of a dense model, at the price of training. Whether the pattern is also applied identically in training, prefill, and decoding, and hence whether the train–inference discrepancy disappears, has to be checked per method: a causal selector (MoBA, NSA, DSA, MSA, HiLS-Attention) can be used unchanged at decoding time, whereas a selector that ranks all tokens of a sequence cannot. MoBA [282] divides the preceding context into fixed-length blocks and, for each query, computes an affinity score against a mean-pooled key of every block; the query then attends only to its top-k blocks together with the current block. Unselected blocks are not evicted: they remain in the KV cache and may be selected by other queries or heads. NSA [547] uses a dynamic hierarchical sparse strategy that combines coarse-grained token compression, fine-grained block selection whose scores are derived from the compression branch, and a sliding-window branch, so as to maintain both global context awareness and local precision with hardware-aligned kernels. MoSA [359] selects, for each sparse head, the top-k tokens of the sequence with expert-choice routing and computes the query, key, and value transformations only for those tokens, which shrinks the key–value count of a sparse head from T to k; a few dense heads are retained, so the total count is . Because the top-k is taken over the whole sequence, the routing is non-causal: the original paper evaluates MoSA with teacher forcing and lists an autoregressive adaptation, e.g., a learned causal predictor as in Mixture-of-Depths, as future work, so its decoding-time behaviour is not yet established. We return to MoSA from the routing perspective in Section 7.1.
Recent advancements in million-token context large language models have increasingly relied on training-based sparse attention architectures to overcome the quadratic computational complexity of dense attention. Unlike training-free heuristic masks, these methods integrate dynamic, learnable sparsity directly into the pre-training or continued pre-training phases. DeepSeek Sparse Attention (DSA), introduced in DeepSeek-V3.2 [75], trains a lightweight lightning indexer that scores past tokens for each query and restricts attention to the top-k scored entries on top of an MLA backbone. Building on this, DeepSeek-V4 [76] interleaves Compressed Sparse Attention (CSA), which applies DSA-style indexer-based top-k selection over compressed key–value entries, with Heavily Compressed Attention (HCA), which attends densely over a much more aggressively compressed set of entries without an indexer. GLM-5 [122] adopts DSA through a cost-effective two-stage continued pre-training strategy, further stabilizing the indexer during long-horizon reinforcement learning via deterministic top-k operators. To address the memory-wall bottlenecks on specialized AI accelerators, LongCat-2.0 [291] proposes LongCat Sparse Attention (LSA). LSA incorporates streaming-aware indexing to enable hardware-friendly coalesced memory access and utilizes cross-layer distillation to amortize the indexer’s computational overhead across multiple Transformer layers.
MiniMax Sparse Attention (MSA) [311] instead builds block-sparse attention on top of GQA rather than MLA: a lightweight index branch, with one index query head per GQA group and a single index key head, scores key–value blocks by max-pooled similarity and selects a separate top-k set of blocks for each group (the local block is always included); the main branch then performs exact block-sparse attention over the selected blocks, and a KL loss aligns the index distribution with the group-averaged attention distribution of the main branch. On a 109B-parameter natively multimodal model, MSA is reported to match GQA quality while reducing per-token attention compute by at a 1M context.
HiLS-Attention [174] targets a limitation shared by chunk-wise designs such as MoBA, NSA, and MSA: the chunk scores are used only to pick a hard top-k set and are then discarded, so the language-modeling loss cannot directly optimize the selection (DSA and MSA instead train their indexers with an auxiliary KL objective). It appends a landmark token to each chunk to obtain a learnable chunk summary and factorizes attention into an inter-chunk softmax over chunk summaries followed by an intra-chunk softmax within the selected chunks, so that the selection scores are trained end-to-end by the language-modeling loss; after continued pre-training of a 7B model on 50B tokens, it is reported to retain full-attention quality in-distribution and to extrapolate to more than the training context length.
Once attention itself is sparse, the indexer that scores the whole prefix for every query becomes the remaining term. Two training-free remedies for DSA-style models have been proposed: HISA [528] replaces the flat token scan with a block-level coarse filter followed by token-level refinement inside the retained blocks, producing the same top-k token pattern as the original indexer with up to faster indexing at 64K context, and IndexCache [22] exploits the similarity of top-k selections across adjacent layers by running the indexer only in a subset of layers and reusing its indices in the others, removing up to 75% of indexer computation; both have been applied to DeepSeek-V3.2 and GLM-5 without retraining the attention weights.
Collectively, these reports indicate that learning the sparsity pattern jointly with the model weights, often combined with KV compression, can approach full-attention quality at a fraction of the attention cost; controlled comparisons against training-free methods under matched budgets remain limited, however.
Scoring Signal.
The Scoring-signal column of Table 2 orders these proxies by how much of the future they try to anticipate. Position-only rules (StreamingLLM, LM-Infinite) and the separator rule of SepLLM use no content: they are trivially reusable across queries and cost nothing at selection time, but are task-agnostic. Attention accumulated over past queries (Scissorhands, O) and attention from a recent observation window (the SnapKV family, CAKE, DropKV) assume that what recent queries attended to is what future queries will need. This assumption holds well within a single turn and is what makes prompt compression competitive at moderate budgets, but it fails across turns and in long reasoning traces, which is precisely the motivation for KVzip’s reconstruction-based scoring and BeaconKV’s beacon queries. Similarity to the current query, whether estimated by approximate nearest-neighbour search (RetrievalAttention, PQCache), bounded per page (Quest), or sampled (MagicPIG), is the most faithful signal, but it is available only when the full cache is retained, i.e., in group (b). Learned scorers can encode any of these cues; they are supervised by future attention (KVpop), by the deviation from the full-attention output (DuoAttention), by the language-modeling loss under a compression penalty (DMC), by the attention distribution of the main branch (DSA, MSA), or directly by the language-modeling loss through the factorized inter-/intra-chunk softmax of HiLS-Attention. Every signal except the position rules adds computation at selection time; in group (c) this indexer cost is what remains of the quadratic term, and HISA and IndexCache exist to reduce it.
Phase and Protected Tokens.
The Phase column records when the selection is made. Prompt-compression methods such as SnapKV, PyramidKV, AdaKV, NACL, and KVzip decide once, on the prompt, after a dense prefill; the tokens generated afterwards are cached in full, so these methods bound the memory of long inputs but not of long outputs. Decoding-time methods such as O and Scissorhands, and the retrieval methods of group (b), re-select at every decoding step, which is what long chain-of-thought generation requires; BeaconKV and ReasonAlloc are designed specifically for this regime, and SampleAttention, which sparsifies prefill only, is the exception within group (b). Position-based rules, head- or layer-level policies (FastGen, RazorAttention, DuoAttention, SimLayerKV), and the learned designs of group (c) apply one rule throughout, so they treat prompt and generated tokens alike (MoSA excepted, since its sequence-level routing has so far only been evaluated with teacher forcing). The Kept column records a second, nearly universal design choice: most methods exempt the initial (sink) tokens and/or a recent window from selection, reflecting the attention-sink phenomenon and the locality of attention, so that even query-dependent methods retain a static, query-independent core. Group (c) inherits the same prior in learned form, as the current block of MoBA and MSA, the sliding-window branch of NSA, and the local window of HiLS-Attention; MSA reports that when the forced selection of the first block and of a fixed local window is removed, the trained model still selects both, so only the block containing the query is forced in its final recipe.
Training Requirement vs. What Is Saved.
The Train. and Saves columns are independent axes and should not be conflated. Training-free methods approximate the original model: their quality depends both on the backbone and on the perturbation they introduce, and they can be applied to any pretrained model at once. Trained methods change the hypothesis space and remove the train–inference discrepancy, but require training and shift the model’s representation. Between the two extremes, auxiliary-module methods (Aux) keep the LLM frozen and train only a small component, such as DuoAttention’s per-head gates or AttentionPredictor’s convolutional predictor; retrofit methods (Retro) further train an existing model to a new cache policy or attention pattern with a small fraction of the pre-training budget, as DMC and KVpop do for eviction and merging and DSA does for learned sparse attention; SepLLM, MoBA, and HiLS-Attention report both retrofit and from-scratch variants, whereas NSA, MoSA, and MSA are evaluated only as models trained from scratch. What is saved follows from how the selection mask of Equation (17) is realized rather than from whether training was involved: removing pruned entries from the cache, or never writing them, saves memory (all of group (a), whether training-free or trained, and MoSA); skipping the unselected pairs during prefill saves attention compute, up to the cost of the selector itself (SampleAttention, SepLLM, and group (c)); restricting only what each decoding step reads saves bandwidth (group (b) and, as a by-product of a smaller cache, group (a)). Most natively sparse designs therefore require training yet save compute rather than memory, while a retrofitted eviction policy such as KVpop saves memory exactly as a training-free heuristic does.
Budget Allocation.
The Budget column records the shape of the retention budget rather than its size. Most methods, from StreamingLLM to SnapKV, KVpop, and the learned designs of group (c), use one quota (U) for every layer and head. Layer-adaptive schemes (L) exploit the observation that attention concentrates on fewer tokens in deeper layers: PyramidKV fixes a decreasing schedule, DynamicKV and CAKE derive layer budgets from the attention observed at prefill, PrefixKV searches a global prefix configuration under a Lorenz-curve criterion, and SimLayerKV reduces whole lazy layers. Head-adaptive schemes (H) exploit the variability of attention across heads: AdaKV and CriticalKV let a layer-wide top-k set each head’s share, HeadKV, FastGen, RazorAttention, and DuoAttention fix per-head budgets or policies from a profile, LeanKV grades each head’s tokens into precision tiers, KVzip evicts the lowest reconstruction scores across heads, SampleAttention and SqueezedAttention read a head-specific number of keys, and DMC learns per-head compression ratios. Operating head by head does not by itself make an allocation head-adaptive: NACL’s random eviction and LM-Infinite’s optional per-head top-k use the same quota for every head and are therefore marked U. Most non-uniform schemes are designed for the prefill phase, where the whole prompt is visible; ReasonAlloc extends layer-wise and head-wise allocation to the decoding phase of reasoning models, where eviction methods otherwise share one budget uniformly. At an equal total budget, non-uniform allocation assigns more capacity to the layers or heads that need it, at the cost of a profiling or estimation step.
Granularity.
The Gran. column records the unit over which the keep-or-read decision is made. Token-level selection (T) is the most flexible and is used by every token-eviction method of group (a) and by the token-retrieval methods of group (b); PQCache argues for it explicitly, on the grounds that relevant tokens are scattered and the contiguity assumption behind block-level lookup does not hold. Block-level selection (B) trades this flexibility for regular memory access: Quest, InfLLM, QuickLLaMA, and AttentionPredictor decide per fixed-size block or page, which maps naturally onto paged memory and fused kernels, and the natively sparse designs MoBA, NSA, MSA, and HiLS-Attention select blocks or chunks for the same reason, whereas DSA selects token-level entries and CSA selects compressed KV entries through a dedicated indexer, whose cost then motivates accelerators such as HISA and IndexCache. Cluster- and event-level units (C, E) are data-dependent: SqueezedAttention retrieves K-means clusters of keys, and EM-LLM retrieves episodic events whose variable length is set by surprise. At the coarsest end the unit is an entire head or layer (H, L): RazorAttention, DuoAttention, and SimLayerKV decide once per head or layer and add no per-step scoring cost. Whether coarser units cost accuracy relative to token-level selection at an equal budget depends on the method and task, and the reported evidence is mixed.
Summary.
The three groups are complementary rather than competing, and the choice among them follows from the binding constraint. When GPU memory is the constraint and the cache cannot be offloaded, group (a) is the option for an existing model, and the remaining decisions are the phase (prompt compression for long inputs, decoding-time eviction for long outputs), the scoring signal, and the budget allocation. When quality across many queries over the same context is the constraint, group (b) keeps every option open at the cost of host memory, host–device bandwidth, and per-step estimation. When a model is being trained or continued-pretrained in any case, group (c) removes the approximation altogether and also reduces prefill and training compute, which among training-free methods only prefill-side sparsification such as SampleAttention achieves. Controlled comparisons across groups under matched budgets remain scarce, and the interaction of token reduction with the head- and dimension-oriented compression discussed next is largely unexplored.
5.2. Head Reduction
As formalized in Equation (3), Single-head Attention (SHA) (, see Figure 8a) retains full head dimensionality (), yet constrains representational capacity by computing a single linear combination of value matrix rows per query token. This uni-dimensional weighting limits the expressivity of the attention output , as all value dimensions share identical attention weights.
For the head-oriented formulas below, we write for the query-head count. Standard multi-head attention (MHA) has (, see Figure 8b), which decomposes Query, Key, and Value matrices into H subspaces of reduced dimensionality (). Each head independently computes attention maps of shape , yielding H distinct weighting patterns over Value subvectors. Crucially, this enables dimension-specific attention distributions, enhancing contextual modeling through distinct query-dependent interactions across head subspaces.
While MHA improves representational power, caching H separate key and value heads per token per layer (a KV cache of size elements) imposes significant memory overhead, although at fixed total width d this is the same number of KV elements as single-head attention. Optimization strategies (Figure 8) like Multi-query Attention (MQA) [432] mitigate this by sharing Key/Value projections across heads while retaining separate Query heads (see Figure 8c). Formally, Equation (3) can be modified as follows by removing the head index on the keys and values.
The primary benefit of MQA is at decoding time: the KV cache, and hence the amount of memory that must be loaded at every decoding step, shrinks by a factor of H, which directly relieves the memory-bandwidth bottleneck of incremental inference [432]; the reduction in key/value projection parameters is a secondary side effect. However, sharing a single Key and Value head reduces the flexibility of the model to learn diverse representations across heads and has been reported to degrade quality and training stability relative to MHA [1].
Grouped-query Attention (GQA) [1] is an efficient attention mechanism designed to bridge the trade-off between computational cost and model performance in Transformer architectures. It interpolates between multi-head attention (MHA) and multi-query attention (MQA) by partitioning the H query heads into g groups, where all query heads within a group share a single key and value head while retaining their own query projections (Figure 8d); recovers MHA and recovers MQA, and the KV cache shrinks by a factor of relative to MHA. Here , so the cache has elements; at fixed total width , standard SHA and MHA both cache elements.
Here is the ceiling function and g is the number of groups. When , GQA reduces memory usage compared to full MHA, while compared to MQA, it maintains some level of diversity by allowing different groups to have different keys and values. GQA aims to strike a balance between efficiency and model expressiveness, making it useful for applications where resource constraints are a concern but some level of flexibility is still desired.
In addition to MQA and GQA, AsymGQA [50] proposes an optimized, activation-informed asymmetric grouping strategy for converting pretrained MHA models into hardware-efficient GQA models. Unlike GQA using uniform grouping and neighbor-based head merging, AsymGQA employs a similarity-guided stochastic search algorithm to group KVs asymmetrically (allowing variable group sizes) based on activation patterns (measured via cosine similarity of layer outputs), not just weight proximity. The grouping is informed by similarity in attention-head activations. In addition, WGQA [57] enhances standard GQA by introducing learnable weights for KV heads during fine-tuning. These weights, initialized as group-averages or randomly, enable a parametric weighted aggregation of KV heads in decoder attention blocks. WGQA exhibits near MHA performance with no inference overhead as weights are absorbed post-fine-tuning. Furthermore, QCQA [213] proposes an evolutionary algorithm to identify optimal query head groupings. Unlike GQA’s equal-sized groups, QCQA enables arbitrary-sized groupings or constrained equal-sized groups across layers. It uses a computationally cheap fitness function, Weight-Sharing Error (WSE), measuring mean squared error between original and merged KV weight distributions, as a proxy for accuracy loss, avoiding costly LLM evaluations. Similarly, KDGQA [222] introduces a dynamic extension of GQA that improves query-to-group allocation by leveraging the -norms of key vectors as a proxy for their importance. Unlike GQA, KDGQA allocates queries to groups based on the relative magnitudes of the key vectors within each layer. The allocation is performed during each forward pass, ensuring that the grouping mechanism adapts to the importance of key vectors.
Head reduction methods primarily adjust how query heads share a smaller set of KV heads, effectively optimizing the query-to-KV head ratio (e.g., MHA → GQA/MQA) to reduce KV cache storage while preserving accuracy. The total number of heads is usually predetermined manually, which does not increase with the length of the input text, or the complexity of the task. Therefore, head methods are not as numerous or diverse as those targeting the number of tokens. Currently, the most commonly used method in engineering is GQA due to its ease of implementation and relatively robust performance.
5.3. Dimension Reduction
Beyond conventional reduction strategies targeting token and head, a third axis compresses the width of the cached per-token representation. Multi-head Latent Attention (MLA) [73] is the architecture-level instance of this idea. The basic idea is a low-rank joint compression of keys and values: each token’s keys and values for all heads are generated from a single low-dimensional latent vector via a down-projection, and this latent is cached along with a small positional component when decoupled RoPE is used; the per-head keys and values are recovered by up-projection when needed, as shown in Figure 9. Note that MLA does not shrink the per-head dimension used inside attention; it replaces H separate key and value heads with one shared latent whose dimension is much smaller than . At inference time the up-projection matrices can be absorbed into the query and output projections, so that attention scores are computed directly against the cached latents without materializing per-head keys and values. Through this strategy, MLA substantially reduces the size of the KV cache and the memory traffic of decoding while maintaining quality comparable to MHA in the reported experiments [73].
For the following schematic derivation, we use a common latent width for keys/values and queries for notational simplicity; actual models may choose different widths. MLA has the following expression for keys and values:
where is the down-projection matrix for keys and values, is the compression dimension () and are the up-projection matrices for the hth head. Furthermore, MLA also applies low-rank compression for queries in order to reduce the activation memory during training:
where and are down-projection and up-projection for queries respectively.
It is worth noting that MLA cannot be seamlessly combined with RoPE [450] in its naive form. The incompatibility concerns the weight-absorption trick described above: RoPE inserts a position-dependent rotation between the query projection and the key up-projection , and because this rotation depends on the relative position of the query and key, it cannot be folded into a single static matrix. Without absorption, the keys of all cached positions would have to be up-projected and rotated at every decoding step, forfeiting the computational advantage of attending directly over the latents (the storage saving itself would remain). Consequently, MLA adopts a decoupled approach: a small additional rotary key, shared across heads, and a matching rotary query component carry the positional information, while the main low-rank latent remains position-free and absorbable [73].
Subsequent work on this axis splits into native alternatives to MLA, conversions of existing models, and post-training compression of the hidden dimension. Tensor Product Attention (TPA) [567] factorizes the query, key, and value activations of each token, rather than a static weight, as a sum of contextual tensor products: and likewise for and , where the factor matrices are linear functions of the hidden state. Only the key and value factors are cached, so the per-token footprint is set by the ranks and rather than by . RoPE is applied to the and factors and is therefore native; there is no need for MLA’s decoupled rotary stream. The authors report that a TPA Transformer (T6) matches or improves upon MHA, MQA, GQA, and MLA in pre-training perplexity and downstream scores at a substantially smaller KV cache.
Grouped Latent Attention (GLA) [548] keeps MLA’s latent compression but changes how the latent is laid out for hardware. MLA’s single latent cannot be sharded, so every device in tensor parallelism must reload the full cache. GLA groups the latent into shardable slices of width and pairs this with an optimized kernel; it is reported to match MLA quality while being easier to shard, with up to the throughput of FlashMLA when the query length exceeds one (as in speculative decoding) and up to end-to-end serving throughput from the smaller per-device load. The same paper introduces Grouped-Tied Attention (GTA), which ties the key and value of each GQA group into one state and applies RoPE only to a small extra key; GTA is reported to match GQA quality at roughly half the cache.
MLA and TPA must be trained (or continued-pretrained) as part of the model. TransMLA [293] instead converts a pretrained GQA or MHA model into an MLA model by initializing the latent projections from the existing weights, decoupling RoPE so that absorption remains valid, and fine-tuning. On LLaMA-2-7B it reports compressing of the KV cache and a inference speedup at an 8K context after fine-tuning on 6B tokens, and the converted checkpoint is compatible with DeepSeek-style MLA serving stacks.
A third line never changes the attention definition and only compresses the hidden dimension of an already-trained cache. Palu [43] applies SVD offline to the key and value projection weights, caches the low-rank intermediate, and reconstructs full keys and values at decode time. A group-head decomposition (G-LRD) interpolates between per-head SVD, which is cheap to reconstruct but less accurate, and a single joint SVD across all heads, which is more accurate but H times more expensive to reconstruct; ranks are assigned from Fisher information. Palu reports a KV cache reduction on popular open models and is orthogonal to quantization and token eviction. Because RoPE sits between the reconstructed key and the query, Palu cannot absorb the reconstruction into a static matrix the way MLA does, so the storage saving does not automatically become a latency saving unless the reconstruction, RoPE, and score are fused.
ThinK [529] reduces width by pruning channels of the key cache rather than by a low-rank subspace. It scores channel j of head i by over a query window and greedily keeps the top channels, leaving values intact. The method is training-free and complementary to token eviction and KV quantization; combined with them it is reported to add more than extra memory reduction on LLaMA and Mistral long-context benchmarks. Unlike MLA, TPA, and Palu, ThinK does not introduce a latent: it simply drops coordinates of .
5.4. Layer Reduction
The last perspective of reduction is layer reduction, which shares or merges KV states across layers (Figure 10). MiniCache [270] proposes a method to compress the KV pairs of two adjacent Transformer layers together, based on the observation that the KV cache states between two adjacent layers are highly similar, particularly across the middle to deep layers. Specifically, it merges the KV caches of two subsequent layers into shared states and selects unmergeable tokens for retention. In addition to MiniCache, several concurrent works share KV heads across layers rather than merging them post hoc. Cross-Layer Attention (CLA) [32] lets a group of adjacent layers reuse the keys and values computed by one of them, and YOCO [457] caches keys and values only once in a self-decoder and lets a cross-decoder attend to this shared cache. MLKV [591] combines this idea with MQA: it uses a single KV head within each layer and further shares that head across multiple self-attention layers. Moreover, LCKV [512] proposes computing and caching KV pairs for only a small subset of layers, often just the upper layer. During inference, lower-layer queries reuse these cached KVs, reducing KV cache memory and improving decoding throughput. While LCKV [512] introduces dependencies on top-layer cached values from previous tokens (conflicting with the parallel training of Transformers), it addresses this challenge with an approximate training method that preserves parallelism, making LCKV a practical solution for reducing resource overhead while maintaining competitive performance. In contrast to focusing on sharing KV across layers, Shared Attention [261] targets sharing the attention scores directly. SA proposes to reuse precomputed attention weights across multiple layers, rather than recalculating them for each layer. This method takes advantage of the isotropic patterns often observed in the attention distributions of pre-trained LLMs, where attention structures remain consistent across layers. By directly sharing these attention weights, SA avoids recomputing attention scores in the sharing layers, reducing both computation and the amount of key cache those layers require.
5.5. Future Directions
In this section, we have discussed efficient attention from four perspectives: token, head, dimension, and layer. Each of these approaches can be viewed as a form of compression, aimed at improving the efficiency of training or inference, and is motivated by the observation that KV caches exhibit redundancy along multiple axes. Two directions appear particularly promising:
- Input-Dependent Token Methods: Among these axes, token reduction stands out as the most complex and context-sensitive, since input tokens are inherently dynamic and variable in length. Many head-, dimension-, and layer-sharing designs use fixed architectural choices, although input-dependent allocations such as KDGQA provide exceptions. Token methods therefore offer one important route to input-dependent state and access control.
- Composing Multiple Axes: A promising direction is to integrate several of these axes within a single architecture. The axes are not fully independent, however: MLA already shares one latent across all heads, so it cannot be stacked with GQA-style head grouping or with head-wise budget allocation (e.g., AdaKV) in a straightforward way, and cross-layer sharing constrains which layers can be pruned independently. Understanding which combinations compose cleanly, and at what cost in quality, remains an open question.
6. Linear Language Models
Compared with efficient attention, linear recurrent/attention models have emerged as another category of prominent alternatives. These models are built on operators with linear computational complexity, making them more efficient at processing long sequences. This section examines the mathematical formulations of their basic operators, grouped into four types: recurrent neural networks, fast weight programmers, state space models, and linearized attention. For each category, we trace their historical development and elaborate on their specific formulations. The per-timestep computation graphs of five representative operators are illustrated in Figure .
6.1. Recurrent Neural Networks
Recurrent Neural Networks (RNNs) have a long and influential history in machine learning [405,414,417]. Unlike conventional feed-forward neural networks, RNNs introduce feedback connections that form directed cycles within the network. These pathways allow information from previous timesteps to influence future computations, endowing the model with an internal state capable of retaining contextual information. Such temporal memory is crucial for tasks involving sequential or time-dependent data, including speech and language modeling [27,94,100,116,128,301,302,323,388,421,460].
The conceptual roots of recurrent computation can be traced to early dynamical systems such as the Ising model (or Lenz-Ising model) [197,232,237,245,506] in the 1920s, which illustrated how interacting units with cyclic dependencies can maintain and stabilize internal states [405]. Later, foundational works [232,289] proved that such recurrent structures could function as formal computational units capable of processing sequences. Although such systems lacked trainable mechanisms, they offered an early template for later recurrent neural models that rely on feedback connections to maintain temporal context. A standard recurrent neural network formalizes this notion of temporal memory by updating a hidden state based on both the current input and the previous hidden state. Mathematically, the basic operation of a vanilla RNN is expressed as:
where is the input at timestep t, is the recurrent hidden state (memory), is the output, and is a nonlinear transition function parameterized by . The hidden state integrates past information through , and the output is produced by decoding with weights . In autoregressive settings, may be fed back as part of the next input, enabling sequence generation. Since the hidden state has fixed dimensionality, an RNN retrieves historical information solely through this compressed memory rather than storing all past inputs explicitly. This makes each recurrent update constant-time, yielding overall linear complexity in sequence length. Such computational efficiency has historically positioned RNNs as a central approach for modeling long-context sequential data.
Trainable RNNs first emerged in the early 1970s. Pioneering work by Shun-Ichi Amari in 1972 made the Ising recurrent architecture adaptive, introducing learning rules that modified recurrent connections to associate input patterns with output patterns by dynamically adjusting connection weights [6,170,324]. Around the same time, recurrent computation in the context of biological neural dynamics and hippocampal memory was explored [133,287]. Subsequent research on associative memory and self-organizing recurrent structures further advanced this direction [134,235,324]. Then, Backpropagation Through Time (BPTT) [268,394,507] was formalized as a general method for training RNNs, enabling gradient-based optimization of model parameters. However, this training procedure revealed two fundamental challenges: the vanishing and exploding gradient problems [165], wherein gradients either decay toward zero or grow exponentially as they are propagated backward through long temporal sequences.
To address the vanishing and exploding gradient problem, the concept of recurrent residual connection was proposed [165], where a neural unit with the identity activation function has a connection to itself and the weight of this connection is [418]. This principle was instantiated in the standard Long Short-Term Memory (LSTM) architecture in 1997 [167]. The core LSTM unit featuring this residual connection was termed constant error carousels (CECs) [167], designed to enforce the constant error flow. The specific design is as follows:
where is the cell state (memory) on which operations are performed, represents the processed new information to be added, denotes the input gate activation controlling how much new information is added to the cell state, denotes the output gate activation controlling how much of the cell state is exposed to the next step, and ⊙ denotes element-wise multiplication. Subsequently, the later LSTM with a forget gate [117] introduced the adaptive forget gate activation to replace the fixed weight, forming the gated recurrent residual connection. Thus, the update rule becomes:
Although the learnable forget gate may reintroduce the vanishing gradient problem, it is rendered more controllable via training: when approaches 1, it approximates constant error flow; when necessary (e.g., to shift focus to new tasks), it can temporarily disrupt this flow. By incorporating gating mechanisms and a dedicated cell state, LSTMs enable selective retention or forgetting of past information during the forward pass. The gate activations as well as the input transformation are computed as:
where denotes concatenation, is the sigmoid activation function, and are the corresponding weight matrices.
To further stabilize the gradients in RNNs, various initialization techniques for their weight matrices have proven effective. For instance, initializing these matrices as identity matrices [243] or orthogonal matrices [400] can lead to a positive impact. A classic example of this principle is the later LSTM with a forget gate [117], where forget gates were specifically initialized to . This ensures the gates remain open at the start of training, effectively allowing the model to begin with plain residual connection, like the 1997 LSTM. Additionally, injecting special structural biases can also be beneficial, especially for long sequences, including: (a) unitary and orthogonal model weight matrices [11,155]; (b) exponential parameterization for diagonal weight matrices [139,343]; (c) time (positional) decay mechanisms [352].
In addition to stabilizing backpropagation, enabling parallel training is also crucial for the practical deployment of RNNs, particularly in large language models. However, the inherent sequential nature of RNN hidden states prevents parallel computation. A key strategy to overcome this limitation is to linearize the temporal dependencies of the inputs [288], leading to the development of linear RNNs. Recently, significant efforts have focused on scaling the language models formed by linear RNNs for large-scale training:
- The Linear Recurrent Unit (LRU) [343] improves the training of large linear RNNs by employing exponential parameterization of complex diagonal weight matrices, -normalization of hidden activations, and weight initialization with restricted eigenvalue phases. Hawk [72] further shows that incorporating gating mechanisms into LRUs can lead to performance improvements.
- Receptance Weighted Key Value (RWKV) [352] is another prominent large-scale RNN architecture. Each RWKV block comprises a token mixing operation and a channel mixing operation, both of which perform local feature aggregation and transformation on sequential inputs, followed by a gated linear unit. Note that the token mixing operation incorporates a linear recurrent scan of the transformed features before the gating unit to enable global information aggregation, alongside time (positional) decay and specialized weight initialization for stabilizing training. While this architectural shift to linear recurrence enables parallel training, it introduces expressivity trade-offs. RWKV as well as Mamba [136] remains a simplified and less powerful variant of the LSTM [117], streamlining the gating mechanisms for efficiency at the expense of the fine-grained state-tracking inherent in the original LSTM.
- xLSTM [24] revisits the LSTM architecture for large language models, using sLSTM and mLSTM modules as its backbone—both enhanced variants of LSTM. These modules employ exponential gating to improve storage decision revisions (i.e., finding the most relevant past tokens for a given query). The sLSTM extends the scalar memory of the vanilla LSTM by introducing a memory mixing module, which establishes a connection between the two non-linear recurrent components—the cell memory and the hidden state. To enhance capacity, sLSTM extends this mechanism to multiple heads, where mixing occurs independently within each head but not across them. However, due to the non-linear nature of its recurrence, sLSTM does not support parallelization. In contrast, mLSTM abandons memory mixing to enable parallelization, effectively adopting the linear recurrent principles originally established by ULTRA [406,408]. It adopts a matrix-based memory for enhanced capacity. This memory is updated using a covariance (outer product) update rule, with multiple heads and cells treated equivalently in the multi-head scenarios.
6.2. Fast Weight Programmers
Fast Weight Programmers (FWPs) [185,190,192,401,402,403,406,408,412] are architectures where a slow neural network dynamically programs the fast weights [97,163,490] of other networks. Typically, an FWP consists of two interacting components: (1) a slow network that receives the current input and produces programming signals, and (2) a fast network whose parameters are updated at every time step according to these signals. This design yields an explicit separation between control and storage, where the control is implemented by the slow weights that learn slowly across tasks while the storage is implemented by fast weights that store short-lived information within the input sequence, serving as an efficient memory. FWPs can also be used for meta-learning with self-referential NNs that can learn to execute and modify their own weight change algorithm [193,195,228,229,404,407,410,411,413].
A specific instance of FWP with a differentiable update rule is formulated as follows [194,406]:
where and denote the slow weights and fast weights, respectively, the index t denotes the timestep of a series of data, f denotes a differentiable (e.g., sum-and-squash) function, and ⊗ denotes the outer product. The slow network first projects the current input into query, key, and value vectors. The outer product of the key and value vectors is then used to update the fast weights sequentially. At each timestep, the updated fast weights are queried using the current query to produce the output.
The above form of FWP with a sum aggregation function is equivalent to the linear Transformer without normalization [403] (detailed in Section 6.5), a connection that has led to it being retrospectively identified as the Unnormalized Linear Transformer (ULTRA) [403,406,408,420]. This perspective has reignited interest in FWPs within the language modeling community. Notably, DeltaNet [403] replaces the additive outer-product update rule with an error-correcting delta rule [508]. This enables it to more readily learn corrections to the current key–value mappings, thereby improving the memorization of key–value associations. The specific formulation of the delta rule is given as follows:
where is the kernel function discussed in Section 6.4, is the value retrieved from the previous fast weights at the current key, and controls how far it is moved toward . Thus, is the removal term constructed from the current key and its retrieved value, whereas is the write term pairing the same key with the interpolated replacement. We refer below to these key-selective operations as erasing and writing, reserving forgetting for a decay applied to the entire previous state. The effectiveness of the delta rule as a state update rule has been demonstrated across many applications, including language modeling [190,403,540,541], reinforcement learning in game environments [190,193], time series classification [192], and image generation [185]. Remarkably, the delta rule also improves the expressivity of FWPs compared to FWPs with purely additive or decay-based update rules [131,194]. DeltaProduct [438] extends DeltaNet by applying multiple delta-rule steps per token, yielding state-transition matrices formed as products of generalized Householder transformations and improving state tracking and length extrapolation.
Such a rule can be derived [508] as the gradients of the mean squared error between and —akin to the core of the revived test-time training models [454]—making it highly effective for in-context retrieval tasks. Gated DeltaNet [541] combines DeltaNet’s key-selective replacement with a data-dependent scalar decay of the entire previous state, complementing targeted key–value updates with a mechanism for rapidly clearing outdated information. Comba [172] controls global forgetting and current-key erasure separately: a learned ratio in keeps the erasure coefficient below the write coefficient, and the current key is also used to adjust the readout. RWKV-7 [354] introduces a generalized delta rule with vector-valued gating and in-context learning rates. These mechanisms allow different state features to decay and be corrected at different input-dependent rates. Its relaxed value replacement rule further allows the erase and write terms to use different directions and strengths. Kimi Delta Attention (KDA) [471] replaces Gated DeltaNet’s scalar decay with channel-wise decay, allowing different memory subspaces to operate at different retention timescales, and serves as the recurrent linear-attention operator in Kimi Linear. Since KDA still uses a shared scalar step size for erasing and writing, Gated DeltaNet-2 [149] replaces it with separate channel-wise key-side erase and value-side write gates.
6.3. State Space Models
A continuous-time linear State Space Model (SSM) [436] expresses both the rate of change of the state and the output as linear functions of the current state and input [135,139]:
where , , and denote the input, state, and output at time t, respectively, and , , , and are the model weight matrices. The choice of and in Equation (25) determines how represents the input history. For instance, HiPPO [137] approximates this history using a fixed number of polynomial projection coefficients stored in . Differentiating these coefficients yields a linear state equation with potentially time-dependent matrices and .
The SSM also admits a discrete-time recurrent form:
The discrete form in Equation (26) can be derived from the continuous form in Equation (25) through discretization with step size . For example, zero-order hold (ZOH) gives and for invertible . The state update in Equation (26) corresponds to an affine choice of f in the memory update of Equation (23), and thus the discretized linear SSM is equivalent to a linear RNN (Section 6.1). This equivalence also carries over to model design, i.e., the techniques used in discrete SSMs can also be applied to the corresponding recurrent models, including parallelization computation [139], diagonal state parameterizations and initialization [138,141], multi-input multi-output states and multidimensional extensions [327,439], or input-dependent transitions and gated activations [148,290].
Mamba [136] is a competitive discrete SSM (linear RNN) backbone for language modeling, extending the time-invariant recurrence in Equation (26) with content-dependent memory control to better capture long-range dependencies. It makes , , and input-dependent by generating , , and the discretization step from the input at timestep t; the resulting operators are denoted by , , and . This selection mechanism draws on LSTM’s gating principle [117,167]: determines what is retained from the previous state, controls what is written from the current input, and controls what is read out, while provides a learned, input-independent skip connection from input to output.
Mamba-2 [70] improves Mamba’s parallel training efficiency on long sequences with tensor-core-accelerated matrix multiplications. To enable this acceleration, it constrains to a scalar multiple of the identity, so its core recurrence can be written as additive ULTRA with scalar forgetting (Section 6.2) [541], or equivalently as a scalar-gate specialization of Gated Linear Attention (GLA) [539]. For parallel training, Mamba-2 computes the unrolled recurrence (a sum of writes weighted by transition products) using intra-chunk parallelism and inter-chunk recurrence. Within each chunk, it combines and for , incorporates decay weights, and applies the resulting chunk-local interaction matrix to the scaled inputs. Together with inter-chunk recurrence, this avoids explicitly forming and multiplying by the full sequence interaction matrix. Between chunks, the state follows the affine update structure of Equation (26). These recurrent and parallel computations are linked by the semiseparable structure formalized in Structured State-Space Duality (SSD) [70].3 Afterwards, Mamba-3 [240] continues this line with an improved SSM discretization, complex-valued state transitions for richer state tracking, and a multi-input multi-output update designed to improve the quality–efficiency trade-off.
The real-valued Mamba has been shown to fail on simple state-tracking tasks such as parity [131,398]. This limitation arises from the nonnegative diagonal structure of , which prevents parity recognition at arbitrary sequence lengths in the fixed-depth, finite-precision setting. To address this limitation, Grazzi et al. [131] extend the transition range to include negative values, enabling the modified Mamba to learn parity. Its real diagonal structure, however, still prevents it from counting modulo three under the same assumptions. In contrast, nonlinear RNNs such as LSTM and sLSTM can in principle track any finite-state machine, but their standard recurrences require sequential computation [24,131,167]. An alternative is to improve state tracking through more expressive linear transitions while retaining parallel training. For example, allowing negative eigenvalues in DeltaNet enables reflection-like state transitions and improves its ability to track sequences of permutations [131]. RWKV-7 [354] further generalizes the delta rule with channel-wise control and more flexible erase–write operations. Its theoretical analysis provides a four-layer construction that recognizes any regular language under the stated parameterization and log-precision assumptions. These delta-rule models retain updates that are affine in the previous state, allowing stronger state tracking without sacrificing parallel training.
6.4. Linearized Attention
Linearized attention denotes a category of methods improving the computational efficiency of the dot-product attention mechanism in the Transformer [489]. Its formulation can be derived by approximating the softmax function with linear operations. These methods lower the complexity from quadratic to linear when calculating pairwise token similarity scores. Historically, the conceptual foundation of this approach can be traced back to the Unnormalized Linear Transformer (ULTRA) [406,408,419,420]. Linearized attentions are closely connected to linear recurrent operators, paving the way for further developments in linear recurrent models.
Derivation of Linearized Attention.
Intuitively, linear complexity can be achieved by reordering the computation of , , and in Equation (3). Nonetheless, this rearrangement is non-trivial because the function has no multiplicative property. To address this, one straightforward approach is to substitute the with other decomposable functions. The earlier works [219,488] view the unnormalized part of the , , as a positive-definite kernel evaluated on the query and the key, where and denote the t-th and i-th row vectors of the matrices and , respectively. Every such kernel is the inner product of a feature map, , but for the exponential kernel the exact feature map is infinite-dimensional, so no finite-dimensional satisfies this equality exactly [219]. Linearized attention therefore works with a finite-dimensional feature map , where D is the feature dimension, chosen either so that (random-feature or Taylor approximations) or as a different decomposable kernel that replaces the exponential altogether. With such a , each output vector of the linearized attention module is formulated as follows:
In this way, each query is multiplied with the aggregated key–value history, instead of being multiplied with each separately, reducing the computational complexity from quadratic to linear.
Feature Map Design.
Although the exponential kernel admits an exact feature map in theory, that map is infinite-dimensional, so a practical feature map must trade exactness for a finite dimension, and designing it requires careful consideration. To ensure efficient and effective linearized attention, a theoretically sound feature map should possess the following key attributes: (a) its output is non-negative; (b) its output dimension is finite; (c) when it is meant to mimic softmax attention, its approximation error to the exponential kernel is small. In Table 3, we present the representative choices of these feature maps. For instance, Katharopoulos et al. [219] choose the exponential linear unit [64] as the feature map. Random Feature Attention (RFA) [356] employs random Fourier features to build an unbiased estimator of the exponential kernel on -normalized queries and keys; the variance of this estimator decreases as and is further reduced by the normalization and by a learned feature variance, but RFA gives no bound on the resulting error of the attention output. Performer [58] approximates the exponential kernel with feature maps built from positive orthogonal random features, but a large feature dimension is required to guarantee a small approximation error. Cosformer [363] stabilizes the linearized attention process by introducing the Fourier representation of the relative positions into the ReLU feature map. PolySketchFormer [214] proceeds in two steps: it first replaces the exponential kernel by a high-degree polynomial kernel with , which it shows empirically to match softmax quality, and then applies polynomial sketching to obtain a low-dimensional feature map whose inner product provably approximates this polynomial kernel; the approximation guarantee is thus with respect to polynomial attention, not to softmax. Hedgehog [559] restores two properties of attention weights that fixed feature maps lack: low-entropy spikiness, which lets each token concentrate on a few relevant tokens, and monotonicity in the query–key dot product, whose absence the authors hypothesize causes conflicting gradients when a pretrained Transformer is converted to linear attention. Its feature map is a learnable single-layer MLP with an element-wise exponential, applied to the queries and keys. When converting a pretrained model, the MLP is trained by attention-weight distillation, minimizing the cross-entropy between the linear attention distribution and the softmax attention distribution of the original layer, so the target is the normalized softmax weights rather than the raw dot products; when training from scratch, the distillation loss is dropped and the feature maps are learned end-to-end with the task loss. Based [12] uses a second-order Taylor approximation of the softmax kernel and combines the resulting global linear attention with sliding-window attention to capture both long-range recall and precise local dependencies. ReBased [4] replaces this fixed Taylor feature map with separately learned normalized feature maps for queries and keys. Element-wise squaring preserves non-negative similarities while removing the fixed lower bound of Based, allowing irrelevant tokens to be more strongly suppressed.
The above studies attempt to minimize the performance gap between linearized attention and dot product attention from a theoretical perspective. However, in practice, many simple functions (e.g., the linear function) are chosen as the kernels for convenience [285,455,539]. We will discuss these works in the following section.
6.5. Unification and Comparison of Linear Operators
This section investigates the linear operators, i.e., internal state update and output operators of linear language models, to uncover the strengths and potential of the corresponding models. We begin by analyzing the hidden state update formulas, as they form the core foundation of these models. This analysis identifies their common traits and differences within a unified framework. We further analyze these operators from other perspectives, such as expressivity and test-time training. Through this structured evaluation, we seek to offer insights that can guide the design of next-generation large language models.
Although recent language models employ linear operators proposed with different motivations, such as linearizing attention, linearizing RNNs, or using FWPs (discussed in Section 6.1, Section 6.2, Section 6.3 and Section 6.4), these operators share a remarkably similar mathematical form. Here we follow the general form summarized by Yang et al. [540] with more detailed notations to provide a comprehensive, unified framework for these linear operators:
Here, stores the recurrent memory and is the optional normalization state. For outer-product memories, has rows and columns corresponding to the key and value dimensions, respectively; vector-state models are included by taking one of these dimensions to be 1. The functions k and v specify the outer-product write, q specifies the readout, and a and b provide multiplicative and additive output terms. The gates and control how the memory and normalization states are carried forward, respectively, defining their state transitions [131]. The multiplication operator ⊚ specifies how acts on the entries of the old state . With element-wise multiplication, each entry can receive its own decay factor, providing fine-grained control over which features persist and for how long, as in Mamba [136]. Under matrix multiplication, a diagonal shares each row’s decay across its value entries, while a scalar multiple of the identity shares one factor across the entire head state. This prevents value-specific retention within a row, trading some gating flexibility for computational reuse [70,539]. A non-diagonal instead mixes entries along the key dimension within each value column, supporting key-directed memory correction [541] and, with suitable parameterizations, stronger state tracking without excessive arithmetic or storage overhead for state updates and parallel composition [354].
Some works simplify the linear operators by removing the normalization term and the output gating term of Equation (28), leading to a form which essentially belongs to the Unnormalized Linear Transformer (ULTRA) [406] family:
By specifying the instances in Equation (28) (the running normalizer is omitted in the ULTRA family, Equation (29)), the existing representative linear language models can be summarized in Table 4, grouped by the algebraic type of . The computation graph of Equation (28) is depicted in Figure 11.
As grouped in the table, the most notable differences among linear operators stem from the algebraic type of the gate : identity accumulation, scalar decay, diagonal or channel-wise decay, or a rank-1 / generalized-Householder overwrite. The majority of these linear operators eliminate the need for the normalization term . Unlike dot-product attention mechanisms [219], which rely on softmax normalization, many linear variants, including RetNet [455] and GLA [539], omit this term to simplify their formulations. Furthermore, the design of the key and value functions varies significantly across models. Linear Attention [219] and RetNet [455] employ straightforward linear transformations for simplicity, whereas models like Gated DeltaNet [541] as well as RWKV-7 [354] incorporate more complex functions (e.g., write-strength gating, token shift, and value residuals, whose details are left to the original papers) to enhance expressiveness and adaptability. Some models also introduce sophisticated scaling terms and bias terms to the output.
6.5.0.12. Comparison and Analysis.
We classify the expressive power of linear recurrent/attention models based on the following perspectives in Table 5: (a) from the perspective of the gating mechanism , we analyze it according to three aspects: its format4, its data dependency, and its value range; (b) the expansion of state dimension [537] greatly enlarges the capacity of hidden states; (c) Recent works [498,541] adopt the perspective of test-time training (TTT) [26,271,454,491] to provide another view for these operators. For linear networks, this TTT formulation can be equivalently cast as the FWP update [408], where the model weights are updated during the forward pass to act as a dynamic associative memory. Sun et al. [454] instantiate this idea as concrete sequence layers: TTT-Linear and TTT-MLP use a linear model and an MLP as their recurrent states, respectively, and update them by gradient descent on a learned self-supervised objective. Subsequent methods refine this test-time update. Titans augments mini-batch gradient descent with data-dependent momentum and forgetting, allowing recent loss gradients to influence subsequent updates while controlling memory retention [26]. MesaNet replaces the single gradient step on the latest key–value pair with an approximate solution to a regularized, forget-weighted regression over all pairs observed up to the current step [491]. At a more general level, test-time regression [498] provides a unified form for these attention operators. It separates two choices: a per-step regression objective and the solver applied to it. We use the following generalized objective for the hidden-state update of linear operators:
In Equation (30), and the nonnegative weights select the historical key–value associations to be fitted, while the terms weighted by and penalize a large state and a departure from , respectively. The objective alone does not fix the recurrence: denotes the solver applied at each step, which may be exact minimization of , a single explicit gradient step from zero or from , or an approximation of the exact minimizer. A single gradient step is in general not the minimizer, so the same objective yields different operators under different solvers, and the operators below are identified by both choices. For the unregularized cumulative case with and , choosing , where each is a forgetting factor, makes earlier associations undergo more forgetting. The following examples show how different settings of and different solvers in Equation (30) recover familiar linear operators.
Linear Attention is recovered by setting , , and and taking one unit-step batch gradient update from a zero candidate state matrix (or equivalently, by approximating the key Gram matrix as the identity in the analytical least-squares solution), whereas DeltaNet is recovered by setting , , and and taking one online gradient update from [219,403,498]. The accumulator obtained in this way is the unnormalized form of Equation (29); the running normalizer of Equation (28) (the denominator of Equation (27)) is not part of the regression state and has to be carried separately when a normalized readout is wanted. Keeping , , and but taking , an online gradient step of size gives . In this update, the term produces the overall decay factor on the old state, whereas the gradient of the prediction loss produces the error-correction term associated with the current key. With , , and , the same update can be written exactly as , which is the Gated DeltaNet recurrence [498,541]. For the multiplicative weights defined above, the exact least-squares solution contains the inverse of when this matrix is invertible. Approximating this matrix by the identity yields , a linear attention whose old state is decayed by the scalar gate [498]. This is the scalar-gated special case of Gated Linear Attention, corresponding to the scalar-decay rows of Table 4; the per-key-dimension gate of GLA proper [539] does not follow from a scalar weight , because it requires the forgetting to act separately on each key dimension rather than on each association as a whole. Finally, when , , and , exact minimization with scalar gives . The factor multiplying the prediction-error correction shows that its strength is determined by the current association weight and key norm rather than by a fixed learning rate. Rearranged, this exact (proximal) update reads with , i.e., a rank-one state mixing along the current key.
6.6. Future Directions
Linear recurrent models have attracted substantial interest because they replace quadratic attention over the sequence length with recurrent updates that admit parallel training. This efficiency is a central advantage of large language models for context scaling, particularly for agents that must complete long-horizon tasks. At the same time, several challenges and opportunities remain:
- State Capacity: an immediate constraint for linear recurrent models arises from the fixed capacity of the recurrent state. As the context grows, linear models must compress an increasing amount of historical information into a representation whose size remains unchanged, which may compromise both information fidelity and direct retrieval. Some researchers have also reported that linear variants can still underperform full attention on certain tasks in large-scale experiments [122].
- Richer Transitions and Hybridization: Several responses to these limitations are already in progress. One direction is to enrich the state transition. For example, fully input-dependent non-diagonal transitions let state channels route information to one another and can represent permutation composition while remaining parallelizable through a scan, although dense transition products introduce additional computational and optimization costs [294]. Beyond enriching the transition within each layer, depth provides another source of expressivity: Heo et al. [159] show that stacking restricted parallelizable SSM layers can represent increasingly complex order-sensitive dynamics. A practical response is to interleave linear and softmax attention, often at a 3:1 ratio, as in Qwen3-Next and Qwen3.5/3.6 [372,373,477], and Kimi Linear and Kimi K3 [317,471]. This design has already scaled beyond earlier experiments: Kimi K3 uses a 2.8T-parameter model with 104B active parameters and a 1M-token context [317].
- Efficient Kernels: Supporting these evolving architectures also requires continued progress in efficient implementations. Training and prefill typically use chunkwise-parallel kernels, which pass a fixed-size state between chunks and compute token interactions within each chunk in parallel [249,364,372,455,477,538,539]. Autoregressive decoding instead uses fused recurrent kernels to update the state for one or a few new tokens [372,477,538]. Efficient chunk kernels combine algebraic reformulation with explicit GPU-kernel blocking and operator fusion. For delta-rule recurrences, one such reformulation collects the token-by-token state updates within a chunk and rewrites them as a lower-triangular solve followed by matrix multiplications. GPU-kernel implementations then divide this work into small blocks that fit in registers and shared memory and fuse adjacent operations, reducing intermediate writes to HBM [471,538]. For long-context prefill, implementations gain additional parallelism by processing multiple token blocks from each chunk concurrently [25] and overlapping within-chunk computation with state propagation between chunks [317]. Sequence segments can also be processed independently within one GPU or across GPUs and then combined to recover exact boundary states [317]. Kimi K3 further modifies KDA by limiting the maximum decay at each token. This keeps temporary scale factors within the BF16 range, so all causal blocks can use the same dense matrix-multiplication path [317].
- New State Organizations and Operators: Other exploratory directions change the organization of the recurrent state or reuse recurrent mechanisms in other operators. Recent work retains linear recurrence while combining it with hierarchical or routed memory structures to increase capacity [85,140]. Related extensions also adapt recurrent operators to multidimensional inputs [366]. A deeper understanding of the structural connections between softmax attention and DeltaNet, as well as the mathematical properties of DeltaNet, may also inform future operator design [447,448,449]. Related work also applies gating, cumulative forgetting, and delta-style corrections to softmax attention while retaining normalized retrieval [265,368,577].
7. Mixture of Experts
The development of large language model architectures has been significantly enhanced by Mixture of Experts [36], a key technique that offers a way to scale the capacity of the model without proportionally increasing computational costs. The core concept of MoE, i.e., a modularized network guided by a learnable router, dates back to the late 1980s [144], with subsequent work introducing hierarchical structures [200,211]. Their application in modern language models [434] has led to breakthroughs in both model scaling and efficiency.
The key innovation of modern MoE lies in its sparse activation pattern. Rather than processing all inputs through the same set of parameters, MoE strategically employs a gating mechanism to route tokens to specialized expert neural networks [434]. Both the gating mechanism and the specialized experts are trained at the same time. Hence the expert FLOPs per token are determined by the number and width of the active experts rather than by the total number of experts n. The decoupling is not complete, however: a dense router still scores all n experts, which is negligible for tens or hundreds of experts but is the reason that million-expert designs resort to product-key routing (Section 7.1), and parameter memory, optimizer state, expert dispatch, and inter-device communication all grow with n rather than with the number of active experts. This selective activation enables models to grow to enormous sizes—reaching even trillions of parameters [96]—while keeping computational requirements manageable during both training and inference.
Formally, an MoE layer [434] consists of n experts (in Transformers, typically FFNs) and a routing function . For an input , the output is a router-weighted sum of expert outputs:
where only the experts in the router-selected set are evaluated; their number is a hyperparameter, typically small, whereas n can reach thousands or even millions [153].
The remainder of this section traces three overlapping developments (Section 7.1): the sparsely gated FFN that first made this mapping trainable at scale, along with the load-balancing and stability techniques it required; the fine-grained shared-expert layout that became the open-weight default; and the systems-oriented variants that reshape experts under communication and memory constraints. Table 6 lists selected milestones along these lines.
7.1. Evolution of MoE in LLMs
The following three developments summarize the evolution of MoE in LLMs; their histories overlap rather than forming a strictly sequential progression.
The Era of Sparse Gating.
This period established the default recipe: replace selected feed-forward layers with a pool of large experts and let a learned token-choice router activate a small top-k subset. Its design questions were, in turn, how to define the layer and its router, how to keep the router from collapsing onto a few experts, how to fit the resulting variable load onto fixed hardware, and where in the network to place the layers.
Layer and Router. Large-scale sparsely gated MoE was demonstrated with LSTM language models by Shazeer et al. [434], and was subsequently integrated into Transformer FFNs in work such as GShard [246]. These Transformer architectures replace the feed-forward network (FFN) in selected blocks with MoE layers. This choice comes from several compelling observations about feed-forward blocks. First, they are the most parameter-heavy part of the Transformer block. Furthermore, they exhibit natural sparsity in their activations [260,569,588]. Additionally, the inherent independence of FFN computation makes it particularly amenable to expert-based parallelization, as demonstrated in Switch Transformers [96]. Furthermore, scaling laws have been developed for language models with MoE layers: Clark et al. [62] model the loss as a function of the dense parameter count and the number of experts. Open-weight models such as Mixtral [206] later popularized this coarse, token-choice recipe as a standard production layout.
In standard learned routing, the routing function is a trainable module that maps each input token to a set of real-valued scores or probabilities over the experts. Specifically, given an input , the router computes a weight vector (often via a linear transform followed by a softmax and optional noise injection), selects the top-k entries, and dispatches to the corresponding experts for processing, thereby enabling conditional computation.
Load Balancing. A critical challenge in training MoE models is the so-called expert collapse, in which the routing function converges to favor a small number of experts, causing the remaining experts to receive few or no input tokens and effectively become inactive; the phenomenon was documented in early conditional-computation work [88] and addressed explicitly by Shazeer et al. [434]. This collapse often arises from positive feedback loops during training: experts that receive more tokens receive more gradient updates and improve faster, which leads the router to allocate even more tokens to them. The resulting underutilization of diverse experts negates the benefits of conditional computation.
Two families of remedies have been proposed. The first, and most popular, adds an auxiliary loss that penalizes polarized distributions of selected experts [246,434]; the second changes the routing rule so that balance holds by construction. The original load balancing mitigation [434] used two losses: , which pushed the sum of the weights of the experts to be uniform across the batch, and , which encouraged the uniform distribution of tokens across experts. This was simplified by GShard [246] and later popularized in Switch Transformer [96]. The simplified version uses a single simple load balancing loss. Let X be the batch and be the total number of tokens in a batch, then
where
- is the fraction of tokens assigned to expert i in a given batch
- is the average router probability assigned to expert i over the batch. Unlike , it is differentiable with respect to the router parameters, which is what allows the loss to provide a gradient signal.
With exactly k assignments per token and normalized router probabilities , and . is non-differentiable as it relies on the discrete top-k selection. Consequently, the gradient propagates only through the term . In this optimization landscape, effectively acts as a weighting coefficient for . Minimizing the product penalizes the router for assigning high probability mass to experts that are already frequently selected (high ), thereby encouraging a more uniform distribution of probability mass across all experts.
-MoE [66] shows that when the sigmoid function is used as a router gate as proposed in [248], the auxiliary losses can be simplified by maximizing the entropy of the distribution instead. Sigmoid scores weight expert outputs, while the regularizer first averages the softmax probabilities of the router logits across all batch tokens, , where denotes the router logits, and then maximizes the entropy of . It does not maximize each token’s entropy independently. On the other hand, AdaMoE [553] proposes scheduling the weight of load balancing loss, such that the load balancing is the strongest at the beginning of the training and diminished at the end; they observed improved performance with such a training scheme.
ReMoE [505] replaces the top-k softmax router with a ReLU router, so that the number of active experts per token is determined by which router outputs are positive; sparsity is controlled by an adaptive regularizer, and weighting this regularizer by per-expert activation rates plays the role of a load-balancing term.
The second family enforces balanced expert loads by construction rather than through a soft penalty. BASE layers [248] treat the routing as a constrained linear assignment problem during training, so that every expert receives the same number of tokens. Expert-Choice Routing [579] flips the problem upside down and makes the experts choose their tokens, which balances the load per expert but lets the number of experts per token vary. A third mechanism, Loss-Free Balancing [499], removes the auxiliary loss without imposing a hard constraint: it adds a per-expert bias to the routing scores used for the top-k selection (not to the weights applied to expert outputs) and, after each training step, moves the bias of every expert by a fixed amount in the direction that corrects its load on the previous batch. Balance is thus maintained by feedback over training steps and measured empirically, rather than guaranteed within a batch as in the assignment-based methods.
Capacity and Router Stability. Load balancing shapes the routing distribution in expectation, but for individual batches, tokens could still cluster heavily non-uniformly. This intersects with hardware constraints in practical deployments. Modern GPUs have finite memory and computational capacity that cannot be exceeded. Without a hard capacity limit, individual experts could receive more tokens than they can physically process, leading to out-of-memory errors or computational bottlenecks.
The standard way to deal with this practical issue involves defining a capacity factor [96,246] , which controls the maximum number of tokens any expert can reach:
When an expert receives more assignments than its capacity, overflow assignments may bypass the expert computation through the residual path. A simple positional admission policy drops assignments later in the flattened token order. Batch Prioritized Routing [387] instead prioritizes tokens by router scores, while Random Token Selection [226] randomizes their admission priority; these policies determine which assignments fit within capacity. Separately, Switch Transformers studied No-Token-Left-Behind, which reroutes overflow tokens to alternative experts, but reported no empirical benefit [96]. Ignoring capacity rounding, requires perfectly uniform expert loads if all assignments are to be processed without dropping; the capacity factor itself does not enforce this balance. With , extra capacity permits load variation at a higher memory cost.
Besides load, the router can also be numerically unstable. The router z-loss introduced in ST-MoE [590] is a way to stabilize router training. It penalizes large logits entering the softmax operation to prevent numerical instabilities caused by the exponentiation mechanism:
where T is the number of tokens and n denotes the number of experts. collects the logits entering the router, with denoting the logit for token t and expert i. Here, is a hyperparameter controlling the regularization strength. The router z-loss drives the log-partition function of the router logits toward zero, which keeps the logits small in magnitude and the exponentiation numerically well-conditioned (a concern in reduced-precision training). It does not by itself constrain the gaps between logits: a sharply peaked routing distribution can have zero z-loss, so its benefit is the empirically observed reduction of training instabilities rather than a guarantee against extreme gating decisions. The authors of ST-MoE compare it against other stabilizers, including update clipping in the optimizer, and find that while both improve training stability, clipping degrades model quality whereas the z-loss does not. The total loss is then a sum of the prediction loss, the load balancing loss, and the z-loss.
Placement. The placement and frequency of MoE layers throughout the network architecture significantly impact both performance and efficiency. Early large-scale MoE Transformers placed MoE layers in every second layer, a pattern established by GShard [246] and followed by GLaM [86] and DeepSpeed-MoE [382], while ST-MoE [590] opted for a sparser distribution with MoE layers appearing once every four layers. DeepSpeed-MoE [382] studied the non-uniform distribution of experts and observed that it is preferable to have experts in the second half layers over the first half. The intuition behind this is that later layers are usually more specialized than the more general layers in the first half. Most recent open-weight MoE LLMs have since moved to denser integration, incorporating MoE layers in every Transformer block [68,206,320], often with the exception of the first one or a few layers, which are kept dense for stability.
Replacement of FFNs remains dominant. However, researchers have explored applying MoE-style routing to attention components. Mixture of Attention heads (MoA) [563] demonstrates the benefits of using MoE in the attention layer. SwitchHead [67] improves the mechanism to reduce the number of necessary matrix computations. Mixture of Sparse Attention (MoSA) [359] implements sparse attention as an expert choice routing mechanism for attention heads, so that each head processes only the tokens routed to it; its effect on the KV cache is discussed in Section 5.1. Routing has also been applied at the granularity of whole blocks: Mixture-of-Depths (MoD) [384] treats the entire block and the “empty” residual connection as the two routing options, allowing the model to dynamically allocate compute across tokens (see also Section 13). Widely deployed MoE LLMs such as DeepSeekMoE [68] and Mixtral [206] nevertheless keep their attention layers dense and apply expert routing only to the FFN.
The Fine-Grained Shared-Expert Paradigm.
The second development, introduced by DeepSeekMoE [68], reshapes the expert pool itself along two axes: a few experts are made shared and always active, and the routed experts are made fine-grained, that is, smaller and more numerous.
Shared Experts. A small number of experts are always active for every token. The intent is that they capture knowledge common to all tokens, so that the routed experts are freed to specialize and redundancy among them is reduced; DeepSeekMoE supports this with ablations in which isolating one shared expert improves most benchmarks at equal parameters and compute, replacing the shared expert by one more routed expert raises the Pile loss from 1.808 to 2.414, and disabling the top routed experts hurts DeepSeekMoE more than GShard, indicating lower redundancy among its routed experts [68]. This shared-plus-routed layout has since been adopted by DeepSeek-V2/V3 [73,269] and many other open-weight MoE LLMs (see Table 14).
Fine-Grained Experts. Although the MoE layer typically contains a modest number of large feed-forward experts, of which one or two are selected per token, fine-grained MoEs [68,236] spread the capacity over many small experts. Rather than allocating each token to one of a few monolithic experts, fine-grained designs subdivide the layer into a large number of small experts and activate several of them per token, which increases the number of distinct expert combinations available at a fixed FLOP budget; whether individual micro-experts specialize in narrowly defined functions is an empirical question that has been studied only in specific settings [236]. Krajewski et al. [236] extend the earlier dense-versus-sparse scaling laws to expert granularity and the training-token budget, and fine-grained expert configurations can improve the FLOPs-to-performance trade-off in the settings studied by DeepSeekMoE and Krajewski et al. [68,236].
Ultra-Sparse Experts as Memory. This line of work has revealed a close connection between MoEs and Product-Key Memory Networks (PKMs) [66,241], where expert selection can be viewed as sparse memory addressing. PKM-style routing mechanisms make it possible to efficiently index and activate extremely large expert pools, as demonstrated by PEER [153], which addresses over a million tiny experts using product-key retrieval and exhibits superior scaling behavior compared to dense and coarse-grained MoEs. Similarly, Monet [348] scales expert counts up to 262K per layer to induce highly specialized, near-monosemantic experts, and reports interpretability and targeted-editing results for this expert design. This perspective also connects MoEs to memory networks: the soft addressing in end-to-end memory networks [451] provides a general analogy, while sparse memory retrieval offers a closer counterpart to sparse expert selection [29,179,180]. Task-specific variants such as MoWE [84] further demonstrate that tying microexperts to individual vocabulary items effectively constructs large implicit memory stores that excel on knowledge-intensive tasks. Together with recent empirical scaling-law studies [236], these results suggest that increasing expert count while shrinking expert size is not merely an implementation detail, but a principled pathway toward more efficient, interpretable, and scalable model architectures.
Independently Trained Experts. In certain scenarios, experts are pre-trained independently on different datasets and combined in a later stage into a single MoE. This approach has been explored in several recent MoE models [251,437,452]. Gerstenberger et al.(2020)Gerstenberger, Irie, Golik, and Ney [118] additionally proposed to distill a large mixture of independently pre-trained models into a single compact model, following the spirit of Irie et al.(2018)Irie, Lei, Schlüter, and Ney [187].
Scale-Driven and Systems-Oriented Variants.
The third development relaxes two assumptions of the standard recipe once models reach production scale: that all experts are identical, and that the expert layer is a self-contained block whose communication and memory costs are taken as given.
Heterogeneous Experts. Although most practical implementations use identical neural network architectures for all experts within a layer to simplify implementation and hardware utilization, recent research explores heterogeneous experts with varying architectures or capacities. This heterogeneity can potentially capture diverse patterns in data better than homogeneous experts. Variations include HMoE [493], which combines experts of different sizes, and MoE++ [210], which incorporates zero-computation experts such as copying or zeroing an input. A related form of heterogeneity operates at the block level rather than among experts: Arctic [440] combines a dense residual Transformer with a parallel MoE branch of homogeneous experts, and other works treat skip connections as experts [384].
Communication- and Memory-Aware Designs. As MoE models have moved into production at the hundred-billion to trillion-parameter scale, architectural choices are increasingly driven by systems bottlenecks, chiefly the all-to-all communication of expert parallelism and the memory bandwidth consumed by loading expert weights. Shortcut-connected MoE (ScMoE) [37] restructures the block so that, via a shortcut connection, the routed experts of a layer process the representation of an earlier position in the block rather than the immediately preceding output. This decouples expert communication from its conventional sequential ordering and allows it to be overlapped, up to entirely, with the computation of the dense path. LongCat-Flash [474] adopts this shortcut-connected design at the 560B scale, combining it with zero-computation experts so that the compute spent per token can vary with token difficulty. Along the complementary axis of memory and communication volume, LatentMoE [90] projects each token from the hidden dimension into a smaller latent space in which both the routing payload and the expert computation reside, reducing expert weight loads and all-to-all traffic proportionally to the compression ratio; the savings are reinvested into a larger total number of experts and a higher top-k, improving accuracy per FLOP and per parameter at a similar serving cost. This latent-expert design has been adopted by the Nemotron 3 Super and Ultra models [334,335], and a similar latent MoE scheme is used in Kimi K3 [317] (see Table 14). Orthogonal to routing, the memory footprint of the expert weights themselves can be reduced after training; MC-MoE [178], for instance, applies expert-aware adaptive quantization and pruning for this purpose.
7.2. Future Directions
Despite rapid progress, several aspects of MoE design remain open:
- Routing Mechanisms: The diversity of routing mechanisms in recent MoE architectures suggests that there is still potential in improving the routing mechanism. Current approaches span from standard token-based routing [434] to expert choice routing [579], linear programming formulations [248], hashing [389], or uniform sampling [593]. Each method brings its own balance of computational speed, routing quality, and training stability, but the continuous emergence of new methods suggests there is still room for improvement. Future work could explore the combination of the strengths of existing approaches or the development of entirely new routing paradigms.
- Expert Placement across Layers: The optimal distribution of experts across different layers of deep neural networks remains an open question that warrants further investigation. Although current architectures often employ a uniform distribution of experts across layers as in [246], some work has been done in this direction. As discussed in Section 7.1, the PR-MoE design of DeepSpeed-MoE [382] puts more experts in the later layers. Brainformers [580] derive a stackable block found with evolutionary search that opposes the standard uniform distribution of experts. However, there is still limited understanding of how expert placement affects model performance and computational efficiency.
- Heterogeneous Experts: Heterogeneous experts, i.e., experts with different architectures, capacities, or specialized structural biases (see the early examples in Section 7.1), remain underexplored. While heterogeneous experts offer promising directions for specialization, they introduce significant systems-level challenges. Current efficient training and inference systems heavily rely on the homogeneity of experts for parallelization. Developing hardware-aware routing mechanisms and general systems that can efficiently train and serve heterogeneous experts remains an open problem.
8. Activation Functions
Activation functions are a cornerstone of neural network design, serving as the primary source of non-linearity that enables models to learn complex patterns beyond simple linear relationships [142]. In the context of LLMs, which are predominantly based on the Transformer architecture, the choice of activation function within the position-wise Feed-Forward Network (FFN) sub-layers has a profound impact on training dynamics, model performance, and computational efficiency [433]. While the multi-head attention mechanism is often credited with the Transformer’s success in capturing long-range dependencies, the FFN layers are increasingly understood to be the primary repositories of the model’s parametric knowledge [119]. Consequently, the activation function is not a mere implementation detail but a critical component that governs how this vast store of knowledge is accessed, processed, and transformed at each layer of the network.
8.1. Evolution of Activation Functions in LLMs
The following four developments summarize the evolution of activation functions in LLMs; their histories overlap rather than forming a strictly sequential progression. Table 7 compares the formulations and properties of the most common choices.
The Era of Rectification.
This period was dominated by the Rectified Linear Unit (ReLU) [105,106] and its direct descendants. ReLU is computationally simple and was used in the original Transformer proposed by Vaswani et al. [489]. Its shortcomings, however, notably the “dying ReLU” problem, spurred the development of numerous variants designed to introduce non-zero gradients for negative inputs. Besides ReLU, a family of variants was proposed, each aiming to introduce a small, non-zero gradient for negative inputs to keep neurons alive and learning. Leaky ReLU (LReLU) [284] was one of the earliest and simplest modifications, defined as , where is a small, fixed hyperparameter, such as 0.01. For positive inputs, it behaves identically to ReLU, but for negative inputs, it has a small, non-zero slope of . This “leak” ensures that neurons can recover even if their inputs become negative, as they will still receive a gradient signal. Parametric ReLU (PReLU) [151] extends the idea of Leaky ReLU by making the slope a learnable parameter rather than a fixed hyperparameter. This allows the network to adaptively learn the optimal leakage slope for each neuron or channel during training, providing greater flexibility. Exponential Linear Unit (ELU) [64] offers a more sophisticated solution, defined as if and if . Like LReLU and PReLU, ELU provides a non-zero gradient for negative inputs. However, it has the additional advantage that for negative inputs, the function saturates to a negative value, which can help push the mean of the neuron activations closer to zero. This zero-centering property can accelerate learning by addressing the biased gradient issue of standard ReLU.
Scaled Exponential Linear Unit (SELU) [231] has self-normalizing properties, pulling neuron activations toward a fixed point with zero mean and unit variance. This can theoretically eliminate the need for external normalization while ensuring stable gradient flow in the training of deep networks. However, the mathematical foundations of SELU rely on specific weight initializations and feed-forward architectures, which may be incompatible with the dot-product attention mechanisms used in modern LLMs.
The Transition to Smooth, Probabilistic Activations.
Following the era of rectification, the research community began to explore activation functions that moved beyond the piecewise-linear and non-smooth nature of ReLU and its variants. This led to the development of a new class of smooth, continuously differentiable functions, most notably the Gaussian Error Linear Unit (GELU) [156], Sigmoid Linear Unit (SiLU), introduced in the GELU paper and independently studied for reinforcement learning [92,156], and Swish [383]. GELU quickly gained prominence due to its strong empirical performance and elegant theoretical motivation. It is mathematically formulated as: , where is the cumulative distribution function (CDF) of the standard normal distribution. The core theoretical insight behind GELU is its connection to stochastic regularizers like Dropout [102,103,146,160,442]. The authors framed GELU as a way to bridge the gap between deterministic non-linearities (like ReLU) and stochastic regularization techniques. GELU can be interpreted as the expected value of a stochastic gating transformation that either keeps the input (the identity map) or sets it to zero. Specifically, the input is kept with probability and dropped otherwise, where denotes the standard normal CDF. Around the same time as GELU’s rise, Ramachandran et al. proposed another activation function named Swish [383]. Swish is defined by the remarkably simple formula: , where is the standard sigmoid function and may be fixed or learned. At , Swish is identical to SiLU [92,156,383]. The design of Swish [383] was inspired by the gating mechanisms used in recurrent architectures [117], where a sigmoid function acts as a gate to control information flow.
The Modern Paradigm of Gated Linear Units.
The evolution from smooth, self-gated functions like GELU [156], SiLU [92] and Swish [383] to the explicit gating mechanisms of the Gated Linear Unit (GLU) [71,117] family represents the most significant architectural shift in the FFN block since the modern quadratic Transformer. GLU adapted the multiplicative gating mechanism from LSTMs [117] for use in feed-forward networks. This paradigm, which introduces two parallel computational paths for content and gating, allows for a more powerful and dynamic form of information control. The seminal work [433] systematically demonstrated that integrating GLU variants into the Transformer FFN yields substantial performance improvements. This research was not merely about swapping one activation function for another; it introduced a third weight matrix, with a narrower intermediate dimension used to match the parameter and computation budgets of a two-matrix FFN. The robust empirical success of one particular variant, SwiGLU [433], has led to a remarkable convergence in the field, with multiple, independent, state-of-the-art LLMs from leading research labs adopting it as their standard [20,30,295]. This widespread consensus underscores the profound impact of GLU-based activations and solidifies their position as the current state of the art.
Scale-Driven Revivals and Stability-Oriented Variants.
Despite the dominance of SwiGLU, the demands of large-scale training have recently motivated two pragmatic departures from this consensus. The first is the revival of Squared ReLU (SqReLU), defined as , which was selected through evolutionary architecture search in Primer [441]. SqReLU retains the sparsity-inducing rectification of ReLU while its quadratic positive branch provides a stronger, higher-order non-linearity; moreover, unlike GLU variants, it requires only two rather than three FFN weight matrices, freeing the parameter budget for a wider intermediate dimension. These properties have led to its adoption in the hybrid Mamba-Transformer Nemotron-H and Nemotron 3 families [330,331]. The second departure addresses numerical robustness rather than expressiveness: since the linear branches of SwiGLU are unbounded, rare but extreme activation values can exceed the limited dynamic range of the low-precision formats used in modern training and inference. Clamped SwiGLU limits these pre-activations asymmetrically. In the GPT-OSS reference implementation and MiniMax-M3 configuration [305,337,339], the gate branch is capped above at 7, while the value (up) branch is clipped to . With and , the intermediate output is , followed by the output projection. Frontier models also continue to introduce new gated units of their own, such as the SiTU-GLU channel-mixing layer of Kimi K3 [317] (see Table 14). Both trends illustrate that at the current scale of LLMs, the choice of activation function is increasingly co-determined by systems considerations, such as parameter allocation and numerical precision, rather than by task accuracy alone.
8.2. Future Directions
The widespread adoption of SwiGLU [433] reflects strong empirical results for this gated FFN design. However, the emergence of scale-dependent challenges and the renewed interest in the efficiency of sparse activations suggest that the search is far from over. The future of non-linearity in LLMs is unlikely to be a “one-size-fits-all” solution. Instead, we are likely moving towards a more heterogeneous and adaptive landscape. Future research may focus on:
- Task- and Layer-Specific Activations: Models may employ different activation functions in different layers or for different tasks, potentially learned automatically through methods like evolutionary search.
- Hardware-Aware Design: The choice of activation function will be increasingly co-designed with hardware accelerators and numerical formats in mind, balancing peak theoretical performance with practical deployment constraints.
- Principled Discovery: As our theoretical understanding of deep learning matures, new activation functions may be derived from first principles, such as information theory or dynamical systems, moving beyond purely empirical or heuristic-driven design.
- Application in Other Modules: This RNN-era gating idea [166,167] has not only flourished in Transformer FFNs as gated activations, but could also be applied to other parts of the architecture. For example, Self-Adjust Softmax [576] uses gating to modulate the Softmax output so that strict normalization is not required, increasing expressiveness, while Gated Attention [368] applies gating to the attention mechanism to improve the distribution of attention outputs. These works illustrate attempts to extend gated-activation ideas beyond FFNs to other modules (see also the discussion of Gated Attention in Section 9.1).
9. Normalization and Residual Connections
In addition to fundamental components such as attention mechanisms and feed-forward networks within the Transformer architecture, two critical elements that significantly enhance the performance and training stability of Transformers are normalization and residual connections. Normalization techniques, such as layer normalization [13], rescale the activations entering or leaving each sub-layer, which improves the conditioning of optimization. Residual connections [152,444], whose additive identity path was anticipated across time by the constant error carousel of LSTM [167], facilitate the gradient flow through the network, effectively mitigating challenges such as vanishing gradients in training very deep neural networks [152,443]. In particular, gated skip connections across depth were introduced by Highway Networks [444]; the ungated special case popularized by ResNets [152] is what is now incorporated into every sub-layer of modern Transformer architectures.
9.1. Normalization Methods
BatchNorm is an influential normalization method [183], which, although effective in certain contexts, posed challenges for sequential data due to its dependence on batch statistics. This limitation spurred the development of alternative methods that were better suited for language tasks. LayerNorm [13] addresses the limitations of BatchNorm by normalizing across features within a single data sample. For a Transformer, it computes statistics across the features of each token. Before the learned affine transformation, the normalized features have zero mean and variance close to one, with the exact variance affected by the numerical stabilizer . RMSNorm [555] simplifies LayerNorm by omitting the mean subtraction step. It normalizes activations by their root mean square (RMS) value, reducing computational overhead while maintaining performance. RMSNorm has been particularly effective in training deep Transformer models, offering a balance between simplicity and efficacy. Non-Parametric LayerNorm, studied by Xu et al. [526] under the name LayerNorm-simple and adopted by the first OLMo models [132], modifies the standard LayerNorm by removing the learnable gain and bias, focusing solely on normalizing the activations without scaling or shifting. Xu et al. found that the learnable parameters contribute little to LayerNorm’s benefit and can increase overfitting, so this simplification reduces parameters and computation at little cost, although it removes the model’s ability to rescale normalized features per dimension. As shown in Table 8, these methods have been widely applied to popular LLMs.
Apart from the above techniques that are used in recent LLMs, there are alternative approaches aimed at optimizing language modeling performance. CRMSNorm [207] introduces a compression mechanism that enhances efficiency while retaining the advantages of RMSNorm, thereby reducing the computational burden and making it particularly suitable for large-scale language models. WeightNorm [395] reparameterizes weight vectors to decouple their magnitude from their direction. This technique accelerates convergence by controlling the norm of the weights, resulting in a more stable and efficient training process. ScaleNorm [328] normalizes activation vectors by their norm and then scales them by a learned parameter. SphereNorm [273] is a batch-agnostic normalization method that constrains features to a unit hypersphere via angular projection. Its normalization does not depend on batch statistics, avoiding this source of sensitivity to batch size. This geometric approach inherently bounds outputs and effectively mitigates covariate shift in deep networks. These aforementioned methods offer additional perspectives on achieving training stability while simultaneously enhancing performance.
Beyond normalizing the inputs or outputs of entire sublayers, normalization can also be applied inside the attention module to directly control the scale of attention logits. QK-Norm [158] normalizes the query and key vectors immediately before their dot product, so that each logit becomes a cosine similarity multiplied by a learnable scale; this removes the uncontrolled growth of logits with the query and key norms and makes the softmax less prone to saturating into low-entropy, near one-hot distributions, without ruling them out, since the learnable scale (or the gain of a LayerNorm/RMSNorm variant) can still make the bounded logits large. Originally proposed with normalization and a learnable temperature to stabilize low-resource machine translation [158], the technique was revived at scale when applying LayerNorm to queries and keys was found to eliminate the uncontrolled growth of attention logits that destabilized the training of ViT-22B [78], an instability later reproduced and analyzed systematically in small-scale proxy studies [511]. In modern LLMs, the variant that applies RMSNorm to queries and keys per head has become a common stability component, adopted by OLMo 2 [336], Qwen3 [371], Gemma 3 [126], and GLM-4.5 [479], among others; an asymmetric variant that normalizes only the keys (K-Norm) has also been explored [181]. Since the normalization discards the norms of individual queries and keys (a loss of information that the original paper argues does not sacrifice expressivity), the practical trade-off is a constraint on the attention logits in exchange for a substantially enlarged stable region of training hyperparameters. A related stabilizer acts on the attention output rather than on its logits: Gated Attention [368] applies a query-dependent, head-specific sigmoid gate to the output of scaled dot-product attention. The gate inserts a non-linearity between two otherwise consecutive linear maps and yields input-dependent sparsity, which the authors show removes attention sinks and improves training stability; it has been adopted by Qwen3-Next [477] (see Table 14).
9.2. Combinations of Normalizations and Residual Connections
The integration of normalization techniques and residual connections is pivotal in the architecture of LLMs. The specific arrangement of these components significantly influences the training dynamics and overall model performance [523]. A critical aspect to consider is the “seesaw effect” between gradient vanishing and representation collapse. This effect highlights the delicate balance required: while certain configurations may mitigate gradient vanishing, they can inadvertently lead to representation collapse, and vice versa [503,583,584]. Achieving an optimal configuration is essential for effective and efficient model training.
The original Transformer architecture [489] utilized the Post-LayerNorm (Post-LN) strategy, where layer normalization is applied subsequent to the residual connections. Although this approach proved effective in certain scenarios, it becomes unstable as depth grows: Xiong et al. [523] showed that at initialization the gradients of the parameters near the output are large under Post-LN, which is why a learning-rate warm-up stage is required, and Wang et al. [496] attribute the instability of deep Post-LN models to exploding model updates. The Pre-LayerNorm (Pre-LN) configuration, which applies layer normalization to the input of each sub-layer so that the residual stream itself is never normalized, had already been adopted in practice by GPT-2 [379], the Sparse Transformer [56], and deep NMT models [500] when Xiong et al. [523] provided a theoretical analysis of it, showing that Pre-LN keeps the gradient scale well behaved at initialization and can therefore be trained without warm-up and with larger learning rates.
DeepNorm [496], a stabilized variant of Post-LN, was subsequently proposed to enable the training of extremely deep Transformers. It achieves this by a simple yet effective architectural modification: scaling the residual connection by a factor and down-scaling the initial weights by . Under its analysis (SGD updates with the proposed and ), this bounds the magnitude of the model update, , by a constant; it is the change of the network’s output, not the parameter update itself, that is controlled. DeepNorm thereby combines the strong performance of Post-LN with the training stability of Pre-LN.
To further augment training stability, the Sandwich-LN [81] technique was introduced, which incorporates an additional layer normalization operation at the end of each residual branch, effectively “sandwiching” the sub-layer between two normalization operations. CogView reports that the additional normalization helps stabilize large-scale training [81]. Another notable modification is the “norm-after” (residual post-norm) strategy adopted by the OLMo-2 model [336], following earlier use in Swin Transformer V2 [276] and Chameleon [42]. It normalizes the output of each attention and feed-forward sub-layer before it is added to the residual stream, i.e., ; unlike Post-LN, the residual stream itself is never normalized, and unlike Pre-LN, the contribution of each sub-layer is bounded. Experimental results in OLMo-2 suggest that this arrangement reduces gradient-norm spikes, thereby enhancing training stability. Figure 12 presents a diagram illustrating these methods.
To further enhance the equilibrium between gradient flow and representation integrity, recent studies have introduced normalization and residual propagation strategies for Transformer architectures. The Mix-LN method [252] combines the strengths of Pre-LN and Post-LN by applying Post-LN in the earlier layers and transitioning to Pre-LN in the deeper layers. This configuration is reported to yield more uniform gradient norms across the network, thereby improving training stability and overall performance. Similarly, HybridNorm [589] integrates the advantages of both normalization approaches from an intra-layer perspective by employing Query-Key-Value (QKV) normalization within the attention mechanism and Post-LN in the feed-forward network of each Transformer block. This design not only stabilizes training but also enhances performance, particularly in the context of LLMs. Additionally, Hyper-Connections [583] offer an alternative to traditional residual connections, enabling the network to dynamically adjust the strength of connections between features at varying depths. This flexibility effectively addresses the limitations associated with fixed residual connections, thereby mitigating the seesaw effect and achieving a more balanced gradient flow while preserving representation richness. Based on Hyper-Connections [583], DeepSeek proposes Manifold-Constrained Hyper-Connections (mHC) [522], which stabilizes training of large-scale networks by constraining the learned mixing matrices of the residual streams to be doubly stochastic (i.e., to lie in the Birkhoff polytope), enforced via Sinkhorn normalization. An exactly doubly stochastic residual-mixing matrix is a convex combination of permutation matrices and is non-expansive in the Euclidean norm: . This bounds amplification by residual mixing, but does not imply norm preservation or an identity map, and does not bound the Jacobian of the entire nonlinear layer. Finite Sinkhorn iterations approximate the doubly stochastic constraint. In the reported experiments, mHC [522] reduces training instabilities relative to unconstrained Hyper-Connections [583]; it has been adopted in models such as DeepSeek-V4 [76], and Hy4 [483] likewise uses a multi-stream hyper-connection variant (iHC, with four residual streams; see Table 14). Attention Residuals (AttnRes) [472] generalize the residual connection in a different direction. The standard Pre-LN residual stream accumulates all preceding layer outputs with fixed unit weights, which causes uncontrolled hidden-state growth with depth and progressively dilutes the contribution of each individual layer. AttnRes replaces this fixed accumulation with softmax attention over the outputs of preceding layers, allowing each layer to selectively aggregate earlier representations with learned, input-dependent weights. To keep the memory and communication overhead tractable at scale, the block-wise variant Block AttnRes partitions layers into blocks and attends over block-level representations, making the scheme a practical drop-in replacement for standard residual connections. Integrated into the Kimi Linear architecture [471], AttnRes yields more uniform output magnitudes and gradient distributions across depth, and it has since been adopted at scale by Kimi K3 [317].
9.3. Future Directions
The evolution from Post-LN [489] to Pre-LN [379,523], and further to advanced configurations such as Mix-LN [252], Sandwich-LN [81], and Hyper-Connections [583], demonstrates the continuous efforts to address the inherent challenges of gradient vanishing and representation collapse. Each design innovation aims to strike a balance between maintaining stable gradient flow and preserving expressive representation capabilities, thus optimizing model performance across different scales and depths.
While recent approaches have made significant progress, there remain challenges and opportunities for further exploration:
- Dynamic and Adaptive Normalization: Future architectures could benefit from adaptive normalization mechanisms that adjust dynamically to the training stage or model depth. For instance, utilizing Mix-LN [252] principles with layer-wise learned hyperparameters might improve gradient stability and feature diversity.
- Theoretical Insights into the Seesaw Effect: Further theoretical studies are needed to model and quantify the seesaw effect more rigorously, providing insights into how normalization and residual connections interact at scale [583]. This could inform principled designs rather than relying solely on empirical tuning.
- Beyond Layer Normalization: Alternative normalization methods such as GroupNorm [514] and ScaleNorm [328], as well as normalization-free designs, could be revisited in the context of modern LLMs. Dynamic Tanh (DyT) [585] replaces every normalization layer by an element-wise with a learnable scale , removing normalization as an operation. nGPT [281] takes the opposite route: it removes LayerNorm/RMSNorm but re-normalizes the hidden state to unit norm after every attention and MLP update and normalizes the embedding dimension of all weight matrices, so normalization is not eliminated but turned into parameter-free norm constraints applied throughout the residual stream. Whether either design retains its benefits at LLM scale remains an open question.
10. Positional Encoding
As introduced in Section 4.3, the Positional Encoding (PE) module supplements token representations with explicit position information, which the permutation-equivariant attention operation cannot otherwise access (causal masking breaks this symmetry and lets decoder-only models recover some positional information implicitly, as discussed in Section 10.4, but explicit PE remains the norm). Beyond this foundational role, the design of PE strongly influences several key dimensions of model capability, including length generalization (the capacity to process sequences longer than those observed during training), expressiveness (how position interacts with content, e.g., content–position disentanglement and content-adaptive positions), and architectural compatibility (integration with diverse Transformer variants and data modalities). These broader considerations have motivated a steady evolution of positional encoding strategies—from early absolute formulations to more advanced relative and hybrid approaches.
In this section, we trace this progression, beginning with Absolute Positional Encoding (APE) and advancing through Relative Positional Encoding (RPE) and subsequent innovations, highlighting how each paradigm addresses distinct facets of the positional encoding challenge.
10.1. Absolute Positional Encoding
The first solutions to the position problem involved Absolute Positional Encoding (APE), where each position in the sequence is mapped to a unique representation. This can be achieved through either a fixed, deterministic function or through learnable parameters. Table 9 summarizes the formulations of representative APE methods.
Sinusoidal APE.
As introduced in Section 4.3, Vaswani et al. [489] introduced a fixed PE method that uses sine and cosine functions of varying frequencies to generate a unique positional vector for each position. By assigning different frequencies to each dimension of the embedding vector, this method produces a unique d-dimensional vector for each absolute position in the sequence.
This approach is deterministic and introduces no learned positional parameters. Its sinusoidal values remain bounded, and for any fixed offset k, the encoding at position is a linear transformation of the encoding at position i. The original Transformer paper [489] argued that this structure could facilitate learning relative-position relationships and extrapolation to longer sequences. The encoding can be evaluated beyond the training range, but this mathematical property alone does not guarantee that a trained model will maintain its quality at those lengths.
Learned APE.
An alternative to the fixed sinusoidal function is to treat the positional embeddings as learnable parameters, analogous to how semantic word embeddings are learned. In this scheme, a lookup table or embedding matrix is created. Each row of this matrix corresponds to a positional vector that is initialized randomly and then updated via backpropagation during the model’s training process. This approach has been adopted by several prominent models, including BERT [80], GPT-2 [379], and GPT-3 [34].
The primary advantage of learnable APE is that the positional vectors can adapt to patterns in the training data. A finite learned lookup table, however, defines embeddings only up to its configured maximum position. Without an extension mechanism, it cannot provide vectors beyond that range; extending the table or interpolating its entries requires an additional design choice and does not by itself guarantee extrapolation quality.
Other APE Variants.
To overcome the generalization issues of both fixed and learnable APEs, a family of methods has emerged that augments the encoding process during training. These techniques typically build upon the sinusoidal formulation but introduce forms of randomization to prevent the model from overfitting to absolute positional cues. SHAPE [230] introduces a simple yet effective augmentation. During each training step, all position indices within a sequence are shifted by a single, randomly sampled offset k. This prevents the model from memorizing that a specific feature always occurs at a fixed position (e.g., position 5) and instead encourages it to learn patterns based on relative distances between tokens, which remain invariant under the global shift. CAPE [264] applies a richer set of augmentations to continuous position values. In addition to a global shift similar to SHAPE, CAPE introduces a local shift, where each position is perturbed by a different random value, and global scaling, where all positions are multiplied by a random scalar. These combined augmentations further discourage the model from memorizing absolute positions or specific relative distances, promoting better generalization.
Another line of research reconceptualizes position not as a discrete index but as a continuous variable, aiming to generate positional representations that vary more smoothly. Complex-Valued Embeddings [495] extend the embedding space into the complex plane, modeling the embedding of a word as a continuous function of its position. Each coordinate of a word embedding is parameterized as with word-specific amplitude r, frequency , and initial phase , so that the amplitude can encode semantic information while the phase component, which rotates with position , encodes positional information. This provides a principled mathematical framework for ensuring that word representations evolve smoothly as their position changes. FLOATER [275] models the sequence of positional encodings as the output of a continuous dynamical system, leveraging the framework of Neural Ordinary Differential Equations (ODEs). Instead of learning a static embedding for each position, FLOATER learns the dynamics of change—a “latent force” represented by a neural network—that governs the evolution of the position vector along the sequence. This is formulated as an integral equation: . The learned dynamics provide a way to generate positional vectors beyond a finite lookup table; the ability to evaluate this encoding at arbitrary positions does not guarantee model quality at arbitrary sequence lengths.
10.2. Relative Positional Encoding
Relative Positional Encoding (RPE) models positional relationships between tokens in terms of their relative displacement rather than their absolute coordinates. The idea of encoding relative rather than absolute time has early roots in neural models for representing compressed event streams, where a higher-level network received the time elapsed since the last unpredictable event as input [409]. For self-attention, relative position representations were introduced by Shaw et al. [431], who add learned embeddings of the clipped relative distance to the keys and values inside the attention computation. Subsequent designs include additive relative biases, position-dependent rotations, and content-conditioned positional mechanisms. In modern Transformers, RPE is typically incorporated directly into the self-attention computation, allowing the interaction between a query at position i and a key at position j to depend explicitly on their relative position.
Compared with APE, which associates positional information with individual token representations, RPE treats position primarily as a property of token interactions. Different methods realize this principle in different ways, ranging from additive modifications of attention logits to transformations of query and key representations. Table 10 summarizes representative RPE methods, their attention formulations, adaptivity, and learnable components. We next discuss these approaches according to how positional information is incorporated into the attention mechanism.
Additive RPE.
One major family of RPE methods incorporates positional information by adding position-dependent terms to the attention logits. An early representative is Transformer-XL [69], which reformulates the relative position representations of Shaw et al. [431] so that they can be reused across segments in its segment-level recurrence mechanism. Its relative attention score is written as
where is a fixed sinusoidal encoding of the relative displacement, is a learnable projection matrix for the relative positional representation, and and are learnable global content and positional bias vectors. This decomposition separates content-based and position-dependent interactions and became an influential formulation for incorporating relative position directly into attention logits.
Subsequent methods simplify this idea by expressing positional effects as an additive bias,
with different choices of corresponding to different positional inductive biases and degrees of adaptivity. T5 [381], for example, uses a learned scalar bias , typically shared over buckets of relative distances. ALiBi [361] removes learned positional parameters altogether and imposes a fixed linear penalty that increases with token distance. KERPLE [54] and Sandwich [55] generalize this distance-based view through more flexible kernel-inspired bias functions.
More recent methods further increase the flexibility of the positional bias. FIRE [254] parameterizes the bias with a small learnable function of normalized relative distance, allowing the bias profile to adapt rather than being fixed or discretized. DAPE [575] extends this direction by conditioning the positional bias not only on relative position but also on the current query–key interactions, thereby introducing content-adaptive positional modulation. CoPE [124] similarly moves beyond purely distance-based positioning by deriving contextual positions from attention interactions themselves. Inkling [484] instantiates this content-adaptive additive design at scale: each token emits an extra relative feature alongside its query, key, and value, which mixes a shared bank of learnable bias-vs-distance profiles into a per-pair bias , so that the bias-vs-distance curve is dynamically composed per query token rather than fixed across the input; the bias is applied only within a maximal encoded distance , beyond which no positional term is imposed.
Transform-based RPE.
A second family of RPE methods incorporates positional information by transforming or reparameterizing the query and key representations before their interaction, rather than by adding a separate positional bias to the attention logits. In general, these methods make the query–key interaction position dependent through transformations associated with their respective positions.
Rotary Position Embedding (RoPE) [450] is the most prominent example of this approach and has been widely adopted in modern LLMs, including the LLaMA family [295,296,486,487]. RoPE encodes position by applying position-dependent rotations to the query and key vectors. Let and denote the rotation matrices associated with positions i and j, respectively. Following our row-vector convention, the transformed query and key are and , and their interaction satisfies
where follows from the composition property of rotation matrices. Thus, although RoPE applies an absolute position-dependent transformation to each query and key individually, their interaction depends on the relative displacement . In this way, relative positional structure is incorporated directly into the query–key interaction.
A complementary interpretation is obtained by viewing each two-dimensional RoPE component in polar coordinates. Let and denote the c-th two-dimensional components of the query and key, where . Their contribution to the attention score can be written as
where and denote the corresponding magnitudes, and their content-dependent phases, and the positional frequency. This expression reveals that the relative positional phase and the content-dependent phase difference jointly determine the angular component of the interaction. Content therefore affects the attention score both through the magnitudes and through the same phase in which relative position is encoded. This coupling has been characterized as content–position entanglement [127].
Polar Coordinate Positional Embeddings (PoPE) [127] modify this representation to separate the roles of content and position more explicitly. Rather than retaining the content-dependent phases of the original query and key vectors, PoPE maps each scalar component to a non-negative magnitude while constructing its phase from positional information. This yields complex-valued representations and , with indexing their complex components. The resulting attention logits take the form
where and encode content-dependent magnitudes, is the positional frequency, and is a learnable phase shift.
By removing the content-dependent phase from the angular interaction, PoPE assigns more distinct roles to the two factors: content primarily modulates the magnitude of each component’s contribution, whereas positional information determines its phase. This yields a more explicit separation between content and position than in standard RoPE. This formulation has been shown to improve zero-shot length extrapolation over RoPE [127], although its direct complex-valued implementation introduces additional memory and bandwidth overhead; the original work further proposes an efficient implementation to mitigate this cost.
Beyond these formulations, several methods extend or reinterpret the positional transformations introduced by RoPE. XPOS [456] augments the rotary transformation with exponential scaling to improve extrapolation beyond the sequence lengths observed during training. FoPE [175] approaches positional encoding from a frequency-domain perspective, using Fourier decomposition to regulate undesirable frequency components and improve length generalization. As we will introduce in the next section, more recent work has also explored hybrid schemes that combine rotary transformations with dynamically adjusted positional representations, allowing the encoding strategy to adapt to different context lengths or input conditions.
10.3. Context Extension via Positional Adaptation
Generalizing beyond the sequence lengths observed during training remains a fundamental challenge for Transformers, with positional encoding playing an important role in determining such length generalization behavior [221,361]. Beyond designing positional encodings with stronger intrinsic length generalization, another line of work focuses on extending the usable context range of pretrained models by adapting their positional mechanisms. These methods modify how pretrained positional representations or indices are interpreted beyond the original training range, for example through interpolation, rescaling, remapping, or restructuring of relative positions. Depending on whether additional parameter updates are required, these approaches can be broadly divided into training-based and training-free positional adaptation.
Training-Based.
Positional Interpolation (PI) [48] provides a simple and effective approach to extending the context range of pretrained RoPE-based models. It linearly rescales longer positions into the pretrained positional range and then performs lightweight fine-tuning. A complementary lever is the RoPE base frequency: “NTK-aware” scaling and adjusted base frequency (ABF) [355,524] enlarge the base (e.g., from to ), which lowers all rotation frequencies but affects the low-frequency dimensions the most while leaving high-frequency dimensions almost intact, and therefore extends context more gracefully than uniform interpolation for the same fine-tuning budget. Building on the general idea of adapting RoPE through positional rescaling, subsequent methods have developed more flexible scaling strategies, including YaRN [355], LongRoPE [82], and CLEX [45]. LongLoRA [51] targets the cost of the fine-tuning step rather than the positional mapping itself: it combines PI-style extension with shifted sparse attention during training and parameter-efficient LoRA updates, so that extending a 7B model to a 100K context becomes affordable on a single machine. YaRN [355] combines “NTK-by-parts” interpolation, which rescales high- and low-frequency RoPE dimensions unevenly so that the dimensions encoding local relative order are left untouched, with an attention temperature implemented directly as a scaling of the rotary embeddings; with a small amount of fine-tuning on long sequences, it extends LLaMA models to context lengths far beyond their original training length while requiring fewer fine-tuning tokens than earlier interpolation methods, and its authors report stronger perplexity and retrieval results than those methods at equal extension ratios. LongRoPE [82] further exploits non-uniform patterns across RoPE dimensions and token positions through an efficient search mechanism, which improves fine-tuning initialization and enables an 8× context extension without fine-tuning in its first stage. The method further implements a progressive extension strategy, first fine-tuning for 256K context and then applying a second round of non-uniform positional interpolation search to reach 2048K without additional fine-tuning. CLEX [45] generalizes existing positional encoding scaling methods by modeling continuous dynamics through ordinary differential equations applied to the length scaling factor. This formulation overcomes the limitations of length-specific approaches and naturally extends to context lengths exceeding the training sequence length.
Training-Free.
Training-free positional adaptation extends the usable context range of pretrained models by modifying positional assignments or position-dependent attention patterns at inference time, without additional parameter updates. Dual Chunk Attention (DCA, also known as ChunkLLaMA) [7] keeps the original RoPE embeddings but redesigns the relative position matrix: attention over a long sequence is decomposed into intra-chunk, inter-chunk, and successive-chunk components so that every relative distance falls within the pre-trained range, while integrating seamlessly with Flash Attention. Being orthogonal to interpolation-based methods such as PI and YaRN, DCA can be stacked with them, as done in Qwen2 [533] to reach a 128K context window. Self-Extend [209] similarly exploits positional patterns already learned by the pretrained model. It introduces bi-level attention, using neighbor attention to preserve precise relative positions for nearby tokens while grouping distant positions so that otherwise unseen relative distances are mapped to values within the pretrained range. Mesa-Extrapolation [283] processes the sequence as chunks with a triangular attention pattern: each middle chunk attends only to the first chunk and itself, with its positions re-based to directly follow the first chunk so that the encoded distances stay within the trained range; the last chunk attends to all previous tokens using Stair PE. STRING [8] shifts well-trained positions to overwrite the original ineffective positions during inference, enhancing performance within their existing training lengths. The comparison of training-free positional adaptation methods is presented in Figure 13.
10.4. Future Directions
The journey from absolute to relative and implicit positional awareness points toward several promising research trajectories:
- Content-Aware Positioning: Future methods may derive more of their positional behavior from sequence content. CoPE [124] makes positional increments input-dependent, whereas DAPE [575] combines attention scores and positional biases through a learned transformation. These distinct mechanisms suggest ways to condition positional contributions on content.
- Implicit Positional Information (NoPE): The effectiveness of architectures that removed PE (NoPE) in Transformers challenges the necessity of explicit positional signals [188,497]. Notably, this observation dates back to early deep autoregressive LMs, where removing PE matched or improved performance [184,188]. These findings suggest that causal masking and successive nonlinear transformations may themselves provide sufficient structural cues for models to infer aspects of token order and relative position. A deeper understanding of when and how such implicit positional awareness emerges could inform architectures that rely less on manually specified positional inductive biases, which potentially result in more efficient and flexible models.
- Hybrid Positional Architectures: Explicit and implicit positional mechanisms need not be mutually exclusive. Recent architectures instead combine different positional inductive biases across the network. LLaMA 4’s iRoPE [297], for example, interleaves RoPE-equipped local-attention layers with NoPE global-attention layers, while related work explores hybrid RoPE–NoPE designs [534]. These results motivate architectures in which positional mechanisms vary across layers, heads, or attention pathways, allowing different components to specialize in local positional sensitivity or long-range interaction rather than imposing a single positional scheme uniformly throughout the model.
- Positional Encodings for Complex Data Structures: As Transformers are increasingly applied to non-sequential data such as graphs, 3D medical images, and multi-view scenes, the development of principled positional encodings for these complex, multi-dimensional structures remains a critical and active area of research.
Overall, the evolution of positional encoding reflects a broader shift from assigning fixed coordinates to individual tokens toward modeling position as a flexible inductive bias over token interactions. As context windows continue to expand and positional mechanisms become more adaptive, a central question is no longer simply how to encode position, but when, where, and to what extent positional information should be imposed by the architecture.
11. Tokenization
Tokenization is a fundamental process that segments text into discrete units known as tokens, which can include words, phrases, or individual symbols. This method serves as a critical first step in many linguistic and computational processes, facilitating subsequent complex modules. The granularity of these tokens can vary, ranging from bytes and characters to words and sentences. The choice of tokenization strategy significantly impacts a model’s performance, efficiency, and its ability to handle diverse languages and linguistic structures [358]. In this section, we provide an overview of tokenization approaches, including tokenizers with different granularities [299], and introduce research focused on identifying the optimal vocabulary size for effective tokenization.
11.1. Tokenizers with Different Granularities
Tokenizers differ primarily in the granularity of the units they produce; Table 11 compares the resulting trade-offs, and the following paragraphs describe each level in turn.
Character-Level Tokenizer.
A character-level tokenizer splits text into individual characters, treating each as a token [129,218,422,459,562]. For example, “hello” is tokenized as [“h”, “e”, “l”, “l”, “o”]. The vocabulary is small, typically including letters, numbers, punctuation, and spaces. Character-level tokenizers avoid the out-of-vocabulary (OOV) issue [349] for text whose characters are covered by the supported alphabet. Nevertheless, they may result in longer sequences, which increases computational complexity, and can struggle with capturing semantic meaning effectively.
Word-Level Tokenizer.
Word-level tokenizers treat each word as a token [27,301]. For example, “Hello, world!” becomes [“Hello”, “,”, “world”, “!”]. This method relies on a predefined vocabulary, with each word assigned a unique ID. It aligns well with human linguistic intuition and is effective for languages with clear word boundaries. However, it struggles with OOV words, typos, and morphological variations, often requiring a large vocabulary to account for all forms. While simple and intuitive, word-level tokenization is inefficient for morphologically rich languages and sensitive to spelling errors.
Subword-Level Tokenizer.
Subword tokenizers split text into units smaller than words but larger than characters, balancing efficiency and vocabulary size [303]. For example, “unbelievable” may be tokenized into [“un”, “believ”, “able”]. Byte Pair Encoding (BPE) originated as a byte-based compression algorithm [107]. Its adaptation to subword tokenization [428] starts from characters and repeatedly merges frequent adjacent symbol pairs to construct a subword vocabulary. However, modern LLMs (e.g., GPT-2 [379]) typically utilize Byte-Level BPE (BBPE), which operates on UTF-8 bytes rather than Unicode characters. This modification ensures that any string can be processed without introducing out-of-vocabulary (OOV) tokens, as the model can fall back to individual bytes for unknown sequences. This approach allows the model to handle rare words effectively while common words are represented as single tokens. WordPiece [424,513] iteratively merges units that maximize the likelihood of the training data when added to the vocabulary. The Unigram language model [238] offers an alternative approach to subword segmentation based on a probabilistic framework. Unlike BPE, which applies deterministic greedy merging, the Unigram model assumes that each subword occurs independently. SentencePiece [239] packages BPE and Unigram training and segmentation in a language-independent toolkit that operates on raw text without whitespace pre-tokenization, which makes it suitable for languages without explicit word delimiters and is the implementation behind many LLM tokenizers. More recently, the Over-Tokenized Transformer (OTT) [176] leaves the tokenizer unchanged but enlarges the input vocabulary with hashed multi-gram embeddings while keeping the output vocabulary fixed; we discuss it together with other vocabulary-scaling strategies in Section 11.2.
Tokenization-Free Methods.
Tokenization-free methods bypass predefined subword vocabularies by processing raw text at the character or byte level. Early works laid the foundation for this paradigm: Gillick et al. [121] demonstrated multilingual language processing directly from byte sequences, and Irie et al. [186] studied byte-level CNN language models for low-resource speech recognition. A related but distinct line of character-input models, such as the character-aware language model of Kim et al. [225] and CharacterBERT [89], composes word-level representations from characters (e.g., via CNN-based composition) but still relies on word-level segmentation, and in Kim et al.’s case on a word-level output vocabulary. Byte-level approaches cover any byte sequence, while character-level coverage depends on the supported alphabet; both can reduce OOV issues at the tokenization stage and can improve robustness to noise, but they typically increase sequence length and computation. To make tokenization-free processing practical for Transformers, several architectures have been proposed. ByT5 [531] trains a T5-style Transformer directly on bytes (byte-to-byte), reporting competitive results with higher computational cost. CANINE [63] targets efficiency with a tokenization-free encoder that uses hashing-based embeddings and downsampling. Recent work explores hierarchical or adaptive compression: MEGABYTE [546] uses a multiscale (local/global) Transformer to model very long byte sequences; Byte Latent Transformer (BLT) [344] learns to represent text via variable-length byte patches (“latent tokens”); and MrT5 [216] applies dynamic token merging through a learned deletion gate that reduces the effective byte-sequence length.
11.2. Vocabulary Size
Current mainstream LLMs predominantly utilize subword-level tokenization methods. Historically, the vocabulary size () has been treated as a relatively static hyperparameter, typically constrained to the range of 32K to 64K tokens (e.g., 32K for LLaMA and LLaMA 2 [486,487]). Recent model families have moved to markedly larger vocabularies, such as 128K for LLaMA 3 [295], about 152K for the Qwen series [20,371], and 256K for Gemma [467] (see the Vocab. column of Table 13). This design choice reflects a fundamental trade-off between sequence efficiency and parameter efficiency. A larger vocabulary increases the information density per token, effectively compressing the sequence length and thereby mitigating the quadratic cost of the attention module. Conversely, increasing linearly expands the embedding and the final output projection matrices, leading to parameter bloat and exacerbating the Softmax bottleneck [543]. This expansion also imposes significant memory bandwidth constraints and increases the computational cost of the logit generation step. While earlier scaling laws prioritized model parameters and data volume, recent studies [176,464,544] revisit this trade-off, underscoring the intricate role of vocabulary size in achieving a balance between performance, computational efficiency, and multilingual capabilities. These findings suggest that standard vocabulary sizes may be suboptimal for modern compute budgets and advocate for more nuanced designs, such as dynamic adaptation, the decoupling of input and output vocabularies, and compute-optimal scaling strategies.
Recent investigations [464] have shown that the compute-optimal vocabulary size grows with the compute budget following a power law, but more slowly than the number of non-vocabulary parameters: larger models benefit from expanded vocabularies, yet the vocabulary-related parameters should take up a decreasing share of the parameter budget as models scale. Here vocabulary size counts token types, whereas a vocabulary matrix of hidden width d contains parameters; these are distinct scaling quantities. By training models ranging from 33 million to 3 billion parameters across various vocabulary configurations, they discovered the optimal vocabulary size is intrinsically linked to the compute resources available. The findings indicate that many existing LLMs utilize suboptimal vocabulary sizes, which may restrict their performance. For example, they predicted that the optimal vocabulary size for LLaMA-2-70B [487] should be at least 216K tokens, which is seven times larger than its current vocabulary size of 32K tokens.
Scaling up vocabulary size typically improves performance but often reduces computational efficiency. To address this, the Over-Tokenized Transformer (OTT) [176] proposes a decoupling of input and output vocabularies. This approach allows for the expansion of input vocabularies to leverage multi-gram tokens while maintaining a conventional output vocabulary; the over-encoding adds hashed n-gram embeddings to each existing token position, so the token sequence and its length are unchanged. A log-linear relationship between input vocabulary size and training loss is identified, demonstrating that increasing the input vocabulary size consistently enhances model performance across the model sizes studied (OLMo2 dense models from 151M to 1B parameters and OLMoE-style MoEs). Notably, the results suggest that utilizing a large input vocabulary can achieve performance levels comparable to those obtained by doubling the model size, thus providing a computationally efficient pathway for enhancing LLM capabilities. Similarly, the SCONE method [544] extends input embedding layers by incorporating embeddings for frequently occurring n-grams, enhancing the contextual representation of input tokens. This strategy allows for the scaling of embedding layers without significantly increasing computational costs during inference. By precomputing these embeddings and storing them in off-accelerator memory, SCONE ensures efficient inference while benefiting from an expanded vocabulary.
Another emerging strategy is dynamically adjusting vocabulary size to enhance model performance. Vocabulary Curriculum Learning (VCL) [545] modifies the vocabulary during pre-training based on the model’s learning progress. By alternating between entropy-guided vocabulary expansion and model optimization, VCL enables the model to develop transferable representations across different tokenization levels. This approach fosters a hierarchical token organization, where longer tokens encapsulate predictable content, while shorter tokens focus on complex, less predictable contexts.
11.3. Future Directions
The evolution of tokenization is shifting from static, heuristic-based preprocessing toward dynamic, architecture-aware methodologies. We identify three critical trajectories for next-generation designs:
- Compute-Optimal Vocabulary Scaling: Compute-optimal vocabulary scaling is emerging as a necessary extension of existing scaling laws. Future research must move beyond fixed vocabulary sizes, treating the vocabulary dimension as a hyperparameter co-optimized with model depth and width.
- Asymmetric Tokenization: The paradigm of asymmetric tokenization offers a pathway to reconcile the trade-off between encoding context and decoding latency. By decoupling input and output vocabularies, future architectures may combine massive multi-gram input vocabularies with compact output spaces for efficient generation. Whether such input vocabularies can also shorten the sequence is a separate and open question: current over-encoding enriches the representation at each position without merging tokens, so context compression would additionally require a segmentation or merging operator that neither OTT nor SCONE provides. This asymmetry invites novel architectural adaptations, such as specialized encoder-decoder interfaces that can translate between varying granularities of semantic units.
- Hierarchical Latent Tokenization: The convergence of token-based and token-free methods points toward hierarchical latent tokenization. Rather than choosing between rigid subwords and raw bytes, next-generation models will likely adopt hierarchical encoders that dynamically group bytes into learned, semantic patches, akin to Vision Transformers. This approach promises to retain the universality and robustness of byte-level processing while achieving the computational efficiency of subword models, ultimately enabling truly language-agnostic foundation models.
12. Multi-Token Prediction
Mainstream LLMs are trained with the next-token prediction (NTP) objective: given a prefix, the model learns to assign a probability distribution over the single next token, and generation proceeds autoregressively, one token per forward pass. Despite its simplicity and scalability, this paradigm suffers from two fundamental limitations. First, at inference time, decoding is strictly sequential, so each generated token requires a full forward pass over the model. At small batch sizes, decoding is often memory-bandwidth-bound: the arithmetic units remain underutilized while model weights and the KV cache are repeatedly loaded from memory, so per-token latency is dictated by memory traffic rather than by arithmetic [247,517]. Larger batches can increase arithmetic intensity and reduce the relative benefit of speculative decoding; the bottleneck also depends on context length, hardware, and implementation. Second, the NTP training signal is local and myopic, encouraging the model to latch onto local correlations and shortcut solutions rather than to plan for the future content of the sequence [14,123]. Multi-token prediction (MTP) addresses both issues by training the model to predict several future tokens at each position. Densifying the training signal in this way encourages representations that encode longer-horizon information, and the extra prediction capability can be reused at inference time to draft multiple tokens per forward pass. To realize this acceleration, MTP is typically paired with the draft-then-verify paradigm of speculative decoding [247,446]: the MTP predictions serve as cheap drafts of the next few tokens, which the model then verifies in a single parallel forward pass, amortizing the per-token memory traffic; with an appropriate acceptance rule the output distribution of the base model is preserved exactly. We classify MTP methods by how the K future predictions are factored: parallel heads that are conditionally independent given the backbone representation (Section 12.1), and sequential predictors that condition each step on preceding future tokens (Section 12.2). Joint pre-training versus retrofitting onto an existing checkpoint is an orthogonal choice of when the predictor is attached, not a third factorization. Both factorizations are consumed at inference through the same draft-then-verify procedure; methods whose main contribution is to this procedure rather than to the predictor form a separate group, inference integration (Section 12.3), which cuts across the two factorizations rather than adding a third.
Given a token sequence , we use K for the total training prediction horizon, including the next token. In the parallel-head formulation, MTP predicts at each position t:
which reduces to NTP when . Sequential predictors, described below, additionally condition on intermediate tokens and therefore use a different factorization. We denote their number of extra modules by D, giving for one module per additional position; inference rollout length is denoted separately by R and need not equal either count. The idea predates modern LLMs: blockwise parallel decoding [446] augments an autoregressive Transformer with auxiliary heads that propose the next k tokens in parallel, and ProphetNet [362] pre-trains sequence-to-sequence models with a future n-gram prediction objective via an n-stream self-attention mechanism. The central architectural question is whether the K predictions are conditionally independent given the backbone representation, or chained so that each prediction conditions on preceding future tokens. Figure 14 contrasts the two designs.
12.1. Parallel Prediction
The most direct implementation of Equation (31) attaches K parallel output heads to a shared backbone (also called the trunk) [123,446]. The backbone produces a contextual representation , and each head , typically a single Transformer layer or feed-forward block, predicts the token k steps ahead through a shared unembedding matrix (following the row-vector convention of Section 4):
Since all heads operate on the same backbone representation, the training cost is close to that of NTP; a memory-efficient implementation computes the forward and backward passes of the heads sequentially so that the peak memory of the large logit tensors does not scale with K [123]. The limitation of this design is that the K predictions are conditionally independent given : each head predicts its target in isolation and cannot condition on the intermediate future tokens, so the heads effectively learn marginal distributions over future positions rather than the joint conditional distribution, which caps the accuracy of the predictions at larger offsets k. Follow-up work can restore communication among the heads while remaining in one parallel pass: Amphista [259] lets the future positions exchange information through bi-directional attention with staged adaptation layers, improving candidate consistency without an autoregressive rollout.
The same parallel-head structure can be attached to an already pre-trained model purely for inference acceleration. Medusa [35] fine-tunes several feed-forward decoding heads on top of a (optionally frozen) backbone, and verifies the tree of candidate continuations they propose in a single forward pass via a tree-structured attention mask. At the lightweight end of the spectrum, MuToR [115] interleaves learnable register tokens that each carry the prediction of one future position, and Samragh et al. [397] convert a pre-trained autoregressive model into a multi-token predictor by inserting mask tokens as future slots and routing the MTP behavior through gated LoRA parameters with a small sampler head, reporting speedups of about on general tasks and up to on code and math without quality degradation—evidence that pre-trained models already encode substantial information about future tokens. Most of these retrofit designs leave the pre-training objective of the base model untouched (Medusa-2, which jointly fine-tunes the backbone, is an exception); they trade a small amount of fine-tuning for substantial decoding speedups on existing checkpoints.
12.2. Sequential Prediction
Sequential predictors chain extra modules so that the causal chain of predictions is preserved. DeepSeek-V3 [269] instantiates this with D extra lightweight MTP modules. For , the k-th module combines the hidden state from the previous depth with the embedding of the intermediate token, and processes the result with an additional Transformer block :
where is the output of the main model, is a fusion projection matrix, and denotes the concatenation of the two d-dimensional row vectors into a -dimensional one. Each module adds a Transformer block, the fusion projection (with weights), and associated normalization parameters, while sharing the embedding layer and output head with the main model. Because module k observes the token before predicting , each prediction remains conditioned on its complete preceding context, in contrast to the conditionally independent parallel heads. During training that intermediate token is the ground-truth (teacher forcing). The MTP losses at all depths are averaged and added to the NTP loss with a weighting factor , providing a densified training signal: at inference the modules can be discarded, leaving a standard NTP model with no serving overhead, or retained and rolled out on the model’s own predictions to draft tokens for speculative decoding.
FastMTP [38] replaces the position-specific modules with a single shared-weight module applied recursively, so that the parameter count no longer grows with the prediction horizon. Since a module trained only under single-step teacher forcing degrades rapidly when unrolled on its own predictions (the acceptance rates of the first three drafted tokens fall to roughly 70%, 11%, and 2%), FastMTP applies rollout-aligned self-distillation that raises them to about 81%, 56%, and 36%, together with a language-aware vocabulary compression that reduces the drafting softmax cost, achieving an average lossless speedup of over standard decoding.
This sequential recipe has become the standard MTP component of recent open-weight LLMs. DeepSeek-V3 [269] trains with a single extra module (, ), which improves quality on most evaluation benchmarks; when the module is retained at inference for speculative decoding, the acceptance rate of the MTP-predicted second token ( relative to prefix ) reaches 85%–90%, improving decoding throughput by roughly . MiMo-7B [278] likewise employs an MTP module during pre-training and replicates it at inference to draft multiple tokens, reporting acceptance rates around 90%; notably, its report finds that adding more MTP layers does not consistently improve the main model’s quality but does lengthen the accepted draft, indicating that the capability-optimal and drafting-optimal prediction depths differ. Its successor MiMo-V2-Flash [279] releases three MTP layers along with the open weights, reporting an average accepted length of up to 3.6 and a decoding speedup of about . Subsequent open-weight models have largely converged on this single-extra-module, DeepSeek-style recipe, though with instructive design divergences. GLM-4.5 [479] instantiates the MTP layer as an MoE layer, whereas LongCat-Flash [474] explicitly compares dense and MoE drafters and opts for a lighter dense MTP layer; it further observes that the MTP loss converges faster than the backbone objective and therefore enables it only in the middle of training, making the timing of the MTP objective itself a design variable. Qwen3-Next [477] similarly ships a native MTP module tied to speculative decoding. openPangu Ultra-MoE [463] integrates an MTP layer as well and highlights its training-system cost: the fused computation of the MTP layer, output head, and cross-entropy amounts to roughly the MoE computation and creates significant load-balancing pressure, showing that the price of native MTP is not confined to inference.
A sequential predictor can also be retrofitted onto a frozen pre-trained backbone for drafting alone. Hydra [9] keeps one head per offset but makes the k-th head condition on the candidate tokens already drafted for the preceding positions, restoring the causal chain that parallel heads omit. EAGLE [256] observes that autoregression is more predictable at the feature level than at the token level, and trains a single lightweight head that extrapolates the top-layer features of the backbone, additionally feeding in the sampled token embedding to resolve the sampling uncertainty of the feature sequence. Its successors refine both the search and the training: EAGLE-2 [257] leaves the drafter unchanged and only expands and prunes the candidate tree dynamically according to the drafter’s confidence (Section 12.3), whereas EAGLE-3 [258] abandons feature regression altogether, fusing hidden states from multiple layers of the backbone to predict draft tokens directly and employing a training-time test procedure that exposes the drafter to its own rollout states. HASS [558] addresses the same train–inference mismatch of recursive drafting through harmonized objective distillation and context alignment. Self-drafting can also reuse the backbone itself: Draft & Verify [557] skips a selected subset of intermediate layers of an unmodified model to produce drafts, requiring no training at all, whereas LayerSkip [93] trains the model with early-exit losses and layer dropout so that its first layers act as the drafter and the full model as the verifier (see also Section 13).
12.3. Inference Integration
Regardless of the predictor structure, the multi-token predictions are usually consumed through the draft-then-verify paradigm of speculative decoding [44,247,446]: the extra heads or modules cheaply draft several future tokens, and the main model verifies them in one parallel forward pass, accepting a prefix of the draft according to an acceptance rule. The methods grouped here leave the factorization of the drafter untouched and instead improve one step of this procedure: the acceptance rule, the organization of candidates for verification, the draft length, or the alignment between drafter and target model. Most of them were introduced with a separate draft model, but the same mechanisms apply when the drafter is an MTP head or module. Speculative decoding [247] and the concurrent speculative sampling [44] define the acceptance rule: a drafted token is accepted with probability , where p and q are the target and draft distributions at that position, and the token at the first rejected position is resampled from the residual distribution proportional to . Under this rule (or exact matching under greedy decoding), the output distribution is provably identical to standard autoregressive decoding, so MTP-based acceleration is lossless in this setting; relaxed rules such as Medusa’s typical acceptance [35] trade this guarantee for higher acceptance rates, and several of the LLM releases surveyed above do not specify which rule they use. SpecInfer [298] organizes multiple candidates per position into a token tree and verifies the whole tree in a single forward pass through tree-structured attention, and EAGLE-2 [257] keeps the EAGLE drafter unchanged but constructs the tree dynamically from the drafter’s confidence scores. SpecDec++ [177] adapts the draft length on the fly, while DistillSpec [581] and LK Losses [396] raise the acceptance rate by explicitly aligning the drafter with the target model. Blockwise parallel decoding [446] and Medusa [35] also shape this procedure, the former with greedy verification of parallel drafts and the latter with tree attention and typical acceptance, but because each introduces a new predictor, we classify both under parallel prediction (Section 12.1).
The achieved speedup depends on draft acceptance, drafting and verification costs, batch size, context length, hardware, and implementation. Compared with speculative decoding that relies on a separate, independently trained draft model, MTP-style self-drafting requires no standalone auxiliary model: the predictor is a small module that shares the backbone’s representations, embeddings, and output head, is trained jointly with (or fine-tuned on top of) the target model, and is served as part of it. This tight coupling is a large part of why it has become the preferred form in recent open-weight LLMs, although, as discussed in Section 12.4, the module must still be kept aligned when the backbone is subsequently post-trained. A comparison of representative MTP designs is provided in Table 12.
12.4. Future Directions
The trajectory of MTP suggests an evolution from an auxiliary trick into a first-class architectural component, and we identify three promising directions:
- Prediction Horizon: The prediction horizon remains largely heuristic: several production systems use a single extra module (, ), whereas research results indicate that the optimal depth depends on model scale, data modality, and vocabulary granularity [123], and the depth that best improves model capability need not coincide with the depth that best serves drafting [278]. Treating the horizon as a dimension of the scaling laws, potentially with position-dependent schedules during training and adaptive draft lengths at inference [177], is a natural next step.
- Hybrid Predictors: Current designs face a trade-off between the efficiency of conditionally independent parallel heads and the accuracy of sequential predictors; hybrids that share computation across depths while preserving the causal chain [38], or that draft at the feature level as in EAGLE [256], could push acceptance rates and thus decoding speedups further.
- Coupling to the Backbone across Post-Training: How the MTP module stays coupled to the backbone across post-training remains largely unexplored: a drafter frozen after pre-training can drift away from the SFT- or RL-tuned target distribution, motivating designs and training recipes that keep the drafter synchronized with the evolving backbone, whether through online calibration during reinforcement learning [504] or re-distillation from the updated backbone [227,571].
13. Adaptive and Recurrent Depth
Transformer decoders conventionally apply a fixed stack of L layers to every token. Variable-depth architectures instead adapt the executed transformations, either by selecting among distinct parameterized layers or by repeatedly applying shared ones. For the former, let indicate whether token i executes layer ℓ. Its effective depth is
The standard decoder has and hence . Early exit restricts execution to a prefix of the stack, layer reduction uses a shallower subnetwork, and conditional depth allows token–layer participation to vary. Depth-recurrent architectures realize additional effective depth differently, by revisiting shared transformations. Figure 15 contrasts the three families.
13.1. Depth Reduction and Early Exit
Early-exit methods terminate computation once an intermediate representation is sufficiently predictive. If token i exits at depth , then (Figure 15). Depth-Adaptive Transformers learn intermediate decoder predictions and dynamically select depth in sequence-to-sequence translation, whereas CALM uses calibrated confidence criteria for token-wise early exit in language-model decoding [91,425]. A per-token exit depth does not by itself define a runnable causal decoder: if token i exits at layer and a later token j proceeds to a layer , the self-attention at layer ℓ needs keys and values of token i that were never computed. Both methods resolve this by state propagation, copying the hidden state of the exit layer to all skipped layers and applying each layer’s own key and value projections to it; CALM reports that this approximation costs little, whereas copying the already projected keys and values of the exit layer degrades quality markedly [91,425].
Depth can also be reduced at the network level. LayerDrop trains with structured layer dropout, making a model robust to subnetworks of different depths and enabling shallower extraction at inference time [95]. LayerSkip combines layer dropout with intermediate prediction losses; its early layers draft tokens that deeper layers verify, linking depth reduction to self-speculative decoding (Section 12) [93]. Thus, early exit allocates a prefix per token, while layer reduction typically selects a subnetwork shared across tokens.
13.2. Conditional Depth over Distinct Layers
Conditional depth allows to depend on the representation of token i at layer ℓ. Mixture-of-Depths (MoD) routes only a fixed-capacity subset of tokens through selected Transformer blocks; other tokens follow the residual bypass [384] (Figure 15). For a sequence of T tokens and conditional-layer capacity ,
The active tokens are input dependent, while each conditional block retains an approximately fixed active-compute budget. The sequence-wide top-k selection used during training is non-causal, since a token’s membership depends on other tokens’ scores. For autoregressive inference, MoD instead learns a causal approximation through an auxiliary router loss or a separate predictor [384].
Conditional computation need not alter layer participation. CoLT5 applies light attention and feed-forward computation to all tokens but routes selected tokens through additional heavy branches [2]. It therefore changes computation within a layer, whereas MoD changes whether a token executes the principal block transformation. Routing is also independent of parameter sharing: it may select distinct layers, within-layer branches, or repeated applications of a shared block, as in Mixture-of-Recursions below. This distinction complements the expert-routing perspective in Section 7.
13.3. Looped (Depth-Recurrent) Transformers
A looped, or depth-recurrent, Transformer repeatedly applies a shared transformation to an evolving latent state:
Increasing R adds computational depth without introducing a separate parameter set at every step (Figure 15). This recurrence acts along model depth and should not be conflated with sequence recurrence, which propagates state across positions or sequence blocks to summarize history (Section 6).
The Universal Transformer established this design by repeatedly applying shared Transformer computation and using Adaptive Computation Time for symbol-wise halting over recurrent depth [77,130]. Later analyses showed that looped Transformers can implement iterative algorithms and latent multi-step reasoning [108,120,399,535]. Recent language models such as Huginn and Ouro scale this principle as an adjustable axis of latent computation [111,587].
Recurrence Topology.
Architectures differ in the granularity and interfaces of the repeated computation. Huginn uses a non-recurrent prelude, a shared recurrent core, and a non-recurrent coda; the prelude representation is reinjected into the core to anchor the evolving state [111]. Such designs separate unique parameter depth from executed depth while preserving dedicated input and output transformations.
Recurrence Allocation.
The recurrence count may be fixed, sampled during training, chosen globally at inference time, or assigned conditionally. Huginn trains the same core under varying recurrence counts [111]. Mixture-of-Recursions routes tokens to different recursion depths, combining parameter sharing with token-level computation allocation [16]. Fixed-Point Reasoners instead stop recurrent refinement according to a convergence criterion [318]. Conditional routing and recurrent depth are therefore compatible rather than competing categories.
Functional Differentiation under Sharing.
Strict weight tying does not imply identical behavior across recurrences because the latent state changes at each step. Timestep embeddings can further condition the shared block on effective depth, while recurrence-specific low-rank modules partially relax weight tying [15,527]. These mechanisms determine how strongly successive recurrences can specialize; this is distinct from deciding how many recurrences to execute.
13.4. Training and Scaling Variable Depth
Variable-depth models must remain predictive and stable across the depths used in training and deployment. The main issues are supervision of intermediate states, credit assignment through repeated computation, dynamical stability, and the parameter–compute trade-off.
Supervision and Credit Assignment.
Intermediate objectives make shallow states directly predictive: LayerSkip supervises intermediate layers, Ouro predicts at successive recurrent steps and learns an exit distribution, and Fixed-Point Reasoners use deep supervision across truncated recurrent windows [93,318,587]. Full backpropagation differentiates through every recurrence but increases activation memory and extends the Jacobian chain. Huginn instead retains long forward trajectories while backpropagating only through a final recurrence window [111]. For equilibrium models, implicit differentiation avoids storing the complete solution trajectory, and phantom gradients approximate this backward computation through damped unrolling or truncated Neumann series [21,114,501]. Forward stopping and backward credit assignment are thus separable choices.
Dynamical Stability.
Repeated transformations can amplify unstable modes or induce oscillation. Ouro reduced its training depth from eight to four recurrences after observing instability [587]. Fixed-Point Reasoners promote convergence through residual scaling, contractive initialization, and damping [318]; STARS regularizes the recurrent Jacobian’s spectral radius to encourage asymptotically stable fixed points [542]. Stability is consequently a prerequisite for using additional recurrence, not merely a numerical detail.
Depth Extrapolation.
Numerical stability alone does not ensure useful predictions beyond the training-depth range. LoopFormer conditions recurrence on trajectory time and step size and enforces consistency across trajectories of different lengths, improving operation under multiple compute budgets [201]. Allocation determines the requested depth; extrapolation determines whether computation at that depth remains reliable.
Scaling Trade-offs.
Parameter sharing reduces unique parameter count but not the cost of repeated attention and feed-forward computation. Ouro, for example, shares KV caches across recurrent steps to reduce decoding memory [587]. Iso-depth experiments quantify the capacity of shared recurrence through a recurrence-equivalence exponent : denotes no capacity gain and full equivalence to unique depth. A reported estimate of , reduced to with truncated backpropagation, indicates that recurrence provides partial rather than one-for-one replacement of independently parameterized layers [426]. These values are architecture- and training-dependent, but they expose the central exchange between parameter capacity and repeated computation.
13.5. Future Directions
Adaptive and recurrent depth turn the number of executed layers into an allocatable resource, but the mechanisms reviewed above leave several questions open:
- Stable Training at Greater Recurrent Depth: Current systems either cap the recurrence count during training or rely on damping, contractive initialization, and spectral regularization to keep repeated computation stable (Section 13.4). Whether these remedies scale to substantially deeper recurrence, and at what cost in expressiveness, remains untested at LLM scale.
- Depth Extrapolation and Budget-Conditioned Inference: A model should remain reliable at inference budgets not emphasized during training, so that the same weights can serve latency-critical and quality-critical requests. Trajectory-consistency objectives and time-conditioned recurrence are first steps; principled ways to choose the executed depth per token or per request are still lacking.
- Joint Allocation across Depth, Tokens, and Experts: Conditional depth, multi-token prediction (Section 12), and expert routing (Section 7) all decide how much computation a token receives, yet they are currently designed and tuned separately. Unifying these decisions under a single budget, and understanding their interactions with the KV cache and with batching, is a natural next step.
- Evaluation under Matched Compute: Recurrence-equivalence estimates such as show that shared recurrence is only a partial substitute for unique depth. Progress should be reported under matched training and inference compute: additional recurrence is useful only when it yields predictable gains without transferring disproportionate cost to decoding.
14. Popular Architectures
Representative large language model (LLM) families provide a system-level view of how the components surveyed above are combined in practice. We first trace the development of open-weight LLMs and the architectural precedents that shaped them, emphasizing shifts in the dominant model configuration rather than successive increases in model size. We then identify recurring design patterns that cut across individual families. Detailed configurations are reported in Table 13 for dense models and Table 14 for MoE models.
14.1. Evolution of Open-Weight LLMs and Their Precursors
Architectural Foundations and Open Replication.
The development of open-weight LLMs is not a self-contained lineage: several architectural and scaling choices first became influential in models that either predate the current open-weight families or whose weights were not openly released. T5 [381], released with open weights, formulated a unified text-to-text framework with an encoder–decoder Transformer, whereas the closed GPT-3 [34] demonstrated the few-shot behavior of a decoder-only model at substantially larger scale. Jurassic-1 [262] and Gopher [380] continued this emphasis on parameter growth, while Chinchilla [168] showed that training data and model size must be allocated jointly under a fixed compute budget. PaLM [61] combined scaling with architectural choices such as parallel attention and feed-forward computation, multi-query attention, SwiGLU, and RoPE. Openly released OPT [561] and BLOOM [510] subsequently made GPT-style large-model research more accessible, with BLOOM also adopting ALiBi [361] rather than learned absolute positional embeddings. Together, these models illustrate the decoder backbone, training-scale considerations, and initial efficiency mechanisms that also appear in later open-weight families.
Convergence on a Reusable Dense Baseline.
The release of the LLaMA family [295,296,486,487] marked a shift from reproducing large GPT-style models to consolidating a reusable dense configuration. Its combination of a decoder-only layout, Pre-RMSNorm, SwiGLU, and RoPE became common across subsequent families, while the larger LLaMA 2 variant adopted grouped-query attention (GQA) and LLaMA 3/3.1 increased both model and training-data scale. This convergence did not eliminate variation. Pythia [31] emphasized reproducibility by releasing intermediate checkpoints; StarCoder [253] adapted the decoder to code through multi-query attention and fill-in-the-middle training; MPT [475], Falcon [5], and Baichuan 2 [532] retained distinct positional, block, or output-head choices. Mistral [205] combined GQA with sliding-window attention. Most Qwen and Qwen1.5 variants used MHA, although the later Qwen1.5-32B and 110B models adopted GQA; Qwen2 and Qwen2.5 then used GQA across their model scales [20,370,476,533]. The larger dense DeepSeek LLM [30] explored a relatively deeper and narrower configuration. The resulting ecosystem shared a recognizable dense baseline while varying its attention cost, training transparency, task specialization, and deployment target.
Diversification of Capacity and State.
Sparse capacity developed in parallel and later became a prominent alternative to dense scaling. Switch Transformer [96], GLaM [86], and CPM-2 [568] demonstrated token-routed MoE models at large total parameter counts, although they differed in backbone and routing configuration. OpenMoE [530] made model weights, training code, and routing analysis available, while Mixtral [312,313] made sparse MoE available as a general-purpose open-weight model family. DeepSeekMoE [68] divided experts more finely and separated shared from routed experts; DeepSeek-V2 [73] retained this expert organization while adding Multi-head Latent Attention (MLA) to compress the inference-time KV representation. Other open efforts investigated dense-to-MoE upcycling [173,533], sparsity in both attention and feed-forward computation [435], and fully released training artifacts [320]. Thus, the MoE line progressed from demonstrating sparse scaling to refining routing, state cost, initialization, and reproducibility.
Efficiency constraints also produced two departures from the large dense decoder. First, compact and on-device families used smaller models as testbeds for training and memory-efficient mechanisms. Successive Gemma releases added interleaved local–global attention and related stabilization choices [112,126,467], while MiniCPM combined scale-transfer methods with MLA, extended positional encoding, and sparse attention in later versions [173,304,340,341]. MiMo [278], openPangu Embedded [47], and GPT-OSS [339] further illustrate that compact or low-active-parameter models can incorporate auxiliary prediction, controllable inference, or mixed local–global attention rather than merely shrinking a conventional backbone. Second, recurrent and hybrid models reconsidered how sequence history is represented. Griffin [72], Jamba [263], Hymba [83], and the Nemotron-H family [331,332] combined attention with recurrent sequence operators at layer or head level, whereas Falcon Mamba [592] removed attention entirely. Later systems extended hybrid processing through Gated DeltaNet [39,477], Kimi Delta Attention [471], and Lightning Attention [249,306]. These designs illustrate compact recurrent state and selective access to explicit token-level history as distinct, and potentially complementary, approaches to reducing long-sequence cost.
Joint Configuration of Capacity, State, and Prediction.
From late 2024 onward, leading open-weight families increasingly combined several of these directions within a single backbone. DeepSeek-V3 [269] joined fine-grained MoE routing and shared experts with MLA and an auxiliary multi-token-prediction module; DeepSeek-R1 [74] adapted the resulting backbone for reinforcement-learning-based reasoning, and DeepSeek-V3.2 [75] added sparse token selection on top of MLA. Other families combined sparse capacity with different attention, recurrent, residual, normalization, or prediction mechanisms, including Qwen3 [371], LLaMA 4 [297], Kimi K2 [469], GLM-4.5 [479], LongCat-Flash [474], Ling-1T [267], openPangu Ultra-MoE [463], Mistral Large 3 [314], and MiMo-V2-Flash [279]. The subsequent models catalogued in Table continue this diversification through sparse or hybrid attention, recurrent state, auxiliary prediction, and multimodal extensions. The historical trajectory is therefore better characterized as a shift from establishing a common dense backbone to configuring capacity, state, and prediction jointly. The next subsection examines the recurring architectural patterns produced by this shift.
14.2. Recurring Architectural Design Patterns
The historical shifts above produced several configurations that recur across otherwise distinct model families. These patterns are defined by combinations of architectural choices rather than by individual components: each addresses a system-level constraint through coordinated choices concerning parameter capacity, sequence processing, retained state, or the prediction objective. They are neither exhaustive nor mutually exclusive, and a single model may instantiate more than one pattern.
14.2.1. Canonical Dense Decoders
The canonical dense pattern combines a decoder-only Transformer with dense feed-forward blocks and a fixed layer schedule. Within this broad configuration, Pre-RMSNorm, SwiGLU, and RoPE became common ways to specify normalization, feature gating, and positional interaction without altering the uniform token-to-layer schedule. The LLaMA family [295,296,486,487] established a prominent instance of this design. Across successive releases, the family changed model and data scale, vocabulary, context length, and attention grouping without replacing the basic dense computation path. Related configurations then recurred across other model families. This persistence identifies the pattern empirically as a common reference configuration, although recurrence alone does not explain why it remained useful.
A structural explanation begins with the uniform computation path. Every token traverses the same sequence of attention and dense feed-forward blocks, so the operator schedule and parameterized modules are fixed independently of the input. At the same time, individual components can vary without reorganizing the entire backbone. LLaMA 2 used MHA in its smaller variants and GQA in the 70B model, whereas LLaMA 3 applied GQA across its released scales [295,487]. Mistral [205] combined GQA with sliding-window attention and a rolling KV cache, bounding the explicit attention span at each layer while retaining dense feed-forward computation. The dense Qwen2 and Qwen2.5 families [370,533] likewise used GQA across model scales. These alternatives change the number of key–value heads or the set of past positions available to attention, but not the fixed traversal of dense parameter blocks. The regular execution graph and stable interfaces among attention, feed-forward, and residual components help explain the pattern’s value for implementation and architectural comparison. Model releases do not, however, isolate the causal contribution of these properties to adoption; the pattern is therefore a persistent reference configuration rather than evidence of a universally optimal design.
14.2.2. Sparse Capacity with Compressed Attention State
Large decoders face at least two distinct scaling pressures. Increasing feed-forward capacity enlarges the parameter set and the cost of applying it, whereas long-context decoding increases the attention state stored and accessed for each generated token. Sparse MoE and efficient attention act on these pressures at different locations. MoE routing selects a small subset of experts for each token, decoupling total parameter capacity from the parameters activated on that token. KV compression, local attention, and sparse token selection instead change the representation or retrieval of sequence history. A model can therefore increase total capacity without proportionally increasing per-token feed-forward computation, yet this alone does not reduce its attention cache; conversely, compressing the cache does not make a dense feed-forward block sparse.
DeepSeek-V2 [73] is a clear joint instance. It combines the fine-grained routed experts and shared-expert isolation developed in DeepSeekMoE [68] with Multi-head Latent Attention (MLA), which stores a lower-dimensional latent representation rather than separate full key–value states for every attention head. DeepSeek-V3 [269] retains the MoE–MLA pairing, while DeepSeek-V3.2 [75] additionally restricts which past states are selected by attention. Kimi K2 [469], openPangu Ultra-MoE [463], Mistral Large 3 [314], GLM-4.7-Flash [549], and GLM-5 [122] instantiate related MoE–MLA configurations, whereas GLM-4.5 [479] pairs its fine-grained MoE with GQA (with partial RoPE and QK-Norm) rather than latent KV compression. MiMo-V2-Flash [279] illustrates a different pairing by combining sparse feed-forward capacity with alternating local and global attention rather than latent KV compression.
These combinations should not be read as a single indivisible recipe. Expert routing introduces load-balancing, communication, and batching constraints, whereas compressed or selective attention changes memory traffic, retrieval resolution, and kernel requirements. Their recurrence instead reflects a systems-level decomposition: active parameters and retained history are separate resource budgets that often become binding in the same large model. Configuring them jointly can redistribute training and serving costs, but the co-occurrence of two mechanisms does not by itself establish that either improves the modeling quality of the other.
14.2.3. Hybrid Sequence and State Processing
Hybrid sequence architectures have been pursued for two related but distinct reasons. The first is computational: replacing most softmax-attention layers with recurrent or linear operators can reduce context-dependent state and decoding cost. The second is functional: explicit attention and recurrent state provide different forms of access to history, motivating designs that retain both rather than treating either operator as a universal replacement. On a controlled set of in-context learning tasks, MambaFormer [347] reports complementary failure modes for Mamba and Transformer models and finds that their combination improves tasks on which either model alone struggles. This result provides task-specific evidence for complementarity, not a general ordering of the two operator classes. More broadly, the computational and functional motivations often coincide, but an efficiency-oriented hybrid does not by itself establish a modeling benefit.
Attention retains past token states in an explicitly addressable memory and selects among them at read time. Recurrent, state-space, and linear-attention operators instead update a compact state as the sequence is processed, moving part of the selection or compression decision to state construction. Hybrid design therefore concerns where explicit retrieval is retained, where history is compressed, and how the two representations exchange information. A model may resolve these choices across layers, within a layer, or by converting a pretrained attention backbone after pre-training.
Layer-wise Composition.
One topology assigns the operators to different layers. Griffin [72] mixes RG-LRU recurrent blocks with local attention, so recurrent updates carry information beyond the local attention window while selected layers retain explicit short-range retrieval. Jamba [263,468] interleaves Transformer and Mamba layers and independently places MoE layers within the stack. Its design separates three choices that are sometimes conflated: the ratio of attention to recurrent layers, the placement of sparse feed-forward capacity, and the resulting memory–throughput profile. Nemotron-H and Nemotron 3 [330,331,332], Qwen3-Next [39,477], and Kimi Linear [471] adopt related layer-wise compositions using Mamba-2, Gated DeltaNet, or Kimi Delta Attention together with a smaller number of attention layers. These systems share a layer-wise topology, but their recurrent updates and attention mechanisms are not interchangeable.
Within-layer Composition.
A second topology combines operators within the same layer. Hymba [83] executes attention and state-space heads in parallel, allowing each layer to form both a high-resolution attention output and a compact recurrent summary before merging them. It further combines this hybrid-head arrangement with partial sliding-window attention and cross-layer KV sharing, showing that operator topology and cache compression can be configured separately. Layer-wise interleaving and within-layer parallelism impose different interfaces: the former passes representations sequentially between operator types, whereas the latter requires their outputs to be compatible at every hybrid layer. Thus, both are hybrids, but they place the interaction between explicit retrieval and recurrent state at different points in the residual computation.
Conversion from Pretrained Attention.
Hybridization need not begin during pre-training. LoLCATs [560] replaces pretrained softmax-attention modules with linear attention through attention transfer, which trains the replacement to match the original attention outputs, and then uses low-rank adaptation to compensate for the remaining approximation error. This conversion route treats hybrid or linearized processing as a modification of an existing dense checkpoint rather than as a backbone trained from scratch. It lowers the training barrier to changing the sequence operator, but it also introduces a distinct objective: preserving the behavior of the original attention module under an approximate replacement.
Resource and Systems Boundary.
The resource consequence depends on how much softmax attention remains. Recurrent or linear layers can update fixed-size state without adding a new key–value pair at every time step, whereas retained attention layers still require explicit history according to their attention policy. A hybrid therefore reduces, but does not generally eliminate, context-dependent cache growth. Its realized efficiency also depends on numerical behavior, memory access, kernels, prefix caching, and compatibility with decoding procedures. The MiniMax line makes this engineering boundary visible: MiniMax-01 [249,306] combined Lightning Attention with periodic softmax attention, whereas MiniMax-M2 [308,453] returned to full softmax attention and attributed the decision partly to evaluation uncertainty and the less mature infrastructure for efficient attention, and MiniMax-M3 [311] subsequently moved to block-sparse MSA attention (Section 5.1), showing that such decisions are revisited as evaluation and infrastructure mature. Hybrid sequence processing is therefore a family of trade-offs over retrieval, compression, and implementation maturity rather than a uniform replacement for attention.
14.2.4. Prediction-Augmented Backbones
Prediction-augmented backbones modify the training signal while retaining autoregressive generation as the primary modeling framework. Standard next-token prediction supervises each representation through the immediately following token. Multi-token prediction (MTP) adds objectives or modules for additional future positions, exposing the backbone to a longer prediction horizon during training. This axis is largely orthogonal to whether the backbone is dense or sparse and to how it represents history: an auxiliary predictor can be attached after representations produced by full attention, compressed attention, or a hybrid sequence stack.
DeepSeek-V3 combines an MTP module with its MoE–MLA backbone [269]; MiMo-7B applies an additional MTP objective to a compact dense decoder [278]; and LongCat-Flash and MiMo-V2-Flash attach MTP modules to sparse backbones with different attention configurations [279,474]. These examples establish compatibility across backbone types, but they do not imply that MTP serves the same function as the accompanying attention or routing mechanism. Sparse capacity changes which parameters process a token, efficient attention changes which historical state is retained or retrieved, and MTP changes which future targets supervise the representation.
This distinction also separates architectural prediction augmentation from later stages of model development. Reasoning-oriented post-training changes the behavior optimized during supervised fine-tuning or reinforcement learning; switchable thinking modes control how a trained model allocates generation-time reasoning; and speculative decoding uses a proposal-and-verification procedure to accelerate inference. MTP outputs can sometimes supply tentative future tokens or features to such a procedure, but an auxiliary prediction head does not by itself define how outputs are verified or committed. Prediction augmentation is therefore best understood as a reusable backbone extension whose inference-time role depends on the surrounding training and decoding system.
The four patterns overlap increasingly in recent systems. A single backbone may combine sparse parameter activation, compressed or recurrent state, heterogeneous sequence operators, and auxiliary prediction while retaining the normalization, activation, and residual conventions of the canonical dense decoder. The model comparisons in Table document these concrete configurations. Their overlap also motivates the unified view developed in the following section: modern architectures are better understood through the computational assumptions that their components jointly preserve or modify than through a list of independently selected modules.
Table 13.
Architectural comparison of renowned dense LLMs. Time Mixing denotes the attention variant: MHA (Multi-head Attention), MQA (Multi-query Attention), GQA (Grouped-query Attention), and SWA (Sliding Window Attention); hybrid models that mix attention with linear recurrent layers (e.g., RG-LRU or Mamba) list both mechanisms. Channel Mixing denotes the feed-forward variant. PE denotes the positional encoding scheme. is the intermediate size of the feed-forward sublayer. Vocab. denotes the vocabulary size, taken from the embedding size of the released checkpoints where available and otherwise from the original paper; minor padding variations across scales within a series are ignored. Models of the same series are placed in adjacent rows. The Release column gives the initial public release date; rows covering multiple versions show the date of the earliest release. Layers and Size exclude Multi-Token Prediction (MTP) modules; the MTP column gives the number of MTP modules attached during training (“–” if none). For MoE variants of these models, see Table 14.
Table 13.
Architectural comparison of renowned dense LLMs. Time Mixing denotes the attention variant: MHA (Multi-head Attention), MQA (Multi-query Attention), GQA (Grouped-query Attention), and SWA (Sliding Window Attention); hybrid models that mix attention with linear recurrent layers (e.g., RG-LRU or Mamba) list both mechanisms. Channel Mixing denotes the feed-forward variant. PE denotes the positional encoding scheme. is the intermediate size of the feed-forward sublayer. Vocab. denotes the vocabulary size, taken from the embedding size of the released checkpoints where available and otherwise from the original paper; minor padding variations across scales within a series are ignored. Models of the same series are placed in adjacent rows. The Release column gives the initial public release date; rows covering multiple versions show the date of the earliest release. Layers and Size exclude Multi-Token Prediction (MTP) modules; the MTP column gives the number of MTP modules attached during training (“–” if none). For MoE variants of these models, see Table 14.
| Model | Size | Layers | Emb. Size | Vocab. | Time Mixing | Channel Mixing | Activation | PE | Normalization | MTP | Release | Remark | |
| T5 [381] | 60M | 6 | 512 | 32128 | 2048 | MHA | FFN | ReLU/GEGLU | T5 Bias | Pre-RMSNorm | – | Oct 2019 | Encoder–decoder |
| 220M | 12 | 768 | 3072 | ||||||||||
| 770M | 24 | 1024 | 4096 | ||||||||||
| 3B | 24 | 1024 | 16384 | ||||||||||
| 11B | 24 | 1024 | 65536 | ||||||||||
| GPT-3 [34] | 125M | 12 | 768 | 50257 | 3072 | MHA/SWA | FFN | GELU | Learned APE | Pre-LayerNorm | – | May 2020 | Alternates dense and banded sparse attention |
| 350M | 24 | 1024 | 4096 | ||||||||||
| 760M | 24 | 1536 | 6144 | ||||||||||
| B | 24 | 2048 | 8192 | ||||||||||
| B | 32 | 2560 | 10240 | ||||||||||
| B | 32 | 4096 | 16384 | ||||||||||
| 13B | 40 | 5120 | 20480 | ||||||||||
| 175B | 96 | 12288 | 49152 | ||||||||||
| PanGu- [552] | B | 32 | 2560 | 40000 | 10240 | MHA | FFN | GELU | Learned APE | Pre-LayerNorm | – | Apr 2021 | Extra query layer on top for prediction |
| B | 40 | 5120 | 20480 | ||||||||||
| 207B | 64 | 16384 | 65536 | ||||||||||
| CPM-2 [568] | 11B | 48 | 4096 | 26240 | 10240 | MHA | FFN | GEGLU | T5 Bias | Pre-RMSNorm | – | Jun 2021 | Encoder–decoder |
| Jurassic-1 [262] | B | 32 | 4096 | 256000 | 16384 | MHA | FFN | GELU | Learned APE | Pre-LayerNorm | – | Aug 2021 | Shallower-and-wider than GPT-3 |
| 178B | 76 | 13824 | 55296 | ||||||||||
| Gopher [380] | 44M | 8 | 512 | 32000 | 2048 | MHA | FFN | GELU | Transformer-XL | Pre-RMSNorm | – | Dec 2021 | |
| 117M | 12 | 768 | 3072 | ||||||||||
| 417M | 12 | 1536 | 6144 | ||||||||||
| B | 24 | 2048 | 8192 | ||||||||||
| B | 32 | 4096 | 16384 | ||||||||||
| 280B | 80 | 16384 | 65536 | ||||||||||
| GLaM [86] | B | 24 | 2048 | 256000 | 8192 | MHA | FFN | GEGLU | Transformer-XL | Post Layernorm | – | Dec 2021 | Dense baselines of the GLaM MoE study |
| B | 32 | 4096 | 16384 | ||||||||||
| 137B | 64 | 8192 | 65536 | ||||||||||
| LaMDA [485] | 137B | 64 | 8192 | 32000 | 65536 | MHA | FFN | GEGLU | T5 Bias | Post-LayerNorm | – | Jan 2022 | Dialogue-specialized; tool-augmented grounding |
| Chinchilla [168] | 70B | 80 | 8192 | 32000 | 32768 | MHA | FFN | GELU | Transformer-XL | Pre-RMSNorm | – | Mar 2022 | |
| PaLM [61] | 8B | 32 | 4096 | 256000 | 16384 | MQA | FFN | SwiGLU | RoPE | Pre-LayerNorm | – | Apr 2022 | Parallel attention+FFN block |
| 62B | 64 | 8192 | 32768 | ||||||||||
| 540B | 118 | 18432 | 73728 | ||||||||||
| OPT [561] | 125M | 12 | 768 | 50272 | 3072 | MHA | FFN | ReLU | Learned APE | Pre-LayerNorm | – | May 2022 | Open replication of GPT-3 |
| 350M | 24 | 1024 | 4096 | ||||||||||
| B | 24 | 2048 | 8192 | ||||||||||
| B | 32 | 2560 | 10240 | ||||||||||
| B | 32 | 4096 | 16384 | ||||||||||
| 13B | 40 | 5120 | 20480 | ||||||||||
| 30B | 48 | 7168 | 28672 | ||||||||||
| 66B | 64 | 9216 | 36864 | ||||||||||
| 175B | 96 | 12288 | 49152 | ||||||||||
| BLOOM [510] | 176B | 70 | 14336 | 250680 | 57344 | MHA | FFN | GELU | ALiBi | Pre-LayerNorm | – | Jul 2022 | LayerNorm after embedding |
| GLM [551] | 130B | 70 | 12288 | 150528 | 32768 | MHA | FFN | GEGLU | RoPE | Post DeepNorm | – | Aug 2022 | Blank-infilling objective; bidirectional prefix attention |
| GLM-4 [478] | 9B | 40 | 4096 | 151552 | 13696 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Jun 2024 | Partial RoPE; bias only in QKV |
| 32B | 61 | 6144 | 23040 | Apr 2025 | |||||||||
| GAL [466] | 125M | 12 | 768 | 50000 | 3072 | MHA | FFN | GELU | Learned APE | Pre-LayerNorm | – | Nov 2022 | |
| B | 24 | 2048 | 8192 | ||||||||||
| B | 32 | 4096 | 16384 | ||||||||||
| 30B | 48 | 7168 | 28672 | ||||||||||
| 120B | 96 | 10240 | 40960 | ||||||||||
| Pythia [31] | 70M | 6 | 512 | 50304 | 2048 | MHA | FFN | GELU | RoPE | Pre-LayerNorm | – | Apr 2023 | Parallel attention+FFN block |
| 160M | 12 | 768 | 3072 | ||||||||||
| 410M | 24 | 1024 | 4096 | ||||||||||
| 1B | 16 | 2048 | 8192 | ||||||||||
| B | 24 | 2048 | 8192 | ||||||||||
| B | 32 | 2560 | 10240 | ||||||||||
| B | 32 | 4096 | 16384 | ||||||||||
| 12B | 36 | 5120 | 20480 | ||||||||||
| StarCoder [253] | B | 40 | 6144 | 49152 | 24576 | MQA | FFN | GELU | Learned APE | Pre-LayerNorm | – | May 2023 | Code LLM; fill-in-the-middle objective |
| MPT [475] | 7B | 32 | 4096 | 50432 | 16384 | MHA | FFN | GELU | ALiBi | Pre-LayerNorm | – | May 2023 | |
| Falcon [5] | 7B | 32 | 4544 | 65024 | 18176 | MQA | FFN | GELU | RoPE | Pre-LayerNorm | – | May 2023 | Parallel attention+FFN block |
| 40B | 60 | 8192 | 32768 | GQA | May 2023 | ||||||||
| 180B | 80 | 14848 | 59392 | GQA | Sep 2023 | ||||||||
| Falcon Mamba [592] | 7B | 64 | 4096 | 65024 | 8192 | Mamba | Mamba | SiLU/SwiGLU | NoPE | Pre-RMSNorm | – | Aug 2024 | Pure SSM; no attention layers |
| LLaMA-2 [487] | 7B | 32 | 4096 | 32000 | 11008 | MHA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Jul 2023 | |
| 13B | 40 | 5120 | 13824 | MHA | |||||||||
| 70B | 80 | 8192 | 28672 | GQA | |||||||||
| LLaMA-3 [295] | 8B | 32 | 4096 | 128256 | 14336 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Apr 2024 | |
| 70B | 80 | 8192 | 28672 | ||||||||||
| LLaMA-3.1 [296] | 8B | 32 | 4096 | 128256 | 14336 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Jul 2024 | |
| 70B | 80 | 8192 | 28672 | ||||||||||
| 405B | 126 | 16384 | 53248 | ||||||||||
| Qwen [20] | B | 24 | 2048 | 151936 | 5504 | MHA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Aug 2023 | Dynamic NTK + LogN attention scaling |
| 7B | 32 | 4096 | 11008 | ||||||||||
| 14B | 40 | 5120 | 13696 | ||||||||||
| 72B | 80 | 8192 | 24576 | ||||||||||
| Qwen1.5 [476] | B | 24 | 1024 | 151936 | 2816 | MHA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Feb 2024 | |
| B | 24 | 2048 | 5504 | ||||||||||
| 4B | 40 | 2560 | 6912 | ||||||||||
| 7B | 32 | 4096 | 11008 | ||||||||||
| 14B | 40 | 5120 | 13696 | ||||||||||
| 72B | 80 | 8192 | 24576 | ||||||||||
| Qwen2 [533] | B | 24 | 896 | 151936 | 4864 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Jun 2024 | |
| B | 28 | 1536 | 8960 | ||||||||||
| 7B | 28 | 3584 | 18944 | ||||||||||
| 72B | 80 | 8192 | 29568 | ||||||||||
| Qwen2.5 [370] | B | 24 | 896 | 151936 | 4864 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Sep 2024 | |
| B | 28 | 1536 | 8960 | ||||||||||
| 3B | 36 | 2048 | 11008 | ||||||||||
| 7B | 28 | 3584 | 18944 | ||||||||||
| 14B | 48 | 5120 | 13824 | ||||||||||
| 32B | 64 | 5120 | 27648 | ||||||||||
| 72B | 80 | 8192 | 29568 | ||||||||||
| Qwen3 [371] | B | 28 | 1024 | 151936 | 3072 | GQA | FFN | SwiGLU | RoPE | QK/Pre-RMSNorm | – | Apr 2025 | Unified thinking/non-thinking modes |
| B | 28 | 2048 | 6144 | ||||||||||
| 4B | 36 | 2560 | 9728 | ||||||||||
| 8B | 36 | 4096 | 12288 | ||||||||||
| 14B | 40 | 5120 | 17408 | ||||||||||
| 32B | 64 | 5120 | 25600 | ||||||||||
| Qwen3.5/3.6 [372,373] | B | 24 | 1024 | 248320 | 3584 | Gated DeltaNet/ Gated Attention |
FFN | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Feb 2026 | Covers 3.5/3.6; DeltaNet:attn 3:1; partial RoPE; multimodal |
| 2B | 24 | 2048 | 6144 | ||||||||||
| 4B | 32 | 2560 | 9216 | ||||||||||
| 9B | 32 | 4096 | 12288 | ||||||||||
| 27B | 64 | 5120 | 17408 | ||||||||||
| Qwen3.8 [376] | 27B | 64 | 5120 | 248320 | 17408 | Gated DeltaNet/ Gated Attention |
FFN | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Aug 2026 | Same backbone as Qwen3.5-27B; DeltaNet:attn 3:1; multi-step MTP; multimodal |
| Baichuan 2 [532] | 7B | 32 | 4096 | 125696 | 11008 | MHA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Sep 2023 | Normalized output head (NormHead) |
| 13B | 40 | 5120 | 13696 | ALiBi | |||||||||
| Mistral [205] | 7B | 32 | 4096 | 32000 | 14336 | GQA+SWA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Sep 2023 | SWA window 4096; rolling KV cache |
| DeepSeek LLM [30] | 7B | 30 | 4096 | 102400 | 11008 | MHA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Nov 2023 | 67B favors depth over width |
| 67B | 95 | 8192 | 22016 | GQA | |||||||||
| MiniCPM [173] | B | 52 | 1536 | 73440 | 3840 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Apr 2024 | |
| B | 40 | 2304 | 122753 | 5760 | MHA | Feb 2024 | |||||||
| MiniCPM3 [340] | 4B | 62 | 2560 | 73448 | 6400 | MLA | FFN | SwiGLU | LongRoPE | Pre-RMSNorm | – | Sep 2024 | |
| MiniCPM4 [304] | B | 24 | 1024 | 73448 | 4096 | GQA | FFN | SwiGLU | LongRoPE | Pre-RMSNorm | – | Jun 2025 | Covers 4/4.1; 8B adds InfLLM v2 sparse attn |
| 8B | 32 | 4096 | 16384 | GQA+InfLLM | |||||||||
| MiniCPM5 [341,342] | 1B | 24 | 1536 | 130560 | 4608 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | May 2026 | On-device; think/no-think modes; SFT→RL→on-policy distillation |
| 2B | 42 | 2048 | 6144 | Sep 2026 | |||||||||
| Gemma [467] | 2B | 18 | 2048 | 256000 | 16384 | MQA | FFN | GEGLU | RoPE | Pre-RMSNorm | – | Feb 2024 | Tied embeddings |
| 7B | 28 | 3072 | 24576 | MHA | |||||||||
| Gemma 2 [112] | 2B | 26 | 2304 | 256000 | 9216 | GQA+SWA | FFN | GEGLU | RoPE | Pre+Post RMSNorm | – | Jun 2024 | SWA:global 1:1; logit soft-capping |
| 9B | 42 | 3584 | 14336 | ||||||||||
| 27B | 46 | 4608 | 36864 | ||||||||||
| Gemma 3 [126] | 1B | 26 | 1152 | 262208 | 6912 | MQA+SWA | FFN | GEGLU | RoPE | QK/Pre+Post RMSNorm | – | Mar 2025 | SWA:global 5:1 |
| 4B | 34 | 2560 | 10240 | GQA+SWA | |||||||||
| 12B | 48 | 3840 | 15360 | GQA+SWA | |||||||||
| 27B | 62 | 5376 | 21504 | GQA+SWA | |||||||||
| Gemma 4 [113] | 12B | 48 | 3840 | 262144 | 15360 | GQA+SWA | FFN | GEGLU | RoPE | QK/Pre+Post RMSNorm | – | Mar 2026 | SWA:global 5:1 |
| 31B | 60 | 5376 | 21504 | ||||||||||
| Griffin [72] | 14B | 40 | 5120 | – | 15360 | MQA/Recurrent block | FFN | GEGLU | RoPE | Pre-RMSNorm | – | Feb 2024 | RG-LRU:local attn 2:1 |
| LoLCATs [560] | 8B | 32 | 4096 | 128256 | 14336 | GQA/Linear | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Oct 2024 | LLaMA 3 linearized via attention transfer + LoRA |
| 70B | 80 | 8192 | 28672 | ||||||||||
| 405B | 126 | 16384 | 53248 | ||||||||||
| Hymba [83] | B | 32 | 1600 | 32001 | 5504 | Mamba/SWA/GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | Nov 2024 | Parallel Mamba and attn heads per layer; meta tokens |
| Nemotron-H [331] | 8B | 52 | 4096 | 131072 | 21504 | Mamba-2/GQA | FFN | SqReLU | NoPE | Pre-RMSNorm | – | Apr 2025 | Mamba-2/FFN/attn 24:24:4 (8B); 47B distilled from 56B |
| 47B | 98 | 8192 | 30720 | ||||||||||
| 56B | 118 | 8192 | 32768 | ||||||||||
| Nemotron Nano 2 [332] | 9B | 56 | 4480 | 131072 | 15680 | Mamba-2/GQA | FFN | SqReLU | NoPE | Pre-RMSNorm | – | Aug 2025 | Mamba-2/FFN/attn 28:28:6; 9B distilled from 12B |
| 12B | 62 | 5120 | 20480 | ||||||||||
| Nemotron 3 [333] | 4B | 42 | 3136 | 131072 | 12544 | Mamba-2/GQA | FFN | SqReLU | NoPE | Pre-RMSNorm | – | Mar 2026 | Mamba-2/FFN/attn 21:17:4; compressed from Nemotron Nano 2 (9B) |
| MiMo [278] | 7B | 36 | 4096 | 151680 | 11008 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | 1 | Apr 2025 | |
| openPangu Embedded [47] | 1B | 26 | 1536 | 153376 | 6144 | GQA | FFN | SwiGLU | RoPE | Pre-RMSNorm | – | May 2025 | Fast/slow thinking |
| 7B | 34 | 4096 | 12800 |
Table 14.
Architectural comparison of renowned MoE LLMs. Experts column meaning: means there are N experts always activated, plus M additional experts selected from S candidates, i.e., a total of experts are activated. For LongCat-Flash [474], 12/(512⊕256) means each layer contains 512 FFN experts and 256 zero-computation experts, with exactly 12 experts activated per token (selected from both types). is the intermediate width of a single routed expert, taken from the released configurations (e.g., moe_intermediate_size or expert_ffn_hidden_size); where a model also contains dense FFNs, in leading dense layers or as a dense path alongside the experts, their width is given in the Remark column. Vocab. denotes the vocabulary size, taken from the embedding size of the released checkpoints where available and otherwise from the original paper; minor padding variations across scales within a series are ignored. Models of the same series are placed in adjacent rows. The Release column gives the initial public release date; rows covering multiple versions show the date of the earliest release. Layers and Size exclude Multi-Token Prediction (MTP) modules; the MTP column gives the number of MTP modules attached during training (“–” if none).
Table 14.
Architectural comparison of renowned MoE LLMs. Experts column meaning: means there are N experts always activated, plus M additional experts selected from S candidates, i.e., a total of experts are activated. For LongCat-Flash [474], 12/(512⊕256) means each layer contains 512 FFN experts and 256 zero-computation experts, with exactly 12 experts activated per token (selected from both types). is the intermediate width of a single routed expert, taken from the released configurations (e.g., moe_intermediate_size or expert_ffn_hidden_size); where a model also contains dense FFNs, in leading dense layers or as a dense path alongside the experts, their width is given in the Remark column. Vocab. denotes the vocabulary size, taken from the embedding size of the released checkpoints where available and otherwise from the original paper; minor padding variations across scales within a series are ignored. Models of the same series are placed in adjacent rows. The Release column gives the initial public release date; rows covering multiple versions show the date of the earliest release. Layers and Size exclude Multi-Token Prediction (MTP) modules; the MTP column gives the number of MTP modules attached during training (“–” if none).
| Model | Size | Layers | Emb. Size | Vocab. | Experts | Time Mixing | Activation | PE | Normalization | MTP | Release | Remark | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Switch Transformer [96] | 7B-AB | 12 | 768 | 32128 | 2048 | MHA | ReLU | T5 Bias | Pre-LayerNorm | – | Jan 2021 | Encoder–decoder; top-1 routing | |
| 26B-AB | 24 | 1024 | 2816 | ||||||||||
| 395B-A11B | 24 | 4096 | 10240 | ||||||||||
| T-A1B | 15 | 2080 | 6144 | ||||||||||
| CPM-2 [568] | 198B-A11B | 48 | 4096 | 26240 | 10240 | MHA | GEGLU | T5 Bias | Pre-RMSNorm | – | Jun 2021 | Encoder–decoder | |
| GLaM [86] | 105B-AB | 24 | 2048 | 256000 | 8192 | MHA | GEGLU | Transformer-XL | Post Layernorm | – | Dec 2021 | MoE in every other layer | |
| 143B-AB | 32 | 4096 | 16384 | ||||||||||
| T-AB | 64 | 8192 | 32768 | ||||||||||
| OpenMoE [530] | B-AB | 16 | 2048 | 256384 | 8192 | MHA | SwiGLU | RoPE | Pre-LayerNorm | – | Aug 2023 | UL2 objective; open routing analysis | |
| Mixtral [312,313] | B-AB | 32 | 4096 | 32000 | 14336 | GQA | SwiGLU | RoPE | Pre-RMSNorm | – | Dec 2023 | First widely adopted open SMoE | |
| 141B-A39B | 56 | 6144 | 16384 | Apr 2024 | |||||||||
| Mistral Large 3 [314] | 675B-A41B | 61 | 7168 | 131072 | 4096 | MLA | SwiGLU | RoPE | Pre-RMSNorm | – | Dec 2025 | Adopts DeepSeek-style MLA | |
| DeepSeekMoE [68] | B-AB | 28 | 2048 | 102400 | 1408 | MHA | SwiGLU | RoPE | Pre-RMSNorm | – | Jan 2024 | Fine-grained experts + shared-expert isolation | |
| DeepSeek-V2 [73] | 236B-A21B | 60 | 5120 | 102400 | 1536 | MLA | SwiGLU | RoPE | Pre-RMSNorm | – | May 2024 | Introduces MLA (low-rank KV compression) | |
| DeepSeek-V3.x [269] | 671B-A37B | 61 | 7168 | 129280 | 2048 | MLA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Dec 2024 | Covers V3/V3.1 | |
| DeepSeek-R1 [74] | 671B-A37B | 61 | 7168 | 129280 | 2048 | MLA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Jan 2025 | RL reasoning model on the V3 base | |
| DeepSeek-V3.2 [75] | 671B-A37B | 61 | 7168 | 129280 | 2048 | MLA+DSA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Sep 2025 | DSA sparse attention on top of MLA | |
| DeepSeek-V4 [76] | 284B-A13B | 43 | 4096 | 129280 | 2048 | CSA/HCA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Jun 2026 | CSA/HCA hybrid; mHC residuals | |
| T-A49B | 61 | 7168 | 3072 | ||||||||||
| Jamba [263] | 52B-A12B | 32 | 4096 | 65536 | 14336 | Mamba/GQA | SwiGLU | NoPE | Pre-RMSNorm | – | Mar 2024 | Attn:Mamba 1:7; MoE every other layer | |
| 398B-A94B | 72 | 8192 | 24576 | Aug 2024 | |||||||||
| JetMoE [435] | B-AB | 24 | 2048 | 32000 | 5632 | MoA | SwiGLU | RoPE | Pre-LayerNorm | – | Apr 2024 | Sparse routing in both attention (MoA) and FFN | |
| MiniCPM-MoE [173] | B-A4B | 40 | 2304 | 122753 | 5760 | MHA | SwiGLU | RoPE | Pre-RMSNorm | – | Apr 2024 | Upcycled from MiniCPM-2.4B | |
| Qwen2 [533] | 57B-A14B | 28 | 3584 | 151936 | 2560 | GQA | SwiGLU | RoPE | Pre-RMSNorm | – | Jun 2024 | Upcycled from Qwen2-7B | |
| Qwen3 [371] | 30B-A3B | 48 | 2048 | 151936 | 768 | GQA | SwiGLU | RoPE | QK/Pre-RMSNorm | – | Apr 2025 | No shared expert | |
| 235B-A22B | 94 | 4096 | 1536 | SwiGLU | |||||||||
| Qwen3-Next [39,477] | 80B-A3B | 48 | 2048 | 151936 | 512 | Gated DeltaNet/ Gated Attention |
SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Sep 2025 | DeltaNet:attn 3:1 | |
| Qwen3.5/3.6 [372,373] | 35B-A3B | 40 | 2048 | 248320 | 512 | Gated DeltaNet/ Gated Attention |
SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Feb 2026 | Covers 3.5/3.6; DeltaNet:attn 3:1; multimodal | |
| 122B-A10B | 48 | 3072 | 1024 | ||||||||||
| 397B-A17B | 60 | 4096 | 1024 | ||||||||||
| Qwen3.8-Max [375,377] | T-A95B | 92 | 8192 | 248320 | 2048 | Gated DeltaNet/ Gated Attention |
SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Aug 2026 | Built on Qwen3.5; DeltaNet:attn 3:1; open weights text-only, hosted Max adds vision and 1M ctx | |
| OLMoE [320] | B-AB | 16 | 2048 | 50304 | 1024 | MHA | SwiGLU | RoPE | QK/Pre-RMSNorm | – | Sep 2024 | Fully open: weights, data, code | |
| MiniMax-01/M1 [249,306] | 456B-AB | 80 | 6144 | 200064 | 9216 | Lightning Attn GQA |
SwiGLU | RoPE | Post DeepNorm | – | Jan 2025 | Lightning:softmax attn 7:1; M1: RL reasoning variant | |
| MiniMax-M2.x [307,308,309,310] | 230B-A10B | 62 | 3072 | 200064 | 1536 | GQA | SwiGLU | RoPE | QK/Pre-RMSNorm | 3 | Oct 2025 | Covers M2–M2.7; back to full softmax attention | |
| MiniMax-M3 [305,311] | 428B-A23B | 60 | 6144 | 200064 | 3072 | GQA+MSA | SwiGLU | RoPE | QK/Pre-RMSNorm | 7 | Jun 2026 | Multimodal; MSA block-sparse attn; clamped SwiGLU; 3 dense layers | |
| LLaMA 4 [297] | 109B-A17B | 48 | 5120 | 202048 | 8192 | GQA | SwiGLU | iRoPE | Pre-RMSNorm | – | Apr 2025 | ]2=Maverick alternates MoE and dense (=16384) layers | |
| 400B-A17B | 48 | 5120 | 8192 | ||||||||||
| openPangu Ultra-MoE [463] | 718B-A39B | 61 | 7680 | 153600 | 2048 | MLA | SwiGLU | RoPE | Pre+Post RMSNorm | 1 | May 2025 | Sandwich-Norm; first 3 layers dense | |
| openPangu-R [181] | 74B-A15B | 50 | 4608 | 153600 | 1280 | GQA | SwiGLU | RoPE | K/Pre+Post RMSNorm | 1 | Dec 2025 | Sandwich-Norm; K-Norm; first 4 layers dense | |
| openPangu-2.0-Flash [182] | 92B-A6B | 46 | 2560 | 151552 | 1024 | MLA+DSA/SWA | SwiGLU | RoPE | Pre+Post RMSNorm | 3 | Jun 2026 | DSA:SWA 1:2; mHC | |
| Kimi K2.x [315,316,469,470] | T-AB | 61 | 7168 | 163840 | 2048 | MLA | SwiGLU | RoPE | Pre-RMSNorm | – | Jul 2025 | Covers K2–K2.7-Code; V3-style backbone with halved attention heads; multimodal from K2.5 | |
| Kimi Linear [471] | 48B-A3B | 27 | 2304 | 163840 | 1024 | KDA/MLA | SwiGLU | NoPE | Pre-RMSNorm | – | Oct 2025 | KDA:MLA 3:1 | |
| Kimi K3 [317] | T-A104B | 93 | 7168 | 163840 | 3072 | KDA/Gated MLA | SiTU-GLU | NoPE | Pre-RMSNorm | 1 | Jul 2026 | KDA:Gated MLA 3:1; AttnRes; latent MoE; multimodal | |
| GLM-4.x [479] | 106B-A12B | 46 | 4096 | 151552 | 1408 | GQA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Jul 2025 | Air/4.5/4.6/4.7; 355B adds QK-Norm | |
| 355B-A32B | 92 | 5120 | 1536 | QK/Pre-RMSNorm | |||||||||
| GLM-4.7-Flash [549] | 30B-A3B | 47 | 2048 | 154880 | 1536 | MLA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Jan 2026 | Lightweight local coding/agent variant | |
| GLM-5.x [122,480,481] | 753B-A40B | 78 | 6144 | 154880 | 2048 | MLA+DSA | SwiGLU | RoPE | Pre-RMSNorm | 1 | Feb 2026 | Covers 5/5.1/5.2/5.3; first 3 layers dense; 5.2 adds IndexShare; 5.3 scales post-training on the 5.2 base | |
| GPT-OSS [339] | 21B-AB | 24 | 2880 | 201088 | 2880 | GQA | SwiGLU | RoPE | Pre-RMSNorm | – | Aug 2025 | Clamped SwiGLU; SWA:full 1:1; attention sinks | |
| 117B-AB | 36 | 2880 | 2880 | GQA | SwiGLU | RoPE | Pre-RMSNorm | ||||||
| Grok 2.5 [516] | 270B-A115B | 64 | 8192 | 131072 | 16384 | GQA | SwiGLU | RoPE | Pre-RMSNorm | – | Aug 2025 | Shared dense FFN in parallel with routed experts | |
| LongCat-Flash [474] | 560B-A27B | 28 | 6144 | 131072 | 12/(512⊕256) | 2048 | MLA | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Sep 2025 | Shortcut-connected MoE; dense FFN (=12288) in every block |
| LongCat-Flash-Lite [292] | 68.5B-A3B | 14 | 3072 | 131072 | 12/(256⊕128) | 1024 | MLA | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Jan 2026 | +30B N-gram embeddings; dense FFN (=6144) in every block |
| LongCat-2.0 [291] | 1.6T-A48B | 38 | 8192 | 163840 | 12/(768⊕128) | MLA+LSA | SwiGLU | RoPE | QK/Pre-RMSNorm | 3 | Jun 2026 | +135B N-gram embeddings; LSA; †dense-path width, expert width to be confirmed | |
| Ling-1T [267] | 1T-A50B | + | 8192 | 157184 | 2048 | GQA | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Oct 2025 | Aux-loss-free sigmoid routing; 4 leading dense layers (=18432) | |
| Ring-1T [473] | 1T-A50B | + | 8192 | 157184 | 2048 | GQA | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Oct 2025 | RL reasoning variant of Ling-1T; same dense/expert widths | |
| MiMo-V2.x [279,521] | 309B-A15B | 48 | 4096 | 152576 | 2048 | GQA+SWA | SwiGLU | RoPE | Pre-RMSNorm | 3 | Dec 2025 | Covers Flash/2.5/2.5-Pro; SWA:global 5:1; first layer dense | |
| T-A42B | 70 | 6144 | 2048 | Apr 2026 | |||||||||
| Nemotron 3 [330,334,335] | 30B-A3B | 52 | 2688 | 131072 | 1856 | Mamba-2/GQA | SqReLU | NoPE | Pre-RMSNorm | – | Dec 2025 | Mamba-2/attn/MoE hybrid; Super/Ultra add latent MoE | |
| 120B-A12B | 88 | 4096 | 2688 | 1 | Mar 2026 | ||||||||
| 550B-A55B | 108 | 8192 | 5120 | 1 | Jun 2026 | ||||||||
| Gemma 4 [113] | 26B-A4B | 30 | 2816 | 262144 | 704 | GQA+SWA | GEGLU | RoPE | QK/Pre+Post RMSNorm | – | Mar 2026 | Dense FFN in parallel with experts; SWA:global 5:1 | |
| Hy3 [482] | 295B-A21B | 80 | 4096 | 120832 | 1536 | GQA | SwiGLU | RoPE | QK/Pre-RMSNorm | 1 | Jul 2026 | Fast/slow thinking fusion; 256K ctx | |
| Hy4 preview [483] | 770B-A49B | 78 | 6144 | 120832 | 2048 | Gated MLA+DSA | Clamped SwiGLU | RoPE | Pre-RMSNorm | 1 | Aug 2026 | First layer dense; IndexCache; iHC residuals (4 streams); attention sinks; 1M ctx | |
| Inkling [484] | 975B-A41B | 66 | 6144 | 201024 | 3072 | GQA+SWA | SwiGLU | Inkling RPE | QK/Pre-RMSNorm | – | Jul 2026 | SWA:global 5:1; QKV short conv; expert sinks; multimodal |
15. Beyond Components: A Unified View of Architectural Design
The preceding sections organized language model architectures primarily by components and technical families, including efficient attention and KV cache management (Section 5), linear sequence operators (Section 6), mixture of experts layers (Section 7), activation functions (Section 8), normalization (Section 9), positional encoding (Section 10), tokenization (Section 11), multi-token prediction and speculative decoding (Section 12), and adaptive and recurrent depth (Section 13). This organization is useful for understanding individual mechanisms, but it can obscure the broader assumptions about computational structure that different mechanisms preserve, refine, or relax.
This section provides a complementary reading of these architectural families by asking which assumptions of the canonical decoder they reconsider. Tokenization and positional encoding jointly define the sequence interface through which computation is organized. Mixture-of-experts layers change which parameters are activated for a given input, while early-exit and recurrent-depth models vary how much computation is allocated to it. Activation functions, normalization, and residual design refine the transformations performed along an active computational path and how these transformations compose across depth. KV compression and linear or recurrent sequence operators offer alternative answers to how history is represented and updated. Multi-token prediction and speculative execution distinguish how far ahead a representation is trained to predict from when tentative outputs are committed. We organize these developments into four broad architectural directions—processing structure, transformation dynamics, state management, and output commitment—and into the more concrete design dimensions summarized in Table 15. These dimensions are analytically distinct but not mutually exclusive, and a single mechanism may modify several of them simultaneously.
15.1. The Canonical Computational Structure and Its Implicit Design Assumptions
A standard decoder-only Transformer (Section 4) processes a fixed tokenization through a predetermined stack of parameterized layers. At a given layer, every token is processed by the same dense parameter blocks, although its attention weights, activations, and hidden representations remain input dependent. During incremental generation, the model retains layer-wise token-level key and value states in a growing KV cache. Each forward pass produces a next-token distribution, after which one token is selected and incorporated into the subsequent decoding state. These choices embody assumptions not only about local operators, but also about how representation, computation, state, and generation should be organized.
At a high level, these assumptions fall into four groups. First, the canonical decoder uses a fixed processing structure: the representation unit, active parameter blocks, layer schedule, and nominal computation assigned to each token are largely fixed independently of its content or difficulty. Second, it uses a fixed transformation and composition scheme: each block applies a predetermined nonlinear transformation within a fixed normalization and residual structure through which signals and gradients propagate. Third, it uses explicit history and append-only state: historical information is retained at token-level resolution, while the decoder state normally grows by appending finalized representations. Fourth, it uses one-step prediction and immediate commitment: each hidden state is primarily trained to predict the next token, and that prediction is committed before longer continuations are constructed or compared.
These assumptions define four broad architectural questions concerning how computation is organized, how transformations are expressed and composed, how historical state is represented and updated, and how future outputs are predicted and committed. Table 15 decomposes these questions into more concrete design dimensions.
15.2. Design Directions Beyond the Canonical Decoder
Following the four broader directions of architectural change, we summarize the corresponding design dimensions and associated methods introduced in the preceding sections, while clarifying the distinctions among closely related choices.
15.2.1. Flexible and Conditional Processing
A common trend across recent decoder architectures is the relaxation of uniform processing: the same computational structure no longer needs to be applied identically across all tokens, layers, or inputs. This relaxation ranges from structural heterogeneity, where different components are assigned different roles by design, to conditional processing, where those choices depend on the input or model state. Viewed along this spectrum, flexibility emerges in four related dimensions: the units and coordinates over which computation is defined, the sequence operators used to process them, the parameter modules that are activated, and the amount of computation that is allocated.
The first two dimensions determine the structure through which information is processed. At the sequence interface, the canonical decoder applies a fixed tokenization and positional scheme uniformly, whereas recent designs explore finer, multi-scale, or adaptive units together with alternative positional structures (Section ). A similar departure from uniformity appears in operator assignment: instead of repeatedly applying the same class of sequence-mixing operator, hybrid architectures combine different operators across layers or heads, for example quadratic attention with linear or recurrent alternatives (Section 14). Together, these developments make representation and interaction structures more heterogeneous or conditional, allowing the organization and flow of information to vary rather than being fixed uniformly by the architecture.
The other two dimensions concern conditional use of model capacity and computation. Parameter activation determines which parameterized modules are used, as in mixture of experts architectures that route inputs among specialized modules (Section 7). Computation allocation instead determines how much processing is performed and where it is assigned. Variable-depth methods may reduce computation through early exit or layer skipping, redistribute it across tokens through conditional depth, or increase it through recurrent refinement (Section 13); speculative decoding redistributes computation across drafting and verification stages (Section 12). These mechanisms replace a fixed computation path with one that can contract, expand, or redistribute processing according to the input or generation process.
Across these four dimensions, flexibility therefore ranges from static heterogeneity in the processing structure to dynamic, input-dependent allocation of parameters and computation. The common trade-off is that relaxing a uniform processing pattern can reduce the regularity that makes dense Transformers efficient to train and serve, introducing additional overheads in routing, batching, and irregular execution.
15.2.2. Refined Transformation Dynamics
A second direction preserves the broad computational path while refining the transformations performed within it toward greater expressivity, selectivity, and more effective propagation across depth. The local nonlinearity dimension concerns the nonlinear operations applied within an active block. Changes to the baseline FFN nonlinearity or gating parameterization modify feature interactions, information transmission, and local expressivity without changing the overall computational path or the number of executed blocks (Section 8).
The depth propagation dimension instead concerns how these transformations evolve and compose across the layer stack. Normalization placement, residual scaling, and gated residual pathways shape the propagation of representations and gradients, as well as how successive transformations accumulate across depth (Section 9). This distinguishes depth propagation from computation allocation: adaptive-depth mechanisms determine how many transformations are executed, whereas normalization and residual design govern how a given sequence of transformations is composed.
15.2.3. Selective and Flexible State Management
A third departure from the canonical decoder concerns how past computation is retained and managed. Rather than treating history as a uniformly preserved, append-only record, recent architectures increasingly make state selective in what it stores and flexible in how that stored information can evolve. This shift spans two related dimensions: history representation, which determines the form and resolution of retained information, and state update, which determines the operations permitted on that information over time.
Along the first dimension, KV-compression methods preserve explicit access to past positions while reducing the amount or redundancy of stored state (Section 5), whereas linear recurrent models integrate history into compact representations (Section 6). These approaches differ in both what is stored and when selection occurs. Full-cache attention with sparse reads selects at retrieval time; permanent KV eviction selects during storage, and KV merging constructs aggregated entries. Linear recurrent models accumulate history into a compact state as it is constructed. Hybrid architectures combine the two strategies, preserving explicit access where fine-grained retrieval is useful while maintaining compact state elsewhere [72,83,263].
Flexibility also extends to the lifecycle of the retained state. Conventional KV caching is effectively append-only, but more adaptive mechanisms may evict, merge, or compress retained states, or branch and discard tentative states during multi-candidate generation and verification (Section 12). Representation and update are therefore distinct design choices: a recurrent model may strongly compress history while evolving strictly forward, whereas speculative decoding may retain detailed KV states while creating temporary branches that are later accepted or discarded. The broader trend is thus from history as a fixed execution trace toward state as a managed computational resource whose content, resolution, and persistence can be adapted to the needs of subsequent computation.
15.2.4. Lookahead and Delayed Commitment
A further shift concerns how future outputs are represented and finalized during generation. The canonical decoder tightly couples prediction and commitment: each state predicts the immediate next token, which is then incorporated into the sequence before subsequent predictions are made. Recent architectures loosen this coupling by allowing the model to look farther ahead and by delaying when tentative predictions become part of the persistent decoding state.
These changes operate along two distinct dimensions. The prediction horizon concerns how much of the future a current representation is trained or structured to predict. Multi-token and block-wise methods extend this horizon through parallel prediction heads or sequential predictors. The output commitment dimension instead concerns how proposed continuations are handled before they become part of the accepted sequence. Rather than committing each token immediately after prediction, speculative decoding introduces tentative continuations that can be drafted ahead, organized into multiple candidates or trees, evaluated in parallel, and then verified, rejected, or revised before commitment. The methods reviewed in Section 12 collectively span both dimensions.
Together, these developments reflect a broader shift away from the tightly coupled one-step predict-and-commit paradigm of autoregressive generation. By separating prediction from irreversible state advancement, they expose a larger window of future computation that can be organized and evaluated before commitment, relaxing the strictly serial execution, one full target-model pass per committed token, that has traditionally constrained autoregressive decoding; with exact verification, the autoregressive factorization of the target distribution itself is left untouched, so what changes is the execution schedule, not the dependency structure of the model.
15.3. Interdependencies and Joint Design
The four directions above are analytically distinct but not independent. Changes along one direction can alter the cost, feasibility, or usefulness of choices along another, so architectural design is better understood as a joint configuration than as the independent optimization of isolated components. The recurring configurations identified in Section 14.2 show that these dimensions are combined in model backbones rather than selected in isolation. The architectures cited below illustrate representative joint configurations adopted in practice; their use should not be interpreted as evidence that these configurations are optimal. The purpose here is not to catalogue those configurations again, but to examine the dependencies that make particular combinations consequential.
Operator assignment shapes history representation.
Operator assignment directly changes the form in which sequence history is retained. Attention preserves explicitly addressable token-level key–value states, whereas recurrent or linear operators update a compressed state as the sequence is processed. Hybrid architectures assign these forms of history representation to different layers or heads. Jamba interleaves attention and recurrent layers [263,468], while Hymba combines attention and state-space heads within each layer together with additional KV-sharing mechanisms [83]. These architectures thereby instantiate different mixtures of explicit and compressed history within a single backbone.
Parameter activation and history representation impose coupled resource demands.
Parameter activation and history representation govern different resource budgets. Sparse MoE layers decouple total parameter capacity from the parameters activated for each token, whereas compressed or selective attention changes the state retained or accessed during decoding. DeepSeek-V2 and DeepSeek-V3 combine sparse parameter activation with MLA-based KV compression [73,269], providing concrete instances in which these two budgets are configured within one backbone. The mechanisms remain distinct in the forward computation, but they become coupled at the systems level: expert routing changes communication and batching behavior, while history representation changes memory traffic, kernel requirements, and context-dependent state growth. Their joint selection must therefore be evaluated against a shared resource budget.
Sequence interface shapes history representation and prediction horizon.
Changes to the sequence interface interact directly with both history representation and prediction horizon. Specifically, the representation units define the scale at which both memory and prediction operate. Finer units increase sequence length and state growth, while coarser or adaptive units place more information into each sequential state. Consequently, both the cost of retaining history and the effective extent of a multi-step prediction horizon are relative to the underlying unit system. Context length, history representation, and prediction horizon should therefore be interpreted and designed jointly rather than solely in terms of token counts.
Depth propagation is coupled to computation allocation and operator assignment.
Computation allocation depends on transformations remaining effective under variable execution paths. Early exit is useful only if intermediate representations become sufficiently informative before the full stack is completed, while layer skipping and conditional depth require later transformations to operate on representations produced by heterogeneous computational histories. Recurrent depth imposes a different requirement: repeated application of shared transformations must remain dynamically stable while continuing to produce meaningful refinement as effective depth increases. Operator assignment introduces a related challenge, since residual and normalization pathways must compose representations produced by sequence operators with different mixing and propagation characteristics. Depth propagation is therefore coupled to both dimensions: changing which transformations are executed, how often they are applied, or how different operators are arranged changes the conditions under which representations must remain stable and compatible across depth.
Prediction horizon and output commitment affect state update and computation allocation differently.
Prediction horizon and output commitment affect state update in different ways. Training-time MTP extends the future targets used to supervise a representation, but it does not by itself create provisional decoding states. DeepSeek-V3 provides a concrete configuration in which an MTP objective coexists with MLA-based history representation and sparse parameter activation [269], making the corresponding training and resource choices jointly relevant within one backbone. Delayed output commitment at inference time, by contrast, creates provisional computation beyond the accepted sequence. Longer drafts or wider candidate trees require temporary states that may need to branch, persist selectively, or be discarded or rolled back after verification. Compression can reduce this overhead, yet aggressive compression may make verification or rollback more difficult if relevant information has been removed. Output commitment also interacts with computation allocation: tentative continuations can be produced with cheaper or shallower computation and subjected to more expensive processing only when verification is required. This asymmetry further couples computation allocation to state update because states produced under different amounts of computation must remain usable when deeper processing or verification is subsequently invoked. History representation, state update, computation allocation, prediction horizon, and output commitment therefore cannot always be optimized independently.
Architectural choices remain subject to realization constraints.
The dimensions above characterize the forward architecture, but the usable design space is also shaped by training and systems mechanisms. Sparse parameter activation depends on load balancing, communication, and efficient batching; recurrent or conditional computation allocation depends on stable optimization and credit assignment across the executed path; and alternative operator assignments depend on numerical behavior, optimized kernels, caching support, and compatibility with decoding procedures. The transition from the Lightning-Attention hybrid of MiniMax-01 to the full-attention design of MiniMax-M2 provides a concrete example: MiniMax attributes the later choice partly to evaluation uncertainty and the relative immaturity of efficient-attention infrastructure [249,453], and the subsequent adoption of block-sparse MSA attention in MiniMax-M3 [311] shows that such decisions are revisited as infrastructure matures. These considerations are not additional architectural dimensions, but they determine which joint configurations are practical at scale.
More generally, these architectural directions interact through both trade-offs and complementarities. Conditional parameter activation or computation allocation can reduce executed computation while making routing and communication more prominent; extended prediction horizons and delayed output commitment can amortize sequential decoding while introducing drafting, verification, and temporary-state overhead; and compressed or recurrent history representations can reduce memory growth while changing the cost and flexibility of state access and update. At the same time, a lower state cost can make a longer prediction horizon, broader branching, or additional refinement affordable, while more stable depth propagation can support more aggressive conditional or recurrent computation allocation. The value of an individual mechanism therefore depends not only on the cost it removes, but also on the costs it introduces and the architectural choices it enables elsewhere.
16. Concluding Remarks
This survey has examined the architectural innovations that are shaping the next generation of large language models. Starting from the modern Transformer decoder (Section 4), we reviewed efficient attention and KV cache management (Section 5), linear language models (Section 6), mixture of experts (Section 7), activation functions (Section 8), normalization and residual connections (Section 9), positional encoding (Section 10), tokenization (Section 11), multi-token prediction (Section 12), and adaptive and recurrent depth (Section 13), and then examined how representative open-weight LLM families combine these components in practice (Section 14). Rather than restating each section, we close by summarizing what the survey as a whole suggests about where LLM architecture is heading.
The first observation is that the canonical decoder-only Transformer, with dense feed-forward blocks, a fixed layer schedule, and the now-standard combination of Pre-RMSNorm, SwiGLU, and RoPE, remains the reference configuration against which nearly every innovation is defined. Its persistence is plausibly explained by the fact that a uniform computation path with stable interfaces among attention, feed-forward, and residual components is easy to implement, scale, and compare, although, as noted in Section 14, model releases do not isolate the causal contribution of these properties to adoption. Most of the developments surveyed here do not discard this backbone. Instead, each selectively relaxes one of its implicit assumptions about how representation, computation, state, and generation are organized, while retaining the rest.
Viewed through the unified perspective of Section 15, these relaxations cluster into four broad directions. Flexible and conditional processing loosens the assumption that every token is processed identically: tokenization and positional encoding redefine the units and coordinates over which computation is defined; hybrid architectures assign heterogeneous sequence operators across layers or heads; mixture of experts makes parameter activation input-dependent; and early exit, conditional depth, and looped Transformers make the amount of computation per token adjustable. Refined transformation dynamics keeps the computational path fixed but improves what happens along it, through gated activations that shape local nonlinearity and through normalization and residual designs that govern how transformations compose across depth. Selective and flexible state management replaces the append-only, token-level KV cache with history that is compressed, selected, recurrent, or hybrid, and whose lifecycle admits eviction, merging, branching, and rollback. Lookahead and delayed commitment decouples prediction from commitment: multi-token prediction lengthens the horizon a representation is trained to predict, and speculative verification, a decoding-time procedure that architectural components such as MTP modules and draft heads are designed to support, defers the point at which tentative outputs become part of the decoding state.
The second observation is that these directions are increasingly configured jointly rather than adopted in isolation. The recurring patterns identified in Section 14, namely sparse capacity paired with compressed attention state, hybrid sequence and state processing, and prediction-augmented backbones, are combinations, and their value derives from how the constituent choices interact. Operator assignment determines the form in which history is represented; sparse parameter activation and compressed history draw on distinct but coupled resource budgets; the sequence interface sets the scale at which both memory cost and prediction horizon are measured; and depth propagation must remain stable under variable execution paths and heterogeneous operators. The benefit of any single mechanism therefore depends not only on the cost it removes, but also on the costs it introduces and the design choices it enables elsewhere.
The third observation is that the usable design space is bounded by realization constraints as much as by modeling considerations. Sparse activation depends on load balancing, communication, and batching; recurrent and conditional depth depend on stable optimization and credit assignment through the executed path; and alternative sequence operators depend on numerical behavior, optimized kernels, caching support, and compatibility with decoding procedures. The decision of at least one recent hybrid family to return to full attention, even as others continued to adopt hybrid designs, before moving on to block-sparse attention in its next generation (Section 15), illustrates that infrastructure maturity and evaluation uncertainty can outweigh efficiency arguments at scale, and that such decisions are revisited as infrastructure matures. Architectural progress therefore advances hand in hand with training recipes and systems support.
Taken together, these observations suggest that next-generation LLM architectures will be characterized less by a single replacement for attention or for the dense feed-forward block than by increasingly adaptive allocation of computation, capacity, state, and prediction across tokens, layers, and time. Several challenges remain open. Scaling laws remain incomplete for the new axes exposed by this survey: beyond existing laws for routed models in terms of expert count and granularity [62,236], prediction horizon, recurrent depth, and state size lack comparable treatment, particularly under matched training and inference compute. Training methods must keep conditional and recurrent computation stable as it is scaled. Evaluation protocols should expose the trade-offs among expressiveness, efficiency, and stability rather than measuring any one in isolation. Meeting these challenges will require sustained interplay between architectural design, optimization, and systems engineering. We hope this survey offers a structured map of the design space to support that effort.
References
- Ainslie, Joshua; Lee-Thorp, James; de Jong, Michiel; Zemlyanskiy, Yury; Lebrón, Federico; Sanghai, Sumit. GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints. In Empirical Methods in Natural Language Processing; 2023a. [Google Scholar]
- Ainslie, Joshua; Lei, Tao; de Jong, Michiel; Ontanon, Santiago; Brahma, Siddhartha; Zemlyanskiy, Yury; Uthus, David; Guo, Mandy; Lee-Thorp, James; Tay, Yi; et al. CoLT5: Faster Long-Range Transformers with Conditional Computation. Empirical Methods in Natural Language Processing, 2023b. [Google Scholar]
- Aizerman, A. Theoretical Foundations of the Potential Function Method in Pattern Recognition Learning. In Automation and Remote Control; 1964. [Google Scholar]
- Aksenov, Yaroslav; Balagansky, Nikita; Lo Cicero Vaina, Sofia Maria; Shaposhnikov, Boris; Gorbatovski, Alexey; Gavrilov, Daniil. Linear Transformers with Learnable Kernel Functions Are Better In-Context Models. Association for Computational Linguistics, 2024. [Google Scholar]
- Almazrouei, Ebtesam; Alobeidli, Hamza; Alshamsi, Abdulaziz; Cappelli, Alessandro; Cojocaru, Ruxandra; Debbah, Mérouane; Goffinet, Étienne; Hesslow, Daniel; Launay, Julien; Malartic, Quentin; et al. The Falcon Series of Open Language Models. arXiv 2023, arXiv:2311.16867. [Google Scholar]
- Amari, S.-I. Learning Patterns and Pattern Sequences by Self-Organizing Nets of Threshold Elements. IEEE Transactions on Computers, 1972. [Google Scholar]
- An, Chenxin; Huang, Fei; Zhang, Jun; Gong, Shansan; Qiu, Xipeng; Zhou, Chang; Kong, Lingpeng. Training-Free Long-Context Scaling of Large Language Models. International Conference on Machine Learning, 2024. [Google Scholar]
- An, Chenxin; Zhang, Jun; Zhong, Ming; Li, Lei; Gong, Shansan; Luo, Yao; Xu, Jingjing; Kong, Lingpeng. Why Does the Effective Context Length of LLMs Fall Short? International Conference on Learning Representations, 2025. [Google Scholar]
- Ankner, Zachary; Parthasarathy, Rishab; Nrusimha, Aniruddha; Rinard, Christopher; Ragan-Kelley, Jonathan; Brandon, William. Hydra: Sequentially-Dependent Draft Heads for Medusa Decoding. Conference on Language Modeling, 2024. [Google Scholar]
- Anthropic. System Card: Claude Fable 5 & Claude Mythos 5. System card, Anthropic, 2026. 09 06 2026. Available online: https://www-cdn.anthropic.com/d00db56fa754a1b115b6dd7cb2e3c342ee809620.pdf (accessed on 2026-07-28).
- Arjovsky, Martin; Shah, Amar; Bengio, Yoshua. Unitary Evolution Recurrent Neural Networks. International Conference on Machine Learning, 2016. [Google Scholar]
- Arora, Simran; Eyuboglu, Sabri; Zhang, Michael; Timalsina, Aman; Alberti, Silas; Zou, James; Rudra, Atri; Ré, Christopher. Simple Linear Attention Language Models Balance the Recall-Throughput Tradeoff. International Conference on Machine Learning, 2024. [Google Scholar]
- Ba, Jimmy Lei; Kiros, Jamie Ryan; Hinton, Geoffrey E. Layer Normalization. arXiv 2016, arXiv:1607.06450. [Google Scholar]
- Bachmann, Gregor; Nagarajan, Vaishnavh. The Pitfalls of Next-Token Prediction. International Conference on Machine Learning, 2024. [Google Scholar]
- Bae, Sangmin; Fisch, Adam; Harutyunyan, Hrayr; Ji, Ziwei; Kim, Seungyeon; Schuster, Tal. Relaxed Recursive Transformers: Effective Parameter Sharing with Layer-Wise LoRA. International Conference on Learning Representations, 2025a. [Google Scholar]
- Bae, Sangmin; Kim, Yujin; Bayat, Reza; Kim, Sungnyun; Ha, Jiyoun; Schuster, Tal; Fisch, Adam; Harutyunyan, Hrayr; Ji, Ziwei; Courville, Aaron C.; Yun, Se-Young. Mixture-of-Recursions: Learning Dynamic Recursive Depths for Adaptive Token-Level Computation. Neural Information Processing Systems, 2025b. [Google Scholar]
- Bahdanau, Dzmitry; Cho, Kyunghyun; Bengio, Yoshua. Neural Machine Translation by Jointly Learning to Align and Translate. International Conference on Learning Representations, 2015. [Google Scholar]
- Bahl, Lalit R; Jelinek, Frederick; Mercer, Robert L. A Maximum Likelihood Approach to Continuous Speech Recognition. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1983. [Google Scholar]
- Bahl, Lalit R; Brown, Peter F; De Souza, Peter V; Mercer, Robert L. A Tree-Based Statistical Language Model for Natural Language Speech Recognition. IEEE Transactions on Acoustics, Speech, and Signal Processing, 1989. [Google Scholar]
- Bai, Jinze; Bai, Shuai; Chu, Yunfei; Cui, Zeyu; Dang, Kai; Deng, Xiaodong; Fan, Yang; Ge, Wenbin; Han, Yu; Huang, Fei; et al. Qwen Technical Report. arXiv 2023, arXiv:2309.16609. [Google Scholar]
- Bai, Shaojie; Kolter, J. Zico; Koltun, Vladlen. Deep Equilibrium Models. Neural Information Processing Systems, 2019. [Google Scholar]
- Bai, Yushi; Dong, Qian; Jiang, Ting; Lv, Xin; Du, Zhengxiao; Zeng, Aohan; Tang, Jie; Li, Juanzi. IndexCache: Accelerating Sparse Attention via Cross-Layer Index Reuse. arXiv 2026, arXiv:2603.12201. [Google Scholar]
- Baranchuk, Dmitry; Babenko, Artem; Malkov, Yury. Revisiting the Inverted Indices for Billion-Scale Approximate Nearest Neighbors. European Conference on Computer Vision, 2018. [Google Scholar]
- Beck, Maximilian; Pöppel, Korbinian; Spanring, Markus; Auer, Andreas; Prudnikova, Oleksandra; Kopp, Michael; Klambauer, Günter; Brandstetter, Johannes; Hochreiter, Sepp. xLSTM: Extended Long Short-Term Memory. Neural Information Processing Systems, 2024. [Google Scholar]
- Beck, Maximilian; Pöppel, Korbinian; Lippe, Phillip; Hochreiter, Sepp. Tiled Flash Linear Attention: More Efficient Linear RNN and xLSTM Kernels. Neural Information Processing Systems, 2025. [Google Scholar]
- Behrouz, Ali; Zhong, Peilin; Mirrokni, Vahab. Titans: Learning to Memorize at Test Time. Neural Information Processing Systems, 2025. [Google Scholar]
- Bengio, Yoshua; Ducharme, Réjean; Vincent, Pascal. A Neural Probabilistic Language Model. In Neural Information Processing Systems; 2000. [Google Scholar]
- Berger, Adam; Della Pietra, Stephen A; Della Pietra, Vincent J. A Maximum Entropy Approach to Natural Language Processing. In Computational Linguistics; 1996. [Google Scholar]
- Berges, Vincent-Pierre; Oğuz, Barlas; Haziza, Daniel; Yih, Wen-tau; Zettlemoyer, Luke; Gosh, Gargi. Memory Layers at Scale. International Conference on Machine Learning, 2025. [Google Scholar]
- Bi, Xiao; Chen, Deli; Chen, Guanting; Chen, Shanhuang; Dai, Damai; Deng, Chengqi; Ding, Honghui; Dong, Kai; Du, Qiushi; Fu, Zhe; et al. DeepSeek LLM: Scaling Open-Source Language Models with Longtermism. arXiv 2024, arXiv:2401.02954. [Google Scholar]
- Biderman, Stella; Schoelkopf, Hailey; Anthony, Quentin Gregory; Bradley, Herbie; O’Brien, Kyle; Hallahan, Eric; Khan, Mohammad Aflah; Purohit, Shivanshu; Prashanth, USVSN Sai; Raff, Edward; et al. Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling. International Conference on Machine Learning, 2023. [Google Scholar]
- Brandon, William; Mishra, Mayank; Nrusimha, Aniruddha; Panda, Rameswar; Ragan-Kelley, Jonathan. Reducing Transformer Key-Value Cache Size with Cross-Layer Attention. Advances in Neural Information Processing Systems, 2024. [Google Scholar]
- Brown, Peter F; Della Pietra, Vincent J; Desouza, Peter V; Lai, Jennifer C; Mercer, Robert L. Class-Based N-gram Models of Natural Language. In Computational Linguistics; 1992. [Google Scholar]
- Brown, Tom; Mann, Benjamin; Ryder, Nick; Subbiah, Melanie; Kaplan, Jared D; Dhariwal, Prafulla; Neelakantan, Arvind; Shyam, Pranav; Sastry, Girish; Askell, Amanda; et al. Language Models Are Few-Shot Learners. Neural Information Processing Systems, 2020. [Google Scholar]
- Cai, Tianle; Li, Yuhong; Geng, Zhengyang; Peng, Hongwu; Lee, Jason D.; Chen, Deming; Dao, Tri. Medusa: Simple LLM Inference Acceleration Framework with Multiple Decoding Heads. International Conference on Machine Learning, 2024a. [Google Scholar]
- Cai, Weilin; Jiang, Juyong; Wang, Fan; Tang, Jing; Kim, Sunghun; Huang, Jiayi. A Survey on Mixture of Experts. arXiv 2024b, arXiv:2407.06204. [Google Scholar]
- Cai, Weilin; Jiang, Juyong; Qin, Le; Cui, Junwei; Kim, Sunghun; Huang, Jiayi. Shortcut-Connected Expert Parallelism for Accelerating Mixture of Experts. International Conference on Machine Learning, 2025a. [Google Scholar]
- Cai, Y.; et al. FastMTP: Accelerating LLM Inference with Enhanced Multi-Token Prediction. arXiv 2025b, arXiv:2509.18362. [Google Scholar]
- Cao, Ruisheng; Chen, Mouxiang; Chen, Jiawei; Cui, Zeyu; Feng, Yunlong; Hui, Binyuan; et al. Qwen3-Coder-Next Technical Report. arXiv 2026, arXiv:2603.00729. [Google Scholar]
- Center for AI Safety; Scale AI; and HLE Contributors Consortium. A benchmark of expert-level academic questions to assess AI capabilities. Nature 2026, 649, 1139–1146. Available online: https://arxiv.org/abs/2501.14249. [CrossRef] [PubMed]
- Center for AI Safety and Scale AI. Humanity’s Last Exam Dataset. Hugging Face Dataset Repository. 2026. Available online: https://huggingface.co/datasets/cais/hle (accessed on 2026-07-29).
- Chameleon Team. Chameleon: Mixed-Modal Early-Fusion Foundation Models. arXiv 2024, arXiv:2405.09818. [Google Scholar]
- Chang, Chi-Chih; Lin, Wei-Cheng; Lin, Chien-Yu; Chen, Chong-Yan; Hu, Yu-Fang; Wang, Pei-Shuo; Huang, Ning-Chi; Ceze, Luis; Abdelfattah, Mohamed S; Wu, Kai-Chiang. Palu: Compressing KV-Cache with Low-Rank Projection. International Conference on Learning Representations, 2025. [Google Scholar]
- Chen, Charlie; Borgeaud, Sebastian; Irving, Geoffrey; Lespiau, Jean-Baptiste; Sifre, Laurent; Jumper, John. Accelerating Large Language Model Decoding with Speculative Sampling. arXiv 2023a, arXiv:2302.01318. [Google Scholar]
- Chen, Guanzheng; Li, Xin; Meng, Zaiqiao; Liang, Shangsong; Bing, Lidong. CLEX: Continuous Length Extrapolation for Large Language Models. International Conference on Learning Representations, 2023b. [Google Scholar]
- Chen, Guoxuan; Shi, Han; Li, Jiawei; Gao, Yihang; Ren, Xiaozhe; Chen, Yimeng; Jiang, Xin; Li, Zhenguo; Liu, Weiyang; Huang, Chao. SepLLM: Accelerate Large Language Models by Compressing One Segment into One Separator. International Conference on Machine Learning, 2025a. [Google Scholar]
- Chen, Hanting; Zeng, Yasheng; Wang, Wenyuan; et al. Pangu Embedded: An Efficient Dual-System LLM Reasoner with Metacognition. arXiv 2025b, arXiv:2505.22375. [Google Scholar]
- Chen, Shouyuan; Wong, Sherman; Chen, Liangjian; Tian, Yuandong. Extending Context Window of Large Language Models via Positional Interpolation. arXiv 2023c, arXiv:2306.15595. [Google Scholar]
- Chen, Yilong; Wang, Guoxia; Shang, Junyuan; Cui, Shiyao; Zhang, Zhenyu; Liu, Tingwen; Wang, Shuohuan; Sun, Yu; Yu, Dianhai; Wu, Hua. NACL: A General and Effective KV Cache Eviction Framework for LLM at Inference Time. Association for Computational Linguistics, 2024a. [Google Scholar]
- Chen, Yuang; Zhang, Cheng; Gao, Xitong; Mullins, Robert D.; Constantinides, George A.; Zhao, Yiren. Optimised Grouped-Query Attention Mechanism for Transformers. arXiv 2024b, arXiv:2406.14963. [Google Scholar]
- Chen, Yukang; Qian, Shengju; Tang, Haotian; Lai, Xin; Liu, Zhijian; Han, Song; Jia, Jiaya. LongLoRA: Efficient Fine-Tuning of Long-Context Large Language Models. International Conference on Learning Representations, 2023d. [Google Scholar]
- Chen, Zhuoming; Sadhukhan, Ranajoy; Ye, Zihao; Zhou, Yang; Zhang, Jianyu; Nolte, Niklas; Tian, Yuandong; Douze, Matthijs; Bottou, Léon; Jia, Zhihao; Chen, Beidi. MagicPIG: LSH Sampling for Efficient LLM Generation. International Conference on Learning Representations, 2025c. [Google Scholar]
- Cheng, Jianpeng; Dong, Li; Lapata, Mirella. Long Short-Term Memory-Networks for Machine Reading. In Empirical Methods in Natural Language Processing; 2016. [Google Scholar]
- Chi, Ta-Chung; Fan, Ting-Han; Ramadge, Peter J; Rudnicky, Alexander. KERPLE: Kernelized Relative Positional Embedding for Length Extrapolation. Neural Information Processing Systems, 2022. [Google Scholar]
- Chi, Ta-Chung; Fan, Ting-Han; Rudnicky, Alexander; Ramadge, Peter. Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis. Association for Computational Linguistics, 2023. [Google Scholar]
- Child, Rewon; Gray, Scott; Radford, Alec; Sutskever, Ilya. Generating Long Sequences with Sparse Transformers. arXiv 2019, arXiv:1904.10509. [Google Scholar]
- Chinnakonduru, Sai Sena; Mohapatra, Astarag. Weighted Grouped Query Attention in Transformers. arXiv 2024, arXiv:2407.10855. [Google Scholar]
- Choromanski, Krzysztof Marcin; Likhosherstov, Valerii; Dohan, David; Song, Xingyou; Gane, Andreea; Sarlos, Tamas; Hawkins, Peter; Davis, Jared Quincy; Mohiuddin, Afroz; Kaiser, Lukasz; Belanger, David Benjamin; Colwell, Lucy J; Weller, Adrian. Rethinking Attention with Performers. International Conference on Learning Representations, 2021. [Google Scholar]
- Chorowski, Jan K; Bahdanau, Dzmitry; Serdyuk, Dmitriy; Cho, Kyunghyun; Bengio, Yoshua. Attention-Based Models for Speech Recognition. Neural Information Processing Systems, 2015. [Google Scholar]
- Chou, Yuhong; Yao, Man; Wang, Kexin; Pan, Yuqi; Zhu, Rui-Jie; Wu, Jibin; Zhong, Yiran; Qiao, Yu; Xu, Bo; Li, Guoqi. MetaLA: Unified Optimal Linear Approximation to Softmax Attention Map. Neural Information Processing Systems, 2024. [Google Scholar]
- Chowdhery, Aakanksha; Narang, Sharan; Devlin, Jacob; Bosma, Maarten; Mishra, Gaurav; Roberts, Adam; Barham, Paul; Chung, Hyung Won; Sutton, Charles; Gehrmann, Sebastian; et al. PaLM: Scaling Language Modeling with Pathways. J. Mach. Learn. Res. 2023. [Google Scholar] [CrossRef]
- Clark, Aidan; de Las Casas, Diego; Guy, Aurelia; Mensch, Arthur; Paganini, Michela; Hoffmann, Jordan; Damoc, Bogdan; Hechtman, Blake; Cai, Trevor; Borgeaud, Sebastian; et al. Unified Scaling Laws for Routed Language Models. International Conference on Machine Learning, 2022a. [Google Scholar]
- Clark, Jonathan H; Garrette, Dan; Turc, Iulia; Wieting, John. CANINE: Pre-Training an Efficient Tokenization-Free Encoder for Language Representation. Transactions of the Association for Computational Linguistics, 2022b. [Google Scholar]
- Clevert, Djork-Arné; Unterthiner, Thomas; Hochreiter, Sepp. Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs). International Conference on Learning Representations, 2016. [Google Scholar]
- Coyle, Diane; Hampton, Lucy. 21st Century Progress in Computing. In Telecommunications Policy; 2024. [Google Scholar]
- Csordás, Róbert; Irie, Kazuki; Schmidhuber, Jürgen. Approximating Two-Layer Feedforward Networks for Efficient Transformers. In Findings of the Association for Computational Linguistics: EMNLP; 2023. [Google Scholar]
- Csordás, Róbert; Piękos, Piotr; Irie, Kazuki; Schmidhuber, Jürgen. SwitchHead: Accelerating Transformers with Mixture-of-Experts Attention. Neural Information Processing Systems, 2024. [Google Scholar]
- Dai, Damai; Deng, Chengqi; Zhao, Chenggang; Xu, Rx; Gao, Huazuo; Chen, Deli; Li, Jiashi; Zeng, Wangding; Yu, Xingkai; Wu, Y.; et al. DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models. Association for Computational Linguistics, 2024. [Google Scholar]
- Dai, Zihang; Yang, Zhilin; Yang, Yiming; Carbonell, Jaime G; Le, Quoc; Salakhutdinov, Ruslan. Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context. Association for Computational Linguistics, 2019. [Google Scholar]
- Dao, Tri; Gu, Albert. Transformers Are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality. International Conference on Machine Learning, 2024. [Google Scholar]
- Dauphin, Yann N; Fan, Angela; Auli, Michael; Grangier, David. Language Modeling with Gated Convolutional Networks. International Conference on Machine Learning, 2017. [Google Scholar]
- De, Soham; Smith, Samuel L; Fernando, Anushan; Botev, Aleksandar; Cristian-Muraru, George; Gu, Albert; Haroun, Ruba; Berrada, Leonard; Chen, Yutian; Srinivasan, Srivatsan; et al. Griffin: Mixing Gated Linear Recurrences with Local Attention for Efficient Language Models. arXiv 2024, arXiv:2402.19427. [Google Scholar]
- DeepSeek-AI. DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model. arXiv 2024, arXiv:2405.04434. [Google Scholar]
- DeepSeek-AI; Guo, Daya; Yang, Dejian; Zhang, Haowei; et al. DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. arXiv 2025a, arXiv:2501.12948. [Google Scholar]
- DeepSeek-AI; Liu, Aixin; Mei, Aoxue; et al. DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models. arXiv 2025b, arXiv:2512.02556. [Google Scholar]
- DeepSeek-AI, et al. Deepseek-v4: Towards highly efficient million-token context intelligence. arXiv 2026, arXiv:2606.19348. [Google Scholar]
- Dehghani, Mostafa; Gouws, Stephan; Vinyals, Oriol; Uszkoreit, Jakob; Kaiser, ukasz. Universal Transformers. International Conference on Learning Representations, 2019. [Google Scholar]
- Dehghani, Mostafa; Djolonga, Josip; Mustafa, Basil; Padlewski, Piotr; Heek, Jonathan; Gilmer, Justin; Steiner, Andreas; Caron, Mathilde; Geirhos, Robert; Alabdulmohsin, Ibrahim; et al. Scaling Vision Transformers to 22 Billion Parameters. International Conference on Machine Learning, 2023. [Google Scholar]
- Della Pietra, Stephen A; Della Pietra, Vincent J; Mercer, Robert L; Roukos, Salim. Adaptive Language Modeling Using Minimum Discriminant Estimation. Speech and Natural Language, 1992. [Google Scholar]
- Devlin, Jacob; Chang, Ming-Wei; Lee, Kenton; Toutanova, Kristina. BERT: Pre-Training of Deep Bidirectional Transformers for Language Understanding. In North American Chapter of the Association for Computational Linguistics; 2019. [Google Scholar]
- Ding, Ming; Yang, Zhuoyi; Hong, Wenyi; Zheng, Wendi; Zhou, Chang; Yin, Da; Lin, Junyang; Zou, Xu; Shao, Zhou; Yang, Hongxia; et al. CogView: Mastering Text-to-Image Generation via Transformers. Neural Information Processing Systems, 2021. [Google Scholar]
- Ding, Yiran; Zhang, Li Lyna; Zhang, Chengruidong; Xu, Yuanyuan; Shang, Ning; Xu, Jiahang; Yang, Fan; Yang, Mao. LongRoPE: Extending LLM Context Window Beyond 2 Million Tokens. International Conference on Machine Learning, 2024. [Google Scholar]
- Dong, Xin; Fu, Yonggan; Diao, Shizhe; Byeon, Wonmin; Chen, Zijia; Mahabaleshwarkar, Ameya Sunil; Liu, Shih-Yang; Van Keirsbilck, Matthijs; Chen, Min-Hung; Suhara, Yoshi; et al. Hymba: A Hybrid-Head Architecture for Small Language Models. International Conference on Learning Representations, 2025. [Google Scholar]
- dos Santos, Cicero; Lee-Thorp, James; Noble, Isaac; Chang, Chung-Ching; Uthus, David C. Memory Augmented Language Models through Mixture of Word Experts. In North American Chapter of the Association for Computational Linguistics; 2024. [Google Scholar]
- Du, Jusen; Sun, Weigao; Lan, Disen; Hu, Jiaxi; Cheng, Yu. MoM: Linear Sequence Modeling with Mixture-of-Memories. International Conference on Learning Representations, 2026. [Google Scholar]
- Du, Nan; Huang, Yanping; Dai, Andrew M; Tong, Simon; Lepikhin, Dmitry; Xu, Yuanzhong; Krikun, Maxim; Zhou, Yanqi; Yu, Adams Wei; Firat, Orhan; et al. GLaM: Efficient Scaling of Language Models with Mixture-of-Experts. International Conference on Machine Learning, 2022. [Google Scholar]
- Dubey, Shiv Ram; Singh, Satish Kumar; Chaudhuri, Bidyut Baran. Activation Functions in Deep Learning: A Comprehensive Survey and Benchmark. Neurocomputing 2022. [Google Scholar] [CrossRef]
- Eigen, David; Ranzato, Marc’Aurelio; Sutskever, Ilya. Learning Factored Representations in a Deep Mixture of Experts. arXiv 2013, arXiv:1312.4314. [Google Scholar]
- El Boukkouri, Hicham; Ferret, Olivier; Lavergne, Thomas; Noji, Hiroshi; Zweigenbaum, Pierre; Tsujii, Jun’ichi. CharacterBERT: Reconciling ELMo and BERT for Word-Level Open-Vocabulary Representations From Characters. International Conference on Computational Linguistics, 2020. [Google Scholar]
- Elango, Venmugil; Bhatia, Nidhi; Waleffe, Roger; Shafipour, Rasoul; Asida, Tomer; Khattar, Abhinav; Assaf, Nave; Golub, Maximilian; Guman, Joey; Mitra, Tiyasa; et al. LatentMoE: Toward Optimal Accuracy per FLOP and Parameter in Mixture of Experts. arXiv 2026, arXiv:2601.18089. [Google Scholar]
- Elbayad, Maha; Gu, Jiatao; Grave, Edouard; Auli, Michael. Depth-Adaptive Transformer. International Conference on Learning Representations, 2020. [Google Scholar]
- Elfwing, Stefan; Uchibe, Eiji; Doya, Kenji. Sigmoid-Weighted Linear Units for Neural Network Function Approximation in Reinforcement Learning. Neural Networks, 2018. [Google Scholar]
- Elhoushi, Mostafa; Shrivastava, Akshat; Liskovich, Diana; Hosmer, Basil; Wasti, Bram; Lai, Liangzhen; et al. LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding. In Association for Computational Linguistics; 2024. [Google Scholar]
- Elman, Jeffrey L. Finding Structure in Time. In Cognitive Science; 1990. [Google Scholar]
- Fan, Angela; Grave, Edouard; Joulin, Armand. Reducing Transformer Depth on Demand with Structured Dropout. International Conference on Learning Representations, 2020. [Google Scholar]
- Fedus, William; Zoph, Barret; Shazeer, Noam. Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity. J. Mach. Learn. Res. 2022. [Google Scholar] [CrossRef]
- Feldman, Jerome A. Dynamic Connections in Neural Networks. In Biological Cybernetics; 1982. [Google Scholar]
- Feng, Yuan; Lv, Junlin; Cao, Yukun; Xie, Xike; Zhou, S Kevin. Ada-KV: Optimizing KV Cache Eviction by Adaptive Budget Allocation for Efficient LLM Inference. Neural Information Processing Systems, 2025. [Google Scholar]
- Feng, Yuan; Lv, Junlin; Cao, Yukun; Xie, Xike; Zhou, S Kevin. Identify Critical KV Cache in LLM Inference from an Output Perturbation Perspective. International Conference on Machine Learning, 2026. [Google Scholar]
- Forcada, Mikel L; Ñeco, Ramón P. Recursive Hetero-Associative Memories for Translation. International Work-Conference on Artificial Neural Networks, 1997. [Google Scholar]
- Fountas, Zafeirios; Benfeghoul, Martin; Oomerjee, Adnan; Christopoulou, Fenia; Lampouras, Gerasimos; Bou Ammar, Haitham; Wang, Jun. Human-Inspired Episodic Memory for Infinite Context LLMs. International Conference on Learning Representations, 2025. [Google Scholar]
- Frazier-Logue, Noah; Hanson, Stephen José. The Stochastic Delta Rule: Faster and More Accurate Deep Learning Through Adaptive Weight Noise. Neural Comput. 2020. [Google Scholar] [CrossRef] [PubMed]
- Frazier-Logue, Noah; Hanson, Stephen José. Dropout Is a Special Case of the Stochastic Delta Rule: Faster and More Accurate Deep Learning. arXiv 2019, arXiv:1808.03578. [Google Scholar]
- Fu, Yu; Cai, Zefan; Asi, Abedelkadir; Xiong, Wayne; Dong, Yue; Xiao, Wen. Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning. International Conference on Learning Representations, 2025. [Google Scholar]
- Fukushima, Kunihiko. Visual Feature Extraction by a Multilayered Network of Analog Threshold Elements. IEEE Transactions on Systems Science and Cybernetics, 1969. [Google Scholar]
- Fukushima, Kunihiko. Cognitron: A Self-Organizing Multilayered Neural Network. In Biological Cybernetics; 1975. [Google Scholar]
- Gage, Philip. A New Algorithm for Data Compression. The C Users Journal, 1994. [Google Scholar]
- Gatmiry, Khashayar; Saunshi, Nikunj; Reddi, Sashank J.; Jegelka, Stefanie; Kumar, Sanjiv. Can Looped Transformers Learn to Implement Multi-Step Gradient Descent for In-Context Learning? International Conference on Machine Learning, 2024. [Google Scholar]
- Ge, Suyu; Zhang, Yunan; Liu, Liyuan; Zhang, Minjia; Han, Jiawei; Gao, Jianfeng. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs. International Conference on Learning Representations, 2024. [Google Scholar]
- Gehring, Jonas; Auli, Michael; Grangier, David; Yarats, Denis; Dauphin, Yann N. Convolutional Sequence to Sequence Learning. International Conference on Machine Learning, 2017. [Google Scholar]
- Geiping, Jonas; McLeish, Sean; Jain, Neel; Kirchenbauer, John; Singh, Siddharth; Bartoldson, Brian R.; Kailkhura, Bhavya; Bhatele, Abhinav; Goldstein, Tom. Scaling Up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach. Neural Information Processing Systems, 2025. [Google Scholar]
- Gemma Team; Google DeepMind. Gemma 2: Improving Open Language Models at a Practical Size. arXiv 2024, arXiv:2408.00118. [Google Scholar]
- Gemma Team; Google DeepMind. Gemma 4 Technical Report. arXiv 2026, arXiv:2607.02770. [Google Scholar]
- Geng, Zhengyang; Zhang, Xin-Yu; Bai, Shaojie; Wang, Yisen; Lin, Zhouchen. On Training Implicit Models. Neural Information Processing Systems, 2021. [Google Scholar]
- Gerontopoulos, Anastasios; Gidaris, Spyros; Komodakis, Nikos. Multi-Token Prediction Needs Registers. Neural Information Processing Systems, 2025. [Google Scholar]
- Gers, Felix A; Schmidhuber, E. LSTM Recurrent Networks Learn Simple Context-Free and Context-Sensitive Languages. IEEE Transactions on Neural Networks, 2001. [Google Scholar]
- A Gers, Felix; Schmidhuber, Jürgen; Cummins, Fred. Learning to Forget: Continual Prediction with LSTM. In Neural Computation; 2000. [Google Scholar]
- Gerstenberger, Alexander; Irie, Kazuki; Golik, Pavel; Ney, Hermann. Domain Robust, Fast, and Compact Neural Language Models. IEEE International Conference on Acoustics, Speech and Signal Processing, 2020. [Google Scholar]
- Geva, Mor; Schuster, Roei; Berant, Jonathan; Levy, Omer. Transformer Feed-Forward Layers Are Key-Value Memories. Empirical Methods in Natural Language Processing, 2021. [Google Scholar]
- Giannou, Angeliki; Rajput, Shashank; Sohn, Jy-Yong; Lee, Kangwook; Lee, Jason D.; Papailiopoulos, Dimitris. Looped Transformers as Programmable Computers. International Conference on Machine Learning, 2023. [Google Scholar]
- Gillick, Dan; Brunk, Cliff; Vinyals, Oriol; Subramanya, Amarnag. Multilingual Language Processing From Bytes. In North American Chapter of the Association for Computational Linguistics; 2016. [Google Scholar]
- Zeng, Aohan; Lv, Xin; Hou, Zhenyu; Du, Zhengxiao; Zheng, Qinkai; Chen, Bin; Yin, Da; Ge, Chendi; Huang, Chenghua; Xie, Chengxing; Zhu, Chenzheng; Yin, Congfeng; Wang, Cunxiang; Pan, Gengzheng; Zeng, Hao; Zhang, Haoke; Wang, Haoran; Chen, Huilong; Zhang, Jiajie; Jiao, Jian; Guo, Jiaqi; Wang, Jingsen; Du, Jingzhao; Wu, Jinzhu; Wang, Kedong; Li, Lei; Fan, Lin; Zhong, Lucen; Liu, Mingdao; Zhao, Mingming; Du, Pengfan; Dong, Qian; Lu, Rui; Li, Shuang-; Cao, Shulin; Liu, Song; Jiang, Ting; Chen, Xiaodong; Zhang, Xiaohan; Huang, Xuancheng; Dong, Xuezhen; Xu, Yabo; Wei, Yao; An, Yifan; Niu, Yilin; Zhu, Yitong; Wen, Yuanhao; Cen, Yukuo; Bai, Yushi; Qiao, Zhongpei; Wang, Zihan; Wang, Zikang; Zhu, Zilin; Liu, Ziqiang; Li, Zixuan; Wang, Bojie; Wen, Bosi; Huang, Can; Cai, Changpeng; Yu, Chao; Li, Chen; Hu, Chengwei; Zhang, Chenhui; Zhang, Dan; Lin, Daoyan; Yang, Dayong; Wang, Di; Ai, Ding; Zhu, Erle; Yi, Fangzhou; Chen, Feiyu; Wen, Guohong; Sun, Hailong; Zhao, Haisha; Hu, Haiyi; Zhang, Hanchen; Liu, Hanrui; Zhang, Hanyu; Peng, Hao; Tai, Hao; Zhang, Haobo; Liu, He; Wang, Hongwei; Yan, Hongxi; Ge, Hongyu; Liu, Huan; Chu, Huanpeng; Zhao, Jia’ni; Wang, Jiachen; Zhao, Jiajing; Ren, Jiamin; Wang, Jiapeng; Zhang, Jiaxin; Gui, Jiayi; Zhao, Jiayue; Li, Jijie; An, Jing; Li, Jing; Yuan, Jingwei; Du, Jinhua; Liu, Jinxin; Zhi, Junkai; Duan, Junwen; Zhou, Kaiyue; Wei, Kangjian; Wang, Ke; Luo, Keyun; Zhang, Laiqiang; Sha, Leigang; Xu, Liang; Wu, Lindong; Ding, Lintao; Chen, Lu; Li, Minghao; Lin, Nianyi; Ta, Pan. GLM-5-Team. [PubMed]
- Gloeckle, Fabian; Youbi Idrissi, Badr; Rozière, Baptiste; Lopez-Paz, David; Synnaeve, Gabriel. Better & Faster Large Language Models via Multi-Token Prediction. International Conference on Machine Learning, 2024. [Google Scholar]
- Golovneva, Olga; Wang, Tianlu; Weston, Jason; Sukhbaatar, Sainbayar. Contextual Position Encoding: Learning to Count What’s Important. arXiv 2024, arXiv:2405.18719. [Google Scholar]
- Good, Irving J. The Population Frequencies of Species and the Estimation of Population Parameters. In Biometrika; 1953. [Google Scholar]
- Google DeepMind. Gemma 3 Technical Report. arXiv 2025, arXiv:2503.19786. [Google Scholar]
- Gopalakrishnan, Anand; Csordás, Robert; Schmidhuber, Jürgen; Mozer, Michael C. Decoupling the “What” and “Where” With Polar Coordinate Positional Embeddings. International Conference on Machine Learning, 2026. [Google Scholar]
- Graves, Alex. Sequence Transduction with Recurrent Neural Networks. arXiv 2012, arXiv:1211.3711. [Google Scholar]
- Graves, Alex. Generating Sequences with Recurrent Neural Networks. arXiv 2013, arXiv:1308.0850. [Google Scholar]
- Graves, Alex. Adaptive Computation Time for Recurrent Neural Networks. arXiv 2016, arXiv:1603.08983. [Google Scholar]
- Grazzi, Riccardo; Siems, Julien; Franke, Jörg K.H.; Zela, Arber; Hutter, Frank; Pontil, Massimiliano. Unlocking State-Tracking in Linear RNNs Through Negative Eigenvalues. International Conference on Learning Representations, 2025. [Google Scholar]
- Groeneveld, Dirk; Beltagy, Iz; Walsh, Evan; Bhagia, Akshita; Kinney, Rodney; Tafjord, Oyvind; Jha, Ananya; Ivison, Hamish; Magnusson, Ian; Wang, Yizhong; Arora, Shane; Atkinson, David; Authur, Russell; Chandu, Khyathi; Cohan, Arman; Dumas, Jennifer; Elazar, Yanai; Gu, Yuling; Hessel, Jack; Khot, Tushar; Merrill, William; Morrison, Jacob; Muennighoff, Niklas; Naik, Aakanksha; Nam, Crystal; Peters, Matthew; Pyatkin, Valentina; Ravichander, Abhilasha; Schwenk, Dustin; Shah, Saurabh; Smith, William; Strubell, Emma; Subramani, Nishant; Wortsman, Mitchell; Dasigi, Pradeep; Lambert, Nathan; Richardson, Kyle; Zettlemoyer, Luke; Dodge, Jesse; Lo, Kyle; Soldaini, Luca; Smith, Noah; Hajishirzi, Hannaneh. OLMo: Accelerating the Science of Language Models. In Association for Computational Linguistics; 2024. [Google Scholar]
- Grossberg, Stephen. Some Networks That Can Learn, Remember, and Reproduce Any Number of Complicated Space-Time Patterns, I. J. Math. Mech. 1969. [Google Scholar] [CrossRef]
- Grossberg, Stephen T. Studies of Mind and Brain: Neural Principles of Learning, Perception, Development, Cognition, and Motor Control. In Boston Studies in the Philosophy of Science. D. Reidel; Dordrecht, 1982. [Google Scholar]
- Gu, Albert. Modeling Sequences with Structured State Spaces; Stanford University, 2023. [Google Scholar]
- Gu, Albert; Dao, Tri. Mamba: Linear-Time Sequence Modeling with Selective State Spaces. Conference on Language Modeling, 2024. [Google Scholar]
- Gu, Albert; Dao, Tri; Ermon, Stefano; Rudra, Atri; Ré, Christopher. HiPPO: Recurrent Memory with Optimal Polynomial Projections. Neural Information Processing Systems, 2020. [Google Scholar]
- Gu, Albert; Goel, Karan; Gupta, Ankit; Ré, Christopher. On the Parameterization and Initialization of Diagonal State Space Models. Neural Information Processing Systems, 2022a. [Google Scholar]
- Gu, Albert; Goel, Karan; Re, Christopher. Efficiently Modeling Long Sequences with Structured State Spaces. International Conference on Learning Representations, 2022b. [Google Scholar]
- Guo, Han; Yang, Songlin; Goel, Tarushii; Xing, Eric P.; Dao, Tri; Kim, Yoon. Log-Linear Attention. International Conference on Learning Representations, 2026. [Google Scholar]
- Gupta, Ankit; Gu, Albert; Berant, Jonathan. Diagonal State Spaces Are as Effective as Structured State Spaces. Neural Information Processing Systems, 2022. [Google Scholar]
- Gustineli, Murilo. A Survey on Recently Proposed Activation Functions for Deep Learning. arXiv 2022, arXiv:2204.02921. [Google Scholar]
- Ha, David; Dai, Andrew; Le, Quoc V. Hypernetworks. International Conference on Learning Representations, 2017. [Google Scholar]
- Hampshire, John; Waibel, Alex. Connectionist Architectures for Multi-Speaker Phoneme Recognition. In Neural Information Processing Systems; 1989. [Google Scholar]
- Han, Chi; Wang, Qifan; Peng, Hao; Xiong, Wenhan; Chen, Yu; Ji, Heng; Wang, Sinong. LM-Infinite: Zero-Shot Extreme Length Generalization for Large Language Models. In North American Chapter of the Association for Computational Linguistics; 2024. [Google Scholar]
- Hanson, Stephen José. A Stochastic Version of the Delta Rule. In Physica D; 1990. [Google Scholar]
- Haoyang, L.I.; Li, Yiming; Tian, Anxin; Tang, Tianhao; Xu, Zhanchao; Chen, Xuejia; Nicole, H.U.; Dong, Wei; Qing, Li; Chen, Lei. A Survey on Large Language Model Acceleration Based on KV Cache Management. Trans. Mach. Learn. Res. 2025. [Google Scholar] [CrossRef]
- Hasani, Ramin; Lechner, Mathias; Wang, Tsun-Hsuan; Chahine, Makram; Amini, Alexander; Rus, Daniela. Liquid Structural State-Space Models. International Conference on Learning Representations, 2023. [Google Scholar]
- Hatamizadeh, Ali; Choi, Yejin; Kautz, Jan. Gated DeltaNet-2: Decoupling Erase and Write in Linear Attention. arXiv 2026, arXiv:2605.22791. [Google Scholar]
- Hauzenberger, Lukas; Schmidinger, Niklas; Hartl, Anamaria-Roberta; Stap, David; Schmied, Thomas; Böck, Sebastian; Klambauer, Günter; Hochreiter, Sepp. KVpop: Key-Value Cache Compression with Predictive Online Pruning. arXiv 2026, arXiv:2607.05061. [Google Scholar]
- He, Kaiming; Zhang, Xiangyu; Ren, Shaoqing; Sun, Jian. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification. International Conference on Computer Vision, 2015. [Google Scholar]
- He, Kaiming; Zhang, Xiangyu; Ren, Shaoqing; Sun, Jian. Deep Residual Learning for Image Recognition. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016. [Google Scholar]
- Xu, Owen He. Mixture of A Million Experts. arXiv 2024, arXiv:2407.04153. [Google Scholar]
- He, Zhihao; Yu, Hang; Gong, Zi; Liu, Shizhan; Li, Jianguo; Lin, Weiyao. Rodimus*: Breaking the Accuracy-Efficiency Trade-Off with Efficient Attentions. International Conference on Learning Representations, 2025. [Google Scholar]
- Helfrich, Kyle; Willmott, Devin; Ye, Qiang. Orthogonal Recurrent Neural Networks with Scaled Cayley Transform. International Conference on Machine Learning, 2018. [Google Scholar]
- Hendrycks, Dan; Gimpel, Kevin. Gaussian Error Linear Units (GELUs). arXiv 2016, arXiv:1606.08415. [Google Scholar]
- Hendrycks, Dan; Burns, Collin; Basart, Steven; Zou, Andy; Mazeika, Mantas; Song, Dawn; Steinhardt, Jacob. Measuring Massive Multitask Language Understanding. International Conference on Learning Representations, 2021. [Google Scholar]
- Henry, Alex; Dachapally, Prudhvi Raj; Pawar, Shubham Shantaram; Chen, Yuxuan. Query-Key Normalization for Transformers. In Findings of the Association for Computational Linguistics: EMNLP; 2020. [Google Scholar]
- Heo, Gyuryang; Ngotiaoco, Timothy; Irie, Kazuki; Gershman, Samuel J.; Sabatini, Bernardo L. Why Depth Matters in Parallelizable Sequence Models: A Lie Algebraic View. arXiv 2026, arXiv:2603.05573. [Google Scholar]
- Hertz, John; Krogh, Anders; Palmer, Richard G. Introduction to the Theory of Neural Computation; Addison-Wesley, 1991. [Google Scholar]
- Hilberg, Wolfgang. Karl Steinbuch, ein zu Unrecht vergessener Pionier der künstlichen neuronalen Systeme. In Frequenz; 1995. [Google Scholar]
- Hinton, Geoffrey E. Learning Distributed Representations of Concepts. In Cognitive Science Society; 1986. [Google Scholar]
- Hinton, Geoffrey E; Plaut, David C. Using Fast Weights to Deblur Old Memories. In Cognitive Science Society; 1987. [Google Scholar]
- Hochreiter, S.; Bengio, Y.; Frasconi, P.; Schmidhuber, J. Gradient Flow in Recurrent Nets: The Difficulty of Learning Long-Term Dependencies. In A Field Guide to Dynamical Recurrent Neural Networks; 2001. [Google Scholar]
- Hochreiter, Sepp. Untersuchungen zu dynamischen neuronalen Netzen. Diploma thesis, Technische Universität München, 1991. [Google Scholar]
- Hochreiter, Sepp; Schmidhuber, Jürgen. LSTM Can Solve Hard Long Time Lag Problems. In Neural Information Processing Systems; 1997a. [Google Scholar]
- Hochreiter, Sepp; Schmidhuber, Jürgen. Long Short-Term Memory. In Neural Computation; 1997b. [Google Scholar]
- Hoffmann, Jordan; Borgeaud, Sebastian; Mensch, Arthur; Buchatskaya, Elena; Cai, Trevor; Rutherford, Eliza; de Las Casas, Diego; Hendricks, Lisa Anne; Welbl, Johannes; Clark, Aidan; et al. Training Compute-Optimal Large Language Models. Neural Information Processing Systems, 2022. [Google Scholar]
- Hooper, Coleman; Kim, Sehoon; Mohammadzadeh, Hiva; Maheswaran, Monishwaran; Paik, June; Mahoney, Michael W; Keutzer, Kurt; Gholami, Amir. Squeezed Attention: Accelerating Long Context Length LLM Inference. Association for Computational Linguistics, 2025. [Google Scholar]
- Hopfield, John J. Neural Networks and Physical Systems with Emergent Collective Computational Abilities. In National Academy of Sciences; 1982. [Google Scholar]
- Howard, Jeremy; Ruder, Sebastian. Universal Language Model Fine-Tuning for Text Classification. Association for Computational Linguistics, 2018. [Google Scholar]
- Hu, Jiaxi; Pan, Yongqi; Du, Jusen; Lan, Disen; Tang, Xiaqiang; Wen, Qingsong; Liang, Yuxuan; Sun, Weigao. Comba: Improving Bilinear RNNs with Closed-Loop Control. Neural Information Processing Systems, 2025. [Google Scholar]
- Hu, Shengding; Tu, Yuge; Han, Xu; He, Chaoqun; Cui, Ganqu; Long, Xiang; Zheng, Zhi; Fang, Yewei; Huang, Yuxiang; Zhao, Weilin; et al. MiniCPM: Unveiling the Potential of Small Language Models with Scalable Training Strategies. Conference on Language Modeling, 2024. [Google Scholar]
- Hu, Xiang; Wei, Xinyu; Gu, Hao; Zhang, Minshen; Liang, Tian; Li, Huayang; Zhu, Lei; Wang, Yan; Han, Sirui; Bai, Yushi; Tu, Kewei; Mi, Haitao; Liang, Leo. Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling. arXiv 2026, arXiv:2607.02980. [Google Scholar]
- Hua, Ermo; Jiang, Che; Lv, Xingtai; Zhang, Kaiyan; Ding, Ning; Sun, Youbang; Qi, Biqing; Fan, Yuchen; Zhu, Xue Kai; Zhou, Bowen. Fourier Position Embedding: Enhancing Attention’s Periodic Extension for Length Generalization. International Conference on Machine Learning, 2025. [Google Scholar]
- Huang, Hongzhi; Zhu, Defa; Wu, Banggu; Zeng, Yutao; Wang, Ya; Min, Qiyang; Zhou, Xun. Over-Tokenized Transformer: Vocabulary Is Generally Worth Scaling. International Conference on Machine Learning, 2025a. [Google Scholar]
- Huang, Kaixuan; Guo, Xudong; Wang, Mengdi. SpecDec++: Boosting Speculative Decoding via Adaptive Candidate Lengths. Conference on Language Modeling, 2025b. [Google Scholar]
- Huang, Wei; Liao, Yue; Liu, Jianhui; He, Ruifei; Tan, Haoru; Zhang, Shiming; Li, Hongsheng; Liu, Si; Qi, Xiaojuan. Mixture Compressor for Mixture-of-Experts LLMs Gains More. International Conference on Learning Representations, 2025c. [Google Scholar]
- Huang, Zihao; Min, Qiyang; Huang, Hongzhi; Zeng, Yutao; Zhu, Defa; Guo, Ran; Xun, Zhou. Ultra-Sparse Memory Network. International Conference on Learning Representations, 2025d. [Google Scholar]
- Huang, Zihao; Bao, Yu; Min, Qiyang; Chen, Siyan; Guo, Ran; Huang, Hongzhi; Zhu, Defa; Zeng, Yutao; Wu, Banggu; Zhou, Xun; Qiao, Siyuan. UltraMemV2: Memory Networks Scaling to 120B Parameters with Superior Long-Context Learning. International Conference on Learning Representations, 2026. [Google Scholar]
- Huawei openPangu Team. openPangu-R-72B-2512. 2025. Available online: https://huggingface.co/openpangu/openPangu-R-72B-2512.
- Huawei openPangu Team. openPangu-2.0-Flash. 2026. Available online: https://huggingface.co/openpangu/openPangu-2.0-Flash.
- Ioffe, Sergey. Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift. International Conference on Machine Learning, 2015. [Google Scholar]
- Irie, Kazuki. Why Are Positional Encodings Nonessential for Deep Autoregressive Transformers? Revisiting a Petroglyph. In Findings of the Association for Computational Linguistics: ACL; 2025. [Google Scholar]
- Irie, Kazuki; Schmidhuber, Jürgen. Images as Weight Matrices: Sequential Image Generation through Synaptic Learning Rules. International Conference on Learning Representations, 2023. [Google Scholar]
- Irie, Kazuki; Golik, Pavel; Schlüter, Ralf; Ney, Hermann. Investigations on Byte-Level Convolutional Neural Networks for Language Modeling in Low Resource Speech Recognition. IEEE International Conference on Acoustics, Speech and Signal Processing, 2017. [Google Scholar]
- Irie, Kazuki; Lei, Zhihong; Schlüter, Ralf; Ney, Hermann. Prediction of LSTM-RNN Full Context States as a Subtask for N-gram Feedforward Language Models. IEEE International Conference on Acoustics, Speech and Signal Processing, 2018. [Google Scholar]
- Irie, Kazuki; Zeyer, Albert; Schlüter, Ralf; Ney, Hermann. Language Modeling with Deep Transformers. Interspeech 2019. [Google Scholar] [CrossRef]
- Irie, Kazuki; Gerstenberger, Alexander; Schlüter, Ralf; Ney, Hermann. How Much Self-Attention Do We Need? Trading Attention for Feed-Forward Layers. IEEE International Conference on Acoustics, Speech and Signal Processing, 2020. [Google Scholar]
- Irie, Kazuki; Schlag, Imanol; Csordás, Róbert; Schmidhuber, Jürgen. Going Beyond Linear Transformers with Recurrent Fast Weight Programmers. Neural Information Processing Systems, 2021. [Google Scholar]
- Irie, Kazuki; Csordás, Róbert; Schmidhuber, Jürgen. The Dual Form of Neural Networks Revisited: Connecting Test Time Predictions to Training Patterns via Spotlights of Attention. International Conference on Machine Learning, 2022a. [Google Scholar]
- Irie, Kazuki; Faccio, Francesco; Schmidhuber, Jürgen. Neural Differential Equations for Learning to Program Neural Nets Through Continuous Learning Rules. Neural Information Processing Systems, 2022b. [Google Scholar]
- Irie, Kazuki; Schlag, Imanol; Csordás, Róbert; Schmidhuber, Jürgen. A Modern Self-Referential Weight Matrix That Learns to Modify Itself. International Conference on Machine Learning, 2022c. [Google Scholar]
- Irie, Kazuki; Csordás, Róbert; Schmidhuber, Jürgen. Practical Computational Power of Linear Transformers and Their Recurrent and Self-Referential Extensions. In Empirical Methods in Natural Language Processing; 2023. [Google Scholar]
- Irie, Kazuki; Csordás, Róbert; Schmidhuber, Jürgen. Metalearning Continual Learning Algorithms. Transactions on Machine Learning Research, 2025a. [Google Scholar]
- Irie, Kazuki; Yau, Morris; Gershman, Samuel J. Blending Complementary Memory Systems in Hybrid Quadratic-Linear Transformers. Neural Information Processing Systems, 2025b. [Google Scholar]
- Ising, Ernst. Beitrag zur Theorie des Ferromagnetismus. Z. Für Phys. 1925. [Google Scholar] [CrossRef]
- Ivakhnenko, Grigor’evich; Lapa, Valentin Grigorévich. Cybernetic Predicting Devices; CCM Information Corporation, 1965. [Google Scholar]
- Ivakhnenko, Alexey Grigorevich. Polynomial Theory of Complex Systems. IEEE Transactions on Systems, Man, and Cybernetics, 1971. [Google Scholar]
- Jacobs, Robert A; Jordan, Michael I; Nowlan, Steven J; Hinton, Geoffrey E. Adaptive Mixtures of Local Experts. In Neural Computation; 1991. [Google Scholar]
- Jeddi, Ahmadreza; Ciccone, Marco; Taati, Babak. LoopFormer: Elastic-Depth Looped Transformers for Latent Reasoning via Shortcut Modulation. International Conference on Learning Representations, 2026. [Google Scholar]
- Jegou, Herve; Douze, Matthijs; Schmid, Cordelia. Product Quantization for Nearest Neighbor Search. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2011. [Google Scholar]
- Jelinek, Frederick. Continuous Speech Recognition by Statistical Methods. In Proceedings of the IEEE, 1976. [Google Scholar]
- Jelinek, Frederick. Interpolated Estimation of Markov Source Parameters from Sparse Data. Workshop on Pattern Recognition in Practice, 1980, 1980, 1980. [Google Scholar]
- Jiang, Albert Q; Sablayrolles, Alexandre; Mensch, Arthur; Bamford, Chris; Chaplot, Devendra Singh; de las Casas, Diego; Bressand, Florian; Lengyel, Gianna; Lample, Guillaume; Saulnier, Lucile; Lavaud, Lélio Renard; Lachaux, Marie-Anne; Stock, Pierre; Le Scao, Teven; Lavril, Thibaut; Wang, Thomas; Lacroix, Timothée; El Sayed, William. Mistral 7B. arXiv 2023, arXiv:2310.06825. [Google Scholar]
- Jiang, Albert Q; Sablayrolles, Alexandre; Roux, Antoine; Mensch, Arthur; Savary, Blanche; Bamford, Chris; Chaplot, Devendra Singh; de las Casas, Diego; Hanna, Emma Bou; Bressand, Florian; et al. Mixtral of Experts. arXiv 2024a, arXiv:2401.04088. [Google Scholar]
- Jiang, Zixuan; Gu, Jiaqi; Zhu, Hanqing; Pan, David. Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN Transformers. Neural Information Processing Systems, 2024b. [Google Scholar]
- Jimenez, Carlos E; Yang, John; Wettig, Alexander; Yao, Shunyu; Pei, Kexin; Press, Ofir; Narasimhan, Karthik R. SWE-bench: Can Language Models Resolve Real-World GitHub Issues? International Conference on Learning Representations, 2024. [Google Scholar]
- Jin, Hongye; Han, Xiaotian; Yang, Jingfeng; Jiang, Zhimeng; Liu, Zirui; Chang, Chia-Yuan; Chen, Huiyuan; Hu, Xia. LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuning. International Conference on Machine Learning, 2024. [Google Scholar]
- Jin, Peng; Zhu, Bo; Yuan, Li; Yan, Shuicheng. MoE++: Accelerating Mixture-of-Experts Methods with Zero-Computation Experts. International Conference on Learning Representations, 2025. [Google Scholar]
- Jordan, Michael I; Jacobs, Robert A. Hierarchical Mixtures of Experts and the EM Algorithm. In Neural Computation; 1994. [Google Scholar]
- Joseph, Roger David. Contributions to Perceptron Theory. PhD thesis, Cornell University, 1961. [Google Scholar]
- Joshi, Vinay; Laddha, Prashant; Sinha, Shambhavi; Omer, Om Ji; Subramoney, Sreenivas. QCQA: Quality and Capacity-Aware Grouped Query Attention. arXiv 2024, arXiv:2406.10247. [Google Scholar]
- Kacham, Praneeth; Mirrokni, Vahab; Zhong, Peilin. PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels. International Conference on Machine Learning, 2024. [Google Scholar]
- Kalchbrenner, Nal; Espeholt, Lasse; Simonyan, Karen; van den Oord, Aäron; Graves, Alex; Kavukcuoglu, Koray. Neural Machine Translation in Linear Time. arXiv 2016, arXiv:1610.10099. [Google Scholar]
- Kallini, Julie; Murty, Shikhar; Manning, Christopher D; Potts, Christopher; Csordás, Róbert. MrT5: Dynamic Token Merging for Efficient Byte-Level Language Models. International Conference on Learning Representations, 2025. [Google Scholar]
- Kaplan, Jared; McCandlish, Sam; Henighan, Tom; Brown, Tom B; Chess, Benjamin; Child, Rewon; Gray, Scott; Radford, Alec; Wu, Jeffrey; Amodei, Dario. Scaling Laws for Neural Language Models. arXiv 2020, arXiv:2001.08361. [Google Scholar]
- Karpathy, Andrej. The Unreasonable Effectiveness of Recurrent Neural Networks, 2015. Available online: https://karpathy.github.io/2015/05/21/rnn-effectiveness/.
- Katharopoulos, Angelos; Vyas, Apoorv; Pappas, Nikolaos; Fleuret, François. Transformers Are RNNs: Fast Autoregressive Transformers with Linear Attention. International Conference on Machine Learning, 2020. [Google Scholar]
- Katz, Slava. Estimation of Probabilities from Sparse Data for the Language Model Component of a Speech Recognizer. IEEE Transactions on Acoustics, Speech, and Signal Processing, 1987. [Google Scholar]
- Kazemnejad, Amirhossein; Padhi, Inkit; Natesan Ramamurthy, Karthikeyan; Das, Payel; Reddy, Siva. The Impact of Positional Encoding on Length Generalization in Transformers. Neural Information Processing Systems, 2024. [Google Scholar]
- Khan, Zohaib; Khaquan, Muhammad; Tafveez, Omer; Samiwala, Burhanuddin; Ali Raza, Agha. Beyond Uniform Query Distribution: Key-Driven Grouped Query Attention. arXiv 2024, arXiv:2408.08454. [Google Scholar]
- Kim, Jang-Hyun; Kim, Jinuk; Kwon, Sangwoo; Lee, Jae W.; Yun, Sangdoo; Song, Hyun Oh. KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction. Adv. Neural Inf. Process. Syst. 2025, arXiv:2505.23416. [Google Scholar] [CrossRef]
- Kim, Janghyeon; Kim, Minsoo; Shim, Kyuhong; Choi, Jungwook. BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference. International Conference on Machine Learning, 2026. [Google Scholar]
- Kim, Yoon; Jernite, Yacine; Sontag, David; Rush, Alexander. Character-Aware Neural Language Models. AAAI Conference on Artificial Intelligence, 2016. [Google Scholar]
- Kim, Young Jin; Awan, Ammar Ahmad; Muzio, Alexandre; Salinas, Andres Felipe Cruz; Lu, Liyang; Hendy, Amr; Rajbhandari, Samyam; He, Yuxiong; Awadalla, Hany Hassan. Scalable and Efficient MoE Training for Multitask Multilingual Models. arXiv 2021, arXiv:2109.10465. [Google Scholar]
- Kirchenbauer, John; et al. Multi-Token Prediction via Self-Distillation. arXiv 2026, arXiv:2602.06019. [Google Scholar]
- Kirsch, Louis; Schmidhuber, Jürgen. Meta Learning Backpropagation and Improving It. Neural Information Processing Systems, 2021. [Google Scholar]
- Kirsch, Louis; Schmidhuber, Jürgen. Self-Referential Meta Learning. First Conference on Automated Machine Learning (Late-Breaking Workshop), 2022. [Google Scholar]
- Kiyono, Shun; Kobayashi, Sosuke; Suzuki, Jun; Inui, Kentaro. SHAPE: Shifted Absolute Position Embedding for Transformers. Empirical Methods in Natural Language Processing, 2021. [Google Scholar]
- Klambauer, Günter; Unterthiner, Thomas; Mayr, Andreas; Hochreiter, Sepp. Self-Normalizing Neural Networks. Neural Information Processing Systems, 2017. [Google Scholar]
- Kleene, Stephen Cole. Representation of Events in Nerve Nets and Finite Automata; Princeton University Press: Princeton, 1956. [Google Scholar]
- Kneser, Reinhard; Ney, Hermann. Improved Clustering Techniques for Class-Based Statistical Language Modelling. Eurospeech 1993. [Google Scholar] [CrossRef]
- Kneser, Reinhard; Ney, Hermann. Improved Backing-Off for M-gram Language Modeling. IEEE International Conference on Acoustics, Speech and Signal Processing, 1995. [Google Scholar]
- Kohonen, Teuvo. Associative Memory: A System-Theoretical Approach. In Communication and Cybernetics; Springer-Verlag, 1977. [Google Scholar]
- Krajewski, Jakub; Ludziejewski, Jan; Adamczewski, Kamil; Pióro, Maciej; Krutul, Michał; Antoniak, Szymon; Ciebiera, Kamil; Król, Krystian; Odrzygóźdź, Tomasz; Sankowski, Piotr; et al. Scaling Laws for Fine-Grained Mixture of Experts. International Conference on Machine Learning, 2024. [Google Scholar]
- Kramers, Hendrik A; Wannier, Gregory H. Statistics of the Two-Dimensional Ferromagnet. Part I. Phys. Rev. 1941. [Google Scholar] [CrossRef]
- Kudo, Taku. Subword Regularization: Improving Neural Network Translation Models with Multiple Subword Candidates. Association for Computational Linguistics, 2018. [Google Scholar]
- Kudo, Taku; Richardson, John. SentencePiece: A Simple and Language Independent Subword Tokenizer and Detokenizer for Neural Text Processing. Empirical Methods in Natural Language Processing, 2018. [Google Scholar]
- Lahoti, Aakash; Li, Kevin Y.; Chen, Berlin; Wang, Caitlin; Bick, Aviv; Kolter, J. Zico; Dao, Tri; Gu, Albert. Mamba-3: Improved Sequence Modeling Using State Space Principles. International Conference on Learning Representations, 2026. [Google Scholar]
- Lample, Guillaume; Sablayrolles, Alexandre; Ranzato, Marc’Aurelio; Denoyer, Ludovic; Jégou, Hervé. Large Memory Layers with Product Keys. Neural Information Processing Systems, 2019. [Google Scholar]
- Lau, Raymond; Rosenfeld, Ronald; Roukos, Salim. Trigger-Based Language Models: A Maximum Entropy Approach. International Conference on Acoustics, Speech and Signal Processing, 1993. [Google Scholar]
- Le, Quoc V; Jaitly, Navdeep; Hinton, Geoffrey E. A Simple Way to Initialize Recurrent Networks of Rectified Linear Units. arXiv 2015, arXiv:1504.00941. [Google Scholar]
- Lee, Wonbeom; Lee, Jungi; Seo, Junghwan; Sim, Jaewoong. InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Management. USENIX Symposium on Operating Systems Design and Implementation, 2024. [Google Scholar]
- Lenz, Wilhelm. Beiträge zum Verständnis der magnetischen Eigenschaften in festen Körpern. Phys. Z. 1920. [Google Scholar]
- Lepikhin, Dmitry; Lee, HyoukJoong; Xu, Yuanzhong; Chen, Dehao; Firat, Orhan; Huang, Yanping; Krikun, Maxim; Shazeer, Noam; Chen, Zhifeng. GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding. International Conference on Learning Representations, 2021. [Google Scholar]
- Leviathan, Yaniv; Kalman, Matan; Matias, Yossi. Fast Inference from Transformers via Speculative Decoding. International Conference on Machine Learning, 2023. [Google Scholar]
- Lewis, Mike; Bhosale, Shruti; Dettmers, Tim; Goyal, Naman; Zettlemoyer, Luke. BASE Layers: Simplifying Training of Large, Sparse Models. International Conference on Machine Learning, 2021. [Google Scholar]
- Li, Aonian; Gong, Bangwei; Yang, Bo; Shan, Boji; Liu, Chang; Zhu, Cheng; Zhang, Chunhao; Guo, Congchao; Chen, Da; Li, Dong; et al. MiniMax-01: Scaling Foundation Models with Lightning Attention. arXiv 2025a, arXiv:2501.08313. [Google Scholar]
- Li, Jingyao; Shi, Han; Wu, Sitong; Zheng, Chuanyang; Li, Zhenguo; Jiang, Xin; Xu, Hong; Jia, Jiaya. QuickLLaMA: Query-Aware Inference Acceleration for Large Language Models. International Conference on Computational Linguistics, 2025b. [Google Scholar]
- Li, Margaret; Gururangan, Suchin; Dettmers, Tim; Lewis, Mike; Althoff, Tim; A Smith, Noah; Zettlemoyer, Luke. Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Models. arXiv 2022, arXiv:2208.03306. [Google Scholar]
- Li, Pengxiang; Yin, Lu; Liu, Shiwei. Mix-LN: Unleashing the Power of Deeper Layers by Combining Pre-LN and Post-LN. arXiv 2024a, arXiv:2412.13795. [Google Scholar]
- Li, Raymond; Ben Allal, Loubna; Zi, Yangtian; Muennighoff, Niklas; Kocetkov, Denis; Mou, Chenghao; Marone, Marc; Akiki, Christopher; Li, Jia; Chim, Jenny; Liu, Qian; Zheltonozhskii, Evgenii; Zhuo, Terry Yue; Wang, Thomas; Dehaene, Olivier; Davaadorj, Mishig; Lamy-Poirier, Joel; Monteiro, João; Shliazhko, Oleh; Gontier, Nicolas; Meade, Nicholas; Zebaze, Armel; Yee, Ming-Ho; Umapathi, Logesh Kumar; Zhu, Jian; Lipkin, Benjamin; Oblokulov, Muhtasham; Wang, Zhiruo; Murthy, Rudra; Stillerman, Jason; Patel, Siva Sankalp; Abulkhanov, Dmitry; Zocca, Marco; Dey, Manan; Zhang, Zhihan; Fahmy, Nour; Bhattacharyya, Urvashi; Yu, Wenhao; Singh, Swayam; Luccioni, Sasha; Villegas, Paulo; Kunakov, Maxim; Zhdanov, Fedor; Romero, Manuel; Lee, Tony; Timor, Nadav; Ding, Jennifer; Schlesinger, Claire; Schoelkopf, Hailey; Ebert, Jan; Dao, Tri; Mishra, Mayank; Gu, Alex; Robinson, Jennifer; Anderson, Carolyn Jane; Dolan-Gavitt, Brendan; Contractor, Danish; Reddy, Siva; Fried, Daniel; Bahdanau, Dzmitry; Jernite, Yacine; Muñoz Ferrandis, Carlos; Hughes, Sean; Wolf, Thomas; Guha, Arjun; von Werra, Leandro; de Vries, Harm. StarCoder: May the Source Be with You! Trans. Mach. Learn. Res. 2023a. [Google Scholar] [CrossRef]
- Li, Shanda; You, Chong; Guruganesh, Guru; Ainslie, Joshua; Ontanon, Santiago; Zaheer, Manzil; Sanghai, Sumit; Yang, Yiming; Kumar, Sanjiv; Bhojanapalli, Srinadh. Functional Interpolation for Relative Positions Improves Long Context Transformers. International Conference on Learning Representations, 2023b. [Google Scholar]
- Li, Yuhong; Huang, Yingbing; Yang, Bowen; Venkitesh, Bharat; Locatelli, Acyr; Ye, Hanchen; Cai, Tianle; Lewis, Patrick; Chen, Deming. SnapKV: LLM Knows What You Are Looking for Before Generation. Neural Information Processing Systems, 2024b. [Google Scholar]
- Li, Yuhui; Wei, Fangyun; Zhang, Chao; Zhang, Hongyang. EAGLE: Speculative Sampling Requires Rethinking Feature Uncertainty. International Conference on Machine Learning, 2024c. [Google Scholar]
- Li, Yuhui; Wei, Fangyun; Zhang, Chao; Zhang, Hongyang. EAGLE-2: Faster Inference of Language Models with Dynamic Draft Trees. Empirical Methods in Natural Language Processing, 2024d. [Google Scholar]
- Li, Yuhui; Wei, Fangyun; Zhang, Chao; Zhang, Hongyang. EAGLE-3: Scaling Up Inference Acceleration of Large Language Models via Training-Time Test. Neural Information Processing Systems, 2025c. [Google Scholar]
- Li, Zeping; Yang, Xinlong; Gao, Ziheng; Liu, Ji; et al. Amphista: Bi-Directional Multi-Head Decoding for Accelerating LLM Inference. In North American Chapter of the Association for Computational Linguistics; 2025d. [Google Scholar]
- Li, Zonglin; You, Chong; Bhojanapalli, Srinadh; Li, Daliang; Singh Rawat, Ankit; Reddi, Sashank J; Ye, Ke; Chern, Felix; Yu, Felix; Guo, Ruiqi; et al. The Lazy Neuron Phenomenon: On Emergence of Activation Sparsity in Transformers. International Conference on Learning Representations, 2023c. [Google Scholar]
- Liao, Bingli; Vasconcellos Vargas, Danilo. Beyond KV Caching: Shared Attention for Efficient LLMs. arXiv 2024, arXiv:2407.12866. [Google Scholar]
- Lieber, Opher; Sharir, Or; Lenz, Barak; Shoham, Yoav. Jurassic-1: Technical Details and Evaluation; White paper; AI21 Labs, 2021. [Google Scholar]
- Lieber, Opher; Lenz, Barak; Bata, Hofit; Cohen, Gal; Osin, Jhonathan; Dalmedigos, Itay; Safahi, Erez; Meirom, Shaked; Belinkov, Yonatan; Shalev-Shwartz, Shai; Abend, Omri; Alon, Raz; Asida, Tomer; Bergman, Amir; Glozman, Roman; Gokhman, Michael; Manevich, Avashalom; Ratner, Nir; Rozen, Noam; Shwartz, Erez; Zusman, Mor; Shoham, Yoav. Jamba: A Hybrid Transformer-Mamba Language Model. International Conference on Learning Representations, 2025. [Google Scholar]
- Likhomanenko, Tatiana; Xu, Qiantong; Synnaeve, Gabriel; Collobert, Ronan; Rogozhnikov, Alex. CAPE: Encoding Relative Positions with Continuous Augmented Positional Embeddings. Neural Information Processing Systems, 2021. [Google Scholar]
- Lin, Zhixuan; Nikishin, Evgenii; He, Xu Owen; Courville, Aaron. Forgetting Transformer: Softmax Attention with a Forget Gate. International Conference on Learning Representations, 2025. [Google Scholar]
- Lin, Zhouhan; Feng, Minwei; Nogueira dos Santos, Cicero; Yu, Mo; Xiang, Bing; Zhou, Bowen; Bengio, Yoshua. A Structured Self-Attentive Sentence Embedding. International Conference on Learning Representations, 2017. [Google Scholar]
- Ling-Team; Li, Ang; Liu, Ben; Hu, Binbin; Li, Bing; Zeng, Bingwei; Ye, Borui; Tang, Caizhi; Tian, Changxin; Huang, Chao; Zhang, Chao; Qian, Chen; Ju, Chenchen; Li, Chenchen; Tang, Chengfu; Fu, Chili; Ren, Chunshao; Wu, Chunwei; Zhang, Cong; Peng, Cunyin; Xu, Dafeng; Wang, Daixin; Zhang, Dalong; Jin, Dingnan; Zhu, Dingyuan; Hu, Dongke; Zhao, Fangzheng; Wu, Feifan; Zhu, Feng; Wang, Gangshan; Zhang, Haitao; Zhao, Hailin; Zhang, Hanxiao; Wang, Hanzi; Qian, Hao; Yu, Haoyi; Zhang, Heng; Zhang, Hongliang; Luan, Hongzhi; Dong, Huirong; Li, Huizhong; Li, Jia; Liu, Jia; Zhu, Jialong; Sha, Jian; Wei, Jianping; Yang, Jiaolong; Ma, Jieyue; Wu, Jiewei; Huang, Jinjing; Tian, Jingyun; Zhang, Jingyuan; Sun, Jinquan; Tu, Juanhui; Liu, Jun; Xu, Jun; Zhou, Jun; Ou, Junjie; Fang, Junpeng; Zhang, Kaihong; Hu, Kaiqin; Shi, Ke; Tang, Kun; Chen, Kunlong; Mei, Lanyin; Liang, Lei; Xu, Lei; Zhang, Libo; Ju, Lin; Yuan, Lin; Zhong, Ling; Ma, Lintao; Liu, Lu; Yu, Lu; Cai, Lun; Zhu, Meiqi; Li, Mengying; Chen, Min; Xue, Minghao; Cai, Minghong; Yin, Mingming; Jiang, Peijie; Zhao, Peilong; Liu, Pingping; Zhao, Qian; Cui, Qing; Huang, Qingxiang; Yang, Qingyuan; Yu, Quankun; Wei, Shaowei; Lian, Shijie; Zheng, Shoujian; Song, Shun; Zhang, Shungen; Zhang, Shuo; Li, Siyuan; Liu, Song; Guo, Ting; Zhao, Tong; Gu, Wanli; Wu, Weichang; Han, Weiguang; Fang, Wenjing; Wang, Wubin; Shu, Xiang; Shi, Xiao; Lan, Xiaoshun; Zhang, Xiaolu; Sun, Xiaqing; Zhao, Xin; Lu, Xingyu; Xu, Xiong; Wang, Xudong; Wang, Xudong; Yang, Xuemin; Yang, Yajie; Xiang, Yang; Li, Yanzhe; Zhang, Yi; Wang, Yilong; Li, Yingxue; Guo, Yongzhen; Fu, Yuzhuo; Wang, Yuanyuan. [CrossRef] [PubMed]
- Linnainmaa, Seppo. The Representation of the Cumulative Rounding Error of an Algorithm as a Taylor Expansion of the Local Rounding Errors. PhD thesis, Master’s Thesis, (in Finnish). Univ. Helsinki, 1970. [Google Scholar]
- Liu, Aixin; Feng, Bei; Xue, Bing; Wang, Bingxuan; Wu, Bochao; Lu, Chengda; Zhao, Chenggang; Deng, Chengqi; Zhang, Chenyu; Ruan, Chong; et al. DeepSeek-V3 Technical Report. arXiv 2024a, arXiv:2412.19437. [Google Scholar]
- Liu, Akide; Liu, Jing; Pan, Zizheng; He, Yefei; Haffari, Reza; Zhuang, Bohan. MiniCache: KV Cache Compression in Depth Dimension for Large Language Models. Neural Information Processing Systems, 2024b. [Google Scholar]
- Liu, Bo; Wang, Rui; Wu, Lemeng; Feng, Yihao; Stone, Peter; liu, qiang. Longhorn: State Space Models Are Amortized Online Learners. International Conference on Learning Representations, 2025a. [Google Scholar]
- Liu, Di; Chen, Meng; Lu, Baotong; Jiang, Huiqiang; Han, Zhenhua; Zhang, Qianxi; Chen, Qi; Zhang, Chengruidong; Ding, Bailu; Zhang, Kai; Chen, Chen; Yang, Fan; Yang, Yuqing; Qiu, Lili. RetrievalAttention: Accelerating Long-Context LLM Inference via Vector Retrieval. Neural Information Processing Systems, 2025b. [Google Scholar]
- Liu, Weiyang; Zhang, Yan-Ming; Li, Xingguo; Yu, Zhiding; Dai, Bo; Zhao, Tuo; Song, Le. Deep Hyperspherical Learning. Neural Information Processing Systems, 2017. [Google Scholar]
- Liu, Wenhao; Shi, Hao; Li, Yunhe; Fei, Weizhi; Wang, Xiangyuan; Ruan, Mengzhe; Hou, Hanxu; Wang, Peisong; Song, Linqi; Qiu, Shuang. ReasonAlloc: Hierarchical Decoding-Time KV Cache Budget Allocation for Reasoning Models. arXiv 2026, arXiv:2606.11164. [Google Scholar]
- Liu, Xuanqing; Yu, Hsiang-Fu; Dhillon, Inderjit; Hsieh, Cho-Jui. Learning to Encode Position for Transformer with Continuous Dynamical Model. International Conference on Machine Learning, 2020. [Google Scholar]
- Liu, Ze; Hu, Han; Lin, Yutong; Yao, Zhuliang; Xie, Zhenda; Wei, Yixuan; Ning, Jia; Cao, Yue; Zhang, Zheng; Dong, Li; Wei, Furu; Guo, Baining. Swin Transformer V2: Scaling Up Capacity and Resolution. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022. [Google Scholar]
- Liu, Zichang; Desai, Aditya; Liao, Fangshuo; Wang, Weitao; Xie, Victor; Xu, Zhaozhuo; Kyrillidis, Anastasios; Shrivastava, Anshumali. Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Time. Neural Information Processing Systems, 2023. [Google Scholar]
- Xiaomi, LLM-Core. MiMo: Unlocking the Reasoning Potential of Language Model – From Pretraining to Posttraining. arXiv 2025, arXiv:2505.07608. [Google Scholar]
- Xiaomi, LLM-Core. MiMo-V2-Flash Technical Report. arXiv 2026, arXiv:2601.02780. [Google Scholar]
- Stats, L.L.M. Open LLM Leaderboard 2026: Ranking the Best Open LLMs by Performance, Price, and Speed. LLM Stats. 2026. Available online: https://llm-stats.com/leaderboards/open-llm-leaderboard (accessed on 2026-07-28).
- Loshchilov, Ilya; Hsieh, Cheng-Ping; Sun, Simeng; Ginsburg, Boris. nGPT: Normalized Transformer with Representation Learning on the Hypersphere. International Conference on Learning Representations, 2025. [Google Scholar]
- Lu, Enzhe; Jiang, Zhejun; Liu, Jingyuan; Du, Yulun; Jiang, Tao; Hong, Chao; Liu, Shaowei; He, Weiran; Yuan, Enming; Wang, Yuzhi; Huang, Zhiqi; Yuan, Huan; Xu, Suting; Xu, Xinran; Lai, Guokun; Chen, Yanru; Zheng, Huabin; Yan, Junjie; Su, Jianlin; Wu, Yuxin; Zhang, Neo Y; Yang, Zhilin; Zhou, Xinyu; Zhang, Mingxing; Qiu, Jiezhong. MoBA: Mixture of Block Attention for Long-Context LLMs. Neural Information Processing Systems, 2025. [Google Scholar]
- Ma, Xin; Liu, Yang; Liu, Jingjing; Ma, Xiaoxu. Mesa-Extrapolation: A Weave Position Encoding Method for Enhanced Extrapolation in LLMs. Neural Information Processing Systems, 2024. [Google Scholar]
- Maas, Andrew L; Hannun, Awni Y; Ng, Andrew Y. Rectifier Nonlinearities Improve Neural Network Acoustic Models. In Proceedings of the International Conference on Machine Learning (ICML), Workshop on Deep Learning for Audio, Speech and Language Processing, 2013. [Google Scholar]
- Mao, Huanru Henry. Fine-Tuning Pre-Trained Transformers into Decaying Fast Weights. In Empirical Methods in Natural Language Processing; 2022. [Google Scholar]
- Markov, Andreevich. An Example of Statistical Investigation of the Text Eugene Onegin Concerning the Connection of Samples in Chains. In Science in Context; 2006. [Google Scholar]
- Marr, David. Simple Memory: A Theory for Archicortex. In Philosophical Transactions of the Royal Society of London. B, Biological Sciences; 1971. [Google Scholar]
- Martin, Eric; Cundy, Chris. Parallelizing Linear Recurrent Neural Nets Over Sequence Length. International Conference on Learning Representations, 2018. [Google Scholar]
- McCulloch, Warren S; Pitts, Walter. A Logical Calculus of the Ideas Immanent in Nervous Activity. Bull. Math. Biophys. 1943. [Google Scholar] [CrossRef]
- Mehta, Harsh; Gupta, Ankit; Cutkosky, Ashok; Neyshabur, Behnam. Long Range Language Modeling via Gated State Spaces. International Conference on Learning Representations, 2023. [Google Scholar]
- Meituan LongCat Team. Introducing LongCat-2.0. LongCat Official Blog. 2026a. Available online: https://longcat.chat/blog/longcat-2.0/ (accessed on 2026-07-06).
- Meituan LongCat Team. Scaling Embeddings Outperforms Scaling Experts in Language Models. arXiv 2026b, arXiv:2601.21204. [Google Scholar]
- Meng, Fanxu; Tang, Pingzhi; Tang, Xiaojuan; Yao, Zengwei; Sun, Xing; Zhang, Muhan. TransMLA: Multi-Head Latent Attention Is All You Need. arXiv 2025, arXiv:2502.07864. [Google Scholar]
- Merrill, William; Petty, Jackson; Sabharwal, Ashish. The Illusion of State in State-Space Models. International Conference on Machine Learning, 2024. [Google Scholar]
- Meta, A.I. Introducing Meta Llama 3: The Most Capable Openly Available LLM to Date. 2024a. Available online: https://ai.meta.com/blog/meta-llama-3/.
- Meta, A.I. Introducing Llama 3.1: Our Most Capable Models to Date. 2024b. Available online: https://ai.meta.com/blog/meta-llama-3-1/.
- Meta, A.I. The Llama 4 Herd: Architecture, Training, Evaluation, and Deployment Notes. arXiv 2026, arXiv:2601.11659. [Google Scholar]
- Miao, Xupeng; Oliaro, Gabriele; Zhang, Zhihao; Cheng, Xinhao; Wang, Zeyu; Zhang, Zhengxin; et al. SpecInfer: Accelerating Large Language Model Serving with Tree-Based Speculative Inference and Verification. International Conference on Architectural Support for Programming Languages and Operating Systems, 2024. [Google Scholar]
- Mielke, Sabrina J; Alyafeai, Zaid; Salesky, Elizabeth; Raffel, Colin; Dey, Manan; Gallé, Matthias; Raja, Arun; Si, Chenglei; Lee, Wilson Y; Sagot, Benoît; et al. Between Words and Characters: A Brief History of Open-Vocabulary Modeling and Tokenization in NLP. arXiv 2021, arXiv:2112.10508. [Google Scholar]
- Mikolov, Tomas; Zweig, Geoffrey. Context Dependent Recurrent Neural Network Language Model. IEEE Spoken Language Technology Workshop (SLT), 2012. [Google Scholar]
- Mikolov, Tomas; Karafiát, Martin; Burget, Lukas; Cernockỳ, Jan; Khudanpur, Sanjeev. Recurrent Neural Network Based Language Model. Interspeech 2010. [Google Scholar] [CrossRef]
- Mikolov, Tomáš; Kombrink, Stefan; Burget, Lukáš; Černockỳ, Jan; Khudanpur, Sanjeev. Extensions of Recurrent Neural Network Language Model. IEEE International Conference on Acoustics, Speech and Signal Processing, 2011. [Google Scholar]
- Mikolov, Tomáš; Sutskever, Ilya; Deoras, Anoop; Le, Hai-Son; Kombrink, Stefan; Cernocky, Jan. Subword Language Modeling with Neural Networks. 2012. Available online: https://www.fit.vut.cz/person/imikolov/public/rnnlm/char.pdf.
- MiniCPM Team. MiniCPM4: Ultra-Efficient LLMs on End Devices. arXiv 2025, arXiv:2506.07900. [Google Scholar]
- MiniMax. MiniMax-M3 Official Configuration SwiGLU-OAI activation with alpha 1.702 and limit 7.0. 2026. Available online: https://huggingface.co/MiniMaxAI/MiniMax-M3/blob/main/config.json (accessed on 2026-09-17).
- MiniMax, A.I. MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention. arXiv 2025a, arXiv:2506.13585. [Google Scholar]
- MiniMax, A.I. MiniMax-M2.1. 2025b. Available online: https://huggingface.co/MiniMaxAI/MiniMax-M2.1.
- MiniMax, A.I. The MiniMax-M2 Series: Mini Activations Unleashing Max Real-World Intelligence. arXiv 2026a, arXiv:2605.26494. [Google Scholar]
- MiniMax, A.I. MiniMax-M2.5. 2026b. Available online: https://huggingface.co/MiniMaxAI/MiniMax-M2.5.
- MiniMax, A.I. MiniMax-M2.7. 2026c. Available online: https://huggingface.co/MiniMaxAI/MiniMax-M2.7.
- MiniMax, A.I. MiniMax Sparse Attention. arXiv 2026d, arXiv:2606.13392. [Google Scholar]
- Mistral. Mixtral of Experts: A High Quality Sparse Mixture-of-Experts, 2023. Available online: https://mistral.ai/news/mixtral-of-experts.
- Mistral. Cheaper, Better, Faster, Stronger: Continuing to Push the Frontier of AI and Making It Accessible to All. 2024. Available online: https://mistral.ai/news/mixtral-8x22b.
- Mistral, A.I. Introducing Mistral 3. 2025. Available online: https://mistral.ai/news/mistral-3.
- Moonshot, A.I. Kimi K2.6. 2026a. Available online: https://huggingface.co/moonshotai/Kimi-K2.6.
- Moonshot, A.I. Kimi K2.7-Code. 2026b. Available online: https://huggingface.co/moonshotai/Kimi-K2.7-Code.
- Moonshot, A.I. Kimi K3: Open Frontier Intelligence. arXiv 2026c, arXiv:2607.24653. [Google Scholar]
- Movahedi, Sajad; Milovanović, Vera; Feigin, Shlomo Libo; Theus, Alexander; Hofmann, Thomas; Boeva, Valentina; Rusch, T. Konstantin; Orvieto, Antonio. Fixed-Point Reasoners: Stable and Adaptive Deep Looped Transformers. arXiv 2026, arXiv:2606.18206. [Google Scholar]
- Mu, Siyuan; Lin, Sen. A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applications. arXiv 2025, arXiv:2503.07137. [Google Scholar]
- Muennighoff, Niklas; Soldaini, Luca; Groeneveld, Dirk; Lo, Kyle; Morrison, Jacob; Min, Sewon; Shi, Weijia; Walsh, Pete; Tafjord, Oyvind; Lambert, Nathan; et al. OLMoE: Open Mixture-of-Experts Language Models. International Conference on Learning Representations, 2025. [Google Scholar]
- Munkhdalai, Tsendsuren; Faruqui, Manaal; Gopal, Siddharth. Leave No Context Behind: Efficient Infinite Context Transformers with Infini-Attention. arXiv 2024, arXiv:2404.07143. [Google Scholar]
- Muqeeth, Mohammed; Liu, Haokun; Raffel, Colin. Soft Merging of Experts with Adaptive Routing. Transactions on Machine Learning Research, 2024. [Google Scholar]
- Nakamura, Masami; Shikano, Kiyohiro. A Study of English Word Category Prediction Based on Neural Networks. IEEE International Conference on Acoustics, Speech and Signal Processing, 1989. [Google Scholar]
- Nakano, Kaoru. Associatron-a Model of Associative Memory. IEEE Transactions on Systems, Man, and Cybernetics, 1972. [Google Scholar]
- Nawrot, Piotr; ańcucki, Adrian; Chochowski, Marcin; Tarjan, David; Ponti, Edoardo M. Dynamic Memory Compression: Retrofitting LLMs for Accelerated Inference. International Conference on Machine Learning, 2024. [Google Scholar]
- Ney, Hermann; Essen, Ute; Kneser, Reinhard. On Structuring Probabilistic Dependences in Stochastic Language Modelling. In Computer Speech & Language; 1994. [Google Scholar]
- Nguyen, Eric; Goel, Karan; Gu, Albert; Downs, Gordon; Shah, Preey; Dao, Tri; Baccus, Stephen; Ré, Christopher. S4ND: Modeling Images and Videos as Multidimensional Signals Using State Spaces. Neural Information Processing Systems, 2022. [Google Scholar]
- Nguyen, Toan Q; Salazar, Julian. Transformers without Tears: Improving the Normalization of Self-Attention. International Conference on Spoken Language Translation, 2019. [Google Scholar]
- Nordhaus, William D. Two Centuries of Productivity Growth in Computing. J. Econ. Hist. 2007. [Google Scholar] [CrossRef]
- NVIDIA. Nemotron 3 Nano: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning. arXiv 2025a, arXiv:2512.20848. [Google Scholar]
- NVIDIA. Nemotron-H: A Family of Accurate and Efficient Hybrid Mamba-Transformer Models. arXiv 2025b, arXiv:2504.03624. [Google Scholar]
- NVIDIA. NVIDIA Nemotron Nano 2: An Accurate and Efficient Hybrid Mamba-Transformer Reasoning Model. arXiv 2025c, arXiv:2508.14444. [Google Scholar]
- NVIDIA. NVIDIA-Nemotron-3-Nano-4B Model Card Dense hybrid Mamba-2/Transformer model compressed from Nemotron Nano 2 (9B). 2026a. Available online: https://huggingface.co/nvidia/NVIDIA-Nemotron-3-Nano-4B-BF16 (accessed on 2026-09-18).
- NVIDIA. Nemotron 3 Super: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning. arXiv 2026b, arXiv:2604.12374. [Google Scholar]
- NVIDIA. Nemotron 3 Ultra: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoning. arXiv 2026c, arXiv:2606.15007. [Google Scholar]
- Team OLMo; Walsh, Pete; Soldaini, Luca; Groeneveld, Dirk; Lo, Kyle; Arora, Shane; Bhagia, Akshita; Gu, Yuling; Huang, Shengyi; Jordan, Matt; et al. 2 OLMo 2 Furious. Conference on Language Modeling, 2025. [Google Scholar]
- OpenAI. GPT-OSS Reference Implementation: SwiGLU. 2025. Available online: https://github.com/openai/gpt-oss/blob/main/gpt_oss/torch/model.py (accessed on 2026-09-17).
- OpenAI; Achiam, Josh; Adler, Steven; Agarwal, Sandhini; Ahmad, Lama; Akkaya, Ilge; Leoni Aleman, Florencia; Almeida, Diogo; Altenschmidt, Janko; Altman, Sam; et al. GPT-4 Technical Report. arXiv 2024, arXiv:2303.08774. [Google Scholar]
- OpenAI; Agarwal, Sandhini; Ahmad, Lama; Ai, Jason; Altman, Sam; Applebaum, Andy; Arbus, Edwin; Arora, Rahul K.; Bai, Yu; Baker, Bowen; Bao, Haiming; Barak, Boaz; Bennett, Ally; Bertao, Tyler; Brett, Nivedita; Brevdo, Eugene; Brockman, Greg; Bubeck, Sebastien; Chang, Che; Chen, Kai; Chen, Mark; Cheung, Enoch; Clark, Aidan; Cook, Dan; Dukhan, Marat; Dvorak, Casey; Fives, Kevin; Fomenko, Vlad; Garipov, Timur; Georgiev, Kristian; Glaese, Mia; Gogineni, Tarun; Goucher, Adam; Gross, Lukas; Gil Guzman, Katia; Hallman, John; Hehir, Jackie; Heidecke, Johannes; Helyar, Alec; Hu, Haitang; Huet, Romain; Huh, Jacob; Jain, Saachi; Johnson, Zach; Koch, Chris; Kofman, Irina; Kundel, Dominik; Kwon, Jason; Kyrylov, Volodymyr; Le, Elaine Ya; Leclerc, Guillaume; Lennon, James Park; Lessans, Scott; Lezcano-Casado, Mario; Li, Yuanzhi; Li, Zhuohan; Lin, Ji; Liss, Jordan; Liu, Lily; Liu, Jiancheng; Lu, Kevin; Lu, Chris; Martinovic, Zoran; McCallum, Lindsay; McGrath, Josh; McKinney, Scott; McLaughlin, Aidan; Mei, Song; Mostovoy, Steve; Mu, Tong; Myles, Gideon; Neitz, Alexander; Nichol, Alex; Pachocki, Jakub; Paino, Alex; Palmie, Dana; Pantuliano, Ashley; Parascandolo, Giambattista; Park, Jongsoo; Pathak, Leher; Paz, Carolina; Peran, Ludovic; Pimenov, Dmitry; Pokrass, Michelle; Proehl, Elizabeth; Qiu, Huida; Raila, Gaby; Raso, Filippo; Ren, Hongyu; Richardson, Kimmy; Robinson, David; Rotsted, Bob; Salman, Hadi; Sanjeev, Suvansh; Schwarzer, Max; Sculley, D.; Sikchi, Harshit; Simon, Kendal; Singhal, Karan; Song, Yang; Stuckey, Dane; Sun, Zhiqing; Tillet, Philippe; Toizer, Sam; Tsimpourlas, Foivos; Vyas, Nikhil; Wallace, Eric; Wang, Xin; Wang, Miles; Watkins, Olivia; Weil, Kevin; Wendling, Amy; Whinnery, Kevin; Whitney, Cedric; Wong, Hannah; Yang, Lin; Yang, Yu; Yasunaga, Michihiro; Ying, Kristen; Zaremba, Wojciech; Zhan, Wenting; Zhang, Cyril; Zhang, Brian; Zhang, Eddie; Zhao, Shengjia. gpt-oss-120b & gpt-oss-20b Model Card. arXiv 2025, arXiv:2508.10925. [Google Scholar]
- OpenBMB. MiniCPM3-4B. 2024. Available online: https://huggingface.co/openbmb/MiniCPM3-4B.
- OpenBMB. MiniCPM5-1B. 2026a. Available online: https://huggingface.co/openbmb/MiniCPM5-1B.
- OpenBMB. MiniCPM5-2B. 2026b. Available online: https://huggingface.co/openbmb/MiniCPM5-2B.
- Orvieto, Antonio; Smith, Samuel L; Gu, Albert; Fernando, Anushan; Gulcehre, Caglar; Pascanu, Razvan; De, Soham. Resurrecting Recurrent Neural Networks for Long Sequences. International Conference on Machine Learning, 2023. [Google Scholar]
- Pagnoni, Artidoro; Pasunuru, Ram; Rodriguez, Pedro; Nguyen, John; Muller, Benjamin; Li, Margaret; Zhou, Chunting; Yu, Lili; Weston, Jason; Zettlemoyer, Luke; et al. Byte Latent Transformer: Patches Scale Better Than Tokens. In Association for Computational Linguistics; 2025. [Google Scholar]
- Pan, Bowen; Shen, Yikang; Liu, Haokun; Mishra, Mayank; Zhang, Gaoyuan; Oliva, Aude; Raffel, Colin; Panda, Rameswar. Dense Training, Sparse Inference: Rethinking Training of Mixture-of-Experts Language Models. arXiv 2024, arXiv:2404.05567. [Google Scholar]
- Parikh, Ankur; Täckström, Oscar; Das, Dipanjan; Uszkoreit, Jakob. A Decomposable Attention Model for Natural Language Inference. In Empirical Methods in Natural Language Processing; 2016. [Google Scholar]
- Park, Jongho; Park, Jaeseung; Xiong, Zheyang; Lee, Nayoung; Cho, Jaewoong; Oymak, Samet; Lee, Kangwook; Papailiopoulos, Dimitris. Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks. arXiv 2024, arXiv:2402.04248. [Google Scholar]
- Park, Jungwoo; Ahn, Young Jin; Kim, Kee-Eung; Kang, Jaewoo. Monet: Mixture of Monosemantic Experts for Transformers. International Conference on Learning Representations, 2025. [Google Scholar]
- Park, Sungrae; Kim, Geewook; Lee, Junyeop; Cha, Junbum; Kim, Ji-Hoon; Lee, Hwalsuk. Scale Down Transformer by Grouping Features for a Lightweight Character-Level Language Model. International Conference on Computational Linguistics, 2020. [Google Scholar]
- Patro, Badri Narayana; Agneeswaran, Vijay Srinivas. Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challenges. arXiv 2024, arXiv:2404.16112. [Google Scholar]
- Paulus, Romain; Xiong, Caiming; Socher, Richard. A Deep Reinforced Model for Abstractive Summarization. International Conference on Learning Representations, 2018. [Google Scholar]
- Peng, Bo; Alcaide, Eric; Anthony, Quentin; Albalak, Alon; Arcadinho, Samuel; Cao, Huanqi; Cheng, Xin; Chung, Michael; Grella, Matteo; Kranthi Kiran, GV; et al. RWKV: Reinventing RNNs for the Transformer Era. In Findings of the Association for Computational Linguistics: EMNLP; 2023a. [Google Scholar]
- Peng, Bo; Goldstein, Daniel; Anthony, Quentin; Albalak, Alon; Alcaide, Eric; Biderman, Stella; Cheah, Eugene; Du, Xingjian; Ferdinan, Teddy; Hou, Haowen; et al. Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence. Conference on Language Modeling, 2024. [Google Scholar]
- Peng, Bo; Zhang, Ruichong; Goldstein, Daniel; Alcaide, Eric; Hou, Haowen; Lu, Janna; Merrill, William; Song, Guangyu; Tan, Kaifeng; Utpala, Saiteja; Wilce, Nathan; Wind, Johan S; Wu, Tianyi; Wuttke, Daniel; Zhou-Zheng, Christian. RWKV-7 “Goose” with Expressive Dynamic State Evolution. Conference on Language Modeling, 2025. [Google Scholar]
- Peng, Bowen; Quesnelle, Jeffrey; Fan, Honglu; Shippole, Enrico. YaRN: Efficient Context Window Extension of Large Language Models. International Conference on Learning Representations, 2023b. [Google Scholar]
- Peng, Hao; Pappas, Nikolaos; Yogatama, Dani; Schwartz, Roy; Smith, Noah; Kong, Lingpeng. Random Feature Attention. International Conference on Learning Representations, 2021. [Google Scholar]
- Peters, Matthew E.; Neumann, Mark; Iyyer, Mohit; Gardner, Matt; Clark, Christopher; Lee, Kenton; Zettlemoyer, Luke. Deep Contextualized Word Representations. In North American Chapter of the Association for Computational Linguistics; 2018. [Google Scholar]
- Petrov, Aleksandar; La Malfa, Emanuele; Torr, Philip; Bibi, Adel. Language Model Tokenizers Introduce Unfairness Between Languages. Neural Information Processing Systems, 2024. [Google Scholar]
- Piękos, Piotr; Csordás, Róbert; Schmidhuber, Jürgen. Mixture of Sparse Attention: Content-Based Learnable Sparse Attention via Expert-Choice Routing. Transactions on Machine Learning Research, 2026. [Google Scholar]
- Pollack, Jordan B. Recursive Distributed Representations. In Artificial Intelligence; 1990. [Google Scholar]
- Press, Ofir; Smith, Noah; Lewis, Mike. Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation. International Conference on Learning Representations, 2021. [Google Scholar]
- Qi, Weizhen; Yan, Yu; Gong, Yeyun; Liu, Dayiheng; Duan, Nan; Chen, Jiusheng; Zhang, Ruofei; Zhou, Ming. ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-Training. In Findings of the Association for Computational Linguistics: EMNLP; 2020. [Google Scholar]
- Qin, Zhen; Sun, Weixuan; Deng, Hui; Li, Dongxu; Wei, Yunshen; Lv, Baohong; Yan, Junjie; Kong, Lingpeng; Zhong, Yiran. cosFormer: Rethinking Softmax In Attention. International Conference on Learning Representations, 2022. [Google Scholar]
- Qin, Zhen; Sun, Weigao; Li, Dong; Shen, Xuyang; Sun, Weixuan; Zhong, Yiran. Lightning Attention-2: A Free Lunch for Handling Unlimited Sequence Lengths in Large Language Models. arXiv 2024a, arXiv:2401.04658. [Google Scholar]
- Qin, Zhen; Yang, Songlin; Sun, Weixuan; Shen, Xuyang; Li, Dong; Sun, Weigao; Zhong, Yiran. HGRN2: Gated Linear RNNs with State Expansion. Conference on Language Modeling, 2024b. [Google Scholar]
- Qin, Zhen; Mao, Yuxin; Shen, Xuyang; Li, Dong; Zhang, Jing; Dai, Yuchao; Zhong, Yiran. You Only Scan Once: Efficient Multi-Dimension Sequential Modeling with LightNet. Transactions on Machine Learning Research, 2026. [Google Scholar]
- Qin, Ziran; Cao, Yuchen; Lin, Mingbao; Hu, Wen; Fan, Shixuan; Cheng, Ke; Lin, Weiyao; Li, Jianguo. CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferences. International Conference on Learning Representations, 2025. [Google Scholar]
- Qiu, Zihan; Wang, Zekun; Zheng, Bo; Huang, Zeyu; Wen, Kaiyue; Yang, Songlin; Men, Rui; Yu, Le; Huang, Fei; Huang, Suozhi; Liu, Dayiheng; Zhou, Jingren; Lin, Junyang. Gated Attention for Large Language Models: Non-Linearity, Sparsity, and Attention-Sink-Free. Neural Information Processing Systems, 2025. [Google Scholar]
- Qu, Haohao; Ning, Liangbo; An, Rui; Fan, Wenqi; Derr, Tyler; Liu, Hui; Xu, Xin; Li, Qing. A Survey of Mamba. arXiv 2024, arXiv:2408.01129. [Google Scholar]
- Qwen; Yang, An; Yang, Baosong; Zhang, Beichen; Hui, Binyuan; Zheng, Bo; Yu, Bowen; Li, Chengyuan; Liu, Dayiheng; Huang, Fei; Wei, Haoran; Lin, Huan; Yang, Jian; Tu, Jianhong; Zhang, Jianwei; Yang, Jianxin; Yang, Jiaxi; Zhou, Jingren; Lin, Junyang; Dang, Kai; Lu, Keming; Bao, Keqin; Yang, Kexin; Yu, Le; Li, Mei; Xue, Mingfeng; Zhang, Pei; Zhu, Qin; Men, Rui; Lin, Runji; Li, Tianhao; Tang, Tianyi; Xia, Tingyu; Ren, Xingzhang; Ren, Xuancheng; Fan, Yang; Su, Yang; Zhang, Yichang; Wan, Yu; Liu, Yuqiong; Cui, Zeyu; Zhang, Zhenru; Qiu, Zihan. Qwen2.5 Technical Report. arXiv 2025, arXiv:2412.15115. [Google Scholar]
- Qwen Team. Qwen3 Technical Report. arXiv 2025, arXiv:2505.09388. [Google Scholar]
- Qwen Team. Qwen3.5: Towards Native Multimodal Agents. 2026a. Available online: https://qwen.ai/blog?id=qwen3.5.
- Qwen Team. Qwen3.6-Plus: Towards Real World Agents. 2026b. Available online: https://qwen.ai/blog?id=qwen3.6.
- Qwen Team. Qwen3.6-27B: Flagship-Level Coding in a 27B Dense Model. Qwen Blog. April 2026c. Available online: https://qwen.ai/blog?id=qwen3.6-27b (accessed on 2026-07-29).
- Qwen Team. Qwen3.8-2.4T-A95B. 2026d. Available online: https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B.
- Qwen Team. Qwen3.8-27B. 2026e. Available online: https://huggingface.co/Qwen/Qwen3.8-27B.
- Qwen Team. Qwen3.8-Max: A New Bar for Coding and Cowork, 2026f. Available online: https://www.alibabacloud.com/blog/qwen3-8-max-a-new-bar-for-coding-and-cowork_603421.
- Radford, Alec; Narasimhan, Karthik; Salimans, Tim; Sutskever, Ilya. Improving Language Understanding by Generative Pre-Training. Technical report, OpenAI. 2018. Available online: https://cdn.openai.com/research-covers/language-unsupervised/language_understanding_paper.pdf.
- Radford, Alec; Wu, Jeffrey; Child, Rewon; Luan, David; Amodei, Dario; Sutskever, Ilya. Language Models Are Unsupervised Multitask Learners. OpenAI Blog 2019. [Google Scholar] [CrossRef]
- Rae, Jack W; Borgeaud, Sebastian; Cai, Trevor; Millican, Katie; Hoffmann, Jordan; Song, Francis; Aslanides, John; Henderson, Sarah; Ring, Roman; Young, Susannah; et al. Scaling Language Models: Methods, Analysis & Insights from Training Gopher. arXiv 2021, arXiv:2112.11446. [Google Scholar]
- Raffel, Colin; Shazeer, Noam; Roberts, Adam; Lee, Katherine; Narang, Sharan; Matena, Michael; Zhou, Yanqi; Li, Wei; Liu, Peter J. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. J. Mach. Learn. Res. 2020. [Google Scholar]
- Rajbhandari, Samyam; Li, Conglong; Yao, Zhewei; Zhang, Minjia; Aminabadi, Reza Yazdani; Ahmad Awan, Ammar; Rasley, Jeff; He, Yuxiong. DeepSpeed-MoE: Advancing Mixture-of-Experts Inference and Training to Power Next-Generation AI Scale. International Conference on Machine Learning, 2022. [Google Scholar]
- Ramachandran, Prajit; Zoph, Barret; Le, Quoc V. Searching for Activation Functions. arXiv 2017, arXiv:1710.05941. [Google Scholar]
- Raposo, David; Ritter, Sam; Richards, Blake; Lillicrap, Timothy; Conway Humphreys, Peter; Santoro, Adam. Mixture-of-Depths: Dynamically Allocating Compute in Transformer-Based Language Models. arXiv 2024, arXiv:2404.02258. [Google Scholar]
- Rein, David; Hou, Betty Li; Stickland, Asa Cooper; Petty, Jackson; Pang, Richard Yuanzhe; Dirani, Julien; Michael, Julian; Bowman, Samuel R. GPQA: A Graduate-Level Google-Proof Q&A Benchmark. Conference on Language Modeling, 2024. [Google Scholar]
- Ribar, Luka; Chelombiev, Ivan; Hudlass-Galley, Luke; Blake, Charlie; Luschi, Carlo; Orr, Douglas. SparQ Attention: Bandwidth-Efficient LLM Inference. International Conference on Machine Learning, 2024. [Google Scholar]
- Riquelme, Carlos; Puigcerver, Joan; Mustafa, Basil; Neumann, Maxim; Jenatton, Rodolphe; Susano Pinto, André; Keysers, Daniel; Houlsby, Neil. Scaling Vision with Sparse Mixture of Experts. Neural Information Processing Systems, 2021. [Google Scholar]
- Robinson, Anthony J. An Application of Recurrent Nets to Phone Probability Estimation. IEEE Transactions on Neural Networks, 1994. [Google Scholar]
- Roller, Stephen; Sukhbaatar, Sainbayar; Weston, Jason; et al. Hash Layers For Large Sparse Models. Neural Information Processing Systems, 2021. [Google Scholar]
- Rosenblatt, Frank. The Perceptron: A Probabilistic Model for Information Storage and Organization in the Brain. Psychol. Rev. 1958. [Google Scholar] [CrossRef] [PubMed]
- Rosenblatt, Frank; et al. Principles of Neurodynamics: Perceptrons and the Theory of Brain Mechanisms; Spartan books: Washington, DC, 1962. [Google Scholar]
- Rosenfeld, Ronald. Two Decades of Statistical Language Modeling: Where Do We Go from Here? In Proceedings of the IEEE, 2002. [Google Scholar]
- Rumelhart, D. E.; McClelland, J. L. On Learning the Past Tenses of English Verbs. In Parallel Distributed Processing; MIT Press, 1986; Volume 2. [Google Scholar]
- Rumelhart, David E; Hinton, Geoffrey E; Williams, Ronald J. Learning Internal Representations by Error Propagation; ICS Report 8506; Institute for Cognitive Science, University of California: San Diego, 1985. [Google Scholar]
- Salimans, Tim; Kingma, Durk P. Weight Normalization: A Simple Reparameterization to Accelerate Training of Deep Neural Networks. Neural Information Processing Systems, 2016. [Google Scholar]
- Samarin, Alexander; Krutikov, Sergei; Shevtsov, Anton; Skvortsov, Sergei; Fisin, Filipp; Golubev, Alexander. LK Losses: Direct Acceptance Rate Optimization for Speculative Decoding. International Conference on Machine Learning, 2026. [Google Scholar]
- Samragh, Mohammad; et al. Your LLM Knows the Future: Uncovering Its Multi-Token Prediction Potential. arXiv 2025, arXiv:2507.11851. [Google Scholar]
- Sarrof, Yash; Veitsman, Yana; Hahn, Michael. The Expressive Capacity of State Space Models: A Formal Language Perspective. Neural Information Processing Systems, 2024. [Google Scholar]
- Saunshi, Nikunj; Dikkala, Nishanth; Li, Zhiyuan; Kumar, Sanjiv; Reddi, Sashank J. Reasoning with Latent Thoughts: On the Power of Looped Transformers. International Conference on Learning Representations, 2025. [Google Scholar]
- Saxe, Andrew M; McClelland, James L; Ganguli, Surya. Exact Solutions to the Nonlinear Dynamics of Learning in Deep Linear Neural Networks. International Conference on Learning Representations, 2014. [Google Scholar]
- Schlag, Imanol; Schmidhuber, Jürgen. Gated Fast Weights for On-the-Fly Neural Program Generation. NIPS Metalearning Workshop, 2017. [Google Scholar]
- Schlag, Imanol; Schmidhuber, Jürgen. Learning to Reason with Third Order Tensor Products. Neural Information Processing Systems, 2018. [Google Scholar]
- Schlag, Imanol; Irie, Kazuki; Schmidhuber, Jürgen. Linear Transformers Are Secretly Fast Weight Programmers. International Conference on Machine Learning, 2021a. [Google Scholar]
- Schlag, Imanol; Munkhdalai, Tsendsuren; Schmidhuber, Jürgen. Learning Associative Inference Using Fast Weight Memory. International Conference on Learning Representations, 2021b. [Google Scholar]
- Schmidhuber, Juergen. Annotated History of Modern AI and Deep Learning. arXiv 2022a, arXiv:2212.11279. [Google Scholar]
- Schmidhuber, Jürgen. Technical Report FKI-147-91; Learning to Control Fast-Weight Memories: An Alternative to Recurrent Nets. Institut für Informatik: Technische Universität München, 1991.
- Schmidhuber, Jürgen. Technical Report CU-CS-627-92; Steps Towards `Self-Referential’ Neural Learning: A Thought Experiment. University of Colorado at Boulder, 1992a.
- Schmidhuber, Jürgen. Learning to Control Fast-Weight Memories: An Alternative to Dynamic Recurrent Networks. In Neural Computation; 1992b. [Google Scholar]
- Schmidhuber, Jürgen. Learning Complex, Extended Sequences Using the Principle of History Compression. In Neural Computation; 1992c. [Google Scholar]
- Schmidhuber, Jürgen. An’introspective’network That Can Learn to Run Its Own Weight Change Algorithm. 1993 Third International Conference on Artificial Neural Networks, 1993a. [Google Scholar]
- Schmidhuber, Jürgen. A Neural Network That Embeds Its Own Meta-Levels. IEEE International Conference on Neural Networks, 1993b. [Google Scholar]
- Schmidhuber, Jürgen. Reducing the Ratio Between Learning Complexity and Number of Time Varying Variables in Fully Recurrent Nets. International Conference on Artificial Neural Networks, 1993c. [Google Scholar]
- Schmidhuber, Jürgen. A `Self-Referential’ Weight Matrix. International Conference on Artificial Neural Networks (ICANN), 1993d. [Google Scholar]
- Schmidhuber, Jürgen. Deep Learning in Neural Networks: An Overview. In Neural Networks; 2015. [Google Scholar]
- Schmidhuber, Jürgen. Deep Learning: Our Miraculous Year 1990-1991. arXiv 2020, arXiv:2005.05744. [Google Scholar]
- Schmidhuber, Jürgen. Neural Nets Learn to Program Neural Nets with Fast Weights—the First Transformer Variants. 2021-: New Stuff!, 2021. AI Blog. 26 March 1991. Available online: https://people.idsia.ch/~juergen/fast-weight-programmer-1991-transformer.html.
- Schmidhuber, Jürgen. Technical Report IDSIA-77-21 (v3); Scientific Integrity and the History of Deep Learning: The 2021 Turing Lecture, and the 2018 Turing Award. IDSIA, Lugano, Switzerland, 2022b.
- Schmidhuber, Jürgen. Who Invented Deep Residual Learning? arXiv 2025a, arXiv:2509.24732. [Google Scholar]
- Schmidhuber, Jürgen. Who Invented Transformer Neural Networks? Technical Note IDSIA-11-25, IDSIA. 2025b. Available online: https://people.idsia.ch/~juergen/who-invented-transformer-neural-networks.html.
- Schmidhuber, Jürgen. The 1991 Unnormalized Linear Transformer (ULTRA), 2025c. AI Blog. Available online: https://people.idsia.ch/~juergen/1991-unnormalized-linear-transformer.html.
- Schmidhuber, Jürgen; Heil, Stefan. Predictive Coding with Neural Nets: Application to Text Compression. Neural Information Processing Systems, 1994. [Google Scholar]
- Schmidhuber, Jürgen; Heil, Stefan. Sequential Neural Text Compression. IEEE Transactions on Neural Networks, 1996. [Google Scholar]
- Schug, Simon; Kobayashi, Seijin; Akram, Yassir; Sacramento, João; Pascanu, Razvan. Attention as a Hypernetwork. International Conference on Learning Representations, 2025. [Google Scholar]
- Schuster, Mike; Nakajima, Kaisuke. Japanese and Korean Voice Search. International Conference on Acoustics, Speech and Signal Processing, 2012. [Google Scholar]
- Schuster, Tal; Fisch, Adam; Gupta, Jai; Dehghani, Mostafa; Bahri, Dara; Tran, Vinh Q.; Tay, Yi; Metzler, Donald. Confident Adaptive Language Modeling. Neural Information Processing Systems, 2022. [Google Scholar]
- Schwethelm, Kristian; Rueckert, Daniel; Kaissis, Georgios. How Much Is One Recurrence Worth? Iso-Depth Scaling Laws for Looped Language Models. arXiv 2026, arXiv:2604.21106. [Google Scholar]
- Sejnowski, Terrence J; Rosenberg, Charles R. NETtalk: A Parallel Network That Learns to Read Aloud. In Neurocomputing: Foundations of Research; MIT Press, 1988. [Google Scholar]
- Sennrich, Rico; Haddow, Barry; Birch, Alexandra. Neural Machine Translation of Rare Words with Subword Units. Association for Computational Linguistics, 2016. [Google Scholar]
- Shannon, Claude E. Prediction and Entropy of Printed English. Bell Syst. Tech. J. 1951. [Google Scholar] [CrossRef]
- Shannon, Claude Elwood. A Mathematical Theory of Communication. In The Bell System Technical Journal; 1948. [Google Scholar]
- Shaw, Peter; Uszkoreit, Jakob; Vaswani, Ashish. Self-Attention with Relative Position Representations. In North American Chapter of the Association for Computational Linguistics; 2018. [Google Scholar]
- Shazeer, Noam. Fast Transformer Decoding: One Write-Head Is All You Need. arXiv 2019, arXiv:1911.02150. [Google Scholar]
- Shazeer, Noam. GLU Variants Improve Transformer. arXiv 2020, arXiv:2002.05202. [Google Scholar]
- Shazeer, Noam; Mirhoseini, Azalia; Maziarz, Krzysztof; Davis, Andy; Le, Quoc; Hinton, Geoffrey; Dean, Jeff. Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer. International Conference on Learning Representations, 2017. [Google Scholar]
- Shen, Yikang; Guo, Zhen; Cai, Tianle; Qin, Zengyi. JetMoE: Reaching Llama2 Performance with 0.1M Dollars. arXiv 2024, arXiv:2404.07413. [Google Scholar]
- Shephard, Neil; Pitt, Michael K. Likelihood Analysis of Non-Gaussian Measurement Time Series. In Biometrika; 1997. [Google Scholar]
- Shi, Weijia; Bhagia, Akshita; Farhat, Kevin; Muennighoff, Niklas; Walsh, Pete; Morrison, Jacob; Schwenk, Dustin; Longpre, Shayne; Poznanski, Jake; Ettinger, Allyson; et al. FlexOlmo: Open Language Models for Flexible Data Use. Neural Information Processing Systems, 2025. [Google Scholar]
- Siems, Julien; Carstensen, Timur; Zela, Arber; Hutter, Frank; Pontil, Massimiliano; Grazzi, Riccardo. DeltaProduct: Improving State-Tracking in Linear RNNs via Householder Products. Neural Information Processing Systems, 2025. [Google Scholar]
- Smith, Jimmy TH; Warrington, Andrew; Linderman, Scott. Simplified State Space Layers for Sequence Modeling. International Conference on Learning Representations, 2023. [Google Scholar]
- Snowflake AI Research Team. Snowflake Arctic: The Best LLM for Enterprise AI — Efficiently Intelligent; Truly Open, 2024. [Google Scholar]
- So, David R.; Mańke, Wojciech; Liu, Hanxiao; Dai, Zihang; Shazeer, Noam; Le, Quoc V. Primer: Searching for Efficient Transformers for Language Modeling. Neural Information Processing Systems, 2021. [Google Scholar]
- Srivastava, Nitish; Hinton, Geoffrey; Krizhevsky, Alex; Sutskever, Ilya; Salakhutdinov, Ruslan. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014. [Google Scholar] [CrossRef]
- Srivastava, Rupesh K; Greff, Klaus; Schmidhuber, Jürgen. Training Very Deep Networks. Neural Information Processing Systems, 2015a. [Google Scholar]
- Srivastava, Rupesh Kumar; Greff, Klaus; Schmidhuber, Jürgen. Highway Networks. arXiv 2015b, arXiv:1505.00387. [Google Scholar]
- Steinbuch, Karl. Adaptive Networks Using Learning Matrices. In Kybernetik; 1965. [Google Scholar]
- Stern, Mitchell; Shazeer, Noam; Uszkoreit, Jakob. Blockwise Parallel Decoding for Deep Autoregressive Models. Neural Information Processing Systems, 2018. [Google Scholar]
- Su, Jianlin. Time and Space: Viewing Attention as an RNN with Quadratic Complexity. In Scientific Spaces (blog); March 2024; Available online: https://spaces.ac.cn/archives/10017.
- Su, Jianlin. Entries of DeltaNet’s Core Inverse Matrix Always Lie in [-1,1]. In Scientific Spaces (blog); January 2026a; Available online: https://spaces.ac.cn/archives/11563.
- Su, Jianlin. Linearizing Softmax Attention into Gated DeltaNet. Scientific Spaces (blog). July 2026b. Available online: https://spaces.ac.cn/archives/11823.
- Su, Jianlin; Ahmed, Murtadha; Lu, Yu; Pan, Shengfeng; Bo, Wen; Liu, Yunfeng. Roformer: Enhanced Transformer with Rotary Position Embedding. Neurocomputing 2024. [Google Scholar] [CrossRef]
- Sukhbaatar, Sainbayar; Szlam, Arthur; Weston, Jason; Fergus, Rob. End-To-End Memory Networks. Neural Information Processing Systems, 2015. [Google Scholar]
- Sukhbaatar, Sainbayar; Golovneva, Olga; Sharma, Vasu; Xu, Hu; Lin, Xi Victoria; Rozière, Baptiste; Kahn, Jacob; Li, Daniel; Yih, Wen-tau; Weston, Jason; Li, Xian. Branch-Train-Mix: Mixing Expert LLMs into a Mixture-of-Experts LLM. Conference on Language Modeling, 2024. [Google Scholar]
- Sun, Haohai; AI, MiniMax. Why Did M2 End Up as a Full Attention Model? MiniMax News. October 2025. Available online: https://www.minimax.io/news/why-did-m2-end-up-as-a-full-attention-model.
- Sun, Yu; Li, Xinhao; Dalal, Karan; Xu, Jiarui; Vikram, Arjun; Zhang, Genghan; Dubois, Yann; Chen, Xinlei; Wang, Xiaolong; Koyejo, Sanmi; et al. Learning to (Learn at Test Time): RNNs with Expressive Hidden States. International Conference on Machine Learning, 2025. [Google Scholar]
- Sun, Yutao; Dong, Li; Huang, Shaohan; Ma, Shuming; Xia, Yuqing; Xue, Jilong; Wang, Jianyong; Wei, Furu. Retentive Network: A Successor to Transformer for Large Language Models. arXiv 2023a, arXiv:2307.08621. [Google Scholar]
- Sun, Yutao; Dong, Li; Patra, Barun; Ma, Shuming; Huang, Shaohan; Benhaim, Alon; Chaudhary, Vishrav; Song, Xia; Wei, Furu. A Length-Extrapolatable Transformer. Association for Computational Linguistics, 2023b. [Google Scholar]
- Sun, Yutao; Dong, Li; Zhu, Yi; Huang, Shaohan; Wang, Wenhui; Ma, Shuming; Zhang, Quanlu; Wang, Jianyong; Wei, Furu. You Only Cache Once: Decoder-Decoder Architectures for Language Models. Neural Information Processing Systems, 2024. [Google Scholar]
- Sundermeyer, Martin; Schlüter, Ralf; Ney, Hermann. LSTM Neural Networks for Language Modeling. Interspeech 2012. [Google Scholar] [CrossRef]
- Sutskever, Ilya; Martens, James; Hinton, Geoffrey E. Generating Text with Recurrent Neural Networks. International Conference on Machine Learning, 2011. [Google Scholar]
- Sutskever, Ilya; Vinyals, Oriol; Le, Quoc V. Sequence to Sequence Learning with Neural Networks. Neural Information Processing Systems, 2014. [Google Scholar]
- Tang, Hanlin; Lin, Yang; Lin, Jing; Han, Qingsen; Ke, Danning; Hong, Shikuan; Yao, Yiwu; Wang, Gongyi. RazorAttention: Efficient KV Cache Compression through Retrieval Heads. International Conference on Learning Representations, 2025a. [Google Scholar]
- Tang, Jiaming; Zhao, Yilong; Zhu, Kan; Xiao, Guangxuan; Kasikci, Baris; Han, Song. QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference. International Conference on Machine Learning, 2024. [Google Scholar]
- Tang, Yehui; Su, Yichun; Zhu, Yujie; et al. Pangu Ultra MoE: How to Train Your Big MoE on Ascend NPUs. arXiv 2025b, arXiv:2505.04519. [Google Scholar]
- Tao, Chaofan; Liu, Qian; Dou, Longxu; Muennighoff, Niklas; Wan, Zhongwei; Luo, Ping; Lin, Min; Wong, Ngai. Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabularies. In Neural Information Processing Systems; 2024. [Google Scholar]
- Tay, Yi; Dehghani, Mostafa; Bahri, Dara; Metzler, Donald. Efficient Transformers: A Survey. ACM Computing Surveys, 2022. [Google Scholar]
- Taylor, Ross; Kardas, Marcin; Cucurull, Guillem; Scialom, Thomas; Hartshorn, Anthony; Saravia, Elvis; Poulton, Andrew; Kerkez, Viktor; Stojnic, Robert. Galactica: A Large Language Model for Science. arXiv 2022, arXiv:2211.09085. [Google Scholar]
- Gemma Team; Mesnard, Thomas; Hardin, Cassidy; Dadashi, Robert; Bhupatiraju, Surya; Pathak, Shreya; Sifre, Laurent; Rivière, Morgane; Kale, Mihir Sanjay; Love, Juliette; et al. Gemma: Open Models Based on Gemini Research and Technology. arXiv 2024a, arXiv:2403.08295. [Google Scholar]
- Jamba Team; Lenz, Barak; Arazi, Alan; Bergman, Amir; Manevich, Avshalom; Peleg, Barak; Aviram, Ben; Almagor, Chen; Fridman, Clara; Padnos, Dan; et al. Jamba-1.5: Hybrid Transformer-Mamba Models at Scale. arXiv 2024b, arXiv:2408.12570. [Google Scholar]
- Kimi Team; Bai, Yifan; Bao, Yiping; Chen, Guanduo; Chen, Jiahao; Chen, Ningxin; Chen, Ruijue; Chen, Yanru; Chen, Yuankun; Chen, Yutian; et al. Kimi K2: Open Agentic Intelligence. arXiv 2025a, arXiv:2507.20534. [Google Scholar]
- Kimi Team; Bai, Yifan; Bao, Yiping; Chen, Guanduo; Chen, Jiahao; Chen, Ningxin; Chen, Ruijue; Chen, Yanru; Chen, Yuankun; Chen, Yutian; et al. Kimi K2.5: Scaling Reinforcement Learning with LLMs. arXiv 2025b, arXiv:2602.02276. [Google Scholar]
- Kimi Team; Zhang, Yu; Lin, Zongyu; Yao, Xingcheng; Hu, Jiaxi; Meng, Fanqing; Liu, Chengyin; Men, Xin; Yang, Songlin; Li, Zhiyuan; et al. Kimi Linear: An Expressive, Efficient Attention Architecture. arXiv 2025c, arXiv:2510.26692. [Google Scholar]
- Kimi Team; Chen, Guangyu; Zhang, Yu; Su, Jianlin; Xu, Weixin; Pan, Siyuan; Wang, Yaoyu; Wang, Yucheng; Chen, Guanduo; Yin, Bohong; et al. Attention Residuals. arXiv 2026, arXiv:2603.15031. [Google Scholar]
- Ling Team; Shen, Anqi; Li, Baihui; Hu, Bin; Jing, Bin; Chen, Cai; Huang, Chao; Zhang, Chao; Yang, Chaokun; Lin, Cheng; Wen, Chengyao; Li, Congqi; Zhao, Deng; Yuan, Dingbo; You, Donghai; Mao, Fagui; Meng, Fanzhuang; Xu, Feng; Li, Guojie; Wang, Guowei; Dai, Hao; Zheng, Haonan; Liu, Hong; Guo, Jia; Liu, Jiaming; Liu, Jian; Fu, Jianhao; Shi, Jiannan; Wang, Jianwen; Lai, Jianxin; Yang, Jin; Mei, Jun; Zhou, Jun; Zhao, Junbo; Zhao, Junping; Xu, Kuan; Su, Le; Chen, Lei; Tang, Li; Jiang, Liang; Fu, Liangcheng; Xu, Lianhao; Shi, Linfeng; Liao, Lisha; Zheng, Longfei; Li, Meng; Chen, Mingchun; Zuo, Qi; Cheng, Qiang; Cao, Qianggang; Shi, Qitao; Guo, Quanrui; Zhu, Senlin; Wang, Shaofei; Zheng, Shaomian; Li, Shuaicheng; Gu, Shuwei; Chen, Siba; Wu, Tao; Zhang, Tao; Zhang, Tianyu; Zhou, Tianyu; Bie, Tiwei; Yang, Tongkai; Hong, Wang; Ren, Wang; Chen, Weihua; Yu, Wenbo; Zheng, Wengang; Wang, Xiangchun; Yan, Xiaodong; Wan, Xiaopei; Zhao, Xin; Kong, Xinyu; Tang, Xinyu; Han, Xudong; Wang, Xudong; Yang, Xuemin; Hu, Xueyu; Zhang, Yalin; Sun, Yan; Shan, Yicheng; Wang, Yilong; Xu, Yingying; Liu, Yongkang; Guo, Yongzhen; Wang, Yuanyuan; Yan, Yuchen; Wang, Yuefan; Guo, Yuhong; Li, Zehuan; Xu, Zhankai; Li, Zhe; Zhang, Zhenduo; Gui, Zhengke; Pan, Zhenxuan; Huang, Zhenyu; Lan, Zhenzhong; Ding, Zhiqiang; Zhang, Zhiqiang; Li, Zhixun; Liu, Zhizhen; Wang, Zihao; Wen, Zujie. Every Step Evolves: Scaling Reinforcement Learning for Trillion-Scale Thinking Model. arXiv 2025d, arXiv:2510.18855. [Google Scholar]
- Meituan LongCat Team; Bayan; Li, Bei; Lei, Bingye; Wang, Bo; Rong, Bolin; Wang, Chao; Zhang, Chao; Gao, Chen; Zhang, Chen; Sun, Cheng; Han, Chengcheng; Xi, Chenguang; Zhang, Chi; Peng, Chong; Qin, Chuan; Zhang, Chuyu; Chen, Cong; Wang, Congkui; Ma, Dan; Pan, Daoru; Bu, Defei; Zhao, Dengchang; Kong, Deyang; Liu, Dishan; Huo, Feiye; Li, Fengcun; Zhang, Fubao; Dong, Gan; Liu, Gang; Xu, Gang; Li, Ge; Tan, Guoqiang; Lin, Guoyuan; Jing, Haihang; Fu, Haomin; Yan, Haonan; Wen, Haoxing; Zhao, Haozhe; Liu, Hong; Shi, Hongmei; Hao, Hongyan; Tang, Hongyin; Lv, Huantian; Su, Hui; Li, Jiacheng; Liu, Jiahao; Li, Jiahuan; Yang, Jiajun; Wang, Jiaming; Yang, Jian; Tan, Jianchao; Sun, Jiaqi; Zhang, Jiaqi; Fu, Jiawei; Yang, Jiawei; Hu, Jiaxi; Qin, Jiayu; Wang, Jingang; He, Jiyuan; Kuang, Jun; Mei, Junhui; Liang, Kai; He, Ke; Zhang, Kefeng; Wang, Keheng; He, Keqing; Gao, Liang; Shi, Liang; Ma, Lianhui; Qiu, Lin; Kong, Lingbin; Si, Lingtong; Lyu, Linkun; Guo, Linsen; Yang, Liqi; Yan, Lizhi; Xia, Mai; Gao, Man; Zhang, Manyuan; Zhou, Meng; Shen, Mengxia; Tuo, Mingxiang; Zhu, Mingyang; Li, Peiguang; Pei, Peng; Zhao, Peng; Jia, Pengcheng; Sun, Pingwei; Gu, Qi; Li, Qianyun; Li, Qingyuan; Huang, Qiong; Duan, Qiyuan; Meng, Ran; Weng, Rongxiang; Shao, Ruichen; Li, Rumei; Wu, Shizhe; Liang, Shuai; Wang, Shuo; Dang, Suogui; Fang, Tao; Li, Tao; Chen, Tefeng; Bai, Tianhao; Zhou, Tianhao; Xie, Tingwen; He, Wei; Huang, Wei; Liu, Wei; Shi, Wei; Wang, Wei; Wu, Wei; Zhao, Weikang; Zan, Wen; Shi, Wenjie; Nan, Xi; Su, Xi; Li, Xiang; Mei, Xiang; Ji, Xiangyang; Xi, Xiangyu. [CrossRef] [PubMed]
- MosaicML NLP Team. Introducing MPT-7B: A New Standard for Open-Source, Commercially Usable LLMs. 2023. Available online: www.mosaicml.com/blog/mpt-7b.
- Qwen Team. Introducing Qwen1.5. 2024. Available online: https://qwenlm.github.io/blog/qwen1.5/.
- Qwen Team. Qwen3-Next: Towards Ultimate Training & Inference Efficiency, 2025. Available online: https://qwen.ai/blog?id=4074cca80393150c248e508aa62983f9cb7d27cd&from=research.latest-advancements-list.
- Team GLM. ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools. arXiv 2024, arXiv:2406.12793. [Google Scholar]
- Team GLM. GLM-4.5: An Open Multilingual Multi-Modal Mixture-of-Experts Model. arXiv 2025, arXiv:2508.06471. [Google Scholar]
- Team GLM. GLM-5.2. 2026a. Available online: https://huggingface.co/zai-org/GLM-5.2.
- Team GLM. GLM-5.3. 2026b. Available online: https://docs.z.ai/guides/llm/glm-5.3.
- Tencent Hunyuan Team. Hy3. 2026a. Available online: https://hy.tencent.com/research/hy3.
- Tencent Hunyuan Team. Hy4 Preview. 2026b. Available online: https://huggingface.co/tencent/Hy4-preview.
- Thinking Machines Lab. Introducing Inkling. 2026. Available online: https://thinkingmachines.ai/news/introducing-inkling/.
- Thoppilan, Romal; De Freitas, Daniel; Hall, Jamie; Shazeer, Noam; Kulshreshtha, Apoorv; Cheng, Heng-Tze; Jin, Alicia; Bos, Taylor; Baker, Leslie; Du, Yu; et al. LaMDA: Language Models for Dialog Applications. arXiv 2022, arXiv:2201.08239. [Google Scholar]
- Touvron, Hugo; Lavril, Thibaut; Izacard, Gautier; Martinet, Xavier; Lachaux, Marie-Anne; Lacroix, Timothée; Rozière, Baptiste; Goyal, Naman; Hambro, Eric; Azhar, Faisal; et al. LLaMA: Open and Efficient Foundation Language Models. arXiv 2023a, arXiv:2302.13971. [Google Scholar]
- Touvron, Hugo; Martin, Louis; Stone, Kevin; Albert, Peter; Almahairi, Amjad; Babaei, Yasmine; Bashlykov, Nikolay; Batra, Soumya; Bhargava, Prajjwal; Bhosale, Shruti; et al. Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv 2023b, arXiv:2307.09288. [Google Scholar]
- Tsai, Yao-Hung Hubert; Bai, Shaojie; Yamada, Makoto; Morency, Louis-Philippe; Salakhutdinov, Ruslan. Transformer Dissection: An Unified Understanding for Transformer’s Attention via the Lens of Kernel. In Empirical Methods in Natural Language Processing; 2019. [Google Scholar]
- Vaswani, Ashish; Shazeer, Noam; Parmar, Niki; Uszkoreit, Jakob; Jones, Llion; Gomez, Aidan N; Kaiser, ukasz; Polosukhin, Illia. Attention Is All You Need. Neural Information Processing Systems, 2017. [Google Scholar]
- von der Malsburg, Christoph. The Correlation Theory of Brain Function; Internal Report 81-2; Max-Planck-Institut für Biophysikalische Chemie, Abteilung Neurobiologie: Göttingen, 1981. [Google Scholar]
- von Oswald, Johannes; Scherrer, Nino; Kobayashi, Seijin; Versari, Luca; Yang, Songlin; Schlegel, Maximilian; Maile, Kaitlin; Schimpf, Yanick; Sieberling, Oliver; Meulemans, Alexander; et al. MesaNet: Sequence Modeling by Locally Optimal Test-Time Training. International Conference on Learning Representations, 2026. [Google Scholar]
- Wan, Zhongwei; Wang, Xin; Liu, Che; Alam, Samiul; Zheng, Yu; Qu, Zhongnan; Yan, Shen; Zhu, Yi; Zhang, Quanlu; Chowdhury, Mosharaf; et al. Efficient Large Language Models: A Survey. Transactions on Machine Learning Research, 2024. [Google Scholar]
- Wang, An; Sun, Xingwu; Xie, Ruobing; Li, Shuaipeng; Zhu, Jiaqi; Yang, Zhen; Zhao, Pinxue; Han, J.N.; Kang, Zhanhui; Wang, Di; et al. HMoE: Heterogeneous Mixture of Experts for Language Modeling. arXiv 2024a, arXiv:2408.10681. [Google Scholar]
- Wang, Ao; Chen, Hui; Tan, Jianchao; Zhang, Kefeng; Cai, Xunliang; Lin, Zijia; Han, Jungong; Ding, Guiguang. PrefixKV: Adaptive Prefix KV Cache Is What Vision Instruction-Following Models Need for Efficient Generation. Neural Inf. Process. Syst. 2025a. [Google Scholar] [CrossRef]
- Wang, Benyou; Zhao, Donghao; Lioma, Christina; Li, Qiuchi; Zhang, Peng; Simonsen, Jakob Grue. Encoding Word Order in Complex Embeddings. International Conference on Learning Representations, 2020. [Google Scholar]
- Wang, Hongyu; Ma, Shuming; Dong, Li; Huang, Shaohan; Zhang, Dongdong; Wei, Furu. DeepNet: Scaling Transformers to 1,000 Layers. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024b. [Google Scholar]
- Wang, Jie; Ji, Tao; Wu, Yuanbin; Yan, Hang; Gui, Tao; Zhang, Qi; Huang, Xuanjing; Wang, Xiaoling. Length Generalization of Causal Transformers without Position Encoding. In Findings of the Association for Computational Linguistics: ACL; 2024c. [Google Scholar]
- Wang, Ke Alexander; Shi, Jiaxin; Fox, Emily B. Test-Time Regression: A Unifying Framework for Designing Sequence Models with Associative Memory. arXiv 2025b, arXiv:2501.12352. [Google Scholar]
- Wang, Lean; Gao, Huazuo; Zhao, Chenggang; Sun, Xu; Dai, Damai. Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Experts. arXiv 2024d, arXiv:2408.15664. [Google Scholar]
- Wang, Qiang; Li, Bei; Xiao, Tong; Zhu, Jingbo; Li, Changliang; Wong, Derek F; Chao, Lidia S. Learning Deep Transformer Models for Machine Translation. Annual Meeting of the Association for Computational Linguistics, 2019. [Google Scholar]
- Wang, Shuai; Teng, Yao; Wang, Limin. Deep Equilibrium Object Detection and Segmentation. Transactions on Pattern Analysis and Machine Intelligence, 2025c. [Google Scholar]
- Wang, Thomas; Roberts, Adam; Hesslow, Daniel; Le Scao, Teven; Chung, Hyung Won; Beltagy, Iz; Launay, Julien; Raffel, Colin. What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization? International Conference on Machine Learning, 2022. [Google Scholar]
- Wang, Ya; Zhuo, Zhijian; Zeng, Yutao; Zhou, Xun; Yang, Jian; Li, Xiaoqing. Scale-Distribution Decoupling: Enabling Stable and Effective Training of Large Language Models. arXiv 2025d, arXiv:2502.15499. [Google Scholar]
- Wang, Zili; Chai, Jiajun; Chen, Lin; Wang, Xiaohan; Xiang, Shiming; Yin, Guojun. Joint Training of Multi-Token Prediction in Reinforcement Learning via Optimal Coefficient Calibration. arXiv 2026, arXiv:2605.28184. [Google Scholar]
- Wang, Ziteng; Zhu, Jun; Chen, Jianfei. ReMoE: Fully Differentiable Mixture-of-Experts with ReLU Routing. International Conference on Learning Representations, 2025e. [Google Scholar]
- Wannier, Gregory H. The Statistical Problem in Cooperative Phenomena. In Reviews of Modern Physics; 1945. [Google Scholar]
- Werbos, Paul J. Backpropagation through Time: What It Does and How to Do It. Proc. IEEE 1990, 78(10), 1550–1560. [Google Scholar] [CrossRef] [PubMed]
- Widrow, Bernard; E Hoff, Marcian. Adaptive Switching Circuits. In Neurocomputing: Foundations of Research; 1988. [Google Scholar]
- Witten, Ian H; Bell, Timothy C. The Zero-Frequency Problem: Estimating the Probabilities of Novel Events in Adaptive Text Compression. IEEE Transactions on Information Theory, 1991. [Google Scholar]
- BigScience Workshop; Le Scao, Teven; Fan, Angela; Akiki, Christopher; Pavlick, Ellie; Ilić, Suzana; Hesslow, Daniel; Castagné, Roman; Luccioni, Alexandra Sasha; Yvon, François; et al. BLOOM: A 176B-Parameter Open-Access Multilingual Language Model. arXiv 2022, arXiv:2211.05100. [Google Scholar]
- Wortsman, Mitchell; Liu, Peter J.; Xiao, Lechao; Everett, Katie; Alemi, Alexander; Adlam, Ben; Co-Reyes, John D.; Gur, Izzeddin; Kumar, Abhishek; Novak, Roman; et al. Small-Scale Proxies for Large-Scale Transformer Training Instabilities. International Conference on Learning Representations, 2024. [Google Scholar]
- Wu, Haoyi; Tu, Kewei. Layer-Condensed KV Cache for Efficient Inference of Large Language Models. Association for Computational Linguistics, 2024. [Google Scholar]
- Wu, Yonghui; Schuster, Mike; Chen, Zhifeng; Le, Quoc V; Norouzi, Mohammad; Macherey, Wolfgang; Krikun, Maxim; Cao, Yuan; Gao, Qin; Macherey, Klaus; et al. Google’s Neural Machine Translation System: Bridging the Gap between Human and Machine Translation. arXiv 2016, arXiv:1609.08144. [Google Scholar]
- Wu, Yuxin; He, Kaiming. Group Normalization. European Conference on Computer Vision, 2018. [Google Scholar]
- xAI. Grok-1. March 2024. Available online: https://github.com/xai-org/grok-1.
- xAI. Grok 2.5. 2025. Available online: https://huggingface.co/xai-org/grok-2.
- Xia, Heming; Yang, Zhe; Dong, Qingxiu; Wang, Peiyi; Li, Yongqi; Ge, Tao; Liu, Tianyu; Li, Wenjie; Sui, Zhifang. Unlocking Efficiency in Large Language Model Inference: A Comprehensive Survey of Speculative Decoding. In Findings of the Association for Computational Linguistics: ACL; 2024. [Google Scholar]
- Xiao, Chaojun; Zhang, Pengle; Han, Xu; Xiao, Guangxuan; Lin, Yankai; Zhang, Zhengyan; Liu, Zhiyuan; Sun, Maosong. InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memory. Neural Information Processing Systems, 2024a. [Google Scholar]
- Xiao, Guangxuan; Tian, Yuandong; Chen, Beidi; Han, Song; Lewis, Mike. Efficient Streaming Language Models with Attention Sinks. International Conference on Learning Representations, 2024b. [Google Scholar]
- Xiao, Guangxuan; Tang, Jiaming; Zuo, Jingwei; Guo, Junxian; Yang, Shang; Tang, Haotian; Fu, Yao; Han, Song. DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads. International Conference on Learning Representations, 2025. [Google Scholar]
- Xiaomi MiMo Team. MiMo-V2.5. 2026. Available online: https://huggingface.co/collections/XiaomiMiMo/mimo-v25.
- Xie, Zhenda; Wei, Yixuan; Cao, Huanqi; Zhao, Chenggang; Deng, Chengqi; Li, Jiashi; Dai, Damai; Gao, Huazuo; Chang, Jiang; Zhao, Liang; et al. mHC: Manifold-Constrained Hyper-Connections. International Conference on Machine Learning, 2026. [Google Scholar]
- Xiong, Ruibin; Yang, Yunchang; He, Di; Zheng, Kai; Zheng, Shuxin; Xing, Chen; Zhang, Huishuai; Lan, Yanyan; Wang, Liwei; Liu, Tieyan. On Layer Normalization in the Transformer Architecture. International Conference on Machine Learning, 2020. [Google Scholar]
- Xiong, Wenhan; Liu, Jingyu; Molybog, Igor; Zhang, Hejia; Bhargava, Prajjwal; Hou, Rui; Martin, Louis; Rungta, Rashi; Abinav Sankararaman, Karthik; Oguz, Barlas; et al. Effective Long-Context Scaling of Foundation Models. In North American Chapter of the Association for Computational Linguistics; 2024. [Google Scholar]
- Xu, Fangyuan; Goyal, Tanya; Choi, Eunsol. RefreshKV: Updating Small KV Cache During Long-Form Generation. arXiv 2024, arXiv:2411.05787. [Google Scholar]
- Xu, Jingjing; Sun, Xu; Zhang, Zhiyuan; Zhao, Guangxiang; Lin, Junyang. Understanding and Improving Layer Normalization. Advances in Neural Information Processing Systems, 2019. [Google Scholar]
- Xu, Kevin; Sato, Issei. On Expressive Power of Looped Transformers: Theoretical Analysis and Enhancement via Timestep Encoding. International Conference on Machine Learning, 2025. [Google Scholar]
- Xu, Yufei; Meng, Fanxu; Jiang, Fan; Wang, Yuxuan; Zhou, Ruijie; Wang, Zhaohui; Wu, Jiexi; Pan, Zhixin; Tang, Xiaojuan; Pei, Wenjie; Liu, Tongxuan; Yin, Di; Sun, Xing; Zhang, Muhan. HISA: Efficient Hierarchical Indexing for Fine-Grained Sparse Attention. Conference on Language Modeling, 2026. [Google Scholar]
- Xu, Yuhui; Jie, Zhanming; Dong, Hanze; Wang, Lei; Lu, Xudong; Zhou, Aojun; Saha, Amrita; Xiong, Caiming; Sahoo, Doyen. ThinK: Thinner Key Cache by Query-Driven Pruning. International Conference on Learning Representations, 2025. [Google Scholar]
- Xue, Fuzhao; Zheng, Zian; Fu, Yao; Ni, Jinjie; Zheng, Zangwei; Zhou, Wangchunshu; You, Yang. OpenMoE: An Early Effort on Open Mixture-of-Experts Language Models. International Conference on Machine Learning, 2024. [Google Scholar]
- Xue, Linting; Barua, Aditya; Constant, Noah; Al-Rfou, Rami; Narang, Sharan; Kale, Mihir; Roberts, Adam; Raffel, Colin. ByT5: Towards a Token-Free Future with Pre-Trained Byte-to-Byte Models. Transactions of the Association for Computational Linguistics, 2022. [Google Scholar]
- Yang, Aiyuan; Xiao, Bin; Wang, Bingning; Zhang, Borong; Bian, Ce; Yin, Chao; Lv, Chenxu; Pan, Da; Wang, Dian; Yan, Dong; et al. Baichuan 2: Open Large-Scale Language Models. arXiv 2023, arXiv:2309.10305. [Google Scholar]
- Yang, An; Yang, Baosong; Hui, Binyuan; Zheng, Bo; Yu, Bowen; Zhou, Chang; Li, Chengpeng; Li, Chengyuan; Liu, Dayiheng; Huang, Fei; Dong, Guanting; Wei, Haoran; Lin, Huan; Tang, Jialong; Wang, Jialin; Ma, Jianxin; Yang, Jian; Tu, Jianhong; Zhang, Jianwei; Yang, Jianxin; Xu, Jin; Bai, Jinze; He, Jinzheng; Lin, Junyang; Dang, Kai; Lu, Keming; Chen, Keqin; Yang, Kexin; Li, Mei; Xue, Mingfeng; Ni, Na; Zhang, Pei; Peng, Ru; Men, Rui; Gao, Ruize; Lin, Runji; Wang, Shijie; Bai, Shuai; Tan, Sinan; Zhu, Tianhang; Li, Tianhao; Liu, Tianyu; Ge, Wenbin; Deng, Xiaodong; Zhou, Xiaohuan; Ren, Xingzhang; Zhang, Xinyu; Wei, Xipin; Ren, Xuancheng; Fan, Yang; Yao, Yang; Zhang, Yichang; Wan, Yu; Chu, Yunfei; Liu, Yuqiong; Cui, Zeyu; Zhang, Zhenru; Guo, Zhifang; Fan, Zhihao. Qwen2 Technical Report. arXiv 2024a, arXiv:2407.10671. [Google Scholar]
- Yang, Bowen; Venkitesh, Bharat; Gnaneshwar Talupuru, Dwaraknath; Lin, Hangyu; Cairuz, David; Blunsom, Phil; Locatelli, Acyr. RoPE to NoPE and Back Again: A New Hybrid Attention Strategy. Neural Information Processing Systems, 2025a. [Google Scholar]
- Yang, Liu; Lee, Kangwook; Nowak, Robert D.; Papailiopoulos, Dimitris. Looped Transformers Are Better at Learning Learning Algorithms. International Conference on Learning Representations, 2024b. [Google Scholar]
- Yang, Qingyue; Wang, Jie; Li, Xing; Wang, Zhihai; Chen, Chen; Chen, Lei; Yu, Xianzhi; Liu, Wulong; Hao, Jianye; Yuan, Mingxuan; Li, Bin. AttentionPredictor: Temporal Pattern Matters for Efficient LLM Inference. Neural Information Processing Systems, 2025b. [Google Scholar]
- Yang, Songlin. DeltaNet Explained. 2024. Available online: https://sustcsonglin.github.io/blog/2024/deltanet-3/.
- Yang, Songlin; Zhang, Yu. FLA: A Triton-Based Library for Hardware-Efficient Implementations of Linear Attention Mechanism. January 2024. Available online: https://github.com/fla-org/flash-linear-attention.
- Yang, Songlin; Wang, Bailin; Shen, Yikang; Panda, Rameswar; Kim, Yoon. Gated Linear Attention Transformers with Hardware-Efficient Training. International Conference on Machine Learning, 2024c. [Google Scholar]
- Yang, Songlin; Wang, Bailin; Zhang, Yu; Shen, Yikang; Kim, Yoon. Parallelizing Linear Transformers with the Delta Rule over Sequence Length. Neural Information Processing Systems, 2024d. [Google Scholar]
- Yang, Songlin; Kautz, Jan; Hatamizadeh, Ali. Gated Delta Networks: Improving Mamba2 with Delta Rule. International Conference on Learning Representations, 2025c. [Google Scholar]
- Yang, Xiao-Wen; Han, Ziyu; Zhang, Xi-Hua; Wei, Wen-Da; Shao, Jie-Jing; Guo, Lan-Zhe; Li, Yu-Feng. Stabilizing Recurrent Dynamics for Test-Time Scalable Latent Reasoning in Looped Language Models. International Conference on Machine Learning, 2026. [Google Scholar]
- Yang, Zhilin; Dai, Zihang; Salakhutdinov, Ruslan; Cohen, William W. Breaking the Softmax Bottleneck: A High-Rank RNN Language Model. International Conference on Learning Representations, 2018. [Google Scholar]
- Yu, Da; Cohen, Edith; Ghazi, Badih; Huang, Yangsibo; Kamath, Pritish; Kumar, Ravi; Liu, Daogao; Zhang, Chiyuan. Scaling Embedding Layers in Language Models. Neural Information Processing Systems, 2025. [Google Scholar]
- Yu, Fangyuan. Scaling LLM Pre-Training with Vocabulary Curriculum. arXiv 2025, arXiv:2502.17910. [Google Scholar]
- Yu, Lili; Simig, Dániel; Flaherty, Colin; Aghajanyan, Armen; Zettlemoyer, Luke; Lewis, Mike. MEGABYTE: Predicting Million-Byte Sequences with Multiscale Transformers. Neural Information Processing Systems, 2024. [Google Scholar]
- Yuan, Jingyang; Gao, Huazuo; Dai, Damai; Luo, Junyu; Zhao, Liang; Zhang, Zhengyan; Xie, Zhenda; Wei, Y. X.; Wang, Lean; Xiao, Zhiping; Wang, Yuqing; Ruan, Chong; Zhang, Ming; Liang, Wenfeng; Zeng, Wangding. Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention. Association for Computational Linguistics, 2025. [Google Scholar]
- Zadouri, Ted; Strauss, Hubert; Dao, Tri. Hardware-Efficient Attention for Fast Decoding. arXiv 2025, arXiv:2505.21487. [Google Scholar]
- ai, Z. GLM-4.7-Flash Model Card and Configuration. 2026. Available online: https://huggingface.co/zai-org/GLM-4.7-Flash Official (accessed on 2026-09-17).
- Zaremba, Wojciech; Sutskever, Ilya; Vinyals, Oriol. Recurrent Neural Network Regularization. arXiv 2014, arXiv:1409.2329. [Google Scholar]
- Zeng, Aohan; Liu, Xiao; Du, Zhengxiao; Wang, Zihan; Lai, Hanyu; Ding, Ming; Yang, Zhuoyi; Xu, Yifan; Zheng, Wendi; Xia, Xiao; Tam, Weng Lam; Ma, Zixuan; Xue, Yufei; Zhai, Jidong; Chen, Wenguang; Liu, Zhiyuan; Zhang, Peng; Dong, Yuxiao; Tang, Jie. GLM-130B: An Open Bilingual Pre-Trained Model. International Conference on Learning Representations, 2023. [Google Scholar]
- Zeng, Wei; Ren, Xiaozhe; Su, Teng; Wang, Hui; Liao, Yi; Wang, Zhiwei; Jiang, Xin; Yang, ZhenZhang; Wang, Kaisheng; Zhang, Xiaoda; et al. PanGu-α: Large-Scale Autoregressive Pretrained Chinese Language Models with Auto-Parallel Computation. arXiv 2021, arXiv:2104.12369. [Google Scholar]
- Zeng, Zihao; Miao, Yibo; Gao, Hongcheng; Zhang, Hao; Deng, Zhijie. AdaMoE: Token-Adaptive Routing with Null Experts for Mixture-of-Experts Language Models. In Findings of the Association for Computational Linguistics: EMNLP; 2024. [Google Scholar]
- Zhang, Aozhong; Gurses, Selcuk; Deng, Yanxia; Wang, Naigang; Liu, Chi-Chun; Wertheimer, Davis; Liu, Derrick; Li, Xin; Yang, Zi; Ye, Felix X.-F.; Yin, Penghang. DropKV: Decoupling Residual-Output Perturbation for Near-Optimal KV-Cache Eviction. International Conference on Machine Learning, 2026; Available online: https://openreview.net/forum?id=MqfNzH3TVH.
- Zhang, Biao; Sennrich, Rico. Root Mean Square Layer Normalization. Neural Information Processing Systems, 2019. [Google Scholar]
- Zhang, Hailin; Ji, Xiaodong; Chen, Yilin; Fu, Fangcheng; Miao, Xupeng; Nie, Xiaonan; Chen, Weipeng; Cui, Bin. PQCache: Product Quantization-Based KVCache for Long Context LLM Inference. In Proceedings of the ACM on Management of Data, 2025a. [Google Scholar]
- Zhang, Jun; Wang, Jue; Li, Huan; Shou, Lidan; Chen, Ke; Chen, Gang; Mehrotra, Sharad. Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding. Association for Computational Linguistics, 2024a. [Google Scholar]
- Zhang, Lefan; Wang, Xiaodan; Huang, Yanhua; Xu, Ruiwen. Learning Harmonized Representations for Speculative Sampling. International Conference on Learning Representations, 2025b. [Google Scholar]
- Zhang, Michael; Bhatia, Kush; Kumbong, Hermann; Re, Christopher. The Hedgehog & the Porcupine: Expressive Linear Attentions with Softmax Mimicry. International Conference on Learning Representations, 2024b. [Google Scholar]
- Zhang, Michael; Singhal, Aaryan; Spector, Benjamin Frederick; Arora, Simran; Re, Christopher. Low-Rank Linearization of Large Language Models. Workshop on Efficient Systems for Foundation Models II @ ICML, 2024c. [Google Scholar]
- Zhang, Susan; Roller, Stephen; Goyal, Naman; Artetxe, Mikel; Chen, Moya; Chen, Shuohui; Dewan, Christopher; Diab, Mona; Li, Xian; Lin, Xi Victoria; et al. OPT: Open Pre-Trained Transformer Language Models. arXiv 2022a, arXiv:2205.01068. [Google Scholar]
- Zhang, Xiang; Zhao, Junbo; LeCun, Yann. Character-Level Convolutional Networks for Text Classification. Neural Information Processing Systems, 2015. [Google Scholar]
- Zhang, Xiaofeng; Shen, Yikang; Huang, Zeyu; Zhou, Jie; Rong, Wenge; Xiong, Zhang. Mixture of Attention Heads: Selecting Attention Heads Per Token. Empirical Methods in Natural Language Processing, 2022b. [Google Scholar]
- Zhang, Xuan; Du, Cunxiao; Du, Chao; Pang, Tianyu; Gao, Wei; Lin, Min. SimLayerKV: A Simple Framework for Layer-Level KV Cache Reduction. Transactions on Machine Learning Research, 2025c. [Google Scholar]
- Zhang, Yanqi; Hu, Yuwei; Zhao, Runyuan; Lui, John C. S.; Chen, Haibo. Unifying KV Cache Compression for Large Language Models with LeanKV. arXiv 2024d, arXiv:2412.03131. [Google Scholar]
- Zhang, Yichi; Gao, Bofei; Liu, Tianyu; Lu, Keming; Xiong, Wayne; Dong, Yue; Chang, Baobao; Hu, Junjie; Xiao, Wen; et al. PyramidKV: Dynamic KV Cache Compression Based on Pyramidal Information Funneling. Conference on Language Modeling, 2025d. [Google Scholar]
- Zhang, Yifan; Liu, Yifeng; Yuan, Huizhuo; Qin, Zhen; Yuan, Yang; Gu, Quanquan; Yao, Andrew Chi-Chih. Tensor Product Attention Is All You Need. Adv. Neural Inf. Process. Syst. 2025e, arXiv:2501.06425. [Google Scholar] [CrossRef]
- Zhang, Zhengyan; Gu, Yuxian; Han, Xu; Chen, Shengqi; Xiao, Chaojun; Sun, Zhenbo; Yao, Yuan; Qi, Fanchao; Guan, Jian; Ke, Pei; et al. CPM-2: Large-Scale Cost-Effective Pre-Trained Language Models. AI Open, 2021. [Google Scholar]
- Zhang, Zhengyan; Lin, Yankai; Liu, Zhiyuan; Li, Peng; Sun, Maosong; Zhou, Jie. MoEfication: Transformer Feed-Forward Layers Are Mixtures of Experts. Findings of the Association for Computational Linguistics, 2022c. [Google Scholar]
- Zhang, Zhenyu; Sheng, Ying; Zhou, Tianyi; Chen, Tianlong; Zheng, Lianmin; Cai, Ruisi; Song, Zhao; Tian, Yuandong; Ré, Christopher; Barrett, Clark; et al. H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Models. Neural Information Processing Systems, 2023. [Google Scholar]
- Zhao, G.; et al. Self-Distillation for Multi-Token Prediction. arXiv 2026a, arXiv:2603.23911. [Google Scholar]
- Zhao, Junqi; Fang, Zhijin; Li, Shu; Yang, Shaohui; He, Shichao. BUZZ: Beehive-Structured Sparse KV Cache with Segmented Heavy Hitters for Efficient LLM Inference. arXiv 2024a, arXiv:2410.23079. [Google Scholar]
- Zhao, Liang; Feng, Xiaocheng; Feng, Xiachong; Qin, Bin; Liu, Ting. Length Extrapolation of Transformers: A Survey from the Perspective of Position Encoding. In Findings of the Association for Computational Linguistics: EMNLP; 2024b. [Google Scholar]
- Zhao, Wayne Xin; Zhou, Kun; Li, Junyi; Tang, Tianyi; Wang, Xiaolei; Hou, Yupeng; Min, Yingqian; Zhang, Beichen; Zhang, Junjie; Dong, Zican; et al. A Survey of Large Language Models. In Frontiers of Computer Science; 2026b. [Google Scholar]
- Zheng, Chuanyang; Gao, Yihang; Shi, Han; Huang, Minbin; Li, Jingyao; Xiong, Jing; Ren, Xiaozhe; Ng, Michael; Jiang, Xin; Li, Zhenguo; et al. DAPE: Data-Adaptive Positional Encoding for Length Extrapolation. Neural Information Processing Systems, 2024. [Google Scholar]
- Zheng, Chuanyang; Gao, Yihang; Chen, Guoxuan; Shi, Han; Xiong, Jing; Ren, Xiaozhe; Huang, Chao; Li, Zhenguo; Li, Yu. Self-Adjust Softmax. Empirical Methods in Natural Language Processing, 2025. [Google Scholar]
- Zhong, Shu; Xu, Mingyu; Ao, Tenglong; Shi, Guang. Understanding Transformer from the Perspective of Associative Memory. arXiv 2025, arXiv:2505.19488. [Google Scholar]
- Zhou, Xiabin; Wang, Wenbin; Zeng, Minyan; Guo, Jiaxian; Liu, Xuebo; Shen, Li; Zhang, Min; Ding, Liang. DynamicKV: Task-Aware Adaptive KV Cache Compression for Long Context LLMs. In Findings of the Association for Computational Linguistics: EMNLP; 2025. [Google Scholar]
- Zhou, Yanqi; Lei, Tao; Liu, Hanxiao; Du, Nan; Huang, Yanping; Zhao, Vincent; Dai, Andrew M; Le, Quoc V; Laudon, James; et al. Mixture-of-Experts with Expert Choice Routing. Neural Information Processing Systems, 2022. [Google Scholar]
- Zhou, Yanqi; Du, Nan; Huang, Yanping; Peng, Daiyi; Lan, Chang; Huang, Da; Shakeri, Siamak; So, David; Dai, Andrew M; Lu, Yifeng; et al. Brainformers: Trading Simplicity for Efficiency. International Conference on Machine Learning, 2023. [Google Scholar]
- Zhou, Yongchao; Lyu, Kaifeng; Rawat, Ankit Singh; Menon, Aditya Krishna; Rostamizadeh, Afshin; Kumar, Sanjiv; Kagy, Jean-François; Agarwal, Rishabh. DistillSpec: Improving Speculative Decoding via Knowledge Distillation. International Conference on Learning Representations, 2024a. [Google Scholar]
- Zhou, Zixuan; Ning, Xuefei; Hong, Ke; Fu, Tianyu; Xu, Jiaming; Li, Shiyao; Lou, Yuming; Wang, Luning; Yuan, Zhihang; Li, Xiuhong; et al. A Survey on Efficient Inference for Large Language Models. arXiv 2024b, arXiv:2404.14294. [Google Scholar]
- Zhu, Defa; Huang, Hongzhi; Huang, Zihao; Zeng, Yutao; Mao, Yunyao; Wu, Banggu; Min, Qiyang; Zhou, Xun. Hyper-Connections. International Conference on Learning Representations, 2025a. [Google Scholar]
- Zhu, Defa; Huang, Hongzhi; Zhou, Jundong; Huang, Zihao; Zeng, Yutao; Wu, Banggu; Min, Qiyang; Zhou, Xun. Frac-Connections: Fractional Extension of Hyper-Connections. arXiv 2025b, arXiv:2503.14125. [Google Scholar]
- Zhu, Jiachen; Chen, Xinlei; He, Kaiming; LeCun, Yann; Liu, Zhuang. Transformers without Normalization. IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025c. [Google Scholar]
- Zhu, Qianchao; Duan, Jiangfei; Chen, Chang; Liu, Siran; Li, Xiuhong; Feng, Guanyu; Lv, Xin; Chuanfu, Xiao; Lin, Dahua; Yang, Chao. SampleAttention: Near-Lossless Acceleration of Long Context LLM Inference with Adaptive Structured Sparse Attention. Machine Learning and Systems, 2025d. [Google Scholar]
- Zhu, Rui-Jie; Wang, Zixuan; Hua, Kai; Zhang, Tianyu; Li, Ziniu; Que, Haoran; Wei, Boyi; Wen, Zixin; Yin, Fan; Xing, He; Li, Lu; Shi, Jiajun; Ma, Kaijing; Li, Shanda; Kergan, Taylor; Smith, Andrew; Qu, Xingwei; Hui, Mude; Wu, Bohong; Min, Qiyang; Huang, Hongzhi; Zhou, Xun; Ye, Wei; Liu, Jiaheng; Yang, Jian; Shi, Yunfeng; Lin, Chenghua; Zhao, Enduo; Cai, Tianle; Zhang, Ge; Huang, Wenhao; Bengio, Yoshua; Eshraghian, Jason. Scaling Latent Reasoning via Looped Language Models. arXiv 2025e, arXiv:2510.25741. [Google Scholar]
- Zhuo, Zhijian; Wang, Ya; Zeng, Yutao; Li, Xiaoqing; Zhou, Xun; Ma, Jinwen. Polynomial Composition Activations: Unleashing the Dynamics of Large Language Models. International Conference on Learning Representations, 2025a. [Google Scholar]
- Zhuo, Zhijian; Zeng, Yutao; Wang, Ya; Zhang, Sijun; Yang, Jian; Li, Xiaoqing; Zhou, Xun; Ma, Jinwen. HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization. Neural Information Processing Systems, 2025b. [Google Scholar]
- Zoph, Barret; Bello, Irwan; Kumar, Sameer; Du, Nan; Huang, Yanping; Dean, Jeff; Shazeer, Noam; Fedus, William. ST-MoE: Designing Stable and Transferable Sparse Expert Models. arXiv 2022, arXiv:2202.08906. [Google Scholar]
- Zuhri, Zayd Muhammad Kawakibi; Adilazuarda, Muhammad Farid; Purwarianti, Ayu; Aji, Alham Fikri. MLKV: Multi-Layer Key-Value Heads for Memory Efficient Transformer Decoding. arXiv 2024, arXiv:2406.09297. [Google Scholar]
- Zuo, Jingwei; Velikanov, Maksim; Eddine Rhaiem, Dhia; Chahed, Ilyas; Belkada, Younes; Kunsch, Guillaume; Hacid, Hakim. Falcon Mamba: The First Competitive Attention-Free 7B Language Model. arXiv 2024, arXiv:2410.05355. [Google Scholar]
- Zuo, Simiao; Liu, Xiaodong; Jiao, Jian; Kim, Young Jin; Hassan, Hany; Zhang, Ruofei; Gao, Jianfeng; Zhao, Tuo. Taming Sparsely Activated Transformer with Stochastic Experts. International Conference on Learning Representations, 2022. [Google Scholar]
| 1 | |
| 2 | For simplicity, unless otherwise specified, we will use “Transformer” to refer to this architecture throughout the rest of this article. |
| 3 | |
| 4 |
Figure 2.
MMLU performance versus release date and parameter count. X-axis: release date; y-axis: MMLU performance [157]. Dot sizes of older closed-source models are illustrative (parameter counts undisclosed). The trends visible in this figure are discussed in Section 1.

Figure 3.
Humanity’s Last Exam (HLE) [40] performance versus open-weight model size. The figure primarily covers newly released 2026 models; GLM-4.7, released in late 2025, is retained as a reference. The reported values are based primarily on the Open LLM Leaderboard [280] and the HLE leaderboard [41]. The horizontal axis shows total parameters on a logarithmic scale, while marker area increases nonlinearly with active parameters for MoE models and total parameters for dense models. Colors denote developers. The dashed and dotted lines trace the corresponding observed Pareto frontiers; both start from Qwen3.6-27B (Dense), whose score is taken from [374], although its tool-use protocol is unspecified. Because the figure mixes tool-enabled and non-tool protocols, scores should be compared with caution.
Figure 3.
Humanity’s Last Exam (HLE) [40] performance versus open-weight model size. The figure primarily covers newly released 2026 models; GLM-4.7, released in late 2025, is retained as a reference. The reported values are based primarily on the Open LLM Leaderboard [280] and the HLE leaderboard [41]. The horizontal axis shows total parameters on a logarithmic scale, while marker area increases nonlinearly with active parameters for MoE models and total parameters for dense models. Colors denote developers. The dashed and dotted lines trace the corresponding observed Pareto frontiers; both start from Qwen3.6-27B (Dense), whose score is taken from [374], although its tool-use protocol is unspecified. Because the figure mixes tool-enabled and non-tool protocols, scores should be compared with caution.

Figure 4.
Taxonomy of architectures for large language models. Colors group sections by role in the stack: mid-blue is the historical background and Transformer foundation; light blue is efficient attention and KV cache management and teal is linear sequence operators (two ways to cheapen mixing over time); purple is mixture of experts; peach is intra-block transforms (activation and normalization); green is the input interface (tokenization and position); coral is how much compute is spent per generated token (multi-token prediction and adaptive depth); cream is system-level synthesis.
Figure 4.
Taxonomy of architectures for large language models. Colors group sections by role in the stack: mid-blue is the historical background and Transformer foundation; light blue is efficient attention and KV cache management and teal is linear sequence operators (two ways to cheapen mixing over time); purple is mixture of experts; peach is intra-block transforms (activation and normalization); green is the input interface (tokenization and position); coral is how much compute is spent per generated token (multi-token prediction and adaptive depth); cream is system-level synthesis.

Figure 5.
Structure of the Transformer layer and the encoder-decoder, encoder-only, and decoder-only architectures.
Figure 5.
Structure of the Transformer layer and the encoder-decoder, encoder-only, and decoder-only architectures.

Figure 6.
A visualization of the key matrix operations and their dimensions within the multi-head attention mechanism.
Figure 6.
A visualization of the key matrix operations and their dimensions within the multi-head attention mechanism.

Figure 7.
Token reduction strategies towards KV in attention mechanism.

Figure 8.
Optimization strategies for the number of heads in the attention mechanism. (a) Single-head Attention (b) Multi-head Attention (c) Multi-query Attention (d) Grouped-query Attention.
Figure 8.
Optimization strategies for the number of heads in the attention mechanism. (a) Single-head Attention (b) Multi-head Attention (c) Multi-query Attention (d) Grouped-query Attention.

Figure 9.
Illustration of dimension reduction: MLA caches a shared low-dimensional latent per token and recovers per-head keys and values by up-projection.
Figure 9.
Illustration of dimension reduction: MLA caches a shared low-dimensional latent per token and recovers per-head keys and values by up-projection.

Figure 10.
Illustration of cross-layer KV sharing: adjacent layers reuse or merge their KV states.

Figure 11.
Schematic computation graphs of representative linear operators and their unification, drawn as unrolled recurrent cells. Each green cell performs the computation of one timestep: the blue circle is the input token , the purple circle is the output , and the horizontal black lines carry the recurrent states, entering from the previous timestep on the left and leaving toward the next timestep on the right. Yellow boxes denote learned transformations and gates, while pink nodes denote element-wise or matrix-product operations. (a)–(e): a vanilla RNN (Equation (19)), LSTM [117], ULTRA [406], a discretized SSM [136,436], and DeltaNet [403], where retrieves the value currently associated with the key before the error-correcting update. While the recurrences of the RNN and the LSTM are nonlinear in (in the LSTM, re-enters the gate activations ), the operators in (c)–(e) update their (matrix-valued) states linearly, enabling parallel training. (f): the unified linear operator of Equation (28), which subsumes (c)–(e) and the models in Table 4: the bottom-row boxes are the gates and input-dependent functions, and the dashed line is the normalization state , which is omitted in the ULTRA family (Equation (29)).
Figure 11.
Schematic computation graphs of representative linear operators and their unification, drawn as unrolled recurrent cells. Each green cell performs the computation of one timestep: the blue circle is the input token , the purple circle is the output , and the horizontal black lines carry the recurrent states, entering from the previous timestep on the left and leaving toward the next timestep on the right. Yellow boxes denote learned transformations and gates, while pink nodes denote element-wise or matrix-product operations. (a)–(e): a vanilla RNN (Equation (19)), LSTM [117], ULTRA [406], a discretized SSM [136,436], and DeltaNet [403], where retrieves the value currently associated with the key before the error-correcting update. While the recurrences of the RNN and the LSTM are nonlinear in (in the LSTM, re-enters the gate activations ), the operators in (c)–(e) update their (matrix-valued) states linearly, enabling parallel training. (f): the unified linear operator of Equation (28), which subsumes (c)–(e) and the models in Table 4: the bottom-row boxes are the gates and input-dependent functions, and the dashed line is the normalization state , which is omitted in the ULTRA family (Equation (29)).

Figure 12.
Different intra-block combinations of normalization and residual connection. The gray band is the residual stream carrying to , black dots mark where the stream is read by a sub-layer, and white boxes are the residual additions. (a) Post-LN normalizes the residual stream after each addition; (b) Pre-LN normalizes only the input of each sub-layer; (c) Sandwich-LN normalizes both the input and the output of each sub-layer; (d) norm-after normalizes the output of each sub-layer before it is added to the stream.
Figure 12.
Different intra-block combinations of normalization and residual connection. The gray band is the residual stream carrying to , black dots mark where the stream is read by a sub-layer, and white boxes are the residual additions. (a) Post-LN normalizes the residual stream after each addition; (b) Pre-LN normalizes only the input of each sub-layer; (c) Sandwich-LN normalizes both the input and the output of each sub-layer; (d) norm-after normalizes the output of each sub-layer before it is added to the stream.

Figure 13.
Comparison of training-free positional adaptation methods, shown as the relative position matrix between query position i (row) and key position j (column) for a sequence of 8 tokens. Blue cells keep the standard relative distance ; orange cells mark positions remapped by each method so that no distance outside the pre-trained range is encountered; gray cells are excluded from attention; offset w is a hyper-parameter.
Figure 13.
Comparison of training-free positional adaptation methods, shown as the relative position matrix between query position i (row) and key position j (column) for a sequence of 8 tokens. Blue cells keep the standard relative distance ; orange cells mark positions remapped by each method so that no distance outside the pre-trained range is encountered; gray cells are excluded from attention; offset w is a hyper-parameter.

Figure 14.
Comparison of the two MTP factorizations. (a) Parallel prediction attaches K heads to the same backbone representation , so the K predictions are cheap but conditionally independent given . (b) Sequential prediction (e.g., DeepSeek-V3 [269]) is illustrated with extra modules ( total predictions), each combining the previous depth’s hidden state with the embedding of the intermediate token, so every prediction is conditioned on its complete preceding context; the embedding layer and the output head are shared with the main model. At training the intermediate tokens are ground truth; at inference, when the modules are retained for drafting, they are the model’s own predictions.
Figure 14.
Comparison of the two MTP factorizations. (a) Parallel prediction attaches K heads to the same backbone representation , so the K predictions are cheap but conditionally independent given . (b) Sequential prediction (e.g., DeepSeek-V3 [269]) is illustrated with extra modules ( total predictions), each combining the previous depth’s hidden state with the embedding of the intermediate token, so every prediction is conditioned on its complete preceding context; the embedding layer and the output head are shared with the main model. At training the intermediate tokens are ground truth; at inference, when the modules are retained for drafting, they are the model’s own predictions.

Figure 15.
Three ways of varying executed depth. Blue blocks are distinct parameterized layers, orange blocks are auxiliary decision or prediction modules, and purple denotes a block whose parameters are shared across repeated applications. (a) Layer reduction (e.g., LayerDrop [95]) removes whole layers for all tokens, letting the residual stream bypass them; early exit (e.g., CALM [425]) attaches intermediate prediction heads and terminates a token once an exit criterion is met, so that . (b) Mixture-of-Depths [384] places a router before a conditional block: an input-dependent top- subset of tokens executes the block while the remaining tokens take the residual bypass, keeping the active compute per layer fixed as in Equation (35). (c) A looped Transformer (e.g., Huginn [111]) applies a shared core R times to a latent state, with the prelude representation reinjected at every recurrence as in Equation (36); the recurrence count can be fixed, assigned per token by a router [16], or determined by a convergence criterion [318].
Figure 15.
Three ways of varying executed depth. Blue blocks are distinct parameterized layers, orange blocks are auxiliary decision or prediction modules, and purple denotes a block whose parameters are shared across repeated applications. (a) Layer reduction (e.g., LayerDrop [95]) removes whole layers for all tokens, letting the residual stream bypass them; early exit (e.g., CALM [425]) attaches intermediate prediction heads and terminates a token once an exit criterion is met, so that . (b) Mixture-of-Depths [384] places a router before a conditional block: an input-dependent top- subset of tokens executes the block while the remaining tokens take the residual bypass, keeping the active compute per layer fixed as in Equation (35). (c) A looped Transformer (e.g., Huginn [111]) applies a shared core R times to a latent state, with the prelude representation reinjected at every recurrence as in Equation (36); the recurrence count can be fixed, assigned per token by a router [16], or determined by a convergence criterion [318].

Table 1.
Computational and memory requirements of Transformer components. Training complexity is the cost of one forward pass over a sequence of length T; decoding complexity is the cost per generated token when the context length is T (with KV cache). For attention, the (resp. ) term is the cost of the Q/K/V/output projections and dominates whenever .
Table 1.
Computational and memory requirements of Transformer components. Training complexity is the cost of one forward pass over a sequence of length T; decoding complexity is the cost per generated token when the context length is T (with KV cache). For attention, the (resp. ) term is the cost of the Q/K/V/output projections and dominates whenever .
| Parameters | Training Complexity | Decoding Complexity | KV cache | |
|---|---|---|---|---|
| multi-head attention | ||||
| feed-forward network | - |
Table 2.
Comparison of token reduction methods, grouped by mechanism and ordered by the year of the first public version. Phase: P = selection is decided once on the prompt after prefill; D = repeated during decoding; P+D = applied throughout the sequence. Train.: – = training-free; Aux = only an auxiliary module is trained and the LLM is frozen; Retro = an existing LLM is further trained; Scr. = trained from scratch. Saves: M = KV memory on the GPU (for offloading methods it is moved to host memory rather than discarded); C = attention compute in prefill or training; B = per-step KV reads (memory bandwidth) in decoding. Kept: S = initial (sink) tokens and R = a recent window (or the current block) are exempt from selection. Cache: Drop = unselected entries are discarded; Merge = merged into fewer entries; Off. = offloaded to host memory; Keep = the full cache stays on the GPU and only the reads are sparse. Budget: U = one budget shared by all layers and heads; L = layer-adaptive; H = head-adaptive; L+H = layer-wise then head-wise. Gran.: the unit of the keep or read decision, T = token, B = block or page, C = cluster, E = event, H = head, L = layer.
Table 2.
Comparison of token reduction methods, grouped by mechanism and ordered by the year of the first public version. Phase: P = selection is decided once on the prompt after prefill; D = repeated during decoding; P+D = applied throughout the sequence. Train.: – = training-free; Aux = only an auxiliary module is trained and the LLM is frozen; Retro = an existing LLM is further trained; Scr. = trained from scratch. Saves: M = KV memory on the GPU (for offloading methods it is moved to host memory rather than discarded); C = attention compute in prefill or training; B = per-step KV reads (memory bandwidth) in decoding. Kept: S = initial (sink) tokens and R = a recent window (or the current block) are exempt from selection. Cache: Drop = unselected entries are discarded; Merge = merged into fewer entries; Off. = offloaded to host memory; Keep = the full cache stays on the GPU and only the reads are sparse. Budget: U = one budget shared by all layers and heads; L = layer-adaptive; H = head-adaptive; L+H = layer-wise then head-wise. Gran.: the unit of the keep or read decision, T = token, B = block or page, C = cluster, E = event, H = head, L = layer.
| Method | Year | Phase | Train. | Saves | Kept | Scoring signal | Cache | Budget | Gran. |
|---|---|---|---|---|---|---|---|---|---|
| (a) KV eviction and compression: the cache is bounded | |||||||||
| Scissorhands [277] | 2023 | D | – | M+B | R | attention over a history window | Drop | U | T |
| O [570] | 2023 | D | – | M+B | R | accumulated attention | Drop | U | T |
| LM-Infinite [145] | 2023 | P+D | – | M+B | S+R | position (opt. top-k middle tokens) | Drop | U | T |
| StreamingLLM [519] | 2023 | P+D | – | M+B | S+R | position only | Drop | U | T |
| FastGen [109] | 2023 | P+D | – | M+B | S+R | per-head attention profile | Drop | H | T |
| DMC [325] | 2024 | P+D | Retro | M+B | – | learned append/merge decision | Merge | H | T |
| SnapKV [255] | 2024 | P | – | M+B | R | obs.-window attention (pooled) | Drop | U | T |
| PyramidKV [566] | 2024 | P | – | M+B | R | obs.-window attention | Drop | L | T |
| AdaKV [98] | 2024 | P | – | M+B | R | obs.-window attention, global top-k | Drop | H | T |
| RazorAttention [461] | 2024 | P+D | – | M+B | S+R | retrieval-head test; comp. token | Drop | H | H |
| NACL [49] | 2024 | P | – | M+B | R | proxy-token attention + random | Drop | U | T |
| DuoAttention [520] | 2024 | P+D | Aux | M+B | S+R | learned retrieval-head gates | Drop | H | H |
| SimLayerKV [564] | 2024 | P+D | – | M+B | S+R | lazy-layer detection | Drop | L | L |
| HeadKV [104] | 2024 | P | – | M+B | R | head retrieval–reasoning score | Drop | H | T |
| BUZZ [572] | 2024 | P+D | – | M+B | S+R | segment heavy hitters + sampling | Drop | U | T |
| PrefixKV [494] | 2024 | P | – | M+B | – | layer-wise cumulative priority | Drop | L | T |
| LeanKV [565] | 2024 | P+D | – | M+B | – | attention tiers + mixed precision | Drop | H | T |
| SepLLM [46] | 2024 | P+D | Scr./Retro | M+C+B | S+R | separator tokens (rule) | Drop | U | T |
| DynamicKV [578] | 2024 | P | – | M+B | R | recent-query attention | Drop | L | T |
| CriticalKV [99] | 2025 | P | – | M+B | R | output perturbation (attn. × value) | Drop | U/H | T |
| CAKE [367] | 2025 | P | – | M+B | R | attention dispersion + temporal shift | Drop | L | T |
| KVzip [223] | 2025 | P | – | M+B | – | context-reconstruction attention | Drop | H | T |
| DropKV [554] | 2026 | P | – | M+B | R | decoupled output perturbation | Drop | U | T |
| ReasonAlloc [274] | 2026 | D | – | M+B | R | plug-in layer/head budget routing | Drop | L+H | T |
| KVpop [150] | 2026 | P+D | Retro | M+B | S+R | learned scorer (future attention) | Drop | U | T |
| BeaconKV [224] | 2026 | D | – | M+B | R | beacon + recent query attention | Drop | U | T |
| (b) Sparse reads over a retained cache | |||||||||
| SparQ [386] | 2023 | D | – | B | – | top-r query dims + mean value | Keep | U | T |
| InfLLM [518] | 2024 | P+D | – | M+B | S+R | representative-token similarity | Off. | U | B |
| Quest [462] | 2024 | D | – | B | – | page min/max key bounds | Keep | U | B |
| QuickLLaMA [250] | 2024 | P+D | – | M+B | S+R | query-aware block lookup | Off. | U | B |
| SampleAttention [586] | 2024 | P | – | C | S+R | sampled column stripes + window | Keep | H | T |
| InfiniGen [244] | 2024 | D | – | M+B | – | next-layer rehearsal attention | Off. | U | T |
| PQCache [556] | 2024 | D | – | M+B | S+R | PQ-approximated | Off. | U | T |
| EM-LLM [101] | 2024 | P+D | – | M+B | S+R | surprise events + k-NN similarity | Off. | U | E |
| RetrievalAttention [272] | 2024 | D | – | M+B | S+R | attention-aware ANNS | Off. | U | T |
| MagicPIG [52] | 2024 | D | – | M+B | S+R | LSH importance sampling | Off. | U | T |
| SqueezedAttention [169] | 2024 | P+D | – | C+B | – | hierarchical centroid lookup | Keep | H | C |
| RefreshKV [525] | 2024 | D | – | B | – | periodic full-attention refresh | Keep | U | T |
| AttentionPredictor [536] | 2025 | D | Aux | M+B | S+R | CNN-predicted attention | Off. | U | B |
| (c) Natively sparse attention: the sparsity pattern is learned as part of the model | |||||||||
| MoBA [282] | 2025 | P+D | Scr./Retro | C+B | R | query · mean-pooled block key | Keep | U | B |
| NSA [547] | 2025 | P+D | Scr. | C+B | R | compression-branch attention | Keep | U | B |
| MoSA [359] | 2025 | P+D | Scr. | M+C | – | expert-choice router (non-causal) | Drop | U | T |
| DSA [75] | 2025 | P+D | Retro | C+B | – | lightning indexer (KL-aligned) | Keep | U | T |
| MSA [311] | 2026 | P+D | Scr. | C+B | R | index branch, per GQA group | Keep | U | B |
| HiLS-Attention [174] | 2026 | P+D | Scr./Retro | C+B | R | landmark chunk scores (LM loss) | Keep | U | B |
Table 3.
The representative choices of the feature map in linearized attention; the induced kernel is . The notations f and g denote arbitrary functions, while represents a scalar hyperparameter. D is the feature dimension of (the number of random features), l is the number of feature functions in Performer’s feature map, and denotes the j-th coordinate of . ReBased learns the affine parameters of the normalized features separately for queries and keys.
Table 3.
The representative choices of the feature map in linearized attention; the induced kernel is . The notations f and g denote arbitrary functions, while represents a scalar hyperparameter. D is the feature dimension of (the number of random features), l is the number of feature functions in Performer’s feature map, and denotes the j-th coordinate of . ReBased learns the affine parameters of the normalized features separately for queries and keys.
| Method | Feature map |
|---|---|
| Linear Attention [219] | |
| Cosformer [363] | |
| Performer’s Kernel [58] | |
| Random Feature Attention [356] | |
| FAVOR+ [58] | |
| Hedgehog [559] | |
| Based [12] | |
| ReBased [4] |
Table 4.
Representative linear operators under Equation (28), grouped by the operation applied to through . Transition classes: Element-wise multiplication and multiplication by a diagonal matrix both rescale without mixing its entries. Delta-rule variants instead use key-directed reads of to construct corrections, optionally combined with decay. Notation: denotes the single-head row-vector input, and subscript marks input dependence: is decay, write strength, the SSM step size, and a removal key. RetNet and LRU use input-independent . Within each row, , , , and refer to the corresponding column entries. is a feature map or normalization, and the sigmoid. “–” means no normalizer ; 1 in denotes an absent factor. Parameters:: query/key/value projections; : output-gate projection; or : skip connection; (scalar A): positive SSM state parameter; : bonus vector; : learned vector. Scope: Model-specific gate parameterizations, scalings, biases, and input preprocessing (e.g., convolutions) are omitted; see the cited papers.
Table 4.
Representative linear operators under Equation (28), grouped by the operation applied to through . Transition classes: Element-wise multiplication and multiplication by a diagonal matrix both rescale without mixing its entries. Delta-rule variants instead use key-directed reads of to construct corrections, optionally combined with decay. Notation: denotes the single-head row-vector input, and subscript marks input dependence: is decay, write strength, the SSM step size, and a removal key. RetNet and LRU use input-independent . Within each row, , , , and refer to the corresponding column entries. is a feature map or normalization, and the sigmoid. “–” means no normalizer ; 1 in denotes an absent factor. Parameters:: query/key/value projections; : output-gate projection; or : skip connection; (scalar A): positive SSM state parameter; : bonus vector; : learned vector. Scope: Model-specific gate parameterizations, scalings, biases, and input preprocessing (e.g., convolutions) are omitted; see the cited papers.
| Hidden State Update | Output | |||||||
|---|---|---|---|---|---|---|---|---|
| Model | ||||||||
| Identity / cumulative: preserves while new writes accumulate | ||||||||
| ULTRA [406] | · | – | 1 | 0 | ||||
| Linear Attention [219,488] |
· | 1 | 1 | 0 | ||||
| Scalar decay: scales all entries of by one factor | ||||||||
| Gated RFA [356] | · | 1 | 0 | |||||
| RetNet [455] | · | – | 1 | 0 | ||||
| mLSTM [24] | · | 0 | ||||||
| Mamba-2 [70] | · | – | 1 | |||||
| Diagonal / element-wise: scales entries of without mixing them | ||||||||
| DFW [285] | ⊙ | – | 1 | 0 | ||||
| LRU [343] | ⊙ | 1 | – | 1 | ||||
| GLA [539] | · | – | 1 | 0 | ||||
| Mamba [136] | ⊙ | – | 1 | |||||
| RWKV-6 [353] | · | – | 1 | |||||
| HGRN-2 [365] | · | – | 1 | 0 | ||||
| RG-LRU [72] | ⊙ | 1 | – | 1 | 1 | 0 | ||
| Longhorn [271] | ⊙ | – | 1 | |||||
| MetaLA [60] | · | – | 1 | |||||
| Delta-rule variants: mix entries of through key-directed corrections | ||||||||
| DeltaNet [403] | · | – | 1 | 0 | ||||
| GDN [541] | · | – | 1 | 0 | ||||
| RWKV-7 [354] | · | – | 1 | |||||
Table 5.
We categorize the linear language models of Table 4 (ULTRA and Linear Attention share one row) according to expressivity restrictions in their gating mechanisms, state dimension expansion [537], and the test-time regression view [498]. GH denotes a generalized Householder matrix (identity minus a scaled vector outer product), and non-negative spectrum means that all eigenvalues of the effective recurrent transition are non-negative real values. “–” denotes that no gating variable is present.
Table 5.
We categorize the linear language models of Table 4 (ULTRA and Linear Attention share one row) according to expressivity restrictions in their gating mechanisms, state dimension expansion [537], and the test-time regression view [498]. GH denotes a generalized Householder matrix (identity minus a scaled vector outer product), and non-negative spectrum means that all eigenvalues of the effective recurrent transition are non-negative real values. “–” denotes that no gating variable is present.

Table 6.
Selected milestones in Mixture of Experts research, grouped by the three overlapping developments in Section 7.1.
Table 6.
Selected milestones in Mixture of Experts research, grouped by the three overlapping developments in Section 7.1.
| Category | Model | Key Contribution |
|---|---|---|
| Sparse | ||
| Gating | Sparsely-Gated MoE [434] | Introduces the first large-scale sparse MoE layer (top-k gating) with auxiliary load balancing losses. |
| GShard [246] | Scales top-2 gated MoE Transformers to 600B parameters with a single differentiable load-balancing loss and expert capacity limits. | |
| Switch [96] | Demonstrates efficacy of routing to a single expert; introduces selective precision. | |
| BASE [248] | Formulates token routing as a linear assignment problem to maximize efficiency. | |
| Hash [389] | Eliminates learnable gating parameters by employing static hash-based routing. | |
| Expert Choice [579] | Inverts routing: experts select top-k tokens to ensure load balance. | |
| ST-MoE [590] | Analyzes training instability and introduces router Z-loss for stabilization. | |
| SMEAR [322] | Proposes soft merging of expert weights to enable efficient dense MoE training. | |
| DS-MoE [345] | Combines dense training gradients with sparse inference for robust optimization. | |
| DeepSpeed-MoE [382] | Introduces pyramid-style architectures and non-uniform expert distribution. | |
| Fine-Grained | ||
| + Shared | DeepSeekMoE [68] | Implements fine-grained expert segmentation and shared expert isolation. |
| Scaling Laws [62,236] | Derives scaling laws for dense versus sparse models and for expert granularity. | |
| Monet [348] | Scales expert counts up to 262K per layer toward near-monosemantic specialists. | |
| Systems- | ||
| Oriented | MoE++ [210] | Extends the expert pool with zero-computation experts such as copy or zero. |
| ScMoE [37] | Shortcut-connects routed experts so that expert communication can overlap with the dense path. | |
| LatentMoE [90] | Routes and computes in a compressed latent space to reduce all-to-all traffic and expert weight loads. |
Table 7.
Comparison of scalar activation functions and GLU-family gated layers. Scalar nonlinearities and the Hadamard product act element-wise; the GLU rows also include learned matrix projections. The final FFN output projection is omitted from these rows. Here is the sigmoid function and is the cumulative distribution function of the standard normal distribution. For GLU-family layers, and denote the weight matrices of the gate and value linear projections, respectively, and the bias terms of these projections are optional. For Clamped SwiGLU, and are the clamped gate and value branches; the clamps introduce derivative discontinuities at the clipping thresholds, so the layer is continuous but not smooth, and “bounded” refers to its output before the omitted output projection.
Table 7.
Comparison of scalar activation functions and GLU-family gated layers. Scalar nonlinearities and the Hadamard product act element-wise; the GLU rows also include learned matrix projections. The final FFN output projection is omitted from these rows. Here is the sigmoid function and is the cumulative distribution function of the standard normal distribution. For GLU-family layers, and denote the weight matrices of the gate and value linear projections, respectively, and the bias terms of these projections are optional. For Clamped SwiGLU, and are the clamped gate and value branches; the clamps introduce derivative discontinuities at the clipping thresholds, so the layer is continuous but not smooth, and “bounded” refers to its output before the omitted output projection.
| Function / gated layer | Formulation | Properties | Key Advantage |
|---|---|---|---|
| ReLU [105] | Non-smooth, Monotonic | Computationally cheap, induces sparsity | |
| GELU [156] | Smooth, Non-monotonic | Smooth ReLU surrogate, probabilistic motivation | |
| SiLU [92,156] | Smooth, Non-monotonic | Empirically strong performance, self-gating | |
| Swish [383] | Smooth, Non-monotonic | Empirically strong performance, self-gating | |
| Squared ReLU [441] | , Monotonic | Sparse like ReLU, higher-order non-linearity | |
| GEGLU [433] | Smooth, Non-monotonic | Strong empirical performance, dynamic gating | |
| SwiGLU [433] | Smooth, Non-monotonic | SOTA performance, widely adopted | |
| Clamped SwiGLU [339] | Continuous, bounded, piecewise smooth |
Robust in low-precision formats |
Table 8.
Different normalization methods. denotes the input vector, d its dimension (the hidden width), and the mean of . The parameters and are learnable vectors and g is a learnable scalar, while is a small constant for numerical stability. For QK-Norm, and denote a query and a key vector, is an , Layer, or RMS normalization applied per head, and g plays the role of a learnable temperature. CRMSNorm operates on the -dimensional compressed representation of a zero-mean d-dimensional vector, which is why its sums run to while the average is taken over d. In the context of WeightNorm, denotes the weight vector. In the context of SphereNorm, and denote the weight and input vector, respectively.
Table 8.
Different normalization methods. denotes the input vector, d its dimension (the hidden width), and the mean of . The parameters and are learnable vectors and g is a learnable scalar, while is a small constant for numerical stability. For QK-Norm, and denote a query and a key vector, is an , Layer, or RMS normalization applied per head, and g plays the role of a learnable temperature. CRMSNorm operates on the -dimensional compressed representation of a zero-mean d-dimensional vector, which is why its sums run to while the average is taken over d. In the context of WeightNorm, denotes the weight vector. In the context of SphereNorm, and denote the weight and input vector, respectively.
| Method | Formula | Related Models |
|---|---|---|
| LayerNorm [13] | GPT-3 [34], BLOOM [510] | |
| Non-Parametric LayerNorm [132] | OLMo [132] | |
| RMSNorm [555] | LLaMA [486], Gemma [467], Qwen [20] | |
| QK-Norm [158] | OLMo 2 [336], Qwen3 [371], Gemma 3 [126] | |
| CRMSNorm [207] | – | |
| WeightNorm [395] | , represents the weight vector | – |
| ScaleNorm [328] | , represents the input vector | – |
| SphereNorm [273] | – |
Table 9.
Comparison between different APEs, in the notation of Section 4.3: is the positional embedding of position i, d is the embedding dimension, and j indexes its dimension pairs . k is the random offset that SHAPE [230] samples per training sequence, with the maximum shift K as its hyper-parameter, and is the learnable vector field of FLOATER [275], whose encodings are samples of the continuous trajectory ; the increment between consecutive positions is the integral of h over the unit interval, not h evaluated at the start point.
Table 9.
Comparison between different APEs, in the notation of Section 4.3: is the positional embedding of position i, d is the embedding dimension, and j indexes its dimension pairs . k is the random offset that SHAPE [230] samples per training sequence, with the maximum shift K as its hyper-parameter, and is the learnable vector field of FLOATER [275], whose encodings are samples of the continuous trajectory ; the increment between consecutive positions is the integral of h over the unit interval, not h evaluated at the start point.
| Method | PE Formulation | Learnable | Integration |
|---|---|---|---|
| Learned [110,378] | , the i-th row of a learnable matrix | ✔ | Add |
| Sinusoidal [489] | Add | ||
| SHAPE [230] | , per sequence | Add | |
| FLOATER [275] | ✔ | Add |
Table 10.
Comparison of typical Relative Positional Encodings (RPEs). Content–position interaction indicates that the position-dependent contribution to the attention score depends on the input content, rather than being a content-independent additive bias. This includes fixed rotations applied to content vectors and does not imply learned or adaptive position indices. Learnable refers to parameters specific to the positional mechanism, excluding the standard query/key projections. Unless otherwise specified, bold lowercase vectors are represented as row vectors; in particular, denote the query and key at positions i and j. The function denotes a parameterized function. For Transformer-XL, denotes a sinusoidal relative-position vector, whereas for RoPE, denotes the rotation matrix associated with position i. For Inkling, is a per-head relative feature produced by a fourth projection of the hidden state alongside the query, key, and value; it mixes a bank of learnable bias-vs-distance profiles (shared across heads and tokens) into one bias value per backward distance, and no positional term is applied beyond the maximal encoded distance (512 for sliding-window layers and 1,024 for global layers). For RoPE, and denote the c-th two-dimensional components, with and denoting their magnitudes and phases. For PoPE, and denote the complex-valued components. The symbols and denote positional frequencies, and is a learnable phase shift.
Table 10.
Comparison of typical Relative Positional Encodings (RPEs). Content–position interaction indicates that the position-dependent contribution to the attention score depends on the input content, rather than being a content-independent additive bias. This includes fixed rotations applied to content vectors and does not imply learned or adaptive position indices. Learnable refers to parameters specific to the positional mechanism, excluding the standard query/key projections. Unless otherwise specified, bold lowercase vectors are represented as row vectors; in particular, denote the query and key at positions i and j. The function denotes a parameterized function. For Transformer-XL, denotes a sinusoidal relative-position vector, whereas for RoPE, denotes the rotation matrix associated with position i. For Inkling, is a per-head relative feature produced by a fourth projection of the hidden state alongside the query, key, and value; it mixes a bank of learnable bias-vs-distance profiles (shared across heads and tokens) into one bias value per backward distance, and no positional term is applied beyond the maximal encoded distance (512 for sliding-window layers and 1,024 for global layers). For RoPE, and denote the c-th two-dimensional components, with and denoting their magnitudes and phases. For PoPE, and denote the complex-valued components. The symbols and denote positional frequencies, and is a learnable phase shift.
| Method | Content–position interaction |
Learnable | Remark | |
|---|---|---|---|---|
| Transformer-XL [69] | ✔ | ✔ |
: sinusoidal relative-position vector; : learnable positional projection; : learnable global bias vectors |
|
| T5 Bias [381] | ✔ | is a learnable scalar | ||
| ALiBi [361] | r is a hyperparameter | |||
| KERPLE [54] | ✔ | are learnable per-head kernel parameters | ||
| Sandwich [55] | are hyperparameters | |||
| FIRE [254] | ✔ |
; is a learnable function |
||
| CoPE [124] | ✔ | ✔ |
, ; is a learnable embedding |
|
| DAPE [575] | ✔ | ✔ |
: additive positional encoding; : query and key matrices |
|
| Inkling [484] | ✔ | ✔ |
: input-conditioned feature; : bank of learnable bias-vs-distance profiles; no positional term beyond |
|
| RoPE [450] |
|
✔ |
: position-dependent rotation matrix; : c-th 2D components; : content magnitude and phase; : positional frequency |
|
| PoPE [127] | ✔ | ✔ |
: complex components; : content-dependent magnitude; : positional frequency; : learnable phase shift |
Table 11.
Comparison of tokenization methods by granularity.
| Granularity | Compression Ratio | Pros | Cons | Related Methods |
|---|---|---|---|---|
| Character-Level | Low (Single characters) | Small vocabulary; covers words within the supported alphabet | Long sequences, poor semantic coherence | CharCNN [562], CharRNN [218] |
| Word-Level | High (Full words) | Semantic units, shorter sequences | OOV issues, vocab explosion | Bengio et al. [27], RNNLM [301] |
| Subword-Level | Moderate (Subword units) | Balances vocabulary size and sequence length | Learned segmentation; algorithm- and corpus-dependent | BERT [80], GPT-2 [379] |
| Byte-Level | Low (Individual bytes) | Fixed byte alphabet; no subword OOV | Long sequences | ByT5 [531] |
| Adaptive Byte Patches | Variable (Grouped bytes) | Fixed byte input with compressed latent patches | Additional patching and local processing | BLT [344] |
Table 12.
Representative multi-token prediction designs and configurations, grouped by factorization. The first block is parallel heads; the second is sequential predictors. Counts refer to heads, streams, or extra sequential modules as indicated, not to tree depth or accepted length. K includes the ordinary next-token prediction; D counts extra modules, with in the sequential training setup. The inference rollout length R depends on the draft policy and can differ from the number of distinct predictors.
Table 12.
Representative multi-token prediction designs and configurations, grouped by factorization. The first block is parallel heads; the second is sequential predictors. Counts refer to heads, streams, or extra sequential modules as indicated, not to tree depth or accepted length. K includes the ordinary next-token prediction; D counts extra modules, with in the sequential training setup. The inference rollout length R depends on the draft policy and can differ from the number of distinct predictors.
| Method | Predictor Structure | Predictor Count | Draft Policy | Primary Role |
|---|---|---|---|---|
| Blockwise Decoding [446] | Parallel feed-forward heads | K heads | Parallel block proposals | Draft-then-verify decoding |
| ProphetNet [362] | n-stream self-attention | 2 streams | Not used for drafting here | Pre-training objective |
| MTP [123] | Parallel Transformer heads; shared unembedding | heads | Parallel block proposals | Training signal; self-speculative decoding |
| Medusa [35] | Fine-tuned MLP heads | 4 extra heads | Candidate tree; parallel verification | Speculative decoding |
| Hydra [9] | Sequentially dependent draft heads | 4 extra heads | Heads condition on preceding candidates | Speculative decoding |
| EAGLE [256,257] | Feature-level autoregressive head | 1 head | Static tree; dynamic in EAGLE-2 | Speculative decoding |
| EAGLE-3 [258] | Multi-layer feature fusion; direct token drafting | 1 head | Dynamic candidate tree | Speculative decoding |
| DeepSeek-V3 [269] | Sequential MTP; shared embedding and output head | module | Optional sequential drafting | Training signal; speculative decoding |
| MiMo [278,279] | Sequential MTP; inference reuse | –3 modules | Sequential drafting with module reuse | Training signal; speculative decoding |
| GLM-4.5 [479] | Sequential MoE MTP layer | module | Sequential drafting | Speculative decoding |
| LongCat-Flash [474] | Sequential dense MTP layer | module | Sequential drafting | Speculative decoding |
| FastMTP [38] | Shared-weight recurrent MTP head | 1 shared module | Recursive rollout; aligned training | Self-speculative decoding |
Table 15.
Implicit design assumptions of the canonical decoder and representative directions in which recent architectures relax or refine them. The first column summarizes broad directions of architectural change, while the design dimensions distinguish the interface over which computation is defined, the operators and parameters that are activated, the amount of computation allocated, the dynamics of transformation and state propagation, and the timing of prediction and commitment. These dimensions are not mutually exclusive, and a single mechanism may affect several of them simultaneously.
Table 15.
Implicit design assumptions of the canonical decoder and representative directions in which recent architectures relax or refine them. The first column summarizes broad directions of architectural change, while the design dimensions distinguish the interface over which computation is defined, the operators and parameters that are activated, the amount of computation allocated, the dynamics of transformation and state propagation, and the timing of prediction and commitment. These dimensions are not mutually exclusive, and a single mechanism may affect several of them simultaneously.
| Architectural direction | Design dimension | Canonical assumption | Alternative design | Involved components |
|---|---|---|---|---|
| Flexible and conditional processing | Sequence interface | A fixed tokenization and positional scheme define the units and coordinates of computation. | Finer, multi-scale, or adaptive units; alternative positional structures. | Tokenizer, embeddings and vocabulary, positional encoding (Section ??) |
| Operator assignment | A uniform sequence-mixing operator is repeated across layers. | Heterogeneous sequence operators across layers or heads. | Hybrid composition of attention and alternative sequence operators (Section 5 and Section 6) | |
| Parameter activation | Every token activates the same dense parameter blocks. | Input-dependent routing among specialized parameter modules. | Dense or shared blocks, router, and experts (Section 7) | |
| Computation allocation | Each token follows a fixed computation path and receives a predetermined amount of processing. | Reduced, conditional, or recurrent depth; redistribution of computation across tokens or generation stages. | Early exit, conditional-depth routing, recurrent refinement, drafter–verifier computation (Section 13 and Section 12) | |
| Refined transformation dynamics | Local nonlinearity | A fixed FFN parameterization (e.g., SwiGLU) is used within each active block. | Alternative nonlinearities or gate parameterizations, such as squared ReLU or clamped SwiGLU. | Feed-forward projections, activations, gating (Section 8) |
| Depth propagation | Layers compose through fixed residual and normalization pathways. | Alternative normalization placement, residual scaling, or gating. | Normalization, residual pathways (Section 9) | |
| Selective and flexible state management | History representation | History is retained as individually accessible token-level states. | Selective, compressed, recurrent, or hybrid history. | Sequence operator, KV cache, recurrent state (Section ??) |
| State update | State grows append-only, without revising previously stored representations. | Compression, eviction, merging, branching, or rollback. | Cache and memory management, branching or rollback (Section 5 and ??) | |
| Lookahead and delayed commitment | Prediction horizon | Each state is optimized to predict the next token only. | Multi-step, blockwise, or feature-level prediction. | Prediction heads, auxiliary predictors, and drafters (Section 12) |
| Output commitment | One decision is committed per forward pass. | Drafting, parallel verification, delayed commitment, or revision. | Decoding control, candidate management, speculative state handling (Section 12) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.