What Looped Transformers Buy, from GLM-5.4 to the GPT-6 Astra Debate
Reading notes on:
- GLM-5.4: Toward Generalized Coding with Our First Loop Transformer
- GPT-6 Astra, Looped Transformers, and Hidden Reasoning
Z.ai turned part of its roughly 750B-parameter GLM-5 base into a loop. For each token, 28 middle layers run twice, and the second pass uses the same weights with a different hidden state. In a separate 30B ablation, adding the loop raised GPQA-Diamond from 47.58 to 56.26 while cutting average output by 2,473 tokens. Raschka’s article asks whether recurrent depth could also explain the behavior of GPT-6 Astra, whose architecture remains undisclosed. Together, the two pieces raise a practical question: what changes when a model spends more computation on each token, and what can we learn from the text it emits afterward? GLM-5.4 release · Original 30B ablation table · Raschka on Astra and recurrent depth
1. How GLM-5.4 runs the same layers twice
A transformer can do more serial work by giving its hidden state another pass through an existing stack. In GLM-5.4, the loop accounts for 56 layer applications per token using the weights of 28 distinct layers. The rest of the model still has work to do, and applying a block again consumes compute. The saving is in distinct weights relative to adding another 28 separately parameterized layers. Z.ai added the loop to a pretrained base through continued training and reports testing the design at 1B, 4B, 30B, and 750B. Its rationale was to reuse an existing investment in pretraining and test whether the loop remained stable at each scale. GLM-5.4 architecture · Earlier notes on looped transformers
The gates control how much each pass writes. When Z.ai directly fed the full updated representation back through the middle stack, activation norms grew and later layers received inputs outside their expected range. GLM-5.4 learns a per-token gate for each pass to control the size of its residual update. Z.ai observed that the first pass generally writes more conservatively and the second writes more fully. Harder tokens can get a larger first-pass update. Both passes still run. The adaptation is in the size of the update. Z.ai on gated progressive updates
The cache preserves two views of recent context. Even with shared weight matrices, a layer can produce different keys and values when its input changes. A loop with independent caches would store both passes’ KV across the full context. GLM-5.4 instead lets the second pass attend to the first pass’s selected sparse KV and adds fresh second-pass KV for a sliding window. A recent token can be present in both sets, with two different representations. The extra persistent cache for the second pass therefore grows with the sliding window, which matters when the total context reaches 1M tokens. GLM-5.4 hybrid KV cache · Z.ai model specifications
The sparse index is a list of positions. The first pass’s indexer chooses which context positions the sparse attention path will read. Pass two reuses those indices, so it skips a second indexer run and still computes attention. Reusing the list of positions and reusing their stored first-pass KV are separate decisions. Z.ai reports similar results when recomputing the sparse indices. In GLM-5.3, IndexShare reused indices across layers. GLM-5.4’s design also reuses them across passes. GLM-5.4 sparse index reuse · GLM-5.3 IndexShare notes
2. What the 30B experiment buys for 10% more training compute
Z.ai compared two 30B models with the same parameter count. The looped variant used about 10% more total training compute. The team evaluated after 200K long-context supervised fine-tuning, with thinking mode enabled. The table compares the 30B variants. Z.ai’s flagship demonstrations are a separate kind of evidence. Z.ai release · Original ablation table
| Benchmark | Baseline score | With loop | Gain (points) | Change in average output |
|---|---|---|---|---|
| AIME25 | 19.17 | 30.42 | +11.3 | −635 tokens (−2%) |
| GPQA-Diamond | 47.58 | 56.26 | +8.7 | −2,473 tokens (−11.7%) |
| AA-LCR | 40.33 | 47.67 | +7.3 | −539 tokens (−9.7%) |
| MMLU-Pro | 71.65 | 75.05 | +3.4 | −863 tokens (−14.9%) |
| IFBench | 50.20 | 53.47 | +3.3 | −763 tokens (−13.0%) |
AIME25 had the biggest gain and the smallest percentage drop in output length. MMLU-Pro had one of the smallest gains and the largest percentage drop in length. Two averages, score and output length, tell us how each model behaved on a benchmark, but they cannot tell us which individual solutions got shorter or whether the same examples were answered correctly. A paired comparison on the common-correct questions would help separate shorter solutions from a change in which questions the model solves. Thinking Machines Lab used that control when it varied depth on the same Inkling research checkpoint and measured GPQA trace length. Z.ai benchmark data · Inkling 2 Mini pass-count experiments
A shorter output also has to pay for a slower token if the extra pass slows decoding. In a simple decode-only estimate, the looped version is faster when its fraction of the baseline tokens per second exceeds its fraction of the baseline output length. On GPQA-Diamond that break-even rate would be 88.3% of the baseline rate. On AIME25 it would be 98%. These thresholds come from the length changes in the table. End-to-end time also includes prefill, tool waits, and queueing. Z.ai reports up to 200 tokens/s off-peak and 70–80 at peak on its own GLM-5.4 service and credits kernel fusion alongside the cache and index design. Measuring the 30B variants under the same serving conditions would answer the latency question directly. Z.ai inference measurements
The evidence for generalized coding is of a different kind. Z.ai shows a FreeCAD model of a six-axis robot arm, a music video, and an interactive 3D scene. These examples illustrate the value of code as an interface to geometry, video, and simulation. The release also reports that the flagship can spend too long thinking. A model can shorten its output in a controlled ablation and still take a long time on an open-ended project with many tools and intermediate decisions. GLM-5.4 demos and limitations
3. What changes when the experiment holds a different budget fixed
Raschka uses Nanbeige4.2-3B to make the cost of depth concrete. Its 22 blocks run twice, for 44 applications. The team released separate KV caches after finding that full sharing reduced quality in its setup. GLM-5.4’s hybrid cache makes a different trade by sharing the longer-range context while computing fresh second-pass KV locally. Which positions retain the benefit of a distinct representation is a serving decision as well as an architectural one. Nanbeige4.2-3B architecture · GLM-5.4 hybrid KV cache
SMELT compares looped and unlooped mixture-of-experts models with approximately matched per-token FLOPs, distinct non-embedding parameters, and KV cache size. It makes the hidden states narrower to fund a second pass, adds experts to restore parameter capacity, and adjusts attention to match KV storage. Up to 54B non-embedding parameters, the fitted curves estimate 6.8–18.0% less training compute to reach the same validation loss over the studied range. That is a stronger control for compute than the GLM ablation, and it measures a different outcome at a different scale. Separately, Zhu et al. found that repeated blocks helped multi-step reasoning while memorization capacity changed little at fixed parameter count in their experiments. SMELT paper · SMELT scaling notes · Virtual logical depth experiments
The number of passes can also become a decision. The Universal Transformer explored learned per-position halting. Mixture-of-Recursions uses learned routers to choose a depth for each token or select which tokens continue at a given depth. Geiping et al. trained with varying loop counts and tested stopping a token when successive passes yielded similar next-token distributions. Those mechanisms vary how many times a token runs the stack. GLM-5.4’s gates vary how strongly a fixed pair of passes update the residual stream. Universal Transformers · Mixture-of-Recursions · Geiping et al. on recurrent depth
4. What Astra’s results say about the model and the harness
Raschka traces the assertion that Astra uses recurrent depth to reporting by The Information. OpenAI’s release and system card leave the layer layout unspecified. As Raschka notes, Jakub Pachocki’s public statement about the depth of Astra’s computation graph is compatible with both tied and untied layers. The published accuracy and token curves measure the behavior of a trained and deployed model. Establishing which layers share weights, or how much that sharing contributes, would require architectural disclosure or a controlled intervention. Raschka on the architecture reporting · OpenAI’s GPT-6 Astra release
Raschka found Astra particularly strong at graphical and computer-use tasks. OpenAI’s BenchCAD evaluation gives a concrete example connected to Z.ai’s CAD demo. The task asks models to reconstruct an object from multiple views by generating CAD code. With tools, OpenAI reports 95.9% geometric overlap for Astra and 83.3% for GPT-5.6 Sol in its comparison. In screenshot-driven computer use, the harness sends observations, executes mouse and keyboard actions, and reports the updated desktop. Both the model’s predictions and the harness’s choice of what to expose affect what the agent can do. OpenAI’s BenchCAD results · Raschka’s computer-use examples
OpenAI’s ARC-AGI-3 public-set experiment demonstrates the size of a harness effect on the same model. With retained reasoning and context compaction enabled, GPT-5.6 Sol at max effort went from 13.3% to 38.3% on that set and used roughly one-sixth as many output tokens. Previously, the interface discarded private reasoning between moves and dropped older context as the window filled. Retaining or compacting earlier work let Sol spend less of each turn reconstructing it. That improvement came from how the harness fed past work back to the model. A shared-depth loop acts earlier, during the forward pass that scores each token. OpenAI’s ARC-AGI-3 harness experiment · Multi-harness RL notes
5. What a shorter trace tells a monitor
There are three observables worth keeping apart. Layer applications count work inside a forward pass. Reasoning tokens are text the model emits to guide later tokens. A reasoning summary is an interface artifact that may show only part of that text. Weight sharing can change the first and may change the second. A provider controls what the interface shows. A shorter trace might reflect fewer false starts, a terser explanation, or a shift in how much work happens in hidden states. A chain of thought can also leave out factors that causally influenced the answer, even in a conventional model. Raschka on shorter traces · Turpin et al. on unfaithful explanations
OpenAI measured this question directly on Astra and Sol. Monitors given only written reasoning performed worse on Astra in aggregate, including across much of the overlapping trace-length range. OpenAI attributes much of the overall gap to shorter traces, with some residual gaps at matched lengths. A monitor given actions and outputs only did better on Astra in that evaluation, while the full-context monitor did worse over much of the measured output-length range. The system card also reports that Astra’s control over its traces increased during RL. It gives evidence about monitoring under specific conditions, while the architecture’s causal contribution remains unestablished. Astra aggregate monitorability findings · Astra system card, controllability discussion
The Full-bandwidth transformer study provides a useful training control. Its recurrence feeds a previous token’s last-layer state into the next token’s input. On MATH500, the base model produced shorter traces with latent feedback, but that length difference disappeared after instruction tuning. This recurrence crosses token positions, whereas GLM-5.4’s loop reprocesses a token within one forward pass. Both experiments show why the effects of architecture and subsequent training need separate measurements. Full-bandwidth transformer, Figure 6
For a looped model, three comparisons answer three questions. Match training compute and memory to test whether recurrence is a good architectural allocation. Match task accuracy and measure end-to-end latency to test whether the added depth saves time once token count and serving costs are included. Match trace length and score monitors against observed behavior to test what information remains available to oversight. GLM-5.4 gives us a concrete architecture and a useful fixed-parameter ablation. Astra gives us a case where benchmark capability, written reasoning length, and monitor performance can move in different directions.