AI Trends

Zhipu Releases GLM-5.4, Increasing Computational Depth with a Loop Transformer and Adding Vision Capabilities

Shao MengUpdated Nov 23 20:58

AI summary

Zhipu has released GLM-5.4, which repeatedly runs layers 27–54 of the GLM-5 base model to increase effective computational depth through weight reuse while adding vision capabilities. The model runs exactly two passes, each using token-dependent gating to control the magnitude of updates, while reusing the sparse key-value cache and attention indices to reduce additional overhead.

Why read this

AI score 65

A detailed breakdown of the Loop Transformer's layer looping, gating, and caching design helps explain the implementation approach and cost of increasing computational depth.

Topics

Tags

Quoted post

Z.ai

@Zai_org

Introducing GLM-5.4: Generalized Coding with Our First Loop Transformer. - Loops existing layers in the GLM-5 base model for deeper reasoning - Pushes beyond traditional coding to video, games, 3D shaders, and CAD modeling - Adds vision capabilities for stronger visual coding API access will open after safety evaluation. Model weights will be released responsibly. Tech Blog: http://z.ai/blog/glm-5.4

View original

Introducing GLM-5.4: Generalized Coding with Our First Loop Transformer. - Loops existing layers in the GLM-5 base model for deeper reasoning - Pushes beyond traditional coding to video, games, 3D shaders, and CAD modeling - Adds vision capabilities for stronger visual coding API access will open after safety evaluation. Model weights will be released responsibly. Tech Blog: http://z.ai/blog/glm-5.4

View original post

Body · AI translation

Zhipu’s newly released GLM-5.4 introduces a core change called Loop Transformer: it reuses the weights of existing network layers to increase the model’s internal computational depth. It also adds vision capabilities, enabling the model to use code to complete more creative and engineering tasks, such as the videos, games, and CAD projects that have recently gone viral on X.

Let’s focus on Loop Transformer: it provides an upgrade path for existing large models to increase computational depth. It is the network layers that are looped—not the process of asking the model the same question again!

GLM-5.4 was further trained on the GLM-5 base model. Its 28 middle layers, layers 27 through 54, are run for two passes. The second pass uses the same set of weights to continue processing the hidden states from the first pass. This increases the effective depth without requiring an entire duplicate set of parameters. Of course, the additional pass still incurs a computational cost.

To maintain stability, Zhipu configured separate token-dependent gates for the two passes to control the magnitude of updates: the first pass focuses on establishing context, while the second refines it further. The cache design reuses the sparse key-value cache selected during the first pass, retains a local sliding window for the second pass, and reuses attention indices to reduce additional overhead.

An important distinction is that the number of passes is currently fixed at two; what is dynamically adjusted is the magnitude of the updates. Allowing difficult tokens to automatically receive additional computation passes remains a direction for future research.

Source

Shao Meng