R408 · Infrastructure for agents at scale › Frontier model releases

Twenty-eight layers, twice: a shipped loop transformer, as described in its own documentation

Read the original

model-architectureinference-servingcontext-engineeringclaim-checkingvendor

What a shipped loop transformer's own documentation says — and the three things the explainers get wrong

Summary

Layer reuse has moved from papers into shipped models. A frontier coding model, GLM-5.4, is described by its publisher as a Loop Transformer that "reuses 28 layers of the GLM-5 base model across two iterations." That much is real and checkable. Almost everything else circulating about it — the parameter count, the effective depth, and the mechanism that keeps the loop stable — is either absent from the publisher's own pages or contradicted by them.

The interesting content is not the depth claim. It is three things the publisher states and nobody repeats: that the model is a retrofit because looped models trained from scratch still lose at equal compute; that looping shortens the output by 10–14% because reasoning moves inside the loop; and that the cost case rests on one sliding window of KV cache per extra loop rather than on parameter savings.

What the mechanism actually is

The general shape is the familiar one: a group of weight-shared layers runs for multiple iterations, each pass refining the hidden states the previous pass produced. A deeper effective network, no additional stored parameters.

The stabilization mechanism is where the shipped design departs from the textbook one. The academic looped-transformer design re-injects the original input before each pass, which keeps the prompt in view and bounds the growth of internal activations. This model does something else: it "adds independent per-token gates for each iteration" that write updates into the residual stream, introduced because "directly overwriting hidden states causes activation norms to blow up across iterations."

The gates are per token and per iteration, and their behaviour is learned rather than scheduled: the first pass writes conservatively with small gate values, the second opens up, and the gates "adjust step size dynamically based on token difficulty." So the model has a learned, per-token notion of how much the second pass should change — which is a softer version of adaptive compute than choosing a loop count, and it is doing real work.

This matters for anyone reasoning about looped architectures from the literature. Input re-injection and per-iteration gating solve the same problem (activation norms growing across passes) with different mechanisms and different side effects. Attributing the first to a model that uses the second is a common and consequential mistake, because the gating version gives the model a dial the re-injection version does not.

Three claims the secondary coverage gets wrong

The parameter count. The number "750B" appears in the source twice, and neither time is it the model's size. The publisher says it "validated the Loop architecture progressively across 1B, 4B, 30B, and 750B base models," under a heading about architectural modifications at 750B scale. That is the largest rung of a validation ladder. GLM-5.4's own total and active parameter counts are not documented anywhere on either page, and nor is whether it is a mixture-of-experts model — the architecture text mentions sparse attention, not experts.

The effective depth. No effective-depth figure is published. The strongest statement is "a deeper network without increasing the parameter count," and the pages do not say whether the 28 looped layers are the entire stack or a block inside a larger one. Twenty-eight run twice is fifty-six passes through layer weights, but that is arithmetic a reader does, not a number the publisher stands behind, and with no published total depth there is nothing to compare it to. The widely quoted framings that pair a specific layer count with a specific effective depth do not come from the publisher.

The intelligence comparison. The pages do claim "reaching intelligence levels comparable to 2T-3T parameter models." They give no baseline, no benchmark, and no methodology for it. As published it is unfalsifiable, and the viral version fuses it with the 750B validation figure to produce a sentence in which neither half means what it appears to.

The retrofit, which is the most informative admission

The model was not pre-trained as a loop transformer: "Instead of pre-training from scratch, we adapted an already pre-trained base model into a Loop Transformer through continued training." The stated reason is a straightforward negative result — "looped models trained from scratch still lag behind unshared models under the same pre-training compute budget."

Read plainly, that says layer reuse is not yet a competitive pre-training recipe. It is a competitive conversion applied to an existing checkpoint, bought with "a relatively small compute overhead." For anyone deciding whether to adopt the idea, this is the single most decision-relevant sentence on the page, and it is absent from every surfacing summary. It also reframes the architecture's trajectory: the question is not whether loops beat depth from scratch (the publisher says they do not), but how much a conversion recovers and how that scales.

The evidence, and its limits

The only controlled comparison described is an ablation at 30B: same architecture as the large base, "identical parameter counts and only ~10% more total training compute," looped versus non-looped, evaluated after 200K long-context supervised fine-tuning with thinking mode enabled. The largest gains are said to be in math, scientific reasoning and long-context tasks.

The limits are worth stating as plainly as the result. The benchmark names in that comparison appear only in a chart image, not in the text. The pages do not say who ran the evaluations. There is no technical report and no paper linked for an architecture change that is the model's entire headline. And the 30B ablation is two orders of magnitude below the deployed model, so the scaling of the benefit is asserted rather than shown — which the publisher partly concedes by listing as open work "how the returns of looping behave as both loop count and model size keep growing."

The two effects that make the economics work

Output length falls. "Average output length drops by 10–14%, mostly from shorter chains of thought" on reasoning benchmarks. This is the effect most worth internalizing: extra computation happens inside the loop, in hidden states, instead of being externalized as emitted reasoning tokens. A looped model can therefore be cheaper per answer at equal accuracy while being more expensive per token. Any cost comparison that prices tokens without measuring response length will get the sign of this wrong.

An extra loop is nearly free in cache. The cost argument is not about parameters at all — it is that "an extra loop only costs one sliding window of KV cache rather than a full context cache," with cross-loop sharing reusing the first pass's sparse KV and reusing its sparse indices at what the publisher calls zero indexing overhead. This is why the architecture is viable at a million-token context: the second pass does not duplicate the cache.

The counterweight: multi-pass looping "required close co-design between the model and our inference infrastructure," with fused kernels to cut intermediate memory traffic. This is not a drop-in change to a serving stack. Teams reading the architecture as a free depth multiplier should price the inference work.

Stated limitation

One failure mode is named, and it is the one the mechanism predicts: the model "tends to get caught in overly long 'marathon thinking' loops," with the publisher adding that the prolonged reflection does consistently improve accuracy beyond its parameter count. Note the shape of that sentence — the limitation and the benefit are the same behaviour seen from two sides, which means it is unlikely to be tunable away without giving up the gain.

Operational facts

Looped block28 layers of the base model
Iterations2, fixed; not exposed to callers
Context1M
Max output128K
Modalitiesvideo / image / text / file in, text out
Throughputup to 200 tok/s off-peak, 70–80 tok/s at peak
Accesscoding-plan subscribers; the model API "will be made available upon completion of the security assessment"
Weights, licence, pricing, release date, cutoffnot documented

Adaptive compute — "so harder tokens dynamically get more iterations" — is explicitly described as exploratory, not shipped. Treat per-token loop counts as a research direction, not a feature.

Review checklist

If you are evaluating a layer-reuse claim about any model:

The mechanism has been examined here before from the research side — a looped model trained to internalize what its own deeper passes prefer, with the finding that extra passes mainly redistribute probability among tokens that already rank highly after one pass — and from the small-model side, in an open-weight looped mixture-of-experts built to run locally. This note is the first from a shipped frontier model's own documentation, and the retrofit admission is the point where the three accounts disagree most usefully.

Sources

Connections

See R408 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.