Bartosz Naskręcki
Faculty of Mathematics and Computer Science, Adam Mickiewicz University in Poznań

CCAI Agents seminar · a paper, re‑measured and tested

ARLoop: attention over depth

for looped transformers — re‑measured, and tested on checked proofs

Tuesday 17 November 2026, 14:00CCAI Agents seminara 45-minute talk for an ML/AI audience

The picture shows what ARLoop-0.6B's attention over depth reads ↓

About the talk

A looped transformer runs the same stack of layers several times, so extra depth needs no new layer weights. Between loops the residual stream is the only memory, and in the standard PreNorm design every update is simply added to it. ARLoop (Yao, Du, Zhu and Sun, arXiv:2611.05234) replaces this fixed sum by attention over depth: before each sublayer, a learned query mixes the embedding with the most recent residual blocks.

The talk explains the mechanism, re-measures the paper's main claims on the released checkpoints, and asks the question of our own latent programme: does the residual design change how much an extra loop is used, on GSM8K, on a Lean-checked toy task, and when a model writes proofs that a checker replays step by step? Every number in the materials is computed from result files; every registered comparison was recounted independently before it was published, and descriptive or exploratory measurements are marked as such.

The paper in three lines

From the digest of the paper (§0); paper marks what we take from the paper without re-checking it.

  • In a looped transformer the residual stream is the only memory that carries information from one pass to the next, and PreNorm adds every update to it with weight 1. ARLoop replaces this fixed sum by softmax attention over depth (Kimi's Attention Residuals) and finds that, for loops, a sliding window (embedding + 3 most recent residual blocks) is enough. paper
  • Controlled 140M/370M runs: lowest validation perplexity among six residual designs at every recurrence tried; at 0.6B (180B tokens, R = 3) it beats a matched PreNorm loop on 7 of 8 benchmarks (GSM8K 40.9 vs 35.7); a 1.2B model (0.5T tokens) beats Huginn-3.5B on all 8. paper
  • It does not make loops extrapolate: performance rises up to the trained recurrence and not beyond, even with depth queries trained for the new depths. paper

Plan of the talk

45 minutes in 5 parts, as in the deck. The colours have one meaning on every slide, figure and page:

  1. I0:00–10:10 min

    The idea

    Why loops, and why this paper: in our latent project an extra loop rarely helped checked proofs. Looped transformers and their residual stream; ARLoop's attention over depth: blocks, a window of three, one routing query and norm per sublayer, the read-out.

  2. II10:10–14:40 min

    The paper's evidence

    The paper's evidence: six residual designs at 140M and 370M, the window, the matched 0.6B pair, extrapolation and cost, with our findings.

  3. III14:40–22:40 min

    Released checkpoints

    E1, the released checkpoints re-measured: the GSM8K gap of the pair, more loops than trained, where the routing reads.

  4. IV22:40–31:20 min

    Checked proofs

    E2 and E3, where answers are checked: a Lean-checked toy task and proofs written by the 0.6B pair; a live demo on GSM8K.

  5. V31:20–45:00 min

    Training more

    Training more: Stage 1, the confirmatory and depth-training stages, the map of what is supported, contradicted and open, and what comes next.

ARLoop, attention over depththe PreNorm loopchecked or re-checkeda finding or a failureeverything else

Materials

Everything the talk shows, with its sources: the notes compute every number when they are built.

Jupyter Book

Seminar notes

The notes of the talk: looped transformers, ARLoop's mechanism, the paper's evidence, our tests E1–E3, the same tests after more training, and exercises. Every number is computed when the book is built.

Open the notes →
reveal.js · 45 minutes

Slides

The talk with speaker notes; its numbers, tables and figures are read from the result files when the deck is built.

See the slides →
one page

The paper, digested

The paper rewritten on one page: claims C1–C7 with provenance tags, the released models as configured, our re-measurements next to the claims they test.

Read the digest →
E1 · E2 · E3 · Stages 1, 4, 2

Our tests

E1 re-measures the released checkpoints; E2 and E3 test the idea where answers are checked; Stage 1 repeats them after more training, Stage 4 re-tests its lead on sealed goals, Stage 2 trains the whole models at one more loop. Paired designs, protocols written before the runs, an independent recount of every registered comparison; descriptive and exploratory measurements are marked as such.

See the tests →
the register

Findings

11 findings about the paper and its released code: wording, scope, an inert parameter group, routing parameters that act as one mostly-zero product, a window that needs value residuals, and a headline gap whose size depends on one evaluation detail.

The findings register →
arXiv:2611.05234

The paper

Yuekun Yao, Yupei Du, Dawei Zhu, Huan Sun, ARLoop: Fully-Open Pre-trained Looped Transformers with Attention Residuals.

arXiv ↗

What we measured

Paired comparisons on the same items, with 95% intervals; every protocol was written before its runs. Details and every run in the notes.

E1 · the released pair

The headline gap reproduces; its size depends on BOS

+5.16points on GSM8K, ARLoop-0.6B over PreNormLoop-0.6B

ARLoop-0.6B 38.97% against PreNormLoop-0.6B 33.81% with the beginning-of-sequence token (BOS) prepended, as in the authors' evaluation: 1,319 paired items, 95% interval [+2.65, +7.66], McNemar p = 6.5 × 10⁻⁵. The paper reports +5.2.

Without BOS the gap is +2.20 [−0.45, +4.85], p = 0.12. BOS lowers PreNormLoop-0.6B (−2.43 [−4.02, −0.76], p = 0.0052) and has no detectable effect on ARLoop-0.6B (+0.53 [−1.06, +2.12], p = 0.56): finding F9. ARLoop-1.2B scores 63.00% (paper: 63.1).

E1 in the notes →
E1 · beyond the trained depth

No gain detected from more loops than trained

0 of 8paired comparisons beyond R = 3 with a detected gain

The released models were trained with R = 3 loops. Run with R = 4–6 and compared with R = 3 on the same items, none shows a gain: under both rules that supply ARLoop's missing routing parameters (queries and norms), and at both model sizes. No gain detected is not a gain excluded: under cycle at R = 4 the difference is −0.15 [−1.97, +1.67], p = 0.94. With fewer loops than trained (R = 1 or 2), all 5 runs score 0%.

From R = 3 to R = 4 (exploratory, no registered rule), ARLoop-0.6B loses 0.15 points under cycle and 10.39 under repeat; PreNormLoop-0.6B loses 17.66. A routing probe (exploratory, not independently re-checked) is consistent with this: under cycle the read-out puts 93.4% of its weight on loop 3's last block and 3.7% on loop 4, routing around the extra loop.

The loop sweep →
E2 and E3 · checked answers

Checked proofs: at the floor after 512 updates

0 of 32proofs, in all 16 suites

E3: the released 0.6B pair, fine-tuned with latent's recipe (512 LoRA updates) and run as a proof agent at a forced number of loops, proves none of the 32 development targets. The gold proofs, fed through the same harness, pass 32/32. At this floor the registered comparison cannot decide anything.

E2, the canary: small models (width 64) trained from scratch as in latent, writing Lean-checked certificates, in PreNorm and ARLoop arms: no candidate effect in the primary comparisons at canary scale.

E2 and E3 in the notes →

Then we trained more: Stage 1

In E1–E3 the models were trained little (E2, E3) or not at all beyond three loops (E1). Stage 1 repeats the tests after more training, under protocols written before the runs; every registered comparison below was recounted independently, and descriptive measurements are marked as such.

Stage 1a · E3 with 8× the updates

Proofs off the floor; a one-seed lead for ARLoop

4 and 3 of 32proofs at R = 3 after 4,096 updates (ARLoop, PreNorm; trained at 3 loops)

Stage 1a repeats E3's recipe with 8× the updates (4,096 LoRA updates, same harness and seed). Trained and tested at 3 loops, both bases leave the floor; all 30 accepted proofs replay to QED with the pinned checker.

Trained with a random number of loops, ARLoop proves 0, 2, 3, 3 goals at R = 1–4 and its valid single steps rise from 55 to 61 of 64; PreNorm proves none at any R. The registered test counts the single steps valid only at R = 4 against those valid only at R = 1: 6 against 0, and after the Holm correction p = 0.0625 misses the test. A one-seed lead for ARLoop, below the registered threshold; Stage 4 re-tests it with more seeds on the sealed test split.

Stage 1 in the notes →
Stage 1b · the canary, 10× and 30× longer

The canary trained 10× and 30× longer: no depth effect detected

0 of 8within-arm tests with a candidate effect of 16 loops over 4

Stage 1b repeats E2 with 10,000 and 30,000 updates instead of 1,000. Accuracy rises with training in every arm (latent's decoder: 14 → 18 → 24 of 105 items at 4 loops), but no within-arm test finds a candidate effect of 16 loops over 4, no item deeper than the training items is solved, and no new arm (the PreNorm loop or either ARLoop arm) shows a candidate effect against latent's decoder (0 of 12 primary comparisons).

Stage 1 in the notes →
Stage 1c · a trained fourth loop

A trained fourth loop: no gain detected on GSM8K

−0.61points, loop 4's routing trained, against a loop-3 control

Stage 1c trains only the routing of a fourth loop in ARLoop-0.6B, on 0.1B tokens of math text, against the same training of loop 3's routing at R = 3: −0.61 [−2.20, +1.06], p = 0.52. A second pair, which trains the effective routing vector directly: −0.38 [−2.05, +1.36], p = 0.72.

The read-out stays frozen and keeps 92–94% of its weight on loop 3's last block. WikiText at R = 4 improves from 0.7320 to 0.7256 bits per byte, close to R = 3's 0.7247 but not below it.

Stage 1 in the notes →

Then we re-tested the lead and trained the whole model at depth: Stages 4 and 2

Stage 4 re-tests the one-seed lead of Stage 1a with more seeds, on goals sealed until then; Stage 2 trains both whole 0.6B models at one more loop, and PreNorm also with a random number of loops. Each protocol was written before its runs, and every registered comparison below was recounted independently.

Stage 4 · confirmatory, 3 seeds

More loops help ARLoop on unseen goals

64 vs 1single steps valid only at 4 loops vs only at 1 (ARLoop, random depth)

Stage 4 repeats Stage 1a's recipe with seeds 11, 29 and 47, and opens the sealed test split of latent's Campaign 4 once: 48 goals and a single-step roster of 224 rows, with the tests fixed before the split was opened.

ARLoop's adapters trained with a random number of loops make 64 single steps valid only at R = 4 and 1 only at R = 1 (+9.38 points over 672 paired rows); Holm p = 7.2 × 10⁻¹⁸, and 3 of 3 seeds favour R = 4. The lead of Stage 1a is confirmed, as registered.

At the trained depth, 4 test goals are proved only by ARLoop and 5 only by PreNorm (Holm p = 1): no detectable difference. ARLoop's gain from 1 to 4 loops minus PreNorm's (secondary): +4.32 points [+1.19, +7.44]: ARLoop gains more from loops than PreNorm. PreNorm's adapters gain from more loops too, less: 51 single steps valid only at R = 4 against 17 only at R = 1 (secondary, McNemar p = 4.5 × 10⁻⁵). All 34 accepted test proofs replay to a kernel-checked QED.

Stage 4 in the notes →
Stage 2 · the whole model, trained at depth

Trained at four loops: no gain detected

+0.91points on GSM8K, ARLoop trained and run at 4 loops against its control at 3

Stage 2 trains every parameter of both released 0.6B models further on 0.10B tokens of math text (3,051 updates, one seed): once at 3 loops, the control, and once at 4, where loop 4's routing starts as a copy of loop 1's. GSM8K, paired over the 1,319 items as in E1.

ARLoop-0.6B: +0.91 points [−0.61, +2.43], Holm p = 0.55, not established. PreNormLoop-0.6B: +0.61 points [−1.29, +2.58], Holm p = 0.59, not established.

ARLoop's difference minus PreNorm's (secondary): +0.30 points [−2.20, +2.73]: not established. The training alone, at 3 loops against the released model: ARLoop-0.6B −4.62 points [−6.82, −2.43]; PreNormLoop-0.6B −3.64 points [−5.69, −1.52].

PreNorm was also trained with a random number of loops per update, 2 to 5 (descriptive, not a registered test; ARLoop's random-depth arm did not run): GSM8K accuracy 6.97%, 24.26%, 25.32%, 24.03% at R = 2, 3, 4, 5; R = 5 against R = 3, −0.23 points [−2.35, +1.90].

Stage 2 in the notes →

Findings about the paper

The digest's findings register, one line each; the full entries, with places and evidence, are on the digest page.

  • F1wording / implicit designRouting has its own query and norm per sublayer: exactly the pair's parameter gap, never counted in the paper. More loops than trained need a rule. full entry →
  • F2contextBoth 0.6B models saw GSM8K-style data late in training: fair within the pair, not against other models. full entry →
  • F3wording"The only fully-open looped LLM" (Huginn-3.5B) holds only in a narrow sense; Parcae and a recurrent OLMo-2 1B came earlier. full entry →
  • F4scopeThe no-extrapolation evidence comes from small full-history models, not from the released ones. full entry →
  • F5confirmed (works)Two model links redirect to the released names; both work. full entry →
  • F6wordingThe first block starts from the embedding (code), not from zero (eq. 4). full entry →
  • F7wording"Larger gains at deeper recurrences" (Tab. 1) holds against one loop but is not monotone. full entry →
  • F8wording / implicit designThe first routing call reads only the embedding: its query and norm are inert. full entry →
  • F9scope (robustness)The GSM8K gap is clear with BOS (the authors' default), inconclusive without; BOS lowers PreNorm and leaves no detectable change in ARLoop. full entry →
  • F10implicit designEach routing query and its norm act as one product, exactly zero on most coordinates. full entry →
  • F11scopeThe main text calls the window enough; the appendix shows it needs value residuals. full entry →

Literature

The works the notes cite, from their bibliography.

About the picture

The picture at the top is computed, not drawn. It shows which residual sources the attention over depth of the released ARLoop-0.6B can read at each of its 109 routing calls: the 108 effective sublayers (18 physical layers × 3 loops × attention and MLP, from left to right, loops separated by thin lines) and the read-out (the last column). Rows are the sources: the embedding at the bottom, in grey, and the residual blocks b1–b6 above it, in indigo, the colour of ARLoop on every page of this seminar. A block is drawn as an outlined tile while it is still being filled (its height grows with the number of sublayer updates it holds), as a solid tile once it is committed, and it disappears when it leaves the window; dots mark sources a call cannot see.

The pattern replays the bookkeeping of the model's forward pass (modeling_arloop.py of osunlp/ARLoop-0.6B @ 5cd28f3dbf0d46a7f82f9d34b62aca42ac0ab039; digest §2): a block is committed at effective layers 9, 18, 27, 36, 45; each routing call sees the embedding and the 3 most recent sources, the block being filled included. Hence 19 calls read 2 sources, 18 read 3 and 72 read 4 (every call from sublayer 37 on), 380 visible pairs in all. Block b1 starts from the embedding (finding F6), so its tiles carry a grey core: the embedding is visible twice from sublayer 0 to sublayer 54 (the attention sublayer of effective layer 27), after which b1 leaves the window.

The opacity of every tile follows the mean routing weight w measured by our routing probe (runs/e1/routing/ar06-R3/routing.json, 64 prompts, job 322150): 0.15 + 0.85·w0.6, so faint tiles are sources the model barely reads. Before anything is drawn, the probe's source lists are compared with the simulated windows, call by call.

The page build stops if a check fails: at most 4 sources per call (and exactly as many as the window allows), the embedding visible at every call, two blocks of 9 consecutive layers in each loop, the digest's worked example at effective layer 36, only b1 holding the embedding, and 218 routing vectors × 1,536 = 334,848 parameters, equal to the parameter gap between ARLoop-0.6B and PreNormLoop-0.6B (finding F1).

The simulation: generate_hero.py (it also draws the raster version of the picture used as the preview image); computed facts: hero-facts.json.