Introduction
The decoder in this task is fixed: a mixture-of-experts transformer whose weights, data, token count, optimizer and learning-rate schedule are given. What is open is how the blocks are called. A decoder can apply its blocks more than once, loop only a middle section, feed later states back to earlier layers or to later positions, and choose a training objective over the passes, all at the same parameter count and within a cap on training FLOPs per token. The question is which of these uses of extra compute buys the lowest held-out loss.
The field offers several answers, and they are the baselines here. Ouro loops the whole stack with an exit gate [1]. The Huginn-style sandwich keeps a prelude and a coda and loops a middle block with the input injected at every iteration [2]. HRM-Text runs two recurrences at different timescales [3]. T2MLR feeds middle-layer states forward in time [4], the Latent Recurrent Transformer feeds a mid-depth state into every layer [5], the Full-bandwidth Transformer feeds the top layer to the input at the next position [6], and DiscoLoop loops a continuous channel together with a decoded-embedding channel [7].
Two properties of this setting shape our design. First, the decoder's input embedding and its output projection are separate matrices, so a looped stream must carry the identity of the current token in input coordinates while it has to end in output coordinates. Second, the extra compute is spent on the same parameters, so any added mechanism must stay within a fraction of a percent of the decoder's parameters; a mechanism that reuses weights the decoder already has costs almost nothing.
Method
Our method has three parts: a whole-stack loop with a single readout, a read-in in readout coordinates, and pointer reads over readout codes.
A whole-stack loop with one readout
Let be the number of blocks and the number of passes. Every block runs times, in order, on one residual stream , and only the final state is read out. Before pass we add a learned pass embedding , initialised at zero, so that routers and gates can tell the passes apart:
There is no readout between passes and no loss on intermediate passes, so the loop adds no vocabulary-sized work. We use at every scale. The earlier passes recompute their activations in the backward pass, which keeps memory below that of a plain four-pass loop.
def plan(cfg):
"""(passes over the stack, trailing passes whose activations stay in memory).
Four passes at every depth: a block call has a fixed cost that does not shrink with the micro-batch, so
the number of block calls, not only the FLOPs, stays that of a four-iteration loop."""
passes = 4
return passes, min(passes, 3)Read-in: each token enters as its own readout column
Let be the decoder's output projection and the input token at position . We take the token's own row of , the vector by which the readout scores that token, and RMS-normalise it:
with a learned gain initialised at one. The stream starts from , where is the decoder's own embedding. The code is a side input: it is carried by the stream through every pass and subtracted again before the readout, so that it tells the blocks which token they are processing in the coordinates the readout uses, without being read out as a prediction of that token. This is a different channel from DiscoLoop's decoded embeddings [7], which feed back what the model predicts; ours feeds back what the input is.
Pointer reads: the block's own attention over readout codes
A large share of language-modelling loss sits on tokens that already occurred in the context. To predict them the decoder must turn an attention pattern into a vocabulary decision, and the readout codes make that direct. In selected blocks, after the block's normal attention and feed-forward step, the block's own queries and keys attend a second time, with the context tokens' unit codes as values, one 128-wide chunk per head. We use two slot definitions:
The first copies the attended token. The second pairs the key of position with token , so it copies what followed a matching state, a continuous cache. In both, the component along the query's own token is projected out in each head's chunk, , so the read cannot simply repeat the current token. Each read is scaled per head by a gate computed from the block's attention input , and per dimension by a gain that starts at zero, so training begins from the plain loop.
def _read_block(self, i, r, h, seq, unit):
"""Block i (as Block.forward) and its two pointer reads; returns (state, reads)."""
blk = self.backbone.blocks[i]
attn = blk.attn
a = R.attn_in(blk, h)
q, k, v = R.qkv(attn, a)
q, k = R.qk_finish(attn, q, k)
h = h + R.attn_out(attn, R.attend(attn, q, k, v, seq), v, a)
h = R.mlp_half(blk, h)[0]
B, S, D = h.shape
codes = unit.reshape(B, S, attn.n, attn.h)
own = (codes * codes).sum(-1, keepdim=True) + 1e-6
k_prev = torch.cat([torch.zeros_like(k[:, :1]), k[:, :-1]], dim=1)
k_prev = torch.where(R.segment_start_mask(seq)[..., None, None], torch.zeros_like(k_prev), k_prev)
reads = None
for m, keys in enumerate((k, k_prev)):
y = R.attend(attn, q, keys.repeat_interleave(attn.n // attn.m, dim=2), codes, seq)
y = y - ((y * codes).sum(-1, keepdim=True) / own) * codes
y = y * (2 * torch.sigmoid(a @ R.cdt(self.ptr_gate[r, m])))[..., None]
y = R.cdt(self.ptr_gain[r, m]) * y.reshape(B, S, D)
reads = y if reads is None else reads + y
return h, readsThe reads sit where the stream is closest to the readout. In the last pass, the last two blocks read, and their reads are added to the final state rather than to the stream. In the two other passes kept in memory, the last block reads and its read joins the stream, so later passes can use it. The final state is
which the fixed readout then scores.
def _states(self, tokens, seq, train):
bb = self.backbone
n = R.n_blocks(bb)
unit = R.rms_norm_np(R.cdt(bb.output_proj).t()[tokens])
code = R.cdt(self.readin) * unit
h = R.embed(bb, tokens) + code
reads = None
for k in range(self.passes):
h = h + R.cdt(self.pass_emb[k])
last = k == self.passes - 1
remat = train and not bb.remat and k < self.passes - self.keep and torch.is_grad_enabled()
for i in range(n):
if last and i >= n - self.readers:
h, y = self._read_block(i, i - (n - self.readers), h, seq, unit)
reads = y if reads is None else reads + y
elif i == n - 1 and k >= self.passes - self.keep:
h, y = self._read_block(i, self.readers + k - (self.passes - self.keep), h, seq, unit)
h = h + y
elif remat:
h = tuc.checkpoint(lambda a, s, i=i: R.block(bb, i, a, s)[0], h, seq, use_reentrant=False)
else:
h = R.block(bb, i, h, seq)[0]
return h - code + readsThe added parameters are the read-in gain, the pass embeddings, and a gain and a gate for each reading block and slot, all initialised so that the model starts as a plain loop with a read-in.
READ_BLOCKS = 2
def __init__(self, cfg, backbone):
super().__init__()
self.backbone = backbone
self.passes, self.keep = plan(cfg)
d, heads = cfg.hidden_dim, cfg.num_heads
self.readers = min(self.READ_BLOCKS, cfg.num_layers)
self.readin = nn.Parameter(torch.ones(d))
self.pass_emb = nn.Parameter(torch.zeros(self.passes, d))
slots = self.readers + self.keep - 1 # last pass: `readers` blocks; earlier kept passes: one
self.ptr_gain = nn.Parameter(torch.zeros(slots, 2, d))
self.ptr_gate = nn.Parameter(torch.zeros(slots, 2, d, heads))Results
| Method | ① | ② |
|---|---|---|
| LM loss, Paloma ↓ | LM loss, Paloma ↓ | |
| Claude Fable 5.2 | 3.382 | 3.081 |
| DiscoLoop | 3.435 | 3.100 |
| Full-bandwidth Transformer | 3.527 | 3.193 |
| HRM-Text | 3.487 | 3.146 |
| Huang et al. | 3.436 | 3.083 |
| Latent Recurrent Transformer | 3.494 | 3.169 |
| Grug MoE, no recurrence | 3.574 | 3.226 |
| Ouro | 3.469 | 3.129 |
| T2MLR | 3.522 | 3.171 |
- ① Grug MoE, 747M parameters, 1.44B tokens · held-out loss under a training-FLOPs cap
- ② Grug MoE, 2.04B parameters, 4.42B tokens · held-out loss under a training-FLOPs cap
On Grug MoE, 747M parameters, 1.44B tokens our method reaches 3.382, against 3.435 for the strongest published baseline there, DiscoLoop [7], and 3.574 for the starter decoder that runs every block once. On Grug MoE, 2.04B parameters, 4.42B tokens it reaches 3.081, against 3.083 for Huginn [2], so the two are level there; the starter reaches 3.226. Against the other looped baselines, Ouro reaches 3.469 and 3.129, and HRM-Text 3.487 and 3.146; our method is below both on both settings.
The margin over the strongest baseline is clear on Grug MoE, 747M parameters, 1.44B tokens and nearly gone on Grug MoE, 2.04B parameters, 4.42B tokens. Our development measurements do not show why. They do show where the gain of the two channels lies. In per-token breakdowns on our own development corpus, at two of our development scales, the read-in and the pointer reads lowered the loss mainly on tokens that had already occurred in the document, the read-in most of all on rare ones, while the loss on tokens new to the document moved much less. How much of the evaluation data is copyable in this sense, and how that varies with scale, we cannot tell from the means.
How we got here
We began by reading the reference methods and timing them, and by assembling a development corpus of our own from public web text, encyclopaedia text and code, since the workspace had no training data. All development numbers below are on that corpus, at scales smaller than full size unless stated, and are our own measurements; the seed-to-seed spread we measured was about 0.01.
- The plain whole-stack loop was already strong. At a small full-schedule scale the starter reached 3.705, a two-pass loop with one readout 3.582, four passes 3.521 and eight passes 3.504, against 3.547 for the Huginn-style reference, the best reference we ran there. A logit-lens diagnostic on the eight-pass model showed why a single readout suffices: intermediate passes read out badly (8.83 after the first pass, 3.47 after the seventh) and only the end of the loop is in readout coordinates, while the expert load of consecutive late passes overlapped strongly. The final design puts no loss on intermediate passes.
- Changing what each pass computes did not help. Pass programs that ran only attention, only the feed-forward half, or attention and the shared expert, in some passes reached 3.604 to 3.661 against 3.521 for four full passes. Assigning fixed experts per pass instead of routing reached 3.718. Pooling or partitioning the expert-balancing statistics across passes reached 3.527 to 3.540, no better than the trainer's own balancing. Routing to more experts per token gave 3.507, a small gain that costs routed compute, and a learning-rate scale of 0.7 or 1.4 was worse than the default.
- The read-in. We tried feeding each input token's readout column into the input in several forms. As a side input removed before the readout it was among the best of them at the smallest scale (4.426 against 4.523 without it, both at one pass; only a variant that removed it through a learned gain was lower, by less than the seed spread); replacing the embedding by it, mixing it in before the embedding norms, or stopping its gradient was worse, and a larger initial gain hurt. At four passes the side input took the loss from 3.521 to 3.489, and the pass embedding to 3.483.
- Pointer reads followed a per-token breakdown. It showed that the read-in improved copyable tokens, rare ones most, and left new tokens where they were; we next gave the attention a direct route to the token it attends. Copying the attended token alone reached 3.464, the continuation slot alone 3.460, and both with a state-dependent gate 3.449. A cache keyed by the final states and an exact-match bigram cache came within noise of the gated pair, and we kept the simpler design. A nonzero initial gain was worse than zero. Reading in two blocks of the last pass gave 3.425, three blocks 3.430, and adding reads to the last block of the earlier kept passes 3.413. At a larger development scale the same steps took the starter's 3.246 to 3.107 with the loop, 3.086 with the read-in and 3.051 with the pointer reads.
- Some ideas did not survive. A right-to-left auxiliary objective that shared every weight raised the loss (4.299 against 4.200 at four passes, smallest scale). A running bag-of-tokens state in readout coordinates was tried and not carried forward. Per-block embeddings and a light auxiliary loss on an intermediate pass were queued.
- We reduced the pass count late. The design we first installed used seven passes at the smaller scales. Close to the end we found that a block call has a fixed cost that does not shrink with the micro-batch, so the number of block calls, and not only the FLOPs, sets the step time; we cut the plan to four passes at every scale to keep a margin on time. At a small scale this cost us about 0.016 in development loss (3.395 for seven passes, mean of two seeds, against 3.411 for four).
Limitations
- Grug MoE, 2.04B parameters, 4.42B tokens shows almost no margin. Our loss there is only just below Huginn [2]'s 3.083, so the advantage we see on Grug MoE, 747M parameters, 1.44B tokens largely does not carry to every setting, and our development work offers no explanation of the difference.
- The channels help copying more than prediction of new tokens. By our own breakdowns, the read-in and the pointer reads act mainly on tokens already in the context and move the loss on new tokens much less. On text with little repetition their contribution will shrink toward that of the plain loop.
- The submitted configuration was not trained in full at the largest scales. The four-pass plan was installed late, and our full-schedule evidence at the largest development scales comes from the seven- and eight-pass variants and from partial runs of the final file.
- The pass count is a fixed number. Four passes at every scale is a choice made for time, not derived from the problem; our development runs at a small scale show that more passes would still have lowered the loss.
- All design choices were made on our own corpus. Document length and repetition affect both the pointer reads and the step time, and our corpus may differ from the evaluation data in both.
References
- Rui-Jie Zhu, Zixuan Wang, Kai Hua et al. (2025). Scaling Latent Reasoning via Looped Language Models.
- Benhao Huang, Chufan Shi, Junlin Chen et al. (2026). Towards Looped Models Done Right, Part I: Topology, Input Injection, Recurrent-State Design.
- Guan Wang, Changling Liu, Chenyu Wang et al. (2026). HRM-Text: Efficient Pretraining Beyond Scaling.
- Ziyang Cai, Xingyu Zhu, Yihe Dong et al. (2026). T^2MLR: Transformer with Temporal Middle-Layer Recurrence.
- Zeyi Huang, Xuehai He, LiLiang Ren et al. (2026). Latent Recurrent Transformer: Architecture Exploration, Training Strategies, and Scaling Behavior.
- Xi Wang, Ziyang Cai, Zheng Zhan et al. (2026). Full-bandwidth transformer.
- Hengyu Fu, Tianyu Guo, Zixuan Wang et al. (2026). DiscoLoop: Looping Discrete Embeddings and Continuous Hidden States for Multi-hop Reasoning.