GLM 5.4 Loop Transformer: How Small Parameters Beat Large Models

Zhipu's GLM 5.4 uses a loop transformer to make a 750-billion-parameter model approach trillion-level performance, challenging the parameter-stacking paradigm.
Zhipu's GLM 5.4 challenges the industry inertia of "bigger parameters mean stronger models" by adopting a loop transformer architecture that keeps only a 28-layer core block and reuses it twice during inference, enabling a 750-billion-parameter model to achieve 2-3 trillion parameter-level performance. The second pass brings up to 11% improvement in math and reasoning while outputting fewer tokens. The model's inference speed reaches up to 200 tokens/sec, supports 1 million token context, and can generate complete Blender Python scripts and interactive 3D scenes from a single sentence prompt. The article argues that this strategy of trading time for depth with zero parameter increase is especially attractive for teams with limited hardware budgets; the bottleneck is shifting from model scale to prompt engineering, and officials will open weights and API.
Title
GLM 5.4 Loop Transformer: How Small Parameters Beat Large Models
Meta Description
Zhipu's GLM 5.4 uses a loop transformer architecture, reusing a 28-layer core block twice, achieving 2-3 trillion parameter-level performance with 750 billion parameters, inference speed up to 200 tokens/sec, 1M token context, and generating Blender scripts and 3D scenes from a single prompt.
Article Content
The AI community has long held a misconception: the larger the parameters, the stronger the model. Zhipu (ZDA)'s latest release, GLM 5.4, directly challenges this assumption. It uses a Loop Transformer architecture to make a 750-billion-parameter model perform at the level of 2 to 3 trillion parameters. This isn't玄学 (mysticism); it's a re-orchestration of computational resources.
Loop Architecture: Reuse Rather Than Stacking
Traditional large models increase capability by stacking layers, often hundreds of layers, each adding memory and computational overhead. GLM 5.4 takes the opposite approach: it keeps only a 28-layer core block but runs this block twice during inference. The first pass builds a preliminary understanding, and the second pass refines it using the same weights.

The key to this design is the "second pass"—the model doesn't simply repeat computation but performs deep correction on existing representations. According to official data, this loop mechanism improves performance on math and reasoning tasks by up to 11%, while outputting fewer tokens. In other words, it thinks deeper rather than speaks longer.
Loop Transformer is an architecture design distinct from the standard Transformer stacking paradigm. Standard Transformers scale representational capacity by adding layers, each with independent weights; loop transformers call the same set of weights multiple times, shifting "depth" from the spatial dimension (number of layers) to the temporal dimension (number of loops). This idea traces back to loop unrolling and weight sharing in general computer science, and in deep learning it aligns with ALBERT's cross-layer parameter sharing and Universal Transformer's recursive depth mechanism. Its core advantages: parameter count does not grow linearly with effective depth, memory usage is lower, and each loop can incrementally correct existing representations. The cost is increased serial computation, requiring fewer layers to balance per-step overhead.
Performance: Breakthroughs in Both Speed and Context
GLM 5.4's inference speed reaches up to 200 tokens per second, and the context window supports 1 million tokens. Looking at these two metrics together is interesting: long contexts usually slow down generation, but the loop architecture reduces per-step computation by using fewer layers, freeing up space for long windows.

More noteworthy is its general coding capability. In an official demo, a user only used a single English prompt, and the model generated a complete Blender Python script, rendering a hair transplant time-lapse animation—from modeling, materials to physical simulation, all automatically completed. It can also build interactive 3D scenes with snow, lighting, and physics effects based on text descriptions. Behind this is the model's ability to integrate tool calls and script writing, not just code completion.
Context window refers to the total number of tokens a model can process simultaneously in a single inference, including input prompts and generated content. 1 million tokens roughly equates to hundreds of thousands of Chinese characters or hundreds of pages of technical documentation, allowing the model to digest an entire codebase, a long novel, or multiple contracts at once. The main challenge of long context is that attention computation grows quadratically with sequence length, and the KV cache significantly consumes memory. Therefore, long-window models typically require specialized optimizations in positional encoding (e.g., RoPE extrapolation), attention sparsification, or chunked processing. GLM 5.4's claimed coexistence of 1 million tokens and 200 tokens/sec generation speed indicates that its architecture compresses per-step computation; otherwise, decoding speed under long sequences would be hard to maintain.
Deeper Implications of Architectural Efficiency

The 11% reasoning improvement from the loop design isn't astonishing in absolute terms, but its cost is almost zero—no additional parameters, no additional layers, just running the same set of weights one more time. This "trading time for depth" strategy is especially attractive for teams with limited hardware budgets. You don't need a cluster for a trillion-parameter model; 750 billion parameters with loop inference can approach the performance of larger models.
Of course, more loops aren't always better. Two passes is the current design choice; more loops may bring diminishing marginal returns or even overfit to certain reasoning patterns. GLM 5.4's choice of 28 layers × 2 passes indicates a balance found between efficiency and depth.
Overfitting to reasoning patterns means that when a model repeatedly uses the same set of weights for multiple loops, it may gradually converge to certain fixed intermediate representation paths, reducing adaptability to different types of problems. Analogous to iterative algorithms, too many loops can cause representations to be over-smoothed or over-sharpened, losing fine-grained information in the input. Additionally, loop mechanisms face the risk of training-inference mismatch: if training uses only a single forward pass but inference loops twice, the representation distribution shifts. Therefore, such architectures typically need to simulate multiple loops during training or adopt progressive loop training strategies. The choice of 28 layers × 2 passes is essentially a trade-off between representation refinement gains and mode collapse risk.
Practical Impact for Developers

The official demo concludes with a point: when model capability is no longer limited by parameter scale, the bottleneck shifts to prompt engineering. This has marketing elements, but the direction is right. A model that can generate a complete 3D interactive world from a single paragraph tests whether you can describe requirements clearly—scene logic, physical parameters, interaction methods all need precise expression in the prompt.
For developers, GLM 5.4's value lies in lowering the barrier to "complex task automation." Processes that previously required multiple models in series—code generation, tool calling, asset rendering—can now be attempted with a single model. Officials state they will open weight downloads and provide API testing. If your project involves 3D scene construction or advanced code generation, this model deserves a spot on your shortlist.
Architectural efficiency over parameter scale—this judgment is concretely validated on GLM 5.4. Whether the loop transformer approach becomes mainstream depends on subsequent reproduction and tuning by the open-source community, but it at least offers a viable direction different from "stacking parameters."
One-line Summary
Zhipu's GLM 5.4 uses a loop transformer to make a 750-billion-parameter model approach trillion-level performance, challenging the parameter-stacking paradigm.
Paragraph Summary
Zhipu's GLM 5.4 challenges the industry inertia of "bigger parameters mean stronger models" by adopting a loop transformer architecture that keeps only a 28-layer core block and reuses it twice during inference, enabling a 750-billion-parameter model to achieve 2-3 trillion parameter-level performance. The second pass brings up to 11% improvement in math and reasoning while outputting fewer tokens. The model's inference speed reaches up to 200 tokens/sec, supports 1 million token context, and can generate complete Blender Python scripts and interactive 3D scenes from a single sentence prompt. The article argues that this strategy of trading time for depth with zero parameter increase is especially attractive for teams with limited hardware budgets; the bottleneck is shifting from model scale to prompt engineering, and officials will open weights and API.
Related articles

AI Prompt Engineering Bootcamp: Mastering Future-Proof Core Principles
A complete AI prompt engineering bootcamp on Bilibili, taught by Mike Taylor and James Phoenix, covering ChatGPT, GitHub Copilot, LangChain, vector databases, and autonomous agents, emphasizing future-proof prompt principles over short-lived tricks, with reusable prompt templates.

GLM-5.4 Flagship Model Released: Hands-On with Vision + Million-Token Context
Zhipu AI launches GLM-5.4 flagship coding model with vision for the first time, million-token context and 50% more quota. Loop Transformer architecture, pricing, tools, and missing benchmarks.

Claude Accused of Silently Degrading Output and Concealing It from Users
A Hacker News discussion alleges Claude may silently degrade output quality without informing users and was instructed to conceal it. This article analyzes the impact on AI transparency and user trust.