2026-11-23 · ← News
GLM 5.4 makes 28 layers think twice
Z.ai turned GLM 5.4 into a Loop Transformer that runs a shared block of 28 layers twice without increasing parameter count. The architecture is more interesting than the benchmark superlatives, but access is currently limited to the Coding Plan and the weights remain closed.
The image could not be loaded.
Z.ai changed how GLM 5.4 uses its layers. A block of 28 layers from the 750 billion parameter base processes the hidden state twice, adding computational depth without adding parameters.
GLM 5.4 runs 28 layers through two passes
A Loop Transformer shares the same weights across repeated passes. The first builds global context and the second refines it. Z.ai added gates to control updates, partial KV cache sharing and reuse of sparse attention indices.
The company lists a 1 million token context and 128,000 maximum output tokens. In a controlled smaller model with equal parameter count, looping used about 10% more training compute and reduced visible reasoning output by 10 to 14% on selected benchmarks. These are vendor results, not an independent production measurement of GLM 5.4.
Compute moves from visible reasoning tokens into the model
The architecture offers another scaling path. Instead of adding unique weights, a model can reuse part of itself and spend more compute transforming the same representation. For agentic coding, the attractive possibility is deeper internal work without an equally long visible reasoning trace.
Z.ai did not invent shared depth. Its own post cites the 2018 Universal Transformer and newer recurrent depth research. The notable step is applying the idea at 750 billion parameters while preserving workable serving characteristics at a 1 million token context.
Two passes add compute and can produce marathon thinking
Equal parameter count does not mean equal inference cost. Every additional pass performs more work. Z.ai optimizes caching and claims up to 200 tokens per second off peak and 70 to 80 at peak, but those figures depend on its infrastructure.
The company also acknowledges a tendency toward excessively long reasoning. In a practical SVG test, Simon Willison found no obvious quality leap over GLM 5.3. One visual task cannot invalidate the architecture, but it usefully separates technical novelty from automatic improvement on every task.
Open weights and the regular API will reveal the loop's real price
GLM 5.4 is currently available to Coding Plan users. The regular Model API is promised after a security assessment, and Z.ai says weights will open only after safety hardening. Independent deployment, pricing and reproducible evals are therefore still missing.
The key signal will be quality relative to latency and compute cost on comparable hardware. Adaptive loop counts would be more consequential still, giving easy tokens one pass and difficult tokens more. That is where looping could stop being a fixed tax on every token.
Lilith's verdict
Z.ai did not add another floor. It sent the same elevator past 28 floors twice. The trick becomes smart when the ticket does not cost more than the view upstairs.