[KongchangAI]
· 2 min read· 1,452 words

GLM 5.4 Hands-On: Loop Transformer Architecture Debuts, Performance Comes with a Cost

GLM 5.4 Hands-On: Loop Transformer Architecture Debuts, Performance Comes with a Cost

GLM 5.4 debuts Loop Transformer architecture—better parameter efficiency, but max mode thinks too long and limits practicality.

GLM 5.4 is the first public model to explicitly adopt a Loop Transformer architecture, iterating the same layers repeatedly to boost parameter efficiency and intelligence density at the cost of higher per-token compute and lower output speed. The blogger positions it as a 750B-parameter-class model, with everyday coding ability close to DeepSeek V4.1 Flash; KV cache and architectural improvements make it save tokens on reasoning-heavy tasks like bug fixing. But in testing, max settings produced extremely long thinking—generating a simple game took over an hour, far slower than Gemini 4 Neon's 5–10 minutes and Opus 5.5's 30 minutes. No official benchmark data has been released, and weights are not yet open-sourced. The blogger sees it as a valuable technical exploration suited to local and private scenarios, but not frontier AI; for productivity, mature commercial subscriptions are still recommended, and annual subscriptions should be avoided.

Zhipu AI's latest release, GLM 5.4, has drawn widespread attention from the community—not only for its performance but also because it is the first public model to explicitly adopt a Loop Transformer architecture. A YouTube tech blogger shared an in-depth hands-on experience in a recent video, offering a rather mixed verdict.

What Is a Loop Transformer?

According to the blogger, a traditional Transformer architecture is like handing a document to dozens of people to proofread one by one, each applying their own skills independently; a Loop Transformer, by contrast, is like having the same person repeatedly review the same document, digging deeper into the details over and over again.

The core advantage of this architecture is: higher intelligence density with fewer weights. But the cost is obvious too—each token consumes more compute, because tokens must loop through the Transformer multiple times internally.

The blogger further analyzed that this characteristic makes Loop Transformers more suitable for personal device scenarios, since compute resources can accumulate over time—users are willing to wait a few extra seconds to get more compute. Traditional Transformers, by contrast, have higher memory requirements and are better suited to data centers and conventional large language models.

According to the blogger, GLM 5.4 loops the 28 layers of the GLM 5 base model through two iterations. However, the official blog disclosed no benchmark data whatsoever, which is unusual for a model release.

Screenshot of the model's reasoning process

Loop Transformer is a class of architecture that repeatedly executes the same set of Transformer layers (or a subset of them) multiple times at inference time, essentially an approach based on weight sharing and recurrent depth. It shares intellectual lineage with the Universal Transformer, ALBERT's cross-layer parameter sharing, and recent work by Geiping et al. on "Deep Thinking."

In a standard Transformer, each layer has independent parameters, and increasing depth linearly drives up parameter count and memory footprint; a recurrent architecture instead lets a shallower network iterate repeatedly in latent space—essentially trading "time" for "depth." This has two direct consequences: first, the parameter count is significantly reduced, making model weights smaller and easier to deploy on edge devices; second, FLOPs per token rise, since each token must pass through the same set of layers multiple times, which lowers throughput (tokens/s) and increases latency. This also explains the phenomenon mentioned in the article—recurrent architectures prioritize "reasoning depth per token" rather than raw output speed.

Performance: Fine for Everyday Coding, but Speed Is a Concern

The blogger positions GLM 5.4 as a 750-billion-parameter-class model, slightly larger than DeepSeekAd V4.1 Flash. Official data shows the model can reach 200 tokens per second during off-peak hours and maintains 70 to 80 tokens per second under peak load.

In actual testing, the blogger asked GLM 5.4 to generate a game similar to Mario Forever as a benchmark. The results were concerning:

  • Under the max setting, the model's thinking time is extremely long. The blogger showed several extremely long reasoning traces, one of which ran continuously for over 11 minutes, followed by multiple additional multi-minute reasoning stretches. The entire process continued for over an hour without completion.
  • In a comparison test, Gemini 4 Neon completed a similar task in 5 to 10 minutes, with quite impressive game visuals, smooth character animation, and strong level playability.
  • Opus 5.5 remained the strongest performer, generating a game in 30 minutes that almost perfectly recreated the original experience.

The blogger stated bluntly: "This may be the only part that left me helpless—I just kept waiting for it to finish recording."

He also noted, however, that under the max setting GLM 5.4's overthinking problem stands in sharp contrast to DeepSeek—the latter responds quickly under max settings, without such lengthy reasoning processes.

Game generation comparison

tokens per second (tokens/s) is a common metric for measuring LLM inference throughput, referring to how many tokens a model can generate per second. It is typically constrained by two factors: first, memory bandwidth—during autoregressive decoding, every generated token requires reading all weights from GPU memory once, a classic memory-bound scenario; second, compute volume—the more layers and loop iterations each token passes through, the greater the compute consumption.

For traditional Transformers, tokens/s basically reflects perceived user speed; but for Loop Transformers, this metric becomes "distorted"—because a single token may already have undergone multiple rounds of iterative reasoning internally, and a low output token count does not mean little work was done. Therefore, a more reasonable perspective for evaluating such models is to look at "total time and total tokens required to complete a task," rather than raw tokens per second. The blogger's point that this metric has less meaning for recurrent architectures is precisely for this reason.

Architectural Improvements and KV Cache Optimization

The blogger mentioned that GLM 5.4 made several improvements to the KV cache, along with adjustments to the Transformer architecture. Based on officially presented data, the new architecture improves scores while reducing token consumption, because the Loop Transformer completes more reasoning in latent space and needs fewer output tokens.

This characteristic offers clear advantages in tasks requiring extensive reasoning, such as bug fixing and complex debugging. But in scenarios requiring large numbers of output tokens—such as generating an HTML file for a marketing website—the advantage is less pronounced.

The blogger also observed that because each token consumes more compute, the tokens-per-second metric has less meaning for recurrent architectures. The model may complete tasks comparable to traditional models while outputting fewer tokens.

KV cache (Key-Value Cache) is a key optimization in autoregressive decoding: when generating each new token, the model needs to perform attention computation with the Keys and Values of all previous tokens; without caching, it would have to repeatedly recompute the K/V for historical positions, with computation growing quadratically with sequence length. Caching stores these intermediate results, so each decoding step only computes the K/V of the new token, reducing complexity from O(n²) to O(n).

The cost is memory footprint: KV cache size is roughly 2 × layers × heads × head dimension × sequence length × precision bytes, and it easily becomes a memory bottleneck with long contexts. What makes Loop Transformers special is that layers are reused; in a naive implementation, each loop iteration produces independent K/V, potentially multiplying cache overhead. Such architectures therefore usually require dedicated design—for example, sharing the same KV across multiple loop iterations, caching only the final iteration's state, or using paged/quantized caching. The article's mention that GLM 5.4 made several improvements to the KV cache is precisely to keep the recurrent architecture usable over long sequences.

Pricing Strategy and Usage Recommendations

GLM 5.4 is currently available only through Zhipu's coding plan and its own platform; the API and model weights are not yet open. The company says it will responsibly open-source the weights after completing necessary safety hardening.

The blogger used the entry-level subscription plan but explicitly advises users against choosing annual subscriptions—whether from Zhipu, Anthropic, or OpenAI. The reason is that AI models iterate too quickly, and monthly payment offers more flexibility.

He specifically noted that some platforms have recently launched highly attractive subscription discounts, and this uncertainty makes long-term commitments seem risky.

The Value Proposition of Open-Weight Models

In his conclusion, the blogger offered a fairly balanced assessment:

GLM 5.4 is a good model, and open-weight models have their own unique value. They allow private conversations, and uncensored models can play a role in scenarios like cybersecurity. But they are not frontier AI.

For users focused on productivity, the blogger still recommends mature commercial subscription services (such as Claude Code or OpenAI). He believes a $20-per-month subscription is sufficient for most people.

For Zhipu fans or users needing localized deployment, GLM 5.4 can serve as an everyday tool, but he recommends avoiding complex tasks under the max setting—"best to give it a whole night."

UI screenshot

Technical Highlights and Shortcomings

Highlights:

  • First public confirmation of a Loop Transformer architecture
  • KV cache optimization brings improved token efficiency
  • Demonstrated a unique ability to autonomously test during game generation, even recreating the original game's startup screen

Shortcomings:

  • Thinking time under the max setting is excessively long, limiting practicality
  • No official benchmark data, making horizontal comparison difficult
  • Clear gap in game generation quality compared with Gemini 4 Neon and Opus 5.5

The blogger finally reminded viewers that his product monitoring tool and AI watermark removal tool are both still operating, but that this segment is unrelated to the video's topic and is sponsor information.

Overall, GLM 5.4 is a valuable technical exploration. The potential of Loop Transformers is worth watching, but the current version still has considerable room for improvement in inference efficiency and output quality.

#GLM 5.4#Loop Transformer#Zhipu AI#recurrent architecture#KV cache#LLM inference#open-weight models
Share:

Related articles