Z.ai Launches GLM-5.4 With Loop Transformer for Visual Coding Agents and 3D Tasks
The model repeats 28 GLM-5 layers, adding internal depth as Coding Plan access begins before the public API.

Z.ai, the international brand of China's Zhipu AI, introduced GLM-5.4 on November 23, 2026, bringing a new Loop Transformer architecture and vision-enabled coding to its developer subscription offering. The release's consequential experiment is not simply a better code generator. It is a test of whether reusing a neural network's layers can buy additional reasoning depth without growing the stored model at the same rate—and whether that computation can power agents that inspect the visual results of their own code.
GLM-5.4 is available to GLM Coding Plan users, with supported clients able to select the model identifier glm-5.4. The company highlights vision support and a 50% higher weekly allowance for eligible subscribers compared with GLM-5.3. Some client configurations advertise a one-million-token context option, but the supported limit and conditions should be checked in the latest provider documentation. Availability through a subscription is not equivalent to unrestricted public API access: the company says broader API access will follow safety evaluation and open weights will come after additional safeguards.
The launch arrives amid an increasingly demanding market for coding agents. Developers now expect models not only to produce a plausible function but also to navigate large repositories, run tests, inspect screenshots, correct interface defects, and preserve behavior while changing legacy systems. GLM-5.4's pitch is that the same coding substrate can describe software interfaces, videos, three-dimensional geometry, interactive simulations and CAD designs. That broad category is what Z.ai calls generalized coding, rather than a standardized benchmark discipline.
GLM-5.4's Loop Transformer Trades Repeated Computation for Effective Depth
A conventional Transformer sends an input through a stack of parameterized layers. Each layer normally applies its learned operations once as information advances toward an output. Increasing the number of separately parameterized layers can increase capacity, but also increases the weights that must be trained, stored, loaded and served. A looped architecture changes that relationship: it applies some existing layers multiple times, sharing their parameters between passes. The effective computational path grows even when the number of distinct parameter matrices does not.
Z.ai says GLM-5.4 takes 28 layers of its GLM-5 base model and runs them for two iterations. This should not be described as doubling intelligence, doubling the parameter count or reducing inference cost by half. Executing a layer twice still consumes arithmetic and time; the attraction is getting more sequential computation from weights already resident in memory. The exact payoff depends on how attention, intermediate state and caching are implemented, and on whether the added computation improves the task being measured.
The approach has a research lineage. The Universal Transformer proposed recurrent refinement of representations in 2018, while subsequent work investigated adaptive computation and how much reasoning can occur inside a fixed parameter budget. The concept has not been universally superior to conventional depth scaling. A recurrent design can introduce optimization difficulty, longer critical paths and extra inference latency. Z.ai acknowledges that models built with looping from scratch can underperform conventional alternatives at comparable compute.
Rather than starting from an empty network, Z.ai says it converted a pretrained base through continued training. Its reported experiments progressed through approximately 1-billion-, 4-billion-, 30-billion- and 750-billion-parameter model scales. In the 30-billion-scale ablation, the company reports using around 10% additional training compute and observing improvements particularly on mathematical reasoning, science and long-context problems. These observations are developer-reported research results, not an independent measurement of production GLM-5.4 against competing flagship systems.
Attention state is central to the economics. If each repeated pass reconstructed a full global attention cache, increased computation could translate into prohibitive memory traffic. Z.ai describes reusing attention indices and cache information from the first iteration while adding a limited sliding-window component for the second. The engineering hypothesis is that internal iterative refinement can improve problem solving without paying the full price of a second independent stack. Public implementation details and reproducible serving traces will determine how completely that hypothesis holds in practice.
A second distinction is between internal depth and visible reasoning tokens. A model can spend compute within network layers without producing a longer written chain of thought. Z.ai says selected reasoning evaluations produced shorter average outputs—roughly 10% to 14% on some tests—even as the looped network performed better. Shorter answers alone do not prove better reasoning efficiency: output style, stopping conditions and task selection matter. But the claim raises a testable possibility that future inference systems may divide their reasoning budget between repeated internal computation and autoregressive token generation.
Read more: How GLM-5.3-Flash changed Z.ai’s model design
Visual Feedback Turns Code Generation Into an Inspect-and-Repair Process
A Chinese-language hands-on account reviewed for this article reports a demanding Three.js exercise: build an explorable hot-pot restaurant from a 450-square-meter unfinished space while preserving structural columns, fixed doors, windows and a 2.6-meter central corridor. The request also required camera-matched transitions between unfinished and furnished states. Such constraints expose a practical weakness of text-only coding agents. Source code can parse correctly even when a door is obstructed, an aisle is too narrow, or an object appears to intersect a wall.
According to the tester, GLM-5.4 used rendered previews and screenshots to locate and correct visual defects, including a wooden screen across a private-room doorway and a mismatch in the orientation of a divided hot-pot vessel. The author reports that the resulting browser scene allowed camera movement and before-and-after comparisons. The author also reports that an earlier GLM-5.3 run with the same room constraints delivered a less complete visual presentation. These are useful qualitative observations, but the images, assets, prompts and intermediate runs would need to be published for an outside evaluator to reproduce the comparison.
The lesson is more precise than saying the new model has superior spatial reasoning. Screenshot feedback creates an additional measurement channel. A model can generate Three.js geometry, render it, examine the pixels, compare them with the user’s spatial constraints, then revise code. This resembles the compile-test-debug cycle in conventional software engineering, extended to visual artifacts. The relevant capability is an agent loop connecting code edits, browser execution and visual judgment; final quality cannot be attributed to model weights alone without controlling the surrounding tools.
A second restaurant prototype in the same account tested three interactive actions: a customer opening doors and walking to a table, a character consuming watermelon slices selected directly in a 3D scene, and an arrow-tossing game with adjustable direction and force. The tester reports synchronized inventory counts, motion and restart states, and a three-attempt scoring sequence. These cases are best read as proof-of-concept coverage of geometry, state management and input handling, not proof that the model can produce a commercially polished game or physically accurate simulation. The author explicitly described the animations and physics as simplified.
The distinction matters commercially. Architects, product designers, educators and game prototypers do not merely need a convincing screenshot; they need editable, geometrically coherent, interactive artifacts. The output must survive camera changes, user input and revisions. Successful deployment would require automated checks for object intersections, consistent world coordinates, reliable collision behavior and reproducible renders, with human review for any safety-critical geometry or construction decisions. A model that writes attractive code without validating those invariants is still unsuitable as an autonomous design authority.
A Legacy Archive Test Offers a More Concrete Engineering Signal
Visual demos attract attention, but existing codebases impose a harder constraint: improve behavior without losing data. The hands-on account describes a South Asia daily-news archive covering December 2022 through November 19, 2026, with 1,428 issues and 9,942 indexed items. The old interface reportedly mixed news and commentary in long search lists, demanded manual date entry, required hand-copying citations, and consumed much of a phone's first screen with filters. This is a plausible modernization problem familiar to research teams with years of accumulated data.
The author says GLM-5.4 revised the frontend into separate news and commentary columns, added synchronized month selection, detail views, a citation basket and a Markdown export. On a search for Bangladesh, the prototype reportedly preserved 1,035 results while dividing them into 775 news entries and 260 commentaries. Selecting March 2023 narrowed the same topic to seven news items and two commentaries. Compared with manually filtering and recording sources, that is a substantive workflow improvement if the results are indeed consistent with the original records.
The more significant reported work was on retrieval. Rather than materializing extensive details before slicing a page, the revised backend selected the relevant page of identifiers and fetched corresponding detail afterward. It also introduced a derived inverted index for short two-character searches. These are familiar information-retrieval optimizations, not a new database algorithm. Their importance lies in whether an AI coding agent can apply them correctly within an unfamiliar legacy application, preserve ordering, and avoid subtle changes in API responses.
On the author's local machine, the default listing reportedly fell from 28.36 milliseconds to 1.43 milliseconds; a search for Bhutan fell from 57.40 to 1.99 milliseconds; and an India query fell from 57.50 to 12.88 milliseconds. The short-query index reportedly required approximately 19 seconds to build and occupied around 30 MiB. The tester also reported comparing full JSON responses across 49 request scenarios with identical results. Those are unusually specific measurements for an anecdotal model test, but they remain self-reported, local and sensitive to caching, hardware, database state and workload composition.
These figures should not be generalized into a claim that GLM-5.4 makes backends twenty or thirty times faster. The claimed speedup is an outcome of the particular code changes, indexes and application architecture produced during that exercise. A conventional engineer could make similar changes; a different model could also arrive at them with enough iterations. The model-specific question is how reliably the assistant identifies the bottleneck, writes correct changes, tests equivalence and preserves behavior with limited human intervention.
The usability comparison has the same caveat. In a 390-by-844-pixel viewport, the author says the revised layout saved 362 pixels at the top and exposed two result headlines without scrolling, whereas the previous interface exposed none. On desktop, visible titles reportedly rose from two to twelve. Another GLM-5.3 comparison reportedly retained a more intrusive mobile filtering form on its first pass. That evidence supports an interesting hypothesis about UI judgment, but a controlled comparison needs the same initial files, tools, task budget, reviewer and stopping rule—not simply a preferred final screenshot versus an earlier attempt.
The Model and the Agent Harness Must Be Evaluated Separately
These cases suggest that GLM-5.4 may be strongest when it can observe a concrete artifact and iterate. They do not isolate the gain from Loop Transformer architecture. Several things changed at once: model generation, vision support, prompting, number of tool calls and possibly available visual feedback. When a model can read its own screenshot, it can repair problems that a text-only model never had a chance to observe. That comparison answers a useful product question—what can the whole workflow accomplish?—but not a clean architecture question—how much did the looped layers contribute?
For engineering buyers, both answers matter. A practical acceptance test should separate first-pass correctness from iterative correctness. Record the initial patch; the number and type of tool calls; wall-clock time; input, cached-input and output tokens; the amount of human guidance; test pass rates; and final usability. For visual tasks, preserve screenshots from a fixed set of camera positions. For repository work, use unit, integration and differential tests against the unchanged application. For long tasks, record the point at which the agent begins repeating failed approaches or making unrelated edits.
Security deserves equal attention. Agents that execute code, use browsers and operate against internal repositories can encounter malicious instructions in retrieved webpages or files. They can also accidentally expose credentials or modify data while trying to improve performance. Deployment should therefore use isolated workspaces, narrowly scoped credentials, approval gates for destructive commands, outbound-network controls, audit logs and rollback points. The more generalized the coding agent, the broader the operating environment it may touch.
GLM-5.4 Enters a Competitive Market Without a Clear Independent Ranking
GLM-5.4's immediate competitors include proprietary coding and agentic models from Anthropic, OpenAI and Google, alongside open-weight or openly distributed alternatives from DeepSeek, Moonshot AI and other Chinese laboratories. A fair selection depends on the task. Repository repair should prioritize software-engineering pass rates and reproducibility; browser agents should be measured on visual interaction and recovery; CAD or 3D workflows need geometric checks and artifact export; enterprise buyers must assess licensing, data handling, throughput and total cost. A single model leaderboard cannot settle all those dimensions.
Z.ai's prior GLM-5.3 emphasized coding and cybersecurity, while its GLM-5.3-Flash demonstrated an alternative route to efficiency through a smaller active-parameter footprint and hybrid attention. GLM-5.4 explores a different axis: how many computations the system can extract from a given parameter set by running layers repeatedly. These strategies are not mutually exclusive. Future systems could combine sparse expert routing, optimized attention and recurrent depth, but whether that mix reduces cost at a given accuracy remains an empirical question.
Z.ai's official launch materials describe a model operating around the 750-billion-parameter scale and report promising loop-scaling experiments; they do not establish that GLM-5.4 is equivalent to a two- or three-trillion-parameter competitor on a matched independent evaluation. The company's statement about reasoning gains should be interpreted as a research claim until independently controlled evaluations of coding, vision, long-horizon operation and latency become available. As of November 23, the reporting reviewed for this article had not established a comprehensive independent GLM-5.4 flagship scorecard.
There is also a pricing and serving gap. Coding Plan subscribers can test the release immediately, but subscription allowances do not reveal a sustainable per-request inference price or the memory and accelerator configuration needed for self-hosting. Even if parameter reuse reduces the stored weights needed for a given effective depth, repeated layer execution can increase latency and compute per generated token. Z.ai has cited throughput reaching up to 200 output tokens per second in off-peak conditions and 70–80 during peak load; these are provider-reported figures rather than latency measurements under independent, standardized load.
The Next Proof Point Is Cost per Successful End-to-End Task
GLM-5.4 also illustrates a shift in what developers should demand from model releases. A fast response with valid-looking code is no longer enough. The valuable outcome is an end-to-end artifact: a working application, a faithful migration, a visual scene that respects constraints or a reproducibly corrected bug. In that setting, the relevant economic metric is cost per successful task, not just token price. A system that spends additional compute on a reliable repair may be cheaper overall than one that fails quickly and requires repeated human rescue.
The broader implication of Loop Transformer is similarly conditional. Reusing parameters could make reasoning capacity more adjustable without requiring proportionate growth in weight storage. It could also produce longer computational paths that hurt responsiveness, especially for interactive agents. The balance depends on layer scheduling, cache reuse, training quality, workload characteristics and serving hardware. A precise assessment will require model-card details, independently reproduced ablations and controlled tests with full latency and token-accounting disclosure.
The November 23 release is therefore best understood as an architectural and workflow experiment with immediate developer access, not a settled victory in the foundation-model race. Z.ai has demonstrated a coherent direction: combine reusable computational depth with vision and tools that let agents inspect what their code actually does. The next decisive milestone will be whether its promised API and weight releases allow outsiders to reproduce those gains—and show they remain worthwhile after the extra inference computation is priced in.



