aifollow.news
Back 量子位 AI 报道
量子位 AI 报道· · Original publication time AI score67

Zhipu releases GLM-5.4 with its first Loop Transformer architectureMachine translation

智谱发布 GLM-5.4,首次采用 Loop Transformer 架构

AI-assisted summary

Zhipu has released GLM-5.4, the first model in the series to use Loop Transformer, which runs a group of middle layers twice with the same weights. Zhipu says that in a same-parameter comparison using a 30B model, adding Loop increased training compute by about 10% while raising its AIME25 score from 19.17 to 30.42. The company says it will release the model weights after necessary safety hardening.

Article · AI translation

An MV made entirely by hand with code!

Jin Lei reporting from Aofeisi

QbitAI | WeChat official account QbitAI

Jin Lei reporting from Aofeisi

QbitAI | WeChat official account QbitAI

A new model, a new architecture.

Just now, Zhipu unveiled GLM-5.4, its first new model to use the Loop Transformer architecture!

Let’s go straight to the code-made videos that have recently gone viral and see what GLM-5.4 produced:

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

This MV, called “Hello World,” was created by Mike Luan using GLM-5.4, covering the entire process from concept and musical arrangement to animated storyboards and visual rendering.

More specifically, all visuals were drawn in real time with front-end code (0 external image assets). For the music, GLM-5.4 planned it around the chapter narrative and shots, called a third-party music-generation model to produce it, and independently completed multiple rounds of revisions to the music prompts.

The MV has now gone viral overseas, with one commenter even exclaiming:

A bit beyond expectations.

A bit beyond expectations.

Now let’s see how GLM-5.4 performs on the classic “3D pelican riding a bicycle” benchmark:

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

A clear improvement, a clear improvement.

Speaking of improvement, quite a few users have already posted comparisons of results from GLM-5.3 and GLM-5.4:

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

The improvement in visual quality is obvious enough. What about the scores?

There are scores, friends, there are.

After using GLM-5.4 for some time, one overseas user put it bluntly:

It’s currently the best open-source model you can use!

It’s currently the best open-source model you can use!

Remember how we mentioned that it is the first to use Loop Transformer?

Once you see what that adds, it becomes clear why the visuals have improved so much:

Zhipu calls the concept behind this upgrade “generalized Coding.” You can get a sense of that positioning from the singing letters and the pelican out for a ride.

And there’s something to see on speed, too.

According to Zhipu’s official figures, it can reach up to 200 Token/s during off-peak hours and 70–80 Token/s during peak hours.

Next, let’s look at more examples of what GLM-5.4 can do.

First, let’s look at GLM-5.4’s results with interactive HTML:

This example is called “Rainy Night Convenience Store,” and the whole street looks like a miniature model set on a table.

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

Judging by the details visible when zooming and changing angles, this HTML result is far more refined than what AI could produce a few months ago.

You can also clearly see details such as the convenience store’s doors opening automatically and the arrangement of products inside.

So, for this task, GLM-5.4 appears to handle it with ease.

Next, let’s raise the difficulty and see how its 3D capabilities perform in professional software.

This time, the task is to make a Blender modeling and lighting console for a building-block version of Gringotts:

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

First, look at the dragon perched on the roof in the video. Click “Dome Dragon” on the left, and the camera moves to the roof; then drag “Flame Intensity” to the right, and the fire in the dragon’s mouth grows brighter.

The scene also has 3 lighting presets: “Bright,” “Dark Night,” and “Golden Hall.” If an area looks too dark, you can adjust it separately. The whole process still flows smoothly.

After a scene-building example, let’s look at a Coding to Game example you can play.

This time, we asked GLM-5.4 to open a 3D burger shop:

Video link:

https://mp.weixin.qq.com/s/ln8fIodXFxbow3kanPhcxA

As the result shows, the game made by GLM-5.4 has fully reached the level of a small web game.

The whole process, from receiving customers and taking orders to preparing food and serving it, has the kinds of detailed interactions we normally see in small games.

Finally, we also ran a task in ZCode that comes up more often when modifying software: adding version history to an existing manuscript dashboard.

The project could already edit and save manuscripts, and the database contained 4 older drafts. We required those 4 drafts to remain where they were after the upgrade, each save to create a version, and earlier versions to be restorable later. The permissions for author and read-only accounts also had to stay the same.

After the run, all 4 original drafts could still be opened, and a “Version History” section had appeared below the editor. Even for a draft that had never been changed, opening it showed an “Initial Version” entry:

From these results, we can see that GLM-5.4 handles all kinds of tasks confidently.

Having seen the results, let’s talk about the Loop Transformer architecture Zhipu is debuting this time.

We know that when an ordinary Transformer generates a Token, it passes information from one layer to the next, with each layer computing once. This time, Zhipu changed the 28 layers in the middle of the model. After this group of layers completes its first pass, the result is sent back to the start for a second pass using the same weights, and only then passed to the later layers.

That is the Loop in GLM-5.4. The same group of layers does another round of work, allowing the model to process the result it just computed once more before generating the next Token. Because both rounds use the same weights, the model’s parameter count stays roughly at its original scale.

So the question is: how much can that extra pass improve the score?

Zhipu ran a controlled experiment with 30B models of the same parameter count. After adding the Loop, total training compute increased by about 10%, while the AIME25 score rose from 19.17 to 30.42.

Looking further, the GPQA Diamond score also rose from 47.58 to 56.26, while the model used 11.7% fewer output Tokens on average. The pattern was similar on MMLU-Pro: the score rose from 71.65 to 75.05, with 14.9% fewer output Tokens on average.

In other words, in this controlled comparison, one more round of computation inside the model let it answer some questions more accurately with fewer output Tokens.

But putting the Loop into the 750B-scale GLM-5.4 presented Zhipu with another problem. The original base model had already been trained. With an extra pass through the middle, how much of the first pass’s result should be retained, and how much should the second pass change?

Zhipu’s solution was to add a gate to each pass to control how much of its result is written back. After training, the model tends to use the first pass to work through the overall context, writing back relatively little; with that result as a foundation, the second pass does more detailed processing and writes back more.

Deployment brings another video-memory cost. The model keeps a cache of the context it has read, called the KV Cache, so it can retrieve it directly later. If each pass stores its own copy, those caches can quickly take up video memory as the context grows longer.

So Zhipu split the cache by how far the content is from the current Token. The 2 passes share 1 copy of more distant content; only for a short stretch of recent content does each pass keep its own. Likewise, the second pass can directly use the sparse attention indices left by the first pass when it identified which earlier positions to examine.

This way, even with a context of 1M Tokens, the second pass needs an extra cache only for the short stretch of content in the sliding window.

The idea of running the same group of layers repeatedly was explored by the Universal Transformer in 2018. Zhipu’s approach this time is to add the Loop through post-training to a base model that has already completed pretraining. After validating the approach on 1B, 4B, and 30B models, Zhipu ultimately applied the structure to the 750B-scale GLM-5.4.

Moving up from 30B is quite different from the earlier controlled experiment. A score increase at 30B tells you that this group of layers can be used an extra time. But at 750B, you already have a trained large model; you need to make it adapt to a second pass and get the modified model running in production. The gates, cache, and reuse of indices described above are the adjustments Zhipu made for the Loop along the way.

That’s what I find interesting about GLM-5.4 this time. A domestic model team took its chosen architectural change from experiments on small models all the way to the launch of a flagship model. Zhipu has an even larger base model planned, so it may have a chance to keep testing this method at a larger scale.

As for Zhipu’s “generalized Coding,” when I look back at that Gringotts example, what I most want to examine again are the sliders on the left.

The dragon has already been made, and users can change the camera angle, adjust the lighting, and view renders on the same page. If you want to see what the underground vault looks like a little darker, you can click a couple of times yourself. At this point, the code can connect several operations in professional software for users and turn them into a tool they can use repeatedly.

Zhipu says it will continue to scale up the base model for GLM-5.5. When that happens, we can see both how much more this Loop adds and what happens if it is given a task like the Gringotts example again: how far it can get on its own, from understanding the requirements to connecting the operations in the software.

And then there’s open source, which everyone is concerned about.

Zhipu says it will open-source the GLM-5.4 model weights after completing the necessary safety hardening.

Found an error? Send a correction