Welcome.AI
    Skip to content
    Article

    Z.ai’s GLM-5.4 Reuses Layers to Boost AI Reasoning Depth

    GLM-5.4 takes an architectural route to greater capability: it runs 28 layers twice rather than simply adding parameters. Z.ai has made it available through its own products, while API access and open weights are still pending.

    venturebeat.com•November 24, 2026•3 min read

    Key Facts

    • GLM-5.4 reuses 28 layers twice, adding compute depth without parameters—a potential efficiency edge.
    • On a 30B test model, looping used 10% more training compute yet improved MMLU-Pro 15% and GPQA-Diamond 12%.
    • Those gains are not validated on GLM-5.4 itself; unclear win-rate methods and absent coding scores weaken proof of competitiveness.
    • KingBench testing exposed a speed gap: GLM-5.4 took 431 minutes and 1,128 steps versus Neon’s 109 minutes and 244.
    • Vision, video and a 1M-token context broaden use cases, but API pricing and open-weight timing remain unknown.

    Summary

    Z.ai has released GLM-5.4, a flagship model that runs the same 28 layers twice to increase computational depth without adding parameters. The design targets complex, multistep work such as software engineering, cybersecurity, 3D modeling and physical control. For business leaders, the launch signals a push to improve model capability through architecture—not just by scaling parameter counts—while leaving important questions about performance, speed and cost unresolved.

    GLM-5.4 is Z.ai’s first flagship built on a Loop Transformer. Conventional Transformers process each layer once; GLM-5.4 sends intermediate representations through the same layers for a second pass. Z.ai adapted the 750B-scale model from its pre-trained GLM-5 base through continued training. The approach has roots in the 2018 Universal Transformer, and Thinking Machines Lab used a looped Transformer in Inkling 2 Mini, released last week.

    The extra pass creates deployment costs of its own. Z.ai says it uses per-token gates to control how much each iteration changes the model’s internal representations, reuses the first pass’s sparse key-value cache and limits extra storage to a sliding window, and carries over attention indices rather than calculating them again. These choices aim to capture more reasoning capacity without paying the full memory and computation costs of duplicating the model’s machinery.

    The evidence for GLM-5.4’s gains is less conclusive than the architecture’s ambition. Z.ai says the model reaches intelligence comparable to models with 2T–3T parameters, but has not explained the basis for that comparison. Its controlled results come from a separate 30B test model: with about 10% more training compute than a non-looped baseline of the same size, the looped version improved on math, scientific reasoning and long-context tasks. Z.ai reported average output reductions of about 15% on MMLU-Pro and 12% on GPQA-Diamond. Those figures do not measure GLM-5.4 itself.

    Early user reports point to a possible niche in review and security work, rather than fast, general-purpose coding. On AICodeKing’s KingBench 4 coding test, GLM-5.4 ranked seventh and took 431 minutes at maximum reasoning effort, versus 109 minutes for Google’s Gemini 4 Neon. It used 1,128 steps, compared with Neon’s 244. AICodeKing praised its bug-finding and security-review potential; another tester said it completed a multistep remote-code-execution chain in a private lab. Others criticized its speed, reasoning overhead and perceived gap to Opus 5.5. Z.ai has not published coding benchmark scores, and its win-rate chart does not explain its methodology.

    The product adds vision and accepts text, image, video and file inputs, with a 1M-token context window and maximum output of 128K tokens. It is available through Z.ai’s GLM Coding Plan, ZCode and Z.ai Chat; weekly-plan users receive a quota 1.5 times GLM-5.3’s. API access is coming after a security assessment, while open weights are planned after safety hardening, with no date or license announced.

    The next test is whether Z.ai can turn architectural efficiency into a dependable product advantage. If GLM-5.4’s second pass improves difficult engineering and security tasks enough to justify slower execution, it could complement faster models in review workflows; if not, competitors can adopt similar layer reuse while retaining the speed advantage. API pricing, independent coding results and the eventual open-weight release will determine whether developers can assess that trade-off at scale.

    Entities Mentioned

    Companies

    Z.ai
    Google

    Products

    GLM-5.4
    GLM-5.3
    Inkling 2 Mini
    Gemini 4 Neon
    Opus 5.5
    GLM Coding Plan
    ZCode
    Z.ai Chat
    KingBench 4

    Technologies

    Loop Transformer
    Universal Transformer
    hybrid KV cache
    sparse attention index reuse
    gated progressive updates
    remote code execution

    People

    AICodeKing
    Migel Tissera
    Loktar
    Darek Gusto

    Organizations

    Thinking Machines Lab
    Reddit
    r/LocalLLaMA

    Key Concepts

    GLM-5.4 reuses the same 28 layers twice to increase computational depth without adding parameters.
    The model targets Generalized Coding, applying code to engineering and design as well as software development.
    Per-token gates, a hybrid KV cache, and reused sparse attention indices are intended to balance performance and deployment costs.
    Reported benchmark gains come primarily from a 30B test model, not GLM-5.4 itself.
    Z.ai claims intelligence comparable to 2T–3T parameter models but does not explain the comparison methodology.
    Early testers praised code review and security testing but criticized speed and performance relative to competitors.
    GLM-5.4 supports text, image, video, and file inputs, with a 1M-token context window and 128K-token maximum output.
    API access and open weights are planned but have no announced release dates; open weights depend on safety hardening.

    Definitions

    Loop Transformer
    A transformer architecture that sends intermediate representations through the same layers multiple times rather than adding new layers. This increases computation per token without increasing the model's parameter count.
    Generalized Coding
    Z.ai's term for applying code to engineering and design tasks, such as mechanical design and 3D modeling, in addition to software development.
    Gated progressive updates
    A mechanism that uses per-token gates to control how much internal representations change during each loop iteration.
    Hybrid KV cache
    A caching approach that reuses the first pass's sparse key-value cache and stores only a sliding window of additional information for the second pass.
    Sparse attention index reuse
    A method in which the second loop reuses attention indices computed during the first loop, avoiding another indexing pass.

    Use Cases

    • →Software engineering and complex coding tasks
    • →Code review and finding bugs
    • →Cybersecurity testing and identifying vulnerabilities
    • →Mechanical design and 3D modeling
    • →Long-chain reasoning in scientific and mathematical tasks
    • →Physical control tasks requiring multi-step reasoning

    Frequently Asked Questions

    What is the main architectural change in GLM-5.4?

    GLM-5.4 runs the same 28 layers twice, reusing intermediate representations instead of adding more layers. This increases computational depth without adding parameters.

    What kinds of tasks is GLM-5.4 designed for?

    It targets software engineering, cybersecurity, and what Z.ai calls Generalized Coding, which includes engineering and design work such as mechanical design and 3D modeling. Z.ai also describes long-chain reasoning and physical control as target areas.

    What evidence supports GLM-5.4's performance claims?

    The article says Z.ai's main controlled results come from a separate 30B test model, not GLM-5.4 itself. Z.ai reports gains in math, scientific reasoning, and long-context tasks, but its broader comparison to 2T–3T parameter models lacks an explained methodology.

    Where can users access GLM-5.4, and what are its input limits?

    It is available through the GLM Coding Plan, ZCode, and Z.ai Chat. Z.ai's documentation says it accepts text, images, video, and files, has a 1M-token context window, and supports outputs up to 128K tokens.

    When will API access and open weights be available?

    Z.ai says API access is coming after a security assessment, but has not announced a date or general API pricing. Open weights are planned after safety hardening, with no release date or license specified.

    Where AI Leaders Stay Informed

    The latest AI intelligence, case studies, and research — delivered to your inbox every week.

    Free to read. Unsubscribe anytime.