Z.ai launches 750B flagship model using loop transformer architecture
The new GLM-5.4 model runs specific layers twice to increase computational depth, aiming to achieve the performance of much larger models.
The short version
- GLM-5.4 runs 28 layers twice to increase depth without adding more parameters to the model.
- The model uses dedicated gates and shared caching to manage memory and prevent computational costs from spiking.
- Z.ai claims the 750B model reaches performance levels comparable to models with 2 to 3 trillion parameters.
- Testing on a 30B version showed significant jumps in math and science benchmarks but smaller gains in general knowledge.
- The company plans to release the model weights following additional safety testing.
A new approach to model depth
Z.ai has introduced GLM-5.4, its first large-scale model built on a loop transformer architecture. In a standard language model, each layer is processed only once during a single pass. However, GLM-5.4 runs a block of 28 shared layers twice, allowing the network to refine its intermediate results without increasing the total parameter count.
This architectural choice is intended to provide the benefits of a deeper network while keeping the model's footprint manageable. Z.ai notes that the 750-billion-parameter model can reach performance levels similar to models that have 2 to 3 trillion parameters. By looping the layers, the model can perform more complex reasoning on the same amount of data.
The company is following a path similar to OpenAI, which has utilized loop architectures since the release of GPT-6 Astra. While training loop models from scratch can sometimes result in worse performance than standard models under the same compute budget, Z.ai retrained its existing GLM-5 base model to achieve these gains. The goal is to create a more efficient way to scale intelligence.
Why it matters
This shift toward loop architectures suggests a move away from simply making models bigger by adding more parameters. For users, this could mean more capable reasoning and complex creative outputs, like 3D CAD models, from models that are more efficient to run.
Managing memory and computation
Running a model twice creates a technical challenge where values can grow too large for the system to handle. If a model simply overwrites its previous steps, the data can fall outside the range it was originally trained on. To solve this, GLM-5.4 uses dedicated gates for every token and pass to control how much of the new output flows back into the main data stream.
The model builds its context cautiously during the first pass and then writes its changes in full during the second pass. On particularly difficult tokens, the first pass takes a stronger role in the processing. This system ensures that the model stays stable while still benefiting from the extra computational depth provided by the loop.
To keep memory costs from doubling, the model uses a shared KV cache, which is the temporary memory used for previously processed tokens. It only stores extra values for the second pass in a small local window. Additionally, the model uses sparse attention to identify the most relevant previous tokens early on, allowing the second pass to reuse those selections instead of scanning the entire context again.
Testing the loop architecture
Before launching the flagship model, Z.ai tested the loop architecture on models ranging from 1 billion to 750 billion parameters. They conducted a direct comparison using a 30B model built on the same architecture as the large base model. While both versions had the same parameter count, the loop version received about 10 percent more training compute.
The results showed that the loop architecture excelled at complex reasoning tasks. On the AIME25 math benchmark, scores jumped from 19.2 to 30.4 points, and expert-level science questions on the GPQA-Diamond test rose from 47.6 to 56.3 points. However, the gains were much smaller on general knowledge tests like MMLU-Pro, where the score only increased by just over three points.
The data also revealed that the model's responses became shorter in several tests. Z.ai attributes this to the fact that more of the reasoning is shifting out of the final output tokens and into the extra depth of the loop. While the 750B model's specific benchmarks have not been published, these 30B tests provide a baseline for how the architecture handles different types of information.
The goal of Generalized Coding
Z.ai describes the launch of GLM-5.4 as the beginning of 'Generalized Coding.' This concept suggests that code should serve as a foundation for tasks that go far beyond traditional software development. The company intends to use this capability to generate diverse outputs, including music videos, 3D scenes, and interactive games.
To demonstrate this, Z.ai showcased several projects created by the model. These include a six-axis robot arm designed in FreeCAD, a complete game, and a music video scored by the model itself. By using code as the underlying logic, the model can interact with mathematical geometry and custom shaders to create complex 3D environments.
The model is currently available through the GLM Coding Plan, the ZCode environment, and Z.ai Chat. While an API is planned, the company has not yet announced specific token pricing. Z.ai plans to release the model weights to the public after they complete further safety testing, and they have also announced a much larger model that is expected to arrive soon.
Context and competition
The use of shared layers in transformers can be traced back to the Universal Transformer in 2018. Recent research in Bonn confirmed that looped transformers are particularly effective for math problems because they provide greater compute depth. Conversely, everyday knowledge benefits more from larger memory, which explains why Z.ai chose this specific architecture for its flagship model.
Z.ai is positioning GLM-5.4 to compete with high-end models like Kimi K3.1 Pro and Qwen3.8-Max. While GLM-5.4 is 750 billion parameters, those competitors are significantly larger, with 2.8 trillion and 2.4 trillion parameters respectively. This means GLM-5.4 aims to provide high-tier performance while remaining more efficient than models that require massive amounts of compute.
The company is also moving away from the approach used in its previous model, GLM-5.3. For that version, Z.ai kept the base model the same and focused on gains from post-training. However, they delayed releasing those weights because the model showed a strong ability to find vulnerabilities and build exploits. GLM-5.4 represents a shift toward a more fundamentally different architecture to achieve next-level capabilities.
Technical summary
The loop transformer architecture allows a model to 'think' longer by passing data through the same layers multiple times. By using gates and shared caches, Z.ai avoids the massive memory spikes that usually occur when you run a model's layers more than once. This allows the model to achieve the reasoning depth of a much larger network without the hardware requirements of a multi-trillion parameter system.
The primary benefit of this approach is seen in specialized tasks like mathematics and science, where the model can refine its logic through multiple passes. While it may not significantly increase general knowledge, it provides a path for models to handle complex, multi-step instructions. This architecture is a key step toward the company's vision of using code as a universal language for creative and technical generation.
As Z.ai prepares to release the weights for GLM-5.4, the industry will be watching how this loop architecture scales to even larger models. The company's success will depend on whether the efficiency gains of the loop can maintain high accuracy across a wide variety of tasks. For now, the model stands as a significant milestone in how AI companies balance model size, compute costs, and reasoning depth.
Sources and links
- OfficialZ.ai writes z.ai
- ReportingThe Decoder: the article we sourced
Written by the SI Agent News Desk from the reporting above.Written with AI from the source above. Every number is checked against the source. Spot a mistake? Corrections.
Get tomorrow’s 7 minutes
One email a day: the AI news that matters, ready to read or play. Free.
No password. Unsubscribe any time. Privacy
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
