Transformer Architecture's Ceiling: What Else Is Needed for AGI?

    This article examines why Transformer-based autoregressive models have become the default for large language models, identifies structural bottlenecks such as quadratic attention cost, serial token-by-token decoding, limited revision during generation, and indirect environment modeling, and reviews three alternative directions: linear attention hybrid architectures, text diffusion models, and world-model-oriented approaches. It concludes that near-term production will likely remain Transformer-centric, medium-term efficiency gains point toward hybrid architectures, and long-term AGI may require combinations of attention, linear state mechanisms, diffusion-style refinement, and environmental feedback signals.

    1. The Starting Point: Why Transformers Dominated an Era

    Since the 2017 attention paper, autoregressive decoder-style Transformers have become the default answer for large language models. Whether it is the largest flagship model in the open-source community or various closed commercial models, their core components can largely be reduced to different variants of multi-head self-attention. Over the past few years, a wide range of mature efficiency optimizations have emerged around this architecture:

    • Grouped-query attention (GQA): multiple query heads share a set of key-value heads, substantially reducing the memory footprint of the KV cache;
    • Sliding window attention: attention is restricted to a local window, lowering computational complexity on long sequences;
    • Multi-head latent attention (MLA): key-value representations are compressed through low-rank compression, further reducing cache overhead;
    • Mixture of Experts (MoE): only a subset of parameters is activated during each forward pass, controlling inference cost while maintaining large capacity.

    These optimizations have allowed Transformers to keep setting records in text and code generation. For engineers building applications, fine-tuning models, or deploying algorithms, choosing this well-validated route remains the safest option.

    But there is a question that deserves serious attention: Where is the ceiling of this path? If the goal is not merely better text generation but AGI, is stacking Transformers enough?

    2. Structural Bottlenecks of Transformer

    To answer this question, we first need to see several inherent constraints of autoregressive attention.

    1. The computational complexity of attention is quadratic. The compute of self-attention is proportional to the square of sequence length, and the KV cache grows linearly with context. This means every improvement in long-context capability comes with high compute and memory costs. Optimizations such as GQA and sliding window attention only use resources more sparingly; they do not change the order of complexity.

    2. Token-by-token decoding is inherently serial. Autoregressive models must generate one token after another and cannot fully exploit hardware parallelism. Generation speed is constrained by the number of decoding steps, and latency remains a persistent issue for long-text generation.

    3. The generation process lacks a mechanism for going back and revising. Once an autoregressive model outputs a token, it can only continue from it, right or wrong. It cannot first draft and then revise like human writing, nor can it plan the macro structure of a passage and then fill in details. This left-to-right, irrevocable generation method has an inherent disadvantage on tasks requiring global consistency.

    4. There is no explicit environment interaction or state modeling. A pure language model understands the world indirectly through text sequences; its cognition of causality, dynamics, and space all comes from sequence statistics. Whether this indirectness can support genuine planning and reasoning remains a focus of ongoing academic debate.

    3. Alternative Route 1: Linear Attention Hybrid Architectures

    For the complexity problem, the most direct idea is to replace quadratic attention with a linear-complexity sequence modeling mechanism. A typical representative is the state space model (SSM) family. Such mechanisms compress historical information into a fixed-size hidden state, and the update process can be written in a form similar to the following:

    1. # Simplified illustration of a linear recurrence
    2. h_t = A @ h_{t-1} + B @ x_t # state update independent of sequence length
    3. y_t = C @ h_t # read output from state

    Because the hidden state size is fixed, processing a sequence of length N requires only linear time, and each inference step has constant computation, making it well suited to ultra-long context scenarios.

    However, a purely linear mechanism has a weakness: a fixed-size state means historical information must be lossy compressed, and its ability to precisely retrieve arbitrary distant details is weaker than global attention. Therefore, the more practical approach today is a hybrid architecture that interleaves a few global attention layers with many linear layers: linear layers efficiently carry long-range context, while a small number of attention layers perform precise retrieval. Experiments indicate that such hybrid structures can substantially reduce inference cost while keeping quality loss within a small range.

    The nature of the trade-off: sacrificing some precise memory capability in exchange for length scalability and inference speed. For long-document processing, streaming dialogue, and similar scenarios, this is a very attractive trade-off.

    4. Alternative Route 2: Text Diffusion Models

    Diffusion models have already proven themselves in image generation and have recently been ported to the text domain. The approach represents a fundamental shift: instead of generating token by token from left to right, the model starts from a noisy text sequence and gradually “develops” the final answer through multi-step iterative denoising.

    This paradigm brings several theoretically attractive properties:

    • Parallel generation: a single denoising step can simultaneously correct multiple positions in the entire text, giving the decoding stage much higher parallelism than autoregressive generation;
    • Controllable iterative refinement: the model can “change its mind” during generation and revise earlier unsatisfactory parts, closer to the human writing process of drafting first and polishing later;
    • Potential for global planning: because each step models the distribution of the entire sequence, it is theoretically better suited to tasks requiring global consistency.

    The cost is that iterative denoising requires multiple forward passes, so the total computation per generation may not be advantageous; and the way token dependencies are modeled during generation differs from autoregressive models, so it still needs to catch up in fine-grained language probability modeling. At present, this route is mostly in the research and exploration stage and has not yet become a mainstream production solution.

    5. Alternative Route 3: Toward World Models

    There is another, more radical line of attempt that argues language modeling itself is not the endpoint. Its core claim is that true intelligence needs to learn the causal laws of the world by interacting with the environment. Typical ideas include training models in code, executable environments, or simulated environments, so that the model predicts the consequences of actions rather than only predicting the next word.

    The motivation behind this “code world model” direction is:

    1. Code has strict executable semantics, and the model’s predictions about code can be verified by programs, providing a more reliable feedback signal than natural language;
    2. By “predicting execution results” rather than “predicting the next token,” the model is forced to learn causality and dynamics rather than surface statistical patterns;
    3. Such capabilities are considered more relevant to key AGI elements such as planning, tool use, and reasoning.

    However, this route is still at an early stage, and the design of training signals and the establishment of evaluation standards are far from mature.

    6. Rational Conclusion: Evolution Rather Than Revolution

    Taken together, we can give a layered answer to the question raised at the beginning:

    • Short term: focus on applications. Models based on the standard Transformer have been validated at large scale, and the accompanying efficiency optimizations and engineering ecosystem are the most mature. It should still be the default option for deployment decisions;
    • Medium term: focus on efficiency. Linear attention hybrid architectures have clear advantages in ultra-long context and inference cost and are moving rapidly toward practical use. A “Transformer with linear components” is likely to be the mainstream form for some time;
    • Long term: focus on capability boundaries. If AGI truly requires global planning, verifiable reasoning, and the ability to interact with the world, then incremental optimization of autoregressive sequence modeling alone may not be enough. Diffusion-style generation and world models point precisely to properties that the autoregressive paradigm cannot naturally obtain.

    It is important to emphasize that these alternatives are not intended to “overthrow” Transformer; most of them still use some form of attention mechanism. A more accurate description is: architectures are moving from a “single paradigm” toward “hybridization and composition.” Just as different components in computer architecture serve different roles, future large models are likely to be systems that combine attention, linear state mechanisms, diffusion-style refinement, environmental feedback signals, and other mechanisms according to task requirements.

    The implication for developers and researchers is twofold. On one hand, there is no need to worry that the mainstream architecture will be “immediately obsolete”; engineering practice can still stand on mature solutions. On the other hand, maintaining sensitivity to and understanding of alternative paradigms and identifying the application windows for hybrid architectures in specific scenarios such as long context, low-cost inference, and complex reasoning tasks will be a key part of the cognitive reserve needed for the next stage of modeling capability competition.