Transformer architectures and model research
Artificial intelligence · AI models
The frontiers of Transformers: memory, depth and compute in new models
From quadratic attention to editable memory: a mathematical reading of eight publications, including 2026 research, with verifiable examples and limits on what we can expect from upcoming models.
Paper review · Advanced · 9 min read
- Published
- Updated
Our analysis
The starting point: what attention actually costs
This is a selective reading of literature available on 7 November 2026, not an exhaustive review. We start with the 2017 foundations and 2022 FlashAttention, then examine 2026 proposals. The common thread is how to allocate memory, communication and computation. The outlook is our inference, not an announcement about proprietary model architectures.
For one self-attention head, Q and K are matrices and V is : n counts tokens; and are representation dimensions. The operator is Softmax acts row by row; in the causal mask M, future positions have value and allowed positions zero.
At fixed dimensions, query–key products and value aggregation require work quadratic in n. A naive implementation materialises scores per head. FlashAttention instead computes the same dense attention in tiles, reducing memory transfers: it avoids that materialisation without making dense attention arithmetically linear. Mathematical equivalence does not imply bitwise identity in floating-point arithmetic.
An essential distinction follows: reducing intermediate memory, reducing operations and changing the information retained are different goals. Attention cost also differs from total model cost: projections, feed-forward networks, communication and weight accesses remain.
Sources: Vaswani et al. [1]Dao et al. [2]
From the sources
Recurrent states: the delta rule with forgetting
Gated DeltaNet, in its ICLR 2025 camera-ready version, combines adaptive decay with targeted updates to a matrix memory. The authors also study hybrids with other mechanisms, including windowed attention. This does not demonstrate that attention can always be removed.
The rule, rewritten equivalently, is Here S has dimension ; k and v are column vectors; controls decay and update strength. A query q is read as .
The subtraction corrects what the state already predicts for the current key. At fixed dimensions, recurrent state size does not grow with the sequence; however, it compresses associations. In hybrid models, attention components retain their own costs. Compact state does not guarantee exact recall of arbitrarily many facts.
Original teaching example: , , and . After writing, has first column and a zero second column. In the limiting case , with the same key and , the first column becomes , not : the update corrects the association instead of adding indiscriminately.
Sources: Yang, Kautz & Hatamizadeh [3]
From the sources
Engram: separating pattern lookup from computation
Engram proposes conditional memory made of embeddings indexed by n-grams, with hashing and context-dependent integration. We consulted the July 2026 arXiv revision. The module complements the backbone rather than replacing the whole Transformer.
A teaching schematic, not the complete implementation, is and E is a learned table; W projects the memory; g is a context-dependent gate. The paper includes additional components beyond this simplification.
The stated lookup concerns indexed access under a fixed configuration: it does not make the whole model or physical memory cost constant. A larger table needs capacity and bandwidth. Collisions and contextual ambiguity still require handling.
The operational distinction is between conversation state, learned memory and documents retrieved from an external system. These are different objects. For a document application, retaining an association does not itself provide a verifiable source, validity date or deletion procedure.
Sources: Cheng et al. [4]
From the sources
EngramEdit: updating knowledge without rewriting everything
The 7 October 2026 EngramEdit preprint studies knowledge updates through conditional memory while keeping the backbone fixed. Different expressions can share embeddings: modifying an entry can affect unrelated facts. This is an experimental proposal, not a general guarantee of safe editing.
For sum aggregation, update allocation is A describes which embeddings participate in the expressions; B the desired shifts; rows of U are updates. The symbol denotes the Frobenius norm, the square root of the sum of squared entries.
With , the normal equations are Positive regularisation makes the system invertible; operationally, solve the system without requiring an explicit inverse. The paper distinguishes sum aggregation from gated aggregation: this formula does not automatically describe every variant.
Dimension check: with p expressions, q embeddings and dimension d, A is , U is and B is . For every nonzero vector z, when all are positive. This establishes uniqueness and invertibility, not the semantic correctness of the targets.
Original algebraic example: with , and , the solution is rather than 2. The penalty reduces update magnitude but does not prove that other facts remain correct. Evaluation needs paraphrases, unedited facts and reasoning that uses the revised knowledge.
Sources: Cai et al. [5]
From the sources
Depth is changing: mHC and Attention Residuals
A standard residual connection is In its January 2026 revision, mHC expands residual streams and constrains their mixing through doubly stochastic matrices. Attention Residuals, a March 2026 technical report, instead studies attention-based selection among earlier layer contributions. These modify connections in different ways; they are not new names for token attention.
For mHC’s residual matrix P, the ideal constraint is The vector 1 has all entries equal to one. The method uses Sinkhorn-Knopp normalisation; finite iterations satisfy the constraint only approximately in numerical computation.
Teaching derivation of the constraint: a doubly stochastic matrix is a convex combination of permutations, with and . Since , the triangle inequality gives . For fixed P, this limits amplification in linear mixing. If P depends on the input, the total Jacobian also includes that dependence: this calculation does not establish stability of the entire network or its gradients under every condition.
For Full Attention Residuals, a layer input can be written with Here is the embedding and the remaining are earlier outputs; is a learned per-layer query. Softmax acts across depth, separately at each position.
The Block AttnRes variant groups contributions to reduce memory and communication overhead. The interesting direction is selective reuse of representations. This differs from increasing layer count or the context available to the model.
Sources: Xie et al. [6]Kimi Team [7]
Our analysis
More reasoning also means allocating compute better
Snell and coauthors study how to allocate inference-time computation across search, verification and response revision strategies. Effectiveness depends on problem difficulty. This does not imply that generating more tokens always improves an answer, or that spending more inference compute requires an architectural change.
An original probability example separates producing a solution from selecting it. If each attempt has probability p of being correct and attempts are independent, the probability that at least one of m attempts succeeds is With and , this is 0.5904, or 59.04%.
This is the probability of having a correct solution in the group, not the accuracy of the selected answer. Matching it would require a perfect selector; correlated errors and fallible verifiers change the practical result. Verification costs also belong in the budget.
For a problem with a checkable solution, such as a program assessed by relevant tests, extra computation can have an observable stopping criterion. For an open factual answer, the quality of checking remains part of the problem. This is an operational consequence of the probability model, not a product promise.
Sources: Snell et al. [8]
Our analysis
A concrete calculation: attention, cache and state are different memories
These are independent examples, not measurements of a specific model. Materialising a score matrix for one head with tokens and two bytes per entry requires bytes, or 2 GiB. At 65,536 tokens it reaches 8 GiB. Squaring doubles the factor twice; a tiled algorithm can avoid retaining the full matrix.
The KV cache instead reuses previously computed keys and values during autoregressive generation. For a standard uncompressed cache with equal key and value dimensions, a byte estimate is Here B is batch size; L layer count; key/value heads; dimension per head; and b bytes per entry. The first factor 2 counts keys and values.
With , , , , and , this gives 4 GiB for the KV cache alone. Doubling n gives 8 GiB, not 16. Weights, buffers and other states are excluded; compressed, windowed or otherwise different caches require a different calculation.
Timing also needs separation. Prefill processes the prompt; during cached decoding, a new query consults retained keys. For dense attention at fixed dimensions, that single query’s work grows linearly with the current context. Charging every generated token the full quadratic cost of processing the prompt again is incorrect.
Sources: Vaswani et al. [1]Dao et al. [2]Yang, Kautz & Hatamizadeh [3]
Our analysis
What to expect, and what the papers do not establish
Our inference is that models will keep differentiating across several axes: information selection, memory, inter-layer connections and inference budgets. These eight papers do not establish a universally superior Transformer replacement. Hybrid combinations are plausible, not a certain prediction about the next commercial release.
For technical evaluation, I would ask for quality at matched budgets, prefill latency separated from decoding latency, total memory and results on context that is actually useful. Comparisons using different data, hardware and protocols do not support a reliable ranking. Fewer FLOPs alone do not establish lower elapsed time or cost.
For editable memory, examine preservation of unedited facts; for compressed states, information recall; for reasoning, verifier quality and total cost. Longer context does not guarantee correct use of documents. A new residual connection does not guarantee factual correctness.
Evidence status: Gated DeltaNet is labelled ICLR 2025 camera-ready. For Engram, EngramEdit, mHC and Attention Residuals we used the listed manuscript or report versions; we do not assume an unverified peer-review outcome. Conference publication also does not replace independent reproduction or evaluation on a particular use case. Source dates refer to the consulted version, not necessarily the initial proposal.
Sources: Yang, Kautz & Hatamizadeh [3]Cheng et al. [4]Cai et al. [5]Xie et al. [6]Kimi Team [7]Snell et al. [8]