Skip to main content
Abstract digital brain struggles with a tangled, overly long reasoning path, symbolizing Z.ai's GLM-5-4B model's difficulty.

Editorial illustration for Z.ai's GLM-5-4B Flagship Model Struggles With Overly Long Reasoning

GLM-5.4B Model Struggles With Extended Reasoning

• 4 min read

Z.ai has rolled out GLM-5.4, a 750-billion-parameter model that marks the company's first attempt at a loop transformer architecture, following a path OpenAI opened with GPT-6 Astra. Instead of running each of its 28 layers once per pass, the model loops that block twice, squeezing extra computational depth out of the network without adding a single new parameter. Z.ai says the trick lets GLM-5.4 match the output quality of models sitting in the 2-to-3-trillion-parameter range, despite its comparatively modest size.

The model isn't built from scratch. Z.ai retrained its GLM-5 base model, released back in February, into this new looped configuration, an approach the company says it favors because loop models trained from the ground up have historically underperformed standard architectures given the same compute budget. Z.ai is pitching the release as the opening move in what it calls "Generalized Coding," where code written by the model doesn't just solve problems but generates videos, games, and CAD files directly.

That extra depth, though, comes with a catch tied to how the model handles longer chains of reasoning once the second pass kicks in.

Following OpenAI, Z.ai is introducing GLM-5.4, its first large model built on a loop transformer. While standard language models use each layer once per pass, GLM-5.4 runs a block of shared layers multiple times, refining the intermediate results from the previous pass to make the network deeper without adding parameters.

Why this matters

GLM-5.4's 28-layers-run-twice trick is a cheap way to buy reasoning depth without the parameter bloat that usually comes with it, and the control gates, shared token cache, and sparse attention are a sensible answer to the obvious cost question. But Z.ai admitting the model gets stuck in overly long reasoning loops is the detail worth sitting with. Framing that as a feature, better accuracy through extended double-checking, is a convenient way to describe a model that sometimes doesn't know when to stop thinking.

For developers building on GLM-5.4's code-to-video, code-to-game, and code-to-CAD pipeline, that matters directly: latency and compute budgets get unpredictable when a model can wander into extended self-verification on arbitrary prompts. Z.ai's "Generalized Coding" pitch, code as the foundation layer for everything else, is ambitious, but it's also a bet that users will tolerate inconsistent response times for broader capability. Worth watching whether Z.ai publishes real numbers on how often this looping happens and under what conditions, because right now we only have the company's own characterization of its own weakness.

Common Questions Answered

What is the loop transformer architecture that Z.ai's GLM-5.4 uses?

GLM-5.4 uses a loop transformer architecture where its 28 layers are run twice per pass instead of just once, allowing the model to refine intermediate results without adding new parameters. This approach enables Z.ai to achieve computational depth similar to models with 2-to-3 trillion parameters while keeping GLM-5.4 at 750 billion parameters, making it a parameter-efficient solution for improved reasoning.

How does GLM-5.4's parameter efficiency compare to traditional large language models?

GLM-5.4 achieves output quality comparable to models with 2-to-3 trillion parameters despite only having 750 billion parameters, thanks to its loop transformer design that runs shared layers multiple times. This represents a significant efficiency gain, as the model avoids the parameter bloat typically associated with increasing computational depth.

What is the main limitation of GLM-5.4 mentioned in the article?

Z.ai has acknowledged that GLM-5.4 struggles with overly long reasoning loops, where the model gets stuck in extended reasoning processes. The company frames this limitation as a feature for better accuracy through extended double-checking, though this characterization may be a convenient way to describe a potential flaw in the model's reasoning behavior.

What architectural features does GLM-5.4 use to manage computational costs?

GLM-5.4 incorporates control gates, a shared token cache, and sparse attention mechanisms to address the computational cost concerns of running layers multiple times. These design choices work together to make the loop transformer approach economically viable while maintaining the model's performance benefits.

LIVE17:05Anthropic's Fortune 500 Reach Belies Its Tiny Revenue Share