Organizations: Zhongguancun Academy · University of Science and Technology of China · Zhongguancun Institute of Artificial Intelligence · Peking University · University of Chinese Academy of Sciences · Nanjing University
Scaling large language models has relied on growing parameters, data, and compute together, leaving open how far efficiency can be pushed at fixed parameter count, in both finite-data and fresh-data regimes. A natural route is superposition, reusing shared weights for multiple computation steps along the two orthogonal dimensions of autoregressive modeling. Vertical depth loops iterate shared layers within each token, while horizontal cross-token loops pass each position's final state to the next token. Unifying both promises compounding gains, yet naive single-stream composition creates a representational conflict between token identity and carried history, trailing a plain Looped baseline at matched compute. Guided by ablations and mechanistic analysis, we introduce the Recurloop Transformer, combining gated RMS-rescaled feedback, asymmetric two-stream multiplexing, and a periodic multi-pass schedule, where preserving an unperturbed token pathway enables cleaner information fusion between current tokens and carried history. Across 113M-1.3B parameters, Recurloop outperforms standard and looped baselines at every scale under matched tokens and FLOPs, delivering up to 2.39x FLOP efficiency (2.0x without data repetition), higher effective dense capacity, and 1.64x-1.85x H100 wall-clock training speedups. At 1.3B, Recurloop also achieves substantially stronger entity tracking and scratchpad-free code execution while surpassing Qwen3.5-2B-Base on the ten-task mean and all four math and coding benchmarks. Full-prefix decoding with Parallel KV caching aligns inference with training, adding +7.6 points at 1.3B while retaining 87%-93% of single-pass decode speed. We release all models, data, and code.
Figures & tables
Figure 1: Downstream performance and training efficiency of Recurloop. (a) Ten-task mean for selected base models under the evaluation protocol of Table 2 . (b) Empirical Pareto frontier for models with estimated training FLOPs. Qwen3’s estimates use the reported corpus size, and Qwen3.5-2B-Base has no published training budget. (c) Smoothed 400M validation trajectories on a fixed 84B-token dataset: Recurloop matches the looped baseline’s terminal cross-entropy using 0.418× its training FLOPs (Figure 8 ).
Figure 2: Recurloop Transformer unifies vertical depth loops and horizontal cross-token loops. (a) A Looped Transformer repeats a shared Core at each position. (b) Recurloop also carries the final state ht to the next position while outputting the next-token prediction x^t+1 . (c) Stream 1 preserves the unperturbed token embedding et and Stream 2 adds gated state feedback from ht−1 , dynamically mixed by Dynamic Hyper-Connections (Dynamic HC) [ 37 ] across every shared Core iteration.
Figure 3: Naive single-stream unification degrades performance at 113M (iso-FLOPs, constant LR). (a) Both prior cross-token feedback mechanisms collapse token identity et and carried state ht−1 into a single d -dimensional input stream. Up to ≈38.6×1018 FLOPs, both Loop + Recycler and Loop + Full-bandwidth trail the plain Looped Transformer on (b) Val CE throughout training and on (c) OLMES QA BPB at the matched-FLOP endpoint.
Figure 4: 113M four-axis design-space ablations. Top: variant schematics; middle: Val CE; bottom: OLMES QA BPB (blue denotes the shared reference run throughout). Panels (a)–(d) identify the winning choices: gated rescaling, Asymmetric stream multiplexing, α=0.3 , and a 7:1 Periodic pass schedule. Panels (a)–(c) match training tokens; (d) matches cumulative training FLOPs.
Figure 5: Mechanistic diagnostics at 113M (10B constant-LR endpoints). (a) Dynamic variance ratio Var(vt)/E[∥vt∥2] of projected history vt=Uht−1 (non-constant variance fraction over 4.19M tokens). (b) Held-out linear probe R2 [ 1 ] of current token et and carried history ht−1 from Pass-2 Prelude output P[2] (2.09M fit / 2.09M test tokens). (c) Learned Layer-1 Prelude routing weights α(x) on Pass 2 (Hyper-Connections notation [ 37 ] , distinct from the feedback gain α in Equation ( 2 )). (d) Cross-pass hidden-state gradient RMS relative to Pass 3 from the final-pass loss at K=3 (32 paired batches, 95% bootstrap intervals).
Figure 6: Training and decoding token loops ( xt : input token; x^t+1 : predicted next token; ht[k] : output state after pass k , each running T Core iterations). (a) Parallel training with right-shifted feedback ( K=3 ; losses on passes 2–3). (b) Single-pass cached decoding from the final prompt cache and state. (c) Full-prefix decoding (left) and its Parallel KV execution (right): dashed arrows carry per-pass caches and diagonal arrows carry feedback from the preceding position.
Match
Model
Tokens (B)
FLOPs ( 1018 )
Language modeling
Aggregate scores
Generation
Val CE ↓
QA BPB ↓
CORE22 ↑
Ext.46 ↑
GSM8K ↑
MATH ↑
HE+ ↑
MBPP+ ↑
Tokens
Transformer
10
8
2.01
1.32
12.70
9.30
4.25
2.20
4.88
3.70
Looped Transformer
10
19
1.93
1.25
14.31
10.11
9.25
4.00
6.10
5.03
Recurloop (ours)
10
39
1.89
1.23
15.74
10.77
16.00
5.00
8.54
9.79
FLOPs
Transformer
48
39
1.95
1.29
13.71
10.15
4.93
2.20
4.88
2.91
Mini 113M
Looped Transformer
20
39
1.91
1.23
14.85
10.24
13.04
3.20
7.93
10.32
Table 1: Matched-token and matched-FLOP comparisons. Both sets of baselines share the Recurloop row at each scale. Darker and lighter blue mark the best and second-best distinct scores within each scale. Gray marks matched budgets. Generation scores are percentages (MATH denotes MATH-500). Recurloop uses two-pass Parallel KV decoding at T=8 in BF16. See Appendices 9.1 , 11.1 , and 11.2 for the protocols.
Model
Type
Loops
Training
General
Math
Code
Reasoning
Mean
Tokens (T)
FLOPs ( 1021 )
ARC-C
HellaSwag
WinoGrande
OBQA
GSM8K
MATH 500
HE+
MBPP+
BBH
GSM Symb.
Ouro-1.4B
Looped
4
7.7
259
60.32
74.54
71.74
41.80
79.98
70.00
60.98
63.76
68.41
75.00
66.65
Qwen3-4B Base
Fixed
–
≈36
864
64.33
75.65
72.06
41.20
82.56
53.80
52.44
59.79
70.08
77.70
64.96
Recurloop-1.3B
Looped
8
0.13
7.0
52.30
62.45
63.93
39.20
73.24
41.20
41.46
54.76
60.39
67.54
55.65
Qwen3.5-2B Base
Fixed
–
–
–
53.84
67.73
66.46
37.60
67.70
35.00
29.27
45.50
62.77
70.10
53.60
ARLoop-1.2B
Looped
3
0.50
10
55.89
71.33
66.93
43.60
67.78
35.60
32.32
42.59
48.23
58.16
52.24
Table 2: Downstream scores (%) across eleven pretrained base models (likelihood scoring for multiple choice and one greedy completion per generation problem). For ARLoop and Ouro, HumanEval+ trims trailing docstring whitespace to match their released code-prefix formatting (Appendix 11.2 ). Loops denotes Core iterations per pass; Recurloop uses two-pass Parallel KV ( T=8 , BF16). Pretraining FLOPs are estimated (Llama uses its 9T upper bound). For Qwen3-1.7B and Qwen3-4B, token counts are estimated from the family-wide corpus size reported in the Qwen3 Technical Report [ 34 ] . Blue shading marks looped Transformers. Bold marks the highest score per column. Rows are sorted by Mean, which averages all ten tasks before rounding. Abbreviations: ARC-C (ARC-Challenge), OBQA (OpenBookQA), HE+ (HumanEval+), BBH (BIG-Bench Hard [ 30 ] ), and GSM Symb. (GSM-Symbolic [ 25 ] ).
Figure 9
Figure 9: Validation CE across passes K and Core depth T . Cells show absolute CE. Darker blue indicates lower loss within a scale. Gray marks the unsupervised first pass and gold outlines (2,8) .
Figure 10: Vertical depth T boosts downstream reasoning at K=2 , with Full prefix (2) leading on math and at larger scales. BF16 generation scores (top) and mean tokens (bottom) across Core depths T (solid: Cached (2), dashed: Full prefix (2); Appendix 12.3 ).
Figure 11: Greedy BF16 generation accuracy across decoding strategies ( T=8 ). Equal-weighted four-task average across GSM8K, MATH-500, HumanEval+, and MBPP+ (per-task breakdown in Appendix Table 12.1 ). Standard ( Std ) and Cached ( C(2) , C(3) ) use 1× KV cache (shaded); Full-prefix modes ( FP(2) , FP(3) ) use 2× and 3× KV cache, respectively. Badges report the accuracy gain of FP(2) over Std in percentage points.
Entity Tracking / Boxes (local ops)
CRUXEval-O Direct (lines)
Model (1.3B, iso-FLOPs)
0
1
2
3
4
5–7
≥1
All
≤4
5–6
7–8
≥9
All
Transformer (561B tok)
89.3
1.6
10.3
4.2
4.2
2.2
4.9
26.8
24.9
25.4
24.8
16.9
24.3
Looped (275B tok)
78.6
2.7
8.7
4.3
4.5
3.2
4.9
24.1
33.6
31.9
30.6
19.3
30.9
Recurloop (130B tok, ours)
82.6
36.2
22.0
15.4
9.7
5.8
24.1
39.3
38.1
34.6
38.2
18.1
34.8
Table 3: Persistent latent state tracking and scratchpad-free execution (no retraining) across FLOP-matched 1.3B checkpoints (greedy BF16 accuracy, %; default K=2 , T=8 for Recurloop and T=8 for Looped). Left: Entity Tracking (Boxes) [ 21 ] by local operations per box (5,012 box queries across 716 worlds; ≥1 : 3,709 updated boxes). Right: CRUXEval-O Direct [ 12 ] by function length in non-empty lines ( N=800 , no CoT). Official protocols and paired 95% bootstrap intervals appear in Appendix 12.4 .
113M (2k)
400M (4k)
766M (8k)
1.3B (8k)
Model
Mem
tok/s
MFU
Mem
tok/s
MFU
Mem
tok/s
MFU
Mem
tok/s
MFU
Standard
11.8
454.1
33.5
32.2
168.7
47.6
30.0
86.5
53.3
45.6
57.2
58.2
Looped
11.9
250.5
38.1
32.4
78.9
51.2
30.1
37.9
55.2
45.7
24.0
58.5
Recurloop
53.9
101.8
31.3
51.4
29.2
39.7
66.5
13.6
41.7
67.4
8.2
42.0
Table 4: Single-H100 BF16 training efficiency ( T=8 , b=4 ; Mem in GiB, throughput in k tok/s, MFU in %). Context length follows each parameter count.
Strategy
KV cache
113M
400M
766M
1.3B
TTFT (ms)
Rate (tok/s)
TTFT (ms)
Rate (tok/s)
TTFT (ms)
Rate (tok/s)
TTFT (ms)
Rate (tok/s)
Standard (1-pass)
1×
29.8
942.9
56.5
389.7
60.9
236.5
111.4
159.5
Cached (2)
1×
58.0
897.6
110.2
380.9
117.5
233.3
217.3
157.6
Cached (3)
1×
85.2
898.2
164.3
380.9
174.1
233.1
325.6
157.6
Full prefix (2)
2×
58.6
816.6
112.5
354.2
119.2
218.2
220.1
148.1
Full prefix (3)
3×
88.3
810.7
168.5
348.8
179.7
215.7
329.9
146.1
Table 5: Single-H100 BF16 Recurloop inference TTFT and decoding throughput ( T=8 , batch 1, 128 decode steps). Standard (1-pass) denotes Recurloop single-pass cached decoding ( Kp=1 ); KV cache is relative to 1× single-pass cache, and full-prefix modes run via Parallel KV.
Figure 12: Single-H100 BF16 decoding throughput across KV budgets ( T=8 , batch 1). Companion to Table 5 and Figure 11 ; badges show FP(2) throughput relative to Std .
Figure 13: Parallel KV speedup on one H100 (BF16, T=8 , batch 1). (a) Throughput across 113M–1.3B vs. CUDA-graphed naive full-prefix recomputation and Standard (dashed). (b) 1.3B throughput over 256–4,096 prompt tokens ( 84.8× / 108.6× faster at 4K).
Configuration
Recurloop-113M
Recurloop-400M
Recurloop-766M
Recurloop-1.3B
Hidden dimension d
1,024
1,536
1,792
2,048
Feedforward dimension
4,096
6,144
7,168
8,192
Prelude / Core / Coda layers ( ℓ )
2 / 2 / 2
4 / 4 / 4
6 / 6 / 6
8 / 8 / 8
Independent blocks
6
12
18
24
Attention heads / head dim
8 / 128
12 / 128
14 / 128
16 / 128
Context length S
2,048
4,096
8,192
8,192
Table 8.1 : Recurloop model configurations, recurrence settings, and reference training-token budgets. Stage depths count independently parameterized blocks before unrolling. Recurrent models draw Core depths from max(1,Poisson(μ)) with a backpropagation cap of b=4 ( μ=4 at 766M and 1.3B for training stability), while all evaluations use T=8 .
Scale
Transformer
Looped Transformer
Loop + HC
Recurloop (ours)
113M
0.109
0.287
–
0.290
400M
0.390
1.188
1.188
1.193
766M
0.752
2.377
–
2.385
1.3B
1.275
4.102
–
4.113
Table 8.2 : Effective parameters in billions for a single forward pass with eight Core iterations. Loop + HC is evaluated at 400M in the extended-budget study (Appendix 13 ); Dynamic HC routers add ≈ 0.2M parameters at 400M (below the 0.001B display precision).
Figure 14: Validation CE by stream count under equal inputs, repeated pairs, and a single dedicated feedback stream. The legend gives the input design and stream count.
Feedback variant
Streams
Input
Val CE ↓
Gated projection, Augmented
2
[e,e+0.3a]
2.080
Linear projection
2
[e,e+0.3Uθht−1]
2.091
Equal split
2
[m,m]
2.091
Concatenated, gain 0.3
2
[e,0.3a]
2.081
Concatenated, gain 1
2
[e,a]
2.081
Fixed gain 0
2
[e,e]
2.103
Table 10.1 : Feedback variants after 10B training tokens, with a from Equation ( 2 ) and m=e+0.15a . Endpoint cells report measured terminal Val CE.
Schedule
K=1 steps
K=2 steps
K=3 steps
Tokens (B)
FLOPs ( 1018 )
Val CE ↓
A: Periodic
0
16,690
2,384
10.00
38.62
2.080
B: Shuffled
4,704
7,054
7,053
9.86
38.57
2.084
C: Staged
4,704
7,054
7,053
9.86
38.57
2.088
Table 10.2 : Training-pass allocations and cumulative reference FLOPs at 113M (Equation ( 9.3 ), rounding to 39×1018 in Table 1 ). B and C assign the same work to different steps; K=1 steps fall back to standard single-pass supervision ( L=L1 ), while all K≥2 steps use Equation ( 5 ). Endpoint CE uses K=2,T=8 .
Benchmark
Problems
Shots
Max. new tokens
Metric
GSM8K
1,319
8
512
Answer exact match
MATH-500
500
4
1,024
Answer accuracy
HumanEval+
164
3
1,024
Full Plus pass@1
MBPP+
378
3
512
Full Plus pass@1
Table 11.1 : Generation settings for the main comparisons (maximum output budgets; percentages over full problem counts).
Step
Tokens (B)
ARC-C
HellaSwag
WinoG.
OBQA
GSM8K
MATH 500
HE+
MBPP+
BBH
GSM Symb.
Mean
256
0.54
22.27
26.82
50.75
26.80
1.74
1.40
0.00
0.00
1.44
1.12
13.23
1,554
3.26
26.96
33.04
51.85
29.80
2.81
4.00
6.10
1.32
16.96
1.06
17.39
24,000
50.33
37.88
46.24
55.64
32.00
28.89
18.80
18.90
24.87
31.95
21.98
31.71
31,000
65.01
38.23
46.97
56.75
31.40
29.26
16.40
21.95
29.63
32.28
24.20
32.71
35,000
73.40
35.58
46.83
57.22
33.00
35.25
18.00
21.34
28.31
29.93
26.70
33.22
45,000
94.37
44.11
54.84
59.27
36.20
50.19
27.80
26.83
42.86
40.84
44.48
42.74
Table 11.2 : Per-task accuracy (%) across nine Recurloop-1.3B (ours) pretraining checkpoints under the shared Table 2 protocol, alongside the Qwen3.5-2B-Base reference. Mean averages all ten tasks before rounding. Bold marks the best Recurloop checkpoint per column.
Domain
n
113M
400M
766M
1.3B
Language understanding
8
+0.87 (7)
+1.61 (6)
+2.41 (7)
+4.61 (7)
World knowledge
7
+0.15 (4)
+1.19 (4)
+1.41 (5)
+4.76 (6)
Commonsense
8
−1.35 (1)
+6.01 (6)
+3.05 (6)
+8.01 (8)
Symbolic / math
11
+1.07 (8)
+2.37 (9)
+6.14 (11)
+10.31 (11)
Reading comprehension
8
+0.51 (4)
+4.46 (8)
+3.23 (5)
+16.15 (8)
Safety
4
+2.74 (3)
+2.29 (2)
+3.73 (3)
+17.94 (3)
Table 11.3 : Mean centered score difference (Recurloop minus FLOP-matched Looped) within each Extended46 domain (parentheses: positive tasks out of n ).
Scale
Suite
W/T/L
Mean gain
Paired 95% interval
Gain without top task
113M
CORE22
17/0/5
+0.89
[−0.20,1.94]
+0.54
Extended46
27/1/18
+0.52
[−0.43,1.49]
+0.29
400M
CORE22
16/0/6
+2.71
[1.70,3.71]
+1.71
Extended46
35/1/10
+3.05
[1.96,4.08]
+2.59
766M
CORE22
16/1/5
+2.55
[1.45,3.59]
+1.91
Extended46
37/2/7
+3.52
[2.51,4.46]
+3.11
Table 11.4 : Coverage and concentration of FLOP-matched gains (W/T/L at full precision; 95% paired bootstrap intervals over 2,000 question-level replicates; final column drops the single largest-gain task). Mean gains use full-precision scores and may differ by 0.01 from differences of the rounded Table 1 entries.
Domain
Task
Type
Shots
CORE22
Recurloop (ours) − Looped Transformer (points)
113M
400M
766M
1.3B
Language understanding
HellaSwag
MC
0
✓
+1.00
+1.57
+1.06
+1.38
HellaSwag
MC
10
✓
+0.86
+1.72
+1.35
+1.63
LAMBADA
LM
0
✓
+2.03
+3.93
+2.41
+3.78
Winograd Schema Challenge
S
0
✓
+0.73
−3.91
+7.33
−2.20
WinoGrande
S
0
✓
+1.58
+2.42
+2.63
+7.58
Table 11.5 : CORE22 and Extended46 task configurations. All 46 rows contribute to Extended46, and checkmarks identify the 22 CORE22 configurations. MC denotes multiple-choice scoring, S schema-based scoring, and LM exact greedy matching, following Karpathy [20] . The four right columns give centered task-score differences at matched training FLOPs. Teal indicates a Recurloop gain and rust indicates a deficit. The shading uses a common scale across all columns.
Benchmark group
Leaf configs
Coverage
ARC
2
Science questions, easy and challenge subsets
Basic Skills
6
Arithmetic, coding, common knowledge, logic, patterns, string operations
CoQA
1
Conversational reading comprehension
CommonsenseQA
1
Commonsense knowledge
DROP
1
Discrete reasoning over passages
HellaSwag
1
Plausible event continuation
Table 11.6 : QA BPB benchmark groups and coverage. The 21 groups contain 83 leaf configurations. Each leaf scores the likelihood of its reference continuation using the BPB protocol above.
Figure 15: QA bits per byte across inference pass counts and Core depths (complementing Val CE in Figure 9 ). Cells show absolute scores; darker cells denote lower BPB within each panel, gray marks K=1 , and the outline marks (K,T)=(2,8) .
Strategy
GSM8K
MATH-500
HumanEval+
MBPP+
4-task avg. (%)
TTFT (ms)
Rate (tok/s)
113M
Standard
11.75
4.80
4.88
8.47
7.47
29.8
942.9
Cached (2)
14.40
3.40
9.15
10.58
9.38
58.0
897.6
Cached (3)
13.72
3.00
7.93
10.32
8.74
85.2
898.2
Full prefix (2)
16.00
5.00
8.54
9.79
9.83
58.6
816.6
Full prefix (3)
13.95
3.80
7.93
9.79
8.87
88.3
810.7
400M
Standard
47.01
16.60
17.68
24.87
26.54
56.5
389.7
Table 12.1 : Generation scores (%) and single-H100 timings under the shared Table 1 – 2 protocol. Both Full prefix (2) and Full prefix (3) use Parallel KV for all scores and timings across all four scales. The four-task average weights benchmarks equally before rounding. Bold marks the best displayed score in each quality column within a scale.
K=2 full-prefix decoding (tok/s)
K=3 full-prefix decoding (tok/s)
Scale
Naive (CG)
Naive (Fused)
Parallel KV
Speedup (vs. CG / Fused)
Naive (CG)
Naive (Fused)
Parallel KV
Speedup (vs. CG / Fused)
113M
43.3
14.8
816.6
18.9× / 55.2×
30.3
10.8
810.7
26.8× / 75.0×
400M
18.4
8.0
354.2
19.3× / 44.1×
12.9
5.6
348.8
27.0× / 62.3×
766M
11.1
7.4
218.2
19.7× / 29.7×
7.6
5.1
215.7
28.2× / 42.1×
1.3B
6.4
4.3
148.1
23.3× / 34.8×
4.4
2.9
146.1
33.2× / 50.9×
Table 12.2 : Parallel KV decoding speedup over naive full-prefix recomputation across all four scales (single H100 80 GB, BF16, T=8 , batch 1, median-length task prompts (Appendix 12 ), 128 decode steps; corresponding to Figure 13 a). We compare against both CUDA-graphed naive recomputation (CG) and ungraphed recomputation on the exact same fused engine (Fused).
Params
T
GSM8K
MATH-500
HumanEval+
MBPP+
Mean length
Cached (2)
Full prefix (2)
Cached (2)
Full prefix (2)
Cached (2)
Full prefix (2)
Cached (2)
Full prefix (2)
Cached (2)
Full prefix (2)
113M
1
1.67
1.29
1.20
2.20
0.00
0.00
1.06
1.06
313.1
310.8
2
4.85
3.79
1.80
2.80
3.66
0.61
3.44
1.59
275.5
286.5
4
10.69
11.52
3.80
2.60
4.88
2.44
9.52
10.85
229.2
241.3
8
14.40
16.22
2.60
5.00
6.71
7.32
10.58
10.32
222.9
228.6
16
14.33
16.38
4.20
3.60
7.93
6.71
10.05
10.85
221.6
231.7
Table 12.3 : BF16 generation scores (%) and mean output length (tokens) across Core depths T under the standalone prefix-recomputation depth-sweep harness (isolated for within-scale T -scaling trends; see Table 12.1 for unified Parallel-KV scores at T=8 ). Bold marks the highest displayed score per task and strategy within each scale. Mean length weights all 2,361 problems equally.
Setting
Main
Expanded
Fixed dataset (B tokens)
40
84
Recurloop (ours) training tokens (B)
40
84
Looped Transformer training tokens (B)
84
176
Transformer training tokens (B)
208
436
Loop + HC training tokens (B)
84
173
FLOPs ( 1018 ), Loop + HC
676
1400
Table 13.1 : 400M main and expanded training budgets. Token and FLOP units and rounding follow Table 1 .
Model
Structure
Params (M)
Updates
Tokens (B)
Dense 159M
10L
159.4
157,899
82.78
Dense 172M
11L
172.0
145,753
76.42
Looped (113M)
2/2/2 ( K=1,T=8 )
111.2
100,897
52.90
Dense 185M
12L
184.6
135,342
70.96
Recurloop (113M, ours)
2/2/2 ( 7:1,T=8 )
113.3
49,388
25.89
Dense 210M
14L
209.7
118,424
62.09
Table 14.1 : Iso-FLOPs equivalent dense parameter sweep at 100×1018 training FLOPs (single-epoch fresh dataset, constant LR 0.008, no annealing, 4.19M held-out validation tokens). Terminal validation CE for each model is shown in Figure 8 .
Scale ( S )
Recurloop K=2 ( 7/8 updates)
Recurloop K=3 ( 1/8 updates)
Recurloop 7:1 Schedule
MB / ckpt
Mem (GiB)
tok/s (k)
MFU (%)
MB / ckpt
Mem (GiB)
tok/s (k)
MFU (%)
Peak (GiB)
tok/s (k)
MFU (%)
113M (2k)
16 / none
36.7
109.2
31.4
16 / none
53.9
69.2
30.6
53.9
101.8
31.3
400M (4k)
4 / none
51.4
31.5
40.2
2 / none
39.2
19.3
37.3
51.4
29.2
39.7
766M (8k)
2 / every2
56.0
14.3
41.4
1 / none
66.5
9.9
43.2
66.5
13.6
41.7
1.3B (8k)
2 / half
67.4
8.7
42.2
1 / half
60.3
5.7
41.3
67.4
8.2
42.0
Table 15.1 : Single-H100 80 GB BF16 breakdown of Recurloop ( T=8,b=4 ) for K=2 updates, K=3 updates, and the combined 7:1 pretraining schedule reported in Table 4 . On K=3 updates at 400M–1.3B, halving microbatch size while doubling gradient accumulation preserves global batch size and keeps peak memory within 67.4 GiB with minimal shift in overall 7:1 schedule MFU ( ≤0.5 percentage points vs. K=2 ).
Scale ( S )
MB
Standard
Looped ( K=1,T=8 )
Recurloop ( K=2,T=8 )
Mem (GiB)
tok/s (k)
MFU (%)
Mem (GiB)
tok/s (k)
MFU (%)
Mem (GiB)
tok/s (k)
MFU (%)
113M (2k)
16
6.5
448.3
33.1
11.9
250.5
38.1
36.7
109.2
31.4
400M (4k)
4
10.3
163.1
46.1
17.7
76.8
49.8
51.4
31.5
40.2
766M (8k)
2
17.5
84.7
52.2
30.1
37.9
55.2
56.0
14.3
41.4
1.3B (8k)
2
26.8
55.7
56.7
45.7
24.0
58.5
67.4
8.7
42.2
Table 15.2 : Matched-microbatch single-H100 80 GB BF16 comparison across Standard, Looped ( K=1,T=8 ), and Recurloop ( K=2,T=8 ) using Recurloop’s K=2 microbatch size (MB = 16/4/2/2 across 113M–1.3B). Table 4 reports each architecture at its highest-throughput 80 GB-fitting microbatch (Standard MB = 32/16/4/4; Looped MB = 16/8/2/2).
Scale ( S )
1 × H100 Native BF16
1 × H100 Fused BF16
1 × H100 TE-FP8
8× H100 Node ( 7:1 , Poisson(8))
tok/s (k)
MFU (%)
tok/s (k)
MFU (%)
tok/s (k)
MFU (%)
tok/s/GPU (k)
MFU (%)
Opt+Sync / Imbal. (%)
113M (2k)
22.6
6.5
109.2
31.4
112.8
32.5
90.1
27.7
1.74 / 7.20
400M (4k)
6.5
8.3
31.5
40.2
34.1
43.5
26.8
36.4
0.56 / 0.34
766M (8k)
3.8
11.1
14.3
41.4
15.8
45.8
12.1
37.4
0.21 / 0.38
1.3B (8k)
2.5
12.2
8.7
42.2
9.4
45.4
7.0
35.9
0.17 / 0.38
Table 15.3 : Ablation of Recurloop training systems optimizations on NVIDIA H100 80 GB GPUs ( b=4 ). Left/middle columns compare single-H100 uniform T=8 ( K=2 ) native eager BF16, fused BF16 (matching the K=2 column of Table 15.1 ), and optional Hopper TE-FP8 (reporting BF16-equivalent MFU against 989.4 TFLOPS). Right columns report single-node 8× H100 NVLink full optimizer-step BF16 training at GBS=256 under stochastic max(1,Poisson(8)) depths and the 7:1 pass schedule with depth-sorted LPT microbatching, active-sequence compaction, BF16 DDP, and 8-way sharded Muon+AdamW (peak 55.8/55.5/73.2/71.3 GiB across 113M–1.3B; aggregate node throughput 720.5k/214.6k/97.1k/55.8k tok/s).
Looping in transformer models reuses weights by repeatedly applying the same transformer, or parts of it, making the model deeper without increasing its parameter count. Whether looping is useful depends on which constraint dominates: model size, training compute, or autoregressive inference efficiency. We study these trade-offs jointly in dense decoder-only transformers trained from scratch, varying which parts of the model are looped, how many loops are applied, and how information is passed between loops. Our experiments span models with up to 1B parameters, trained on up to 155B tokens with up to 1.07×1021 FLOPs and 32 loops. We find that looping the full transformer generally gives the strongest quality at a fixed parameter budget, whereas looping a middle block of layers gives a better return when training FLOPs are constrained. Adding loops is not uniformly beneficial: gains eventually saturate, reverse, or become unstable. This motivates asking whether forcing every loop to use the same weights limits the benefit of deeper looping. We address this by adding small loop-specific low-rank adapters that improve quality, with larger gains as more loops are added. Looped transformers also suffer a decoding slowdown proportional to the number of loops. Parallel Loop Transformers address this by passing hidden states between loops across adjacent token positions, allowing loop stages to run concurrently. However, in our experiments the original formulation does not consistently retain the quality gains of ordinary looping. We find that preserving the current-token embedding and separately normalizing it and the previous-token hidden state before combining them recovers strong performance across model scales and training budgets. Together, these results show that effective looping requires matching the design to the resource constraint and inference setting.
Looped Transformers increase computation per token by repeatedly applying a shared backbone, offering a way to improve language modeling and downstream task performance at a fixed backbone parameter count. However, each loop depends on the preceding loop, so increasing recurrent depth also increases decoding latency. Existing approaches include Parallel Loop Transformers, which reduce latency by overlapping loop computation across token positions, but yield rapidly diminishing marginal accuracy gains at larger depths. To address this challenge, we introduce LoopFold, which folds computation at multiple recurrent depths into parallel batches for the same token prefix. A lightweight predictor estimates inputs to later loops so they can start before earlier loops finish. A corrector then refines the outputs of these later loops using newly available results from earlier loops. All components are trained jointly using only the final next-token prediction loss. In experiments with 1.4B models, deeper LoopFold configurations achieve progressively higher average zero-shot accuracy across eight tasks, rising from 53.41% to 56.38%. Vanilla looped models and PLT show limited gains over the same depth range. Compared with a nine-loop vanilla model, LoopFold uses five sequential stages and additional parallel computation to reduce decoding latency by 46%.
Feichen Song, Boyi Zeng, Yiqin Hao +7
Shanghai Jiao Tong University · Sun Yat-sen University · Shanghai Innovation Institute
Looped transformers increase effective depth by repeatedly applying a shared set of transformer layers, offering a parameter-efficient way to scale computation. However, standard residual connections aggregate information across recurrent depth into a single stream, providing limited control over which intermediate representations from preceding layers should be reused. In this paper, we introduce ARLoop, a looped transformer architecture based on attention residuals, where the input of each layer is selectively aggregated through attention over model depth. Distinct from standard transformers, we find that looped transformers do not require access to the full residual history: sliding-window depth attention matches or outperforms full-history attention at larger recurrent depths. Across controlled experiments with multiple parameter scales (140M and 370M) and recurrent depths (R = 1 to 5), ARLoop consistently outperforms prior residual designs for looped transformers. More importantly, we further scale ARLoop to 0.6B and 1.2B parameters under a realistic LLM pretraining recipe, demonstrating that the gains transfer to realistic pretraining, with particularly strong improvements on math and coding tasks. Our 1.2B model, pretrained on only 0.5T tokens with three recurrences, outperforms Huginn-3.5B (the only fully-open looped LLM as of our release date) across all evaluated tasks and is competitive with similar-sized non-looped models such as Qwen3.5-2B despite being trained on substantially less data.