RecurTrace: Adaptive Latent Reasoning with Loop-Time Memory
Summary
RecurTrace introduces loop-time memory and adaptive halting to improve latent reasoning in language models, achieving higher accuracy on MathQA with optimized compute compared to fixed-loop methods.
View Cached Full Text
Cached at: 09/04/26, 06:26 AM
# 1MathQA accuracy versus mean loop count by halting method ( 1.7 B, 3 training × 8 evaluation seeds). Points are means ± 1 SD across training seeds; the dashed line marks the best fixed depth ( % 54.71 ). RecurTrace reaches % 56.92 at ∼ 2 loops, 1.25 points above TaH-Mismatch. Inset: fixed-depth accuracy peaks at 2 loops.
Source: [https://arxiv.org/html/2609.03379](https://arxiv.org/html/2609.03379)
\\patchcmd
###### Abstract
Repeating a small block of middle layers increases a language model’s effective inference depth without adding parameters or generating extra tokens, and recent work shows that this latent recurrence improves reasoning\. However, two design choices limit these gains\. Each iteration sees only the previous output and cannot directly access earlier computations\. Moreover, a fixed loop count wastes depth on easy inputs while leaving hard ones with too little computation\. We introduceRecurTrace, which addresses both limitations using the loop’s own trajectory\. Specifically, Loop Memory Attention lets each looped layer attend to its own states from previous iterations along the loop\-time axis, so the model can revisit earlier computations instead of relying on the latest state alone\. A halting head then reads the loop state and predicts whether to continue, with supervision from an oracle that identifies when additional depth still reduces loss\. In a controlled MathQA comparison on the same looped backbone, RecurTrace achieves56\.9%56\.9\\%accuracy with an average of2\.02\.0loops, exceeding the best fixed loop depth by2\.22\.2points at matched compute\. By comparison, ACT and PonderNet collapse to one loop, and CALM reaches only54\.1%54\.1\\%with5\.65\.6loops, while the stronger LoopUS\-Conf and TaH\-Mismatch baselines reach55\.3%55\.3\\%at3\.23\.2loops and55\.7%55\.7\\%at2\.12\.1loops\. Finally, RecurTrace improves generation accuracy over same\-budget fine\-tuned baselines at0\.60\.6B,1\.71\.7B,44B, and88B, with the gain growing with model size from0\.60\.6to3\.43\.4points\.
\\aaai@affiliations
RecurTrace: Adaptive Latent Reasoning with Loop\-Time Memory Yuxiang Wang1,2Kunyu Feng1Yingda Shen1Haoning Xu2Junyu Wang2Zhizheng Wu1,3,4
Figure 1:MathQA accuracy versus mean loop count by halting method \(1\.71\.7B,33training×\\times88evaluation seeds\)\. Points are means±1\\pm 1SD across training seeds; the dashed line marks the best fixed depth \(54\.71%54\.71\\%\)\. RecurTrace reaches56\.92%56\.92\\%at∼2\{\\sim\}2loops,1\.251\.25points above TaH\-Mismatch\. Inset: fixed\-depth accuracy peaks at22loops\.## 1Introduction
A transformer spends the same number of layers on an easy question and on a hard one\. This is convenient for training but wasteful at inference\. Reasoning quality scales with effective depth, whether the depth comes from stacking more layers, from spelling out a chain of thought in tokens\([Wei et al\. 2022](https://arxiv.org/html/2609.03379#bib.bib47)\), or from iterating a block of layers in latent space\([Saunshi et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib39);[Geiping et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib17)\)\. Among these routes, latent looping increases effective depth without emitting additional reasoning tokens\. It adds depth at inference without new parameters or longer outputs, and it leaves the tokenizer and the decoding loop unchanged\.
Two problems keep latent looping from delivering on this promise\. The first is that the loop forgets\. A looped block re\-runs the same layers on their own output and passes forward only a single hidden state\. Whatever an earlier iteration computed must fit into that state or be overwritten by later passes\. A loop that cannot consult its own past cannot reason across iterations\. The second problem is that the loop cannot budget\. Looped models fix the iteration count for the whole dataset, so an easy question gets as many loops as a hard one\. Figure[1](https://arxiv.org/html/2609.03379#S0.F1)shows the cost\. On MathQA, a1\.71\.7B looped model peaks at two loops with54\.7%54\.7\\%accuracy, stays near53\.6%53\.6\\%at the eight\-loop training clamp, and falls to47\.5%47\.5\\%at sixteen\. More loops soon stop helping and then hurt, so no fixed budget suits every input\.
For the memory problem, two concurrent efforts attach external stores to looped language models, gated key\-value banks in[Frey et al\. \(2026\)](https://arxiv.org/html/2609.03379#bib.bib14)and a multi\-slot buffer with read\-write routers in MeSH\([Yu et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib53)\), each adding extra parameters and a learned read\-write mechanism\. For budgeting, Adaptive Computation Time \(ACT\)\([Graves 2016](https://arxiv.org/html/2609.03379#bib.bib20)\)and PonderNet\([Banino, Balaguer, and Blundell 2021](https://arxiv.org/html/2609.03379#bib.bib5)\)halt under a compute penalty or a geometric prior, confidence rules such as CALM\([Schuster et al\. 2022](https://arxiv.org/html/2609.03379#bib.bib40)\)exit once an intermediate state looks certain, and Mixture\-of\-Recursions gives each token its own recursion depth but trains its routers from scratch\([Bae et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib3)\)\. On a pretrained model whose block is looped, a penalty on extra loops makes halting stop too early, and a confidence threshold makes it stop too late\.
Our starting point is that the loop already produces everything both problems require, so no outside machinery is needed\. The states it computed on earlier passes are a ready\-made memory, and the state it holds now carries evidence about whether another pass will change the answer\. Therefore, we proposeRecurTrace, which converts a pretrained Qwen3 model\([Yang et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib51)\)into a memory\-augmented looped reasoner with learned halting\. For the forgetting problem, we give every looped layer a Loop Memory Attention module\. Along a loop\-time axis, each token attends from its current state to its own states from previous loops, so a layer can read what it computed one or two iterations earlier\. The module sits beside the existing self\-attention, adds few parameters, and mixes no information across token positions, so it cannot leak future tokens\. For the budgeting problem, we train a halting head that reads the loop state and predicts whether a deeper loop will still help\. Its supervision comes from an oracle that records, for each training example, the depth at which the answer stops improving, a measured target used directly, with no added compute penalty or confidence proxy\. At inference the model loops until the head says stop, so depth is set per input rather than fixed across the dataset\.
The memory and the halting head need each other\. Without the memory, extra loops barely help, so the halting head gains little by running an input longer\. Without the halting head, every input gets the same number of loops, so the extra loops the memory makes useful are wasted on easy inputs and denied to hard ones\. Figure[1](https://arxiv.org/html/2609.03379#S0.F1)previews the outcome on MathQA\. RecurTrace reaches56\.9%56\.9\\%at2\.02\.0loops, improving on the best fixed loop budget by2\.22\.2points at a comparable mean depth and beating every adaptive\-compute baseline we test, including the recent LoopUS\([Park et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib33)\)and Think\-at\-Hard\([Fu et al\. 2026b](https://arxiv.org/html/2609.03379#bib.bib16)\)\.
RecurTrace is also practical to adopt\. All base weights stay frozen, the added modules hold at most about2\.2%2\.2\\%of the parameters, and they start out nearly inactive, so a single loop reproduces the pretrained model exactly, a safe floor that more loops build on\. Across0\.60\.6B,1\.71\.7B,44B, and88B, RecurTrace raises generation accuracy over same\-budget baselines at every scale, with the gain growing to3\.43\.4points at88B, and lowers teacher\-forced loss at all four\. Our contributions are:
- •Loop Memory Attention\.An attention along the loop\-time axis through which every token reads its own states from earlier loops\. The looped block stays fully weight\-tied and carries no external memory store\.
- •Oracle\-distilled halting\.A sequence\-level halting head supervised by whether a deeper loop still lowers the loss, not by a prior, penalty, or confidence rule\. It matches or exceeds the best fixed depth across six tasks\.
- •One model for every depth\.One trained model serves every test\-time loop depth, not one model for each budget, and the recipe holds from0\.60\.6B to88B with accuracy and likelihood gains over same\-budget baselines\.
## 2Related Work
#### Looped and recurrent\-depth transformers\.
Reusing layers to add depth without new parameters dates to the Universal Transformer\([Dehghani et al\. 2019](https://arxiv.org/html/2609.03379#bib.bib11)\), weight\-tied models such as ALBERT\([Lan et al\. 2020](https://arxiv.org/html/2609.03379#bib.bib27)\), and deep equilibrium models\([Bai, Kolter, and Koltun 2019](https://arxiv.org/html/2609.03379#bib.bib4)\)\. It pays off for reasoning, where[Saunshi et al\. \(2025\)](https://arxiv.org/html/2609.03379#bib.bib39)show a loopedkk\-layer block can rival akLkL\-layer network,[Geiping et al\. \(2025\)](https://arxiv.org/html/2609.03379#bib.bib17)sample the iteration count to reach deeper unrolls, and[Zhu et al\. \(2025\)](https://arxiv.org/html/2609.03379#bib.bib58)pretrain looped models at scale\. Encode\-Think\-Decode\([Koishekenov, Lipani, and Cancedda 2026](https://arxiv.org/html/2609.03379#bib.bib26)\)re\-runs a pretrained middle block, and CoTFormer\([Mohtashami, Pagliardini, and Jaggi 2025](https://arxiv.org/html/2609.03379#bib.bib31)\)interleaves looped and fresh representations\. Plain\-looping approaches pass only the previous output between iterations and keep no addressable record of intermediate states\. RecurTrace adds that record and reads it with attention along the loop\-time axis\. Dreamer\([Knupp et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib25)\)also attends along depth in a recurrent sparse\-expert architecture, whereas RecurTrace grafts its loop\-time read and halting onto a frozen dense model\.
External stores sit outside the recurrence, including the gated memory banks of[Frey et al\. \(2026\)](https://arxiv.org/html/2609.03379#bib.bib14)and the multi\-slot buffer of MeSH\([Yu et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib53)\)\. DiscoLoop\([Fu et al\. 2026a](https://arxiv.org/html/2609.03379#bib.bib15)\)and PonderLM\([Zeng et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib55)\)instead feed re\-encoded predictions back into the loop\. RecurTrace keeps the block weight\-tied and adds no store, querying only the trajectory the recurrence already produced\. The concurrent LoopUS\([Park et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib33)\)likewise recasts a pretrained model into encode\-think\-decode blocks with a selective gate, keeps no addressable history, and exits on a confidence rule we find overspends the loop budget\.
Figure 2:RecurTrace architecture\. A frozen encoder feeds a weight\-tied block that recurs to variable depth, re\-injecting its input after the first loop\. Before each looped layer, Loop Memory Attention reads same\-position states from a three\-loop sliding window\. Random\-depth training supports multiple depths, while an oracle\-distilled halting head predicts whether another loop will help, allocating more computation to hard inputs\. After halting, the remaining frozen layers generate the answer\.
#### Adaptive computation and early exit\.
Adaptive Computation Time\([Graves 2016](https://arxiv.org/html/2609.03379#bib.bib20)\)accumulates a stopping probability, and PonderNet\([Banino, Balaguer, and Blundell 2021](https://arxiv.org/html/2609.03379#bib.bib5)\)halts under a geometric prior over steps\. For pretrained models, depth\-adaptive decoding\([Elbayad et al\. 2020](https://arxiv.org/html/2609.03379#bib.bib12)\), DeeBERT\([Xin et al\. 2020](https://arxiv.org/html/2609.03379#bib.bib50)\), and CALM\([Schuster et al\. 2022](https://arxiv.org/html/2609.03379#bib.bib40)\)exit early once a layer is confident, while Mixture\-of\-Depths\([Raposo et al\. 2024](https://arxiv.org/html/2609.03379#bib.bib36)\)spends each layer on only some tokens\. Mixture\-of\-Recursions adapts the recursion depth per token with scratch\-trained routers\([Bae et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib3)\), and Think\-at\-Hard\([Fu et al\. 2026b](https://arxiv.org/html/2609.03379#bib.bib16)\)iterates only tokens predicted wrong after one pass\. We instead adapt how often the looped block repeats, halt per sequence, and supervise the head with an oracle marking whether a deeper loop lowers the loss, not with a prior, penalty, confidence, or token\-mismatch rule, so it asks when added depth pays off for the sequence rather than whether one token was wrong\.
#### Scaling test\-time compute\.
Chain\-of\-thought prompting\([Wei et al\. 2022](https://arxiv.org/html/2609.03379#bib.bib47)\), self\-consistency\([Wang et al\. 2023](https://arxiv.org/html/2609.03379#bib.bib46)\), and adaptive test\-time scaling\([Zhai et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib56)\)use extra decoding compute; reinforcement learning trains reasoning models\([Zhang et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib57)\)\. A complementary line stays latent, appending pause tokens\([Goyal et al\. 2024](https://arxiv.org/html/2609.03379#bib.bib19)\)or feeding hidden states back as continuous thoughts\([Hao et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib21);[Wei et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib48)\)\. Latent looping scales per\-token computation without emitting tokens, and RecurTrace asks how to make each loop count and when to stop\.
RecurTrace starts from a pretrained LLM withLLtransformer layers, where layerℓ\\ellmaps a hidden statehhtolayerℓ\(h\)\\mathrm\{layer\}\_\{\\ell\}\(h\)\. We designate a contiguous block ofkkmiddle layers,ℬ=\{s,…,s\+k−1\}\\mathcal\{B\}=\\\{s,\\dots,s\{\+\}k\{\-\}1\\\}, as a looped thinking block and repeat itTTtimes at inference\. The layers before the block act as an encoder and the layers after it as a decoder, following the encode\-think\-decode view\([Koishekenov, Lipani, and Cancedda 2026](https://arxiv.org/html/2609.03379#bib.bib26)\)\. Figure[2](https://arxiv.org/html/2609.03379#S2.F2)shows the design\. Three ingredients make the loop useful\. A memory carries information across iterations, variable\-depth training exposes the model to many depths, and a halting head picks the depth per input\.
#### Choosing the looped block\.
We place the block where iterating helps most\. Following the angular\-distance probe of[Koishekenov, Lipani, and Cancedda \(2026\)](https://arxiv.org/html/2609.03379#bib.bib26), we first locate the broad middle span whose representations move least between adjacent layers, the span that behaves most like a fixed point, and then pick a compact three\-layer window inside it by behavioral ablation\. This yields layers1212–1414for the2828\-layer0\.60\.6B and1\.71\.7B Qwen3 bases and layers1515–1717for the3636\-layer44B and88B ones\. Probe\-core and late\-block controls are comparable or weaker \(Appendix[B](https://arxiv.org/html/2609.03379#A2)\)\.
#### Looped computation\.
Leteebe the block input, the output of layers−1s\{\-\}1\. We writexℓ\(t\)x\_\{\\ell\}^\{\(t\)\}for the state produced by layerℓ\\ellon looptt\. Each loop after the first begins by re\-injecting the block input,
h←h\+αRMSNorm\(e\),h\\leftarrow h\+\\alpha\\,\\mathrm\{RMSNorm\}\(e\),\(1\)with a scalarα\\alphainitialized to zero in the ReZero style\([Bachlechner et al\. 2021](https://arxiv.org/html/2609.03379#bib.bib2)\), so injection starts as a no\-op\. Re\-injecting the input anchors the recurrence as depth grows\([Geiping et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib17)\), a device with roots in the deep\-thinking and recall networks of[Schwarzschild et al\. \(2021\)](https://arxiv.org/html/2609.03379#bib.bib41)and[Bansal et al\. \(2022\)](https://arxiv.org/html/2609.03379#bib.bib6)\. Inside the loop, before applying each block layer we add a memory term and then run the unchanged layer,
h\\displaystyle h←h\+LMAℓ\(xℓ\(t−1\),Mℓ\(t\)\),\\displaystyle\\leftarrow h\+\\mathrm\{LMA\}\_\{\\ell\}\\\!\\left\(x\_\{\\ell\}^\{\(t\-1\)\},M\_\{\\ell\}^\{\(t\)\}\\right\),\(2\)xℓ\(t\)\\displaystyle x\_\{\\ell\}^\{\(t\)\}←layerℓ\(h\),\\displaystyle\\leftarrow\\mathrm\{layer\}\_\{\\ell\}\(h\),\(3\)whereMℓ\(t\)=\{xℓ\(t′\)∣max\(1,t−W\)≤t′≤t−1\}M\_\{\\ell\}^\{\(t\)\}=\\\{x\_\{\\ell\}^\{\(t^\{\\prime\}\)\}\\mid\\max\(1,t\{\-\}W\)\\leq t^\{\\prime\}\\leq t\{\-\}1\\\}is a sliding window of the layer’s own outputs from up toWWearlier loops\. On the first loopMℓM\_\{\\ell\}is empty, soLMAℓ\\mathrm\{LMA\}\_\{\\ell\}returns zero, and at initializationT=1T\{=\}1reproduces the base model\.
Algorithm 1Difficulty\-adaptive looped inferenceInputtokens, with budgetTmaxT\_\{\\max\}, floorTminT\_\{\\min\}, and thresholdτ\\tau Outputnext\-token distribution
1:
h←h\\leftarrowencode the input through layers
0\.\.s−10\.\.s\{\-\}1, then set
e←he\\leftarrow h
2:for
t=1t=1to
TmaxT\_\{\\max\}do
3:if
t\>1t\>1then
h←h\+αRMSNorm\(e\)h\\leftarrow h\+\\alpha\\,\\mathrm\{RMSNorm\}\(e\)\(input injection\)
4:for
ℓ∈ℬ\\ell\\in\\mathcal\{B\}do
5:if
t\>1t\>1then
h←h\+LMAℓ\(xℓ\(t−1\),Mℓ\(t\)\)h\\leftarrow h\+\\mathrm\{LMA\}\_\{\\ell\}\(x\_\{\\ell\}^\{\(t\-1\)\},M\_\{\\ell\}^\{\(t\)\}\)
6:
h←layerℓ\(h\)h\\leftarrow\\mathrm\{layer\}\_\{\\ell\}\(h\), then store
xℓ\(t\)←hx\_\{\\ell\}^\{\(t\)\}\\leftarrow hin
MℓM\_\{\\ell\}
7:endfor
8:
pt←σ\(w⊤pool\(h\)\+b\)p\_\{t\}\\leftarrow\\sigma\(w^\{\\\!\\top\}\\mathrm\{pool\}\(h\)\+b\)\(continue probability\)
9:if
t≥Tmint\\geq T\_\{\\min\}and
pt<τp\_\{t\}<\\tauthen break\(easy input, stop early\)
10:endfor
11:returndecode
hhthrough layers
s\+k\.\.L−1s\{\+\}k\.\.L\{\-\}1and the LM head
#### Loop Memory Attention\.
The memory term in Eq\. \([2](https://arxiv.org/html/2609.03379#S3.E2)\) is an attention over the loop\-time axis\. For a query stateq=xℓ\(t−1\)q=x\_\{\\ell\}^\{\(t\-1\)\}and a window ofmmpast states stacked asXX, we normalize both, form per\-head queries, keys, and valuesQ,K,VQ,K,Vwith QK\-normalization, and for every token position attend across themmloop slots,
Ai,j=softmaxj\(Qi⊤Ki,jdh−βh\(t−tj\)\),A\_\{i,j\}=\\mathrm\{softmax\}\_\{j\}\\\!\\left\(\\frac\{Q\_\{i\}^\{\\\!\\top\}K\_\{i,j\}\}\{\\sqrt\{d\_\{h\}\}\}\-\\beta\_\{h\}\\,\(t\-t\_\{j\}\)\\right\),\(4\)LMAℓ\(q,X\)=γ⋅g⊙\(\[∑jAi,jVi,j\]iWo\)\.\\mathrm\{LMA\}\_\{\\ell\}\(q,X\)=\\gamma\\cdot g\\odot\\Big\(\\big\[\\textstyle\\sum\_\{j\}A\_\{i,j\}V\_\{i,j\}\\big\]\_\{i\}W\_\{o\}\\Big\)\.\(5\)The term−βh\(t−tj\)\-\\beta\_\{h\}\(t\-t\_\{j\}\)is a relative loop\-distance bias with a free, signed, learnable per\-head slopeβh\\beta\_\{h\}, initialized to ALiBi values\([Press, Smith, and Lewis 2022](https://arxiv.org/html/2609.03379#bib.bib35)\)\. Because the bias depends only on how many loops ago a state was written, the module extrapolates to more loops than it saw in training\. The attention runs along loop time only and never mixes token positions, so it adds no path for future tokens to leak into the present\. A scalar gateγ\\gammaand a token\-wise gateg=σ\(MLP\(\[q,X¯\]\)\)g=\\sigma\(\\mathrm\{MLP\}\(\[q,\\overline\{X\}\]\)\), whereX¯\\overline\{X\}is the mean of the memory, let the model close the memory on inputs that do not need it and open it on inputs that do\. The combined gate starts near zero, so the memory path opens gradually during training\. Reading the past through attention, rather than through an external buffer, also keeps the additions close to the pretrained model\. The block stays weight\-tied, no slot routing is learned, and the sliding window caps the cost of remembering at a constant\.
#### Variable\-depth training\.
We do not fix the loop count during training\. On each forward pass we drawTTfrom a clamped log\-normal Poisson distribution\([Geiping et al\. 2025](https://arxiv.org/html/2609.03379#bib.bib17)\), which places most mass at small depths but keeps a heavy tail of deep unrolls, and we apply the language\-model loss at the sampled depth\. The realized distribution has a mean depth near3\.93\.9, and about a fifth of passes run six or more loops \(Appendix[D](https://arxiv.org/html/2609.03379#A4)\)\. This single change lets one trained model serve any test\-time depth and extrapolate beyond the depths it trained on\. All loop parameters are added to the pretrained weights, and the nearly closed gates keep the model close to its starting point early in training\.
#### Difficulty\-adaptive halting\.
To decide how deep to go, we add a lightweight halting head\. After loopttwe pool the block state over prompt positions into a vectorztz\_\{t\}and predict a continue probabilitypt=σ\(w⊤zt\+b\)p\_\{t\}=\\sigma\(w^\{\\\!\\top\}z\_\{t\}\+b\)\. We supervise it by distilling an oracle that reads the same forward pass\. Letℒt\\mathcal\{L\}\_\{t\}be the per\-example loss from decoding at depthtt\. The oracle marks “continue” only when a deeper loop helps,
yt=\[mint′\>tℒt′<ℒt−δ\],y\_\{t\}=\\mathbb\{1\}\\\!\\left\[\\min\_\{t^\{\\prime\}\>t\}\\mathcal\{L\}\_\{t^\{\\prime\}\}<\\mathcal\{L\}\_\{t\}\-\\delta\\right\],\(6\)for a marginδ\\delta, and the head is trained with binary cross\-entropy againstyty\_\{t\}at a set of probe depths\. The same head also supports the ACT and PonderNet objectives, which we use for the baselines\. At inference \(Algorithm[1](https://arxiv.org/html/2609.03379#alg1)\) the model loops until the head says stop or a budgetTmaxT\_\{\\max\}is reached, with a floor ofTminT\_\{\\min\}loops\. The stopping thresholdτ\\tauis chosen on held\-out data, taking the smallest mean depth that does not lose likelihood, and is never tuned on the test set\.
Table 1:Per\-scale models\.LLis the number of base layers anddmodeld\_\{\\text\{model\}\}the hidden size\. Every scale freezes the base and trains only the loop, memory, injection, and halting parameters, with per\-scale training schedules in Appendix[A](https://arxiv.org/html/2609.03379#A1)\.
## 4Experiments
Our experiments answer three questions about whether learned halting beats the best fixed depth, whether the loop\-memory gains carry across model scale and a broad task set, and what the extra loops cost\.
### 4\.1Experimental Setup
#### Setup\.
We build RecurTrace on four Qwen3 scales \(Table[1](https://arxiv.org/html/2609.03379#S3.T1)\)\. At every scale we add the looped block to a pretrained checkpoint, freeze the base weights, and train only the loop, memory, injection, and halting parameters\. Every comparison is against a no\-loop baseline under a matched budget of steps, tokens, data, and hardware\. Because the baseline fine\-tunes the full model while RecurTrace adds at most about2\.2%2\.2\\%trainable parameters, any budget mismatch favors the baseline\. The training mixture holds about1\.151\.15million direct\-answer examples combining synthetic generators with real math, multi\-hop question answering, and controlled logic \(Appendix[A](https://arxiv.org/html/2609.03379#A1)\)\. Since every target is a short final answer, test\-time loops add latent computation rather than output tokens\. We evaluate atrain\-coveredreasoning suite of1414tasks including GSM8K\([Cobbe et al\. 2021](https://arxiv.org/html/2609.03379#bib.bib10)\), MATH\([Hendrycks et al\. 2021b](https://arxiv.org/html/2609.03379#bib.bib23)\), and MathQA\([Amini et al\. 2019](https://arxiv.org/html/2609.03379#bib.bib1)\), and aclassicsuite of eight general benchmarks including ARC\([Clark et al\. 2018](https://arxiv.org/html/2609.03379#bib.bib9)\), HellaSwag\([Zellers et al\. 2019](https://arxiv.org/html/2609.03379#bib.bib54)\), and MMLU\([Hendrycks et al\. 2021a](https://arxiv.org/html/2609.03379#bib.bib22)\), reporting greedy\-decoding generation accuracy and teacher\-forced NLL \(nats, lower is better\)\. BIG\-Bench Hard\([Suzgun et al\. 2023](https://arxiv.org/html/2609.03379#bib.bib43)\)is diagnostic only\.
We run the controlled adaptive\-halting comparison on MathQA at1\.71\.7B, the setting with the most room for adaptive depth\. Direct\-answer GSM8K scores low at this scale and most classic suites peak at shallow depth, so both are less suited to the controlled study\. From the MathQA test set we draw88non\-overlapping evaluation seeds of300300items each, giving24002400unique items with no item shared across seeds, and select every stopping threshold on held\-out data\. This covers about80%80\\%of the test set while supporting per\-seed variance estimates \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\. We compare against fixed\-loop baselines, ACT and PonderNet on the same backbone, the CALM confidence early\-exit rule in its margin and top\-probability forms, and the recent LoopUS\-Conf and TaH\-Mismatch\. All four scales use three training seeds that vary the loop\-module initialization and data order\.
### 4\.2Learned Halting on MathQA
#### Learned halting beats the best fixed depth and, with a two\-loop floor, avoids collapse\.
An adaptive halting head can fail in two opposite ways\. It may collapse to a single loop, as indirect halting objectives tend to do when few inputs benefit from depth, or spend extra loops without improving accuracy\. An effective head should beat the best fixed depth at matched compute while avoiding both\. Table[2](https://arxiv.org/html/2609.03379#S4.T2)shows that RecurTrace meets these criteria on MathQA at1\.71\.7B across three training seeds\. It reaches56\.9%56\.9\\%accuracy \(std0\.410\.41pp\) at a mean of2\.042\.04loops, outperforming the best fixed depth \(T=2T\{=\}2\) by2\.22\.2points at matched compute\. The exact McNemar test\([McNemar 1947](https://arxiv.org/html/2609.03379#bib.bib29);[Fagerland, Lydersen, and Laake 2013](https://arxiv.org/html/2609.03379#bib.bib13)\)confirms this gain for every training seed \(p<0\.001p<0\.001, Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\. The improvement has two separable sources\. The two\-loop floor is what prevents collapse, raising the one\-loop baseline from11991199to13131313correct; on top of it, the learned head adds5353more by deepening mostly items that benefit\. Without the floor the head itself mostly stops at one loop \(Appendix[G](https://arxiv.org/html/2609.03379#A7)\), so the floor guarantees the depth while the head allocates it\. The baselines fail in opposite directions\. ACT and PonderNet collapse to one loop and, even with the same floor, never deepen beyond it, so they do not exceed fixedT=2T\{=\}2\. CALM spends5\.65\.6loops but reaches only54\.1%54\.1\\%\. Two recent baselines narrow the gap\. LoopUS\-Conf, a learned confidence head with monotonicity training, reaches55\.3%55\.3\\%at3\.23\.2loops, while TaH\-Mismatch, which distills an oracle based on token mismatch, reaches55\.7%55\.7\\%at2\.12\.1loops\. Oracle supervision based on loss improvement lets RecurTrace surpass both with56\.9%56\.9\\%at2\.02\.0loops\. A correctness oracle that assigns each item the depth at which its greedy answer is correct reaches61\.0%61\.0\\%\. RecurTrace therefore lies between the best fixed depth \(54\.7%54\.7\\%\) and this ceiling, closing about one third of the6\.36\.3point gap\.
MethodAccCorrectLoops𝚫\\DeltavsT=𝟐T\{=\}2Fixed depth,T=1T\{=\}149\.9611991\.00−114\-114Fixed depth,T=2T\{=\}254\.7113132\.0000Fixed depth,T=8T\{=\}853\.6212878\.00−26\-26Fixed depth,T=16T\{=\}1647\.54114116\.00−172\-172ACT49\.9611991\.00−114\-114PonderNet49\.9611991\.00−114\-114ACT\+\+floor54\.7113132\.0000PonderNet\+\+floor54\.7113132\.0000CALM \(top\-prob\)53\.0412734\.15−40\-40CALM \(margin\)54\.1212995\.63−14\-14LoopUS\-Conf55\.2513263\.21\+13\+13TaH\-Mismatch55\.6713362\.12\+23\+23RecurTrace56\.9213662\.04\+𝟓𝟑†\\mathbf\{\+53\}^\{\\dagger\}Table 2:Adaptive depth on MathQA \(1\.71\.7B,33training seeds×\\times88non\-overlapping evaluation seeds,24002400unique items\)\. Values are three\-training\-seed means\. Acc is accuracy \(%\\%\), Correct the mean number right of24002400, Loops the mean loop count, andΔ\\Deltathe correct\-answer gain over fixedT=2T\{=\}2\.†\\daggerexact McNemarp<0\.001p<0\.001vsT=2T\{=\}2on every training seed\.
#### Fewer loops yield real speedups\.
A lower loop count is a real saving only if runtime is set by the loop rather than by the added modules, which contribute at most about2\.2%2\.2\\%more parameters\. Because every iteration re\-runs the same three\-layer block, runtime grows with depth: about1\.1×1\.1\\timesthe base model at two loops against1\.7×1\.7\\timesat eight and more at sixteen \(Appendix[C](https://arxiv.org/html/2609.03379#A3)\)\. Stopping near two loops therefore buys a wall\-clock speedup over deeper fixed schedules, not merely a smaller reported loop count\.
#### The halting head spends compute where it is needed\.
Figure[3](https://arxiv.org/html/2609.03379#S4.F3)shows depth tracks difficulty at an illustrative operating point \(τ=0\.10\\tau\{=\}0\.10, mean2\.802\.80loops\)\. An item is hard if it is wrong after one loop, easy otherwise\. Hard items average3\.103\.10loops against2\.502\.50for easy ones, a gap of about0\.60\.6loops that stays positive on all eight seeds\. The right panel shows both groups peak at two loops while hard items carry a heavier tail\. At the main operating point in Table[2](https://arxiv.org/html/2609.03379#S4.T2)\(τ=0\.50\\tau\{=\}0\.50, mean2\.042\.04loops\) the hard\-easy gap is still positive at\+0\.06\+0\.06loops even though97\.3%97\.3\\%of items stop at the floor\. Only∼65\{\\sim\}65items per training seed deepen further yet supply the entire\+53\+53net gain \(5656wrong\-to\-right,33right\-to\-wrong\), and85%85\\%are oracle\-positive \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\.
Figure 3:Depth tracks difficulty on MathQA at the illustrative operating pointτ=0\.10\\tau\{=\}0\.10\(Appendix[G](https://arxiv.org/html/2609.03379#A7)reports the main point\)\. Left panel, hard items receive more loops than easy items on average \(3\.103\.10versus2\.502\.50\), with dots showing the88seeds\. Right panel, both groups peak at two loops, but hard items have a heavier tail, a mean gap of about0\.60\.6loops\.Table 3:Per\-task adaptive halting at1\.71\.7B \(each task trains its own head and threshold\)\. Fixed is aT=8T\{=\}8budget, Best the best fixed depth over\{1,2,4,6,8\}\\\{1,2,4,6,8\\\}, Adaptive the halting head, and Loops its mean loop count \(nnis the evaluation size, accuracies in%\\%\)\. These per\-task heads run without the two\-loop floor \(Tmin=1T\_\{\\min\}\{=\}1\), so mean loops can fall below two\. Adaptive matches or beats Best while cutting mean loops by6565–87%87\\%\. Low accuracies reflect direct answers, not chain\-of\-thought\([Cobbe et al\. 2021](https://arxiv.org/html/2609.03379#bib.bib10)\)\.
#### Adaptive halting transfers beyond MathQA\.
Oracle distillation transfers when each benchmark uses its own halting head and a threshold selected on held\-out data rather than sharing one policy across tasks\. Table[3](https://arxiv.org/html/2609.03379#S4.T3)reports five tasks at1\.71\.7B against two baselines\. The Fixed baseline always runs eight loops, which wastes compute because these tasks rarely require that depth; against it, adaptive halting gains up to\+5\.9\+5\.9points on ARC\-Challenge and\+4\.9\+4\.9on GSM8K while using far fewer loops\. The stronger Best column selects each task’s best fixed depth from\{1,2,4,6,8\}\\\{1,2,4,6,8\\\}, and adaptive halting matches or exceeds it on every task using only1\.11\.1to2\.82\.8loops on average\.
### 4\.3Scaling and Breadth
#### RecurTrace scales from 0\.6B to 8B\.
Figure[4](https://arxiv.org/html/2609.03379#S4.F4)compares RecurTrace with the same\-budget fine\-tuned baseline across model sizes at a fixed two\-loop depth without adaptive halting\. Generation accuracy over the combined train\-covered and classic suites \(2222tasks\) improves at all four scales, by0\.60\.6,1\.21\.2,2\.22\.2, and3\.43\.4points from0\.60\.6B to88B, and teacher\-forced NLL falls at all four, by0\.150\.15,0\.080\.08,0\.020\.02, and0\.010\.01nats\. All four gains use three training seeds \(std0\.220\.22,0\.290\.29,0\.330\.33,0\.370\.37pp from0\.60\.6B to88B\)\. The two metrics diverge with scale because they average over different populations: NLL over every answer token, most of which a strong base already predicts confidently, accuracy only over items whose argmax flips \(Appendix[H](https://arxiv.org/html/2609.03379#A8)\)\. Separate ablations isolate the memory at every scale \(Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)\), and a matched same\-start control at88B confirms the advantage\.
Figure 4:Gains persist across scale\. Theis the generation accuracy gain over a same\-budget fine\-tuned baseline that grows to\+3\.4\+3\.4points at88B\. Theis the teacher\-forced NLL reduction, positive at every scale and largest at0\.60\.6B, reaching0\.150\.15nats\. Shaded bands denote±1\\pm 1standard deviation across33training seeds at each scale\.
#### Both task families gain, not just MathQA\.
The scaling results aggregate2222tasks and could therefore be dominated by a few strong tasks\. Table[4](https://arxiv.org/html/2609.03379#S4.T4)addresses this concern at1\.71\.7B by separating the1414train\-covered tasks whose training splits enter our mixture from the88classic multiple\-choice benchmarks and comparing each family with the same\-budget baseline\. Both families improve on both metrics\. Accuracy rises by\+0\.8\+0\.8points on train\-covered tasks and\+1\.9\+1\.9on classic tasks \(64\.5%64\.5\\%to66\.4%66\.4\\%\), while NLL decreases for both\. Per\-task results appear in Appendix[F](https://arxiv.org/html/2609.03379#A6)\.
Table 4:Breadth at1\.71\.7B against the same\-budget fine\-tuned baseline, by benchmark family\. Teacher\-forced NLL change \(nats\) and accuracy change \(pp\) are both at a fixed two\-loop depth\. Per\-suite numbers are in Appendix[F](https://arxiv.org/html/2609.03379#A6)\.
## 5Ablations and Analysis
Having shown that RecurTrace works, we now ask why\. We separate the loop memory from the extra depth it exploits, isolate what each loop component contributes, examine how the halting head behaves, and state the limits of these claims\.
### 5\.1What Drives the Gain
#### Loop Memory Attention is essential for effective looping\.
Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)isolates the contribution of Loop Memory Attention by comparing it with plain looping, thereby testing whether additional loop depth alone explains the gains\. On the train\-covered suite at0\.60\.6B, plain looping lowers NLL by only0\.060\.06nats, while adding memory increases this reduction to0\.150\.15nats\. At1\.71\.7B,44B, and88B, plain looping instead raises NLL by0\.070\.07,0\.050\.05, and0\.060\.06nats\. Memory reverses every one of these regressions and lowers NLL by0\.030\.03,0\.030\.03, and0\.020\.02nats\. Extra iterations are therefore unreliable on their own, while access to previous loop states turns them into consistent refinement rather than representational drift\. The same conclusion holds for generation\. At1\.71\.7B, memory raises accuracy over plain looping by2\.32\.3points on MathQA and2\.42\.4points on the classic suite\. Freezing the base is not what earns the classic\-suite gain, since plain looping freezes the same base yet reaches only64\.0%64\.0\\%, below the fine\-tuned baseline’s64\.5%64\.5\\%, and only memory lifts it to66\.4%66\.4\\%\. Loop Memory Attention is therefore not a minor enhancement to recurrence but the mechanism that makes the added depth useful\. The memoryless configuration is exactly the ETD baseline of[Koishekenov, Lipani, and Cancedda \(2026\)](https://arxiv.org/html/2609.03379#bib.bib26), making Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)a direct comparison with the closest prior method\.
Table 5:Ablation of Loop Memory Attention against plain looping\. Teacher\-forced NLLΔ\\Deltais measured against the same\-budget baseline on the train\-covered suite at the best\-likelihood loop\. Generation accuracy uses two loops at1\.71\.7B\. The last three rows test whether the model still solves problems that need more reasoning steps than training used, running the trained model past its eight\-loop training limit on newly generated instances of three synthetic tasks whose symbols are held out from training\.#### Task structure determines when memory helps\.
The last three rows of Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)run each model past its eight\-loop training limit and test whether it still reaches the correct answer\. The tasks come from synthetic generators with controllable difficulty and test symbols excluded from training, so accuracy reflects reasoning rather than memorization \(Appendix[A](https://arxiv.org/html/2609.03379#A1)\)\. Pointer chasing follows a mapping from one symbol to the next, so each step requires only the current symbol\. Symbolic state tracking applies rules that update an abstract state, while arithmetic applies numerical operations toward a final value\. Both require intermediate results to persist across steps\. This structural distinction explains the results\. Plain looping leads by4\.74\.7points on pointer chasing, where past states are unnecessary\. Memory instead leads by17\.717\.7points on symbolic state tracking and16\.716\.7points on arithmetic, where state must be preserved\. The token\-wise gate supports both regimes by suppressing memory for pure lookup and activating it when past states matter, allowing one model to handle all three tasks without separate tuning\.
#### Capacity alone does not explain the gain\.
To separate recurrence from added capacity, we compare RecurTrace with a non\-looped adapter of matched size trained on the same block under the same protocol\. The adapter raises generation accuracy from44\.8%44\.8\\%to45\.4%45\.4\\%, half of RecurTrace’s1\.21\.2\-point gain, and lowers overall2222\-task teacher\-forced NLL by only0\.010\.01nats compared with RecurTrace’s0\.080\.08\. The larger gains therefore require looped depth with memory rather than additional parameters alone \(Appendix[H](https://arxiv.org/html/2609.03379#A8)\)\.
#### Additional optimization does not explain the memory gain\.
At88B, we isolate the effect of memory from additional optimization by continuing the same plain\-looping checkpoint for an equal number of steps with or without Loop Memory Attention\. Across both seeds, adding memory lowers teacher\-forced NLL by0\.030\.03to0\.040\.04nats, showing that the gain cannot be explained by the starting checkpoint or the training budget \(Appendix[H](https://arxiv.org/html/2609.03379#A8)\)\.
#### The memory components serve complementary roles\.
Table[6](https://arxiv.org/html/2609.03379#S5.T6)ablates each component in turn from full RecurTrace\. Removing QK\-normalization causes the largest degradation, indicating its role in stabilizing memory training\. Freezing the loop\-distance bias or initializing the gates open also degrades both metrics, suggesting that the model should learn how to weight earlier loop states and introduce memory gradually without disrupting pretrained representations\. Among the tested window sizes,W=3W\{=\}3performs best, supporting a compact three\-state memory \(Appendix[C](https://arxiv.org/html/2609.03379#A3)\)\.
Configuration \(1\.71\.7B\)NLL𝚫\\Delta\(nats\)↓\\downarrowMathQA \(%\)↑\\uparrowFull RecurTrace\-0\.0354\.7−\-QK\-normalization\+0\.05\+0\.0552\.8Loop\-distance bias frozen−0\.01\-0\.0153\.9Gates open at initialization\+0\.02\+0\.0253\.1Memory windowW=1W\{=\}1−0\.01\-0\.0153\.5Memory windowW=2W\{=\}2−0\.02\-0\.0254\.2Memory windowW=5W\{=\}5−0\.02\-0\.0254\.1Table 6:Component and window ablations at1\.71\.7B, each changing one piece of Loop Memory Attention against the full top\-row model\. NLLΔ\\Deltais the teacher\-forced NLL change over the same\-budget baseline on the train\-covered suite at best\-likelihood loop \(negative is better\) and MathQA is generation accuracy at a fixed two\-loop depth\.### 5\.2Halting Behavior
#### Indirect halting objectives collapse to one loop\.
ACT and PonderNet add an expected\-depth penalty \(ACT\) or a geometric prior \(PonderNet\) on top of the same oracle\-depth signal RecurTrace distills, and both penalties reward stopping early\. Because few examples benefit from additional loops, this generic pressure dominates the oracle quality signal and drives both methods to stop after one loop\. Sweeping each baseline’s regularization strength over\{0\.001,0\.01,0\.1\}\\\{0\.001,0\.01,0\.1\\\}leaves all six settings at a mean depth of1\.01\.0, showing that the collapse is not tied to one hyperparameter choice \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\. The collapse is a property of attaching penalty\-based halting post hoc to a frozen backbone, not a refutation of either method in the end\-to\-end setting it was designed for\. LoopUS\-Conf avoids collapse by training a dedicated confidence head with a monotonicity objective\([Park et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib33)\), but without an oracle it still overspends at3\.23\.2loops\. TaH\-Mismatch\([Fu et al\. 2026b](https://arxiv.org/html/2609.03379#bib.bib16)\)distills a token\-mismatch oracle that marks whether the current depth mispredicts the answer, reaching55\.7%55\.7\\%at2\.12\.1loops, closer to RecurTrace in compute but1\.21\.2points lower because the mismatch signal does not distinguish items that more depth can help from items that are simply hard\. RecurTrace’s loss\-improvement oracle captures this distinction \(Figure[3](https://arxiv.org/html/2609.03379#S4.F3)\)\.
#### One checkpoint supports multiple inference depths\.
Sampling the loop count during training lets the same checkpoint produce the fixed\-depth curve in Figure[1](https://arxiv.org/html/2609.03379#S0.F1)and allows the halting head to choose among depths without retraining\. Because the loop\-distance bias depends only on relative distance, it remains defined beyond the eight\-loop training range\. At sixteen loops the model stays stable at47\.5%47\.5\\%accuracy, below its two\-loop peak of54\.7%54\.7\\%\(Appendix[D](https://arxiv.org/html/2609.03379#A4)\)\.
### 5\.3Limitations
Four aspects remain outside the present study\. First, halting is sequence\-level and assigns one depth to an entire example rather than to individual tokens\. Second, Loop Memory Attention reads only same\-position states from a fixed three\-loop window, which keeps the cost bounded but excludes older states and cross\-position memory\. Third, our experiments use frozen Qwen3 decoder\-only models and direct\-answer targets, leaving other architectures and long\-form generation untested\. Finally, latent looping and chain\-of\-thought use different forms of compute and are complementary rather than direct substitutes, so combining them is a natural direction for future work\.
## 6Conclusion
We presented RecurTrace, which turns a pretrained LLM into a memory\-augmented looped reasoner with adaptive halting\. Loop Memory Attention gives each iteration access to earlier loop states, while an oracle\-distilled halting head selects the loop count for each input\. RecurTrace matches or exceeds the best fixed depth across six tasks and improves accuracy over same\-budget baselines at every scale from0\.60\.6B to88B\. These results show that the loop trajectory can support both memory and adaptive computation, suggesting a natural extension to chain\-of\-thought decoding\.
## References
- Amini et al\. \(2019\)Amini, A\.; Gabriel, S\.; Lin, S\. P\.; Koncel\-Kedziorski, R\.; Choi, Y\.; and Hajishirzi, H\. 2019\.MathQA: Towards Interpretable Math Word Problem Solving with Operation\-Based Formalisms\.In*Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics*\.
- Bachlechner et al\. \(2021\)Bachlechner, T\.; Majumder, B\. P\.; Mao, H\. H\.; Cottrell, G\. W\.; and McAuley, J\. 2021\.ReZero Is All You Need: Fast Convergence at Large Depth\.In*Proceedings of the Thirty\-Seventh Conference on Uncertainty in Artificial Intelligence*\.
- Bae et al\. \(2025\)Bae, S\.; Kim, Y\.; Bayat, R\.; Kim, S\.; Ha, J\.; Schuster, T\.; Fisch, A\.; Harutyunyan, H\.; Ji, Z\.; Courville, A\.; and Yun, S\.\-Y\. 2025\.Mixture\-of\-Recursions: Learning Dynamic Recursive Depths for Adaptive Token\-Level Computation\.In*Advances in Neural Information Processing Systems*\.
- Bai, Kolter, and Koltun \(2019\)Bai, S\.; Kolter, J\. Z\.; and Koltun, V\. 2019\.Deep Equilibrium Models\.In*Advances in Neural Information Processing Systems*\.
- Banino, Balaguer, and Blundell \(2021\)Banino, A\.; Balaguer, J\.; and Blundell, C\. 2021\.PonderNet: Learning to Ponder\.In*8th ICML Workshop on Automated Machine Learning*\.
- Bansal et al\. \(2022\)Bansal, A\.; Schwarzschild, A\.; Borgnia, E\.; Emam, Z\.; Huang, F\.; Goldblum, M\.; and Goldstein, T\. 2022\.End\-to\-End Algorithm Synthesis with Recurrent Networks: Extrapolation without Overthinking\.In*Advances in Neural Information Processing Systems*\.
- Bisk et al\. \(2020\)Bisk, Y\.; Zellers, R\.; Le Bras, R\.; Gao, J\.; and Choi, Y\. 2020\.PIQA: Reasoning about Physical Commonsense in Natural Language\.In*Proceedings of the AAAI Conference on Artificial Intelligence*\.
- Clark et al\. \(2019\)Clark, C\.; Lee, K\.; Chang, M\.\-W\.; Kwiatkowski, T\.; Collins, M\.; and Toutanova, K\. 2019\.BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questions\.In*Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics*\.
- Clark et al\. \(2018\)Clark, P\.; Cowhey, I\.; Etzioni, O\.; Khot, T\.; Sabharwal, A\.; Schoenick, C\.; and Tafjord, O\. 2018\.Think You Have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge\.arXiv:1803\.05457\.
- Cobbe et al\. \(2021\)Cobbe, K\.; Kosaraju, V\.; Bavarian, M\.; Chen, M\.; Jun, H\.; Kaiser, L\.; Plappert, M\.; Tworek, J\.; Hilton, J\.; Nakano, R\.; Hesse, C\.; and Schulman, J\. 2021\.Training Verifiers to Solve Math Word Problems\.arXiv:2110\.14168\.
- Dehghani et al\. \(2019\)Dehghani, M\.; Gouws, S\.; Vinyals, O\.; Uszkoreit, J\.; and Kaiser, L\. 2019\.Universal Transformers\.In*International Conference on Learning Representations*\.
- Elbayad et al\. \(2020\)Elbayad, M\.; Gu, J\.; Grave, E\.; and Auli, M\. 2020\.Depth\-Adaptive Transformer\.In*International Conference on Learning Representations*\.
- Fagerland, Lydersen, and Laake \(2013\)Fagerland, M\. W\.; Lydersen, S\.; and Laake, P\. 2013\.The McNemar Test for Binary Matched\-Pairs Data: Mid\-ppand Asymptotic Are Better than Exact Conditional\.*BMC Medical Research Methodology*, 13\(1\): 91\.
- Frey et al\. \(2026\)Frey, M\.; Shomali, B\.; Bashir, A\. H\.; Berghaus, D\.; Koehler, J\.; and Ali, M\. 2026\.Adaptive Loops and Memory in Transformers: Think Harder or Know More?arXiv:2603\.08391\.
- Fu et al\. \(2026a\)Fu, H\.; Guo, T\.; Wang, Z\.; Zhu, H\.; Lee, J\. D\.; Jiao, J\.; Russell, S\.; and Mei, S\. 2026a\.DiscoLoop: Looping Discrete Embeddings and Continuous Hidden States for Multi\-hop Reasoning\.arXiv:2607\.00341\.
- Fu et al\. \(2026b\)Fu, T\.; You, Y\.; Chen, Z\.; Dai, G\.; Yang, H\.; and Wang, Y\. 2026b\.Think\-at\-Hard: Selective Latent Iterations to Improve Reasoning Language Models\.In*Latent and Implicit Thinking Workshop at the International Conference on Learning Representations*\.
- Geiping et al\. \(2025\)Geiping, J\.; McLeish, S\.; Jain, N\.; Kirchenbauer, J\.; Singh, S\.; Bartoldson, B\. R\.; Kailkhura, B\.; Bhatele, A\.; and Goldstein, T\. 2025\.Scaling up Test\-Time Compute with Latent Reasoning: A Recurrent Depth Approach\.In*Advances in Neural Information Processing Systems*\.
- Geva et al\. \(2021\)Geva, M\.; Khashabi, D\.; Segal, E\.; Khot, T\.; Roth, D\.; and Berant, J\. 2021\.Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategies\.*Transactions of the Association for Computational Linguistics*\.
- Goyal et al\. \(2024\)Goyal, S\.; Ji, Z\.; Rawat, A\. S\.; Menon, A\. K\.; Kumar, S\.; and Nagarajan, V\. 2024\.Think before You Speak: Training Language Models with Pause Tokens\.In*International Conference on Learning Representations*\.
- Graves \(2016\)Graves, A\. 2016\.Adaptive Computation Time for Recurrent Neural Networks\.In*NIPS 2016 Deep Learning Symposium*\.
- Hao et al\. \(2025\)Hao, S\.; Sukhbaatar, S\.; Su, D\.; Li, X\.; Hu, Z\.; Weston, J\.; and Tian, Y\. 2025\.Training Large Language Models to Reason in a Continuous Latent Space\.In*Reasoning and Planning for Large Language Models Workshop at the International Conference on Learning Representations*\.
- Hendrycks et al\. \(2021a\)Hendrycks, D\.; Burns, C\.; Basart, S\.; Zou, A\.; Mazeika, M\.; Song, D\.; and Steinhardt, J\. 2021a\.Measuring Massive Multitask Language Understanding\.In*International Conference on Learning Representations*\.
- Hendrycks et al\. \(2021b\)Hendrycks, D\.; Burns, C\.; Kadavath, S\.; Arora, A\.; Basart, S\.; Tang, E\.; Song, D\.; and Steinhardt, J\. 2021b\.Measuring Mathematical Problem Solving with the MATH Dataset\.In*Advances in Neural Information Processing Systems Datasets and Benchmarks Track*\.
- Ho et al\. \(2020\)Ho, X\.; Duong Nguyen, A\.\-K\.; Sugawara, S\.; and Aizawa, A\. 2020\.Constructing a Multi\-hop QA Dataset for Comprehensive Evaluation of Reasoning Steps\.In*Proceedings of the 28th International Conference on Computational Linguistics*\.
- Knupp et al\. \(2026\)Knupp, J\.; Metzen, J\. H\.; Bohn, J\.; Groh, G\.; and Kersting, K\. 2026\.Depth\-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention It Deserves\.arXiv:2601\.21582\.
- Koishekenov, Lipani, and Cancedda \(2026\)Koishekenov, Y\.; Lipani, A\.; and Cancedda, N\. 2026\.Encode, Think, Decode: Scaling Test\-Time Reasoning with Recursive Latent Thoughts\.In*Latent and Implicit Thinking Workshop at the International Conference on Learning Representations*\.
- Lan et al\. \(2020\)Lan, Z\.; Chen, M\.; Goodman, S\.; Gimpel, K\.; Sharma, P\.; and Soricut, R\. 2020\.ALBERT: A Lite BERT for Self\-Supervised Learning of Language Representations\.In*International Conference on Learning Representations*\.
- Ling et al\. \(2017\)Ling, W\.; Yogatama, D\.; Dyer, C\.; and Blunsom, P\. 2017\.Program Induction by Rationale Generation: Learning to Solve and Explain Algebraic Word Problems\.In*Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics*\.
- McNemar \(1947\)McNemar, Q\. 1947\.Note on the Sampling Error of the Difference Between Correlated Proportions or Percentages\.*Psychometrika*, 12\(2\): 153–157\.
- Mihaylov et al\. \(2018\)Mihaylov, T\.; Clark, P\.; Khot, T\.; and Sabharwal, A\. 2018\.Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answering\.In*Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing*\.
- Mohtashami, Pagliardini, and Jaggi \(2025\)Mohtashami, A\.; Pagliardini, M\.; and Jaggi, M\. 2025\.CoTFormer: A Chain of Thought Driven Architecture with Budget\-Adaptive Computation Cost at Inference\.In*International Conference on Learning Representations*\.
- Paperno et al\. \(2016\)Paperno, D\.; Kruszewski, G\.; Lazaridou, A\.; Pham, Q\. N\.; Bernardi, R\.; Pezzelle, S\.; Baroni, M\.; Boleda, G\.; and Fernández, R\. 2016\.The LAMBADA Dataset: Word Prediction Requiring a Broad Discourse Context\.In*Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics*\.
- Park et al\. \(2026\)Park, T\.; Lee, Y\.; Kim, D\.; and Bae, H\. 2026\.LoopUS: Recasting Pretrained LLMs into Looped Latent Refinement Models\.*arXiv preprint arXiv:2605\.11011*\.
- Patel, Bhattamishra, and Goyal \(2021\)Patel, A\.; Bhattamishra, S\.; and Goyal, N\. 2021\.Are NLP Models Really Able to Solve Simple Math Word Problems?In*Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics*\.
- Press, Smith, and Lewis \(2022\)Press, O\.; Smith, N\. A\.; and Lewis, M\. 2022\.Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation\.In*International Conference on Learning Representations*\.
- Raposo et al\. \(2024\)Raposo, D\.; Ritter, S\.; Richards, B\.; Lillicrap, T\.; Humphreys, P\. C\.; and Santoro, A\. 2024\.Mixture\-of\-Depths: Dynamically Allocating Compute in Transformer\-Based Language Models\.arXiv:2404\.02258\.
- Roy and Roth \(2015\)Roy, S\.; and Roth, D\. 2015\.Solving General Arithmetic Word Problems\.In*Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing*\.
- Sakaguchi et al\. \(2020\)Sakaguchi, K\.; Le Bras, R\.; Bhagavatula, C\.; and Choi, Y\. 2020\.WinoGrande: An Adversarial Winograd Schema Challenge at Scale\.In*Proceedings of the AAAI Conference on Artificial Intelligence*\.
- Saunshi et al\. \(2025\)Saunshi, N\.; Dikkala, N\.; Li, Z\.; Kumar, S\.; and Reddi, S\. J\. 2025\.Reasoning with Latent Thoughts: On the Power of Looped Transformers\.In*International Conference on Learning Representations*\.
- Schuster et al\. \(2022\)Schuster, T\.; Fisch, A\.; Gupta, J\.; Dehghani, M\.; Bahri, D\.; Tran, V\. Q\.; Tay, Y\.; and Metzler, D\. 2022\.Confident Adaptive Language Modeling\.In*Advances in Neural Information Processing Systems*\.
- Schwarzschild et al\. \(2021\)Schwarzschild, A\.; Borgnia, E\.; Gupta, A\.; Huang, F\.; Vishkin, U\.; Goldblum, M\.; and Goldstein, T\. 2021\.Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networks\.In*Advances in Neural Information Processing Systems*\.
- Sinha et al\. \(2019\)Sinha, K\.; Sodhani, S\.; Dong, J\.; Pineau, J\.; and Hamilton, W\. L\. 2019\.CLUTRR: A Diagnostic Benchmark for Inductive Reasoning from Text\.In*Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing*\.
- Suzgun et al\. \(2023\)Suzgun, M\.; Scales, N\.; Schärli, N\.; Gehrmann, S\.; Tay, Y\.; Chung, H\. W\.; Chowdhery, A\.; Le, Q\. V\.; Chi, E\. H\.; Zhou, D\.; and Wei, J\. 2023\.Challenging BIG\-Bench Tasks and Whether Chain\-of\-Thought Can Solve Them\.In*Findings of the Association for Computational Linguistics: ACL 2023*\.
- Tafjord, Dalvi, and Clark \(2021\)Tafjord, O\.; Dalvi, B\.; and Clark, P\. 2021\.ProofWriter: Generating Implications, Proofs, and Abductive Statements over Natural Language\.In*Findings of the Association for Computational Linguistics: ACL\-IJCNLP 2021*\.
- Trivedi et al\. \(2022\)Trivedi, H\.; Balasubramanian, N\.; Khot, T\.; and Sabharwal, A\. 2022\.MuSiQue: Multihop Questions via Single\-hop Question Composition\.*Transactions of the Association for Computational Linguistics*\.
- Wang et al\. \(2023\)Wang, X\.; Wei, J\.; Schuurmans, D\.; Le, Q\.; Chi, E\. H\.; Narang, S\.; Chowdhery, A\.; and Zhou, D\. 2023\.Self\-Consistency Improves Chain of Thought Reasoning in Language Models\.In*International Conference on Learning Representations*\.
- Wei et al\. \(2022\)Wei, J\.; Wang, X\.; Schuurmans, D\.; Bosma, M\.; Ichter, B\.; Xia, F\.; Chi, E\.; Le, Q\.; and Zhou, D\. 2022\.Chain\-of\-Thought Prompting Elicits Reasoning in Large Language Models\.In*Advances in Neural Information Processing Systems*\.
- Wei et al\. \(2025\)Wei, X\.; Liu, X\.; Zang, Y\.; Dong, X\.; Cao, Y\.; Wang, J\.; Qiu, X\.; and Lin, D\. 2025\.SIM\-CoT: Supervised Implicit Chain\-of\-Thought\.arXiv:2509\.20317\.
- Weston et al\. \(2015\)Weston, J\.; Bordes, A\.; Chopra, S\.; Rush, A\. M\.; van Merriënboer, B\.; Joulin, A\.; and Mikolov, T\. 2015\.Towards AI\-Complete Question Answering: A Set of Prerequisite Toy Tasks\.arXiv:1502\.05698\.
- Xin et al\. \(2020\)Xin, J\.; Tang, R\.; Lee, J\.; Yu, Y\.; and Lin, J\. 2020\.DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference\.In*Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics*\.
- Yang et al\. \(2025\)Yang, A\.; et al\. 2025\.Qwen3 Technical Report\.arXiv:2505\.09388\.
- Yang et al\. \(2018\)Yang, Z\.; Qi, P\.; Zhang, S\.; Bengio, Y\.; Cohen, W\. W\.; Salakhutdinov, R\.; and Manning, C\. D\. 2018\.HotpotQA: A Dataset for Diverse, Explainable Multi\-hop Question Answering\.In*Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing*\.
- Yu et al\. \(2025\)Yu, C\.; Shu, X\.; Wang, Y\.; Zhang, Y\.; Wu, H\.; Li, J\.; Long, R\.; Chen, Z\.; Xu, Y\.; Su, W\.; and Zheng, B\. 2025\.MeSH: Memory\-as\-State\-Highways for Recursive Transformers\.arXiv:2510\.07739\.
- Zellers et al\. \(2019\)Zellers, R\.; Holtzman, A\.; Bisk, Y\.; Farhadi, A\.; and Choi, Y\. 2019\.HellaSwag: Can a Machine Really Finish Your Sentence?In*Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics*\.
- Zeng et al\. \(2026\)Zeng, B\.; Song, S\.; Huang, S\.; Wang, Y\.; Li, H\.; He, Z\.; Wang, X\.; Li, Z\.; and Lin, Z\. 2026\.PonderLM: Pretraining Language Models to Ponder in Continuous Space\.In*International Conference on Learning Representations*\.
- Zhai et al\. \(2026\)Zhai, Z\.; Li, B\.; Xiao, B\.; Li, M\.; and Wang, X\. 2026\.Adaptive Test\-Time Compute Allocation for Reasoning LLMs via Constrained Policy Optimization\.arXiv:2604\.14853\.
- Zhang et al\. \(2025\)Zhang, K\.; Zuo, Y\.; He, B\.; Sun, Y\.; Liu, R\.; et al\. 2025\.A Survey of Reinforcement Learning for Large Reasoning Models\.arXiv:2509\.08827\.
- Zhu et al\. \(2025\)Zhu, R\.\-J\.; Wang, Z\.; Hua, K\.; Zhang, T\.; Li, Z\.; Que, H\.; Wei, B\.; Wen, Z\.; Yin, F\.; Xing, H\.; et al\. 2025\.Scaling Latent Reasoning via Looped Language Models\.arXiv:2510\.25741\.
## Appendix AImplementation Details
This appendix records the configuration, training setup, and evaluation protocol behind the results in the main paper, together with the per\-scale and per\-suite breakdowns that the page limit keeps out of the body\. Every value comes from a logged run\. Where a quantity is not logged we describe it in words rather than supply a number\.
#### Models and Looped Blocks\.
We build RecurTrace on four pretrained Qwen3 bases\. Table[1](https://arxiv.org/html/2609.03379#S3.T1)in the main text lists the architecture of each base and the block we loop\. The0\.60\.6B and1\.71\.7B bases have2828layers and loop layers1212–1414\. The44B and88B bases have3636layers and loop layers1515–1717\. The block is always three contiguous layers, and Appendix[B](https://arxiv.org/html/2609.03379#A2)describes the angular\-distance span probe and the compact\-window controls used to fix it\. We add the loop parameters to the pretrained checkpoint and leave the base attention, the embeddings, and the tokenizer untouched\. All four are base releases\.
#### What We Train\.
At every scale we freeze the base weights and train the added modules in two stages\. Stage 1 trains the loop modules, that is Loop Memory Attention and the input\-injection scalars, under the matched same\-budget protocol against the baseline\. Stage 2 then freezes the base together with the loop modules and distills the halting head on top \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\), a separate optimization we run at all four scales\. At each scale the baseline is a model fine\-tuned under a matched budget, so the Stage 1 comparison is same\-budget throughout\. Appendix[H](https://arxiv.org/html/2609.03379#A8)reports the per\-scale numbers\.
#### Same\-Budget Protocol and Training Budget\.
We use “same\-budget” in a precise sense: the RecurTrace run and its baseline share every training axis we control \(optimizer, schedule, global batch, maximum length, optimizer steps, total tokens, hardware, and precision\), and differ only in what is trained\. The baseline fine\-tunes the full base model, while RecurTrace in this matched Stage 1 freezes the base and trains only the loop, memory, and injection modules, at most about2\.2%2\.2\\%of the parameters \(Table[S1](https://arxiv.org/html/2609.03379#A1.T1)\); the halting head is distilled in a separate Stage 2 \(Table[S1](https://arxiv.org/html/2609.03379#A1.T1), Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\. This asymmetry means the two runs do not consume identical FLOPs, but the difference does not favor RecurTrace\. Under the standard forward, activation\-gradient, and weight\-gradient≈2:2:2\\approx 2\{:\}2\{:\}2decomposition of training compute \(≈6ND\\approx 6NDforNNparameters andDDtokens\), RecurTrace’s loop unroll raises the forward cost, since at the mean training depth of3\.93\.9the three\-layer block runs about3\.93\.9times, roughly1\.24×1\.24\\timesthe baseline’s single forward pass on a3636\-layer base\. Freezing the base, however, removes the weight\-gradient term for about98%98\\%of the parameters, one of the three equal contributions to full\-fine\-tuning compute\. These effects roughly offset, so RecurTrace’s total training FLOPs are comparable to, and by this accounting no larger than, the baseline at matched steps and tokens \(of order5×10185\\times 10^\{18\}analytical FLOPs at88B for both\)\. We did not separately log wall\-clock GPU\-hours or peak memory; these trade in opposite directions, since the baseline holds optimizer state for all parameters whereas RecurTrace instead stores activations across the loop unroll, so neither method gains a systematic runtime advantage\. Any residual mismatch therefore favors the baseline, which trains far more parameters under a full gradient budget, so the reported same\-budget gains are conservative rather than a product of extra training compute\. The parameter\-matched non\-loop control and the matched same\-start continuation at88B \(Appendix[H](https://arxiv.org/html/2609.03379#A8)\) further isolate the gains from parameter count and optimization budget\.
Table S1:Training\-budget accounting at88B, in two stages\. In Stage 1 all controlled axes are matched; the baseline fine\-tunes the full model while RecurTrace freezes the base and trains only the loop, memory, and injection modules \(T¯≈3\.9\\bar\{T\}\{\\approx\}3\.9mean training depth,k=3k\{=\}3looped layers,L=36L\{=\}36\)\. FLOPs are analytical \(forward:backward≈2:4\\approx 2\{:\}4\), not wall\-clock\. Stage 1 trainable parameters and per\-token compute differ, with any mismatch favoring the baseline\. Stage 2 distills the halting head with the base and loop modules frozen \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\); it is a RecurTrace\-only cost outside the matched budget, adding200200optimizer steps with depth\-11–1616oracle losses pre\-computed in a single offline forward sweep over≈5,000\{\\approx\}5\{,\}000examples, for less than20%20\\%additional FLOPs beyond Stage 1\. The fixed\-two\-loop scaling results \(Table[S12](https://arxiv.org/html/2609.03379#A8.T12)\) use only the Stage 1 model, whereas the adaptive\-halting results \(Tables[2](https://arxiv.org/html/2609.03379#S4.T2)–[3](https://arxiv.org/html/2609.03379#S4.T3)\) rely on Stage 2\.
#### Loop Hyperparameters\.
Table[S2](https://arxiv.org/html/2609.03379#A1.T2)lists the loop configuration and the field names that set it\. The loop configuration is shared across scales and comprises three looped layers, a training\-depth clamp of eight, log\-normal Poisson depth sampling with mean four and log\-space deviation0\.50\.5, a memory window of three loops, four Loop Memory Attention heads with QK\-normalization, a scalar memory gate initialized to one, a token\-wise gate whose bias starts at−3\.0\-3\.0\(a sigmoid value near0\.0470\.047\), and an input\-injection scalar initialized to zero\. The relative loop\-distance bias starts at the ALiBi slopes but stays free and signed, so a head can flatten it or even prefer older memory\.
ComponentFieldValueComponentValueLooped layersloop\_num\_layers3Token\-gate bias \(\.\.\.init\_bias\)−3\.0\-3\.0Max training depthloop\_train\_max8Injection initα\\alpha\(\.\.\.injection\_init\)0\.0Depth samplerloop\_sample\_distlognormal PoissonHalting marginδ\\delta\(\.\.\.aux\_margin\)0\.01Target mean depthloop\_train\_mean4\.0Halting depth cost \(\.\.\.depth\_cost\)0\.0Depth log\-deviationσ\\sigmaloop\_train\_sigma0\.5Probe depths \(\.\.\.aux\_depths\)1,2,4,61,2,4,6Memory windowWWloop\_memory\_window3Pooling \(\.\.\.pooling\)prompt meanLMA headsloop\_attn\_num\_heads4Objective \(\.\.\.objective\)oracleScalar gate initγ\\gammaloop\_gate\_init1\.0Inference floorTminT\_\{\\min\}\(\.\.\.min\_depth\)2Inference budgetTmaxT\_\{\\max\}\.\.\.max\_depth16Oracle horizon \(\.\.\.oracle\_max\)16Table S2:Loop, memory, and halting hyperparameters with their configuration fields \(theloop\_prefix and, for halting fields, theloop\_halting\_prefix are abbreviated as\.\.\.\)\. Values are defaults used across scales\. The ACT and PonderNet baselines reuse the head with objective set toact\(expected\-depth cost0\.010\.01\) orpondernet\(geometric priorλ=0\.2\\lambda\{=\}0\.2, KL weight0\.010\.01\)\.
#### Optimization and Hardware\.
All runs use eight H800 GPUs \(8080GB\) with ZeRO\-2 sharded data parallelism \(optimizer states and gradients sharded across the eight GPUs\), bfloat16, FlashAttention\-2, and sequence packing that keeps sample boundaries isolated so no token attends across a packed example\. The0\.60\.6B and1\.71\.7B loop modules train on the full reasoning mixture for fifteen epochs at a peak learning rate of1e−41\\mathrm\{e\}\{\-\}4with a cosine schedule, a global batch of128128sequences, and a maximum length of10241024tokens, which after sequence packing is roughly2525thousand optimizer steps\. The44B and88B loop\-module runs are short follow\-ups from their checkpoints, with the44B modules training300300steps at1e−51\\mathrm\{e\}\{\-\}5and the88B modules for800800steps\.
#### Training Data\.
The reasoning mixture holds about1\.151\.15million direct\-answer examples across seventeen files\. It combines three synthetic generators \(p\-hop pointer chains, symbolic state tracking, and arithmetic word problems, each contributing roughly150150thousand training items\), a real\-math group \(GSM8K, MATH, AQUA\-RAT\([Ling et al\. 2017](https://arxiv.org/html/2609.03379#bib.bib28)\), MetaMathQA, Orca\-Math, and MathQA\), a multi\-hop question\-answering group \(HotpotQA\([Yang et al\. 2018](https://arxiv.org/html/2609.03379#bib.bib52)\), MuSiQue\([Trivedi et al\. 2022](https://arxiv.org/html/2609.03379#bib.bib45)\), 2WikiMultiHopQA\([Ho et al\. 2020](https://arxiv.org/html/2609.03379#bib.bib24)\), and StrategyQA\([Geva et al\. 2021](https://arxiv.org/html/2609.03379#bib.bib18)\)\), and a controlled\-logic group \(ProofWriter\([Tafjord, Dalvi, and Clark 2021](https://arxiv.org/html/2609.03379#bib.bib44)\), CLUTRR\([Sinha et al\. 2019](https://arxiv.org/html/2609.03379#bib.bib42)\), and bAbI\([Weston et al\. 2015](https://arxiv.org/html/2609.03379#bib.bib49)\)\), with a small slice of C4 as a language anchor\. Every example is direct\-answer, so the target is the short final answer, not a chain of thought, and test\-time loops add latent computation instead of output tokens\. The two symbol\-based tasks draw their test symbols from a held\-out pool and the arithmetic generator samples fresh integer problems, so the extrapolation buckets are disjoint from training\.
#### Train\-Test Overlap Audit\.
Because the mixture includes MetaMathQA, Orca\-Math, and other derivatives alongside GSM8K, MATH, and MathQA, we audit overlap with every benchmark test set before mixing\. We lower\-case and strip whitespace, then remove any training question that exactly matches a test question\. We also drop training items whose 13\-gram Jaccard similarity to a test question exceeds0\.850\.85\. Removals total327327examples \(0\.03%0\.03\\%of the mixture\), all near\-duplicates with zero exact matches\. The main comparisons hold training data fixed across methods, but this audit limits how much test\-surface leakage can shift which items benefit from extra loops\.
#### Synthetic Reasoning Tasks\.
Three procedural generators supply the controllable part of the mixture, each contributing about150150thousand direct\-answer training items and a separately generated test set\. The two symbol\-based tasks \(pointer chasing, symbolic state tracking\) draw from a shared pool of128128abstract symbols \(random two\-character uppercase codes with no semantic content\), of which9696are reserved for training and3232are held out exclusively for testing, so their train and test sets share no symbol; the arithmetic generator instead samples integer problems fresh at test time\. Difficulty is controlled by the number of sequential stepskkthe answer requires: training instances samplekkuniformly from\{2,3,…,8\}\\\{2,3,\\dots,8\\\}, matching the eight\-loop training clamp, and test instances are organized into eight difficulty buckets atk∈\{2,4,6,8,10,12,14,16\}k\\in\\\{2,4,6,8,10,12,14,16\\\}with500500freshly generated instances per bucket \(4 0004\\,000per task\)\. The four buckets beyond the training range \(k∈\{10,12,14,16\}k\\in\\\{10,12,14,16\\\},2 0002\\,000instances\), each evaluated at a matched loop depthT=kT\{=\}k, form the extrapolation subset reported in the bottom block of Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)\. Table[S3](https://arxiv.org/html/2609.03379#A1.T3)shows a worked example of each of the three tasks\.
Pointer chasing\.Each instance draws3232symbols from the pool, arranges them as a random permutation \(a one\-to\-one mapping\), and specifies a start symbol together with a target hop countkk\. The answer is the symbol reached after following the mappingkktimes\. Because each hop reads only the current symbol to look up the next, the task is a stateless lookup that does not require remembering earlier steps\.
Symbolic state tracking\.The state is a66\-register vector, each register taking a value in\{0,1,2,3\}\\\{0,1,2,3\\\}\. A rule is one of five atomic operations \(assign, swap, increment\-mod\-44, conditional\-set, copy\) applied to one or two named registers\. Each instance gives a random initial state and a sequence ofkkrandomly sampled rules; the answer is the final register vector\. Every step depends on the value the previous step produced, so intermediate state must be carried across loops\.
Arithmetic\.Each instance starts from a random integer in\[1,99\]\[1,99\]and listskkoperations drawn from\{\+n,−n,×n\}\\\{\+n,\\;\{\-\}n,\\;\\times n\\\}withn∈\{2,3,…,9\}n\\in\\\{2,3,\\dots,9\\\}\. The answer is the integer obtained after applying allkkoperations in order\. As with symbolic state tracking, intermediate results must survive across steps\.
The two stateful generators \(symbolic state tracking, arithmetic\) are thus the ones that reward reading earlier loop states through Loop Memory Attention, while pointer chasing is the one that does not\. Because the symbol\-based test instances draw exclusively from the3232\-token held\-out pool \(and arithmetic problems are sampled fresh\), a correct answer cannot come from a memorized surface form, and because the extrapolation buckets require1010–1616sequential steps the model must compose the learned per\-step reasoning beyond the depth it trained on\.
Table S3:Worked examples of the three synthetic reasoning tasks described in this appendix\. Each row gives one instance, its reasoning steps, and the final answer the model must produce\. The instances are deliberately small, using fewer symbols and steps than the deployed generators, so the reasoning is easy to follow\. Pointer chasing needs only the current symbol at each hop, while symbolic state tracking and arithmetic must carry intermediate values across steps, which is why reading earlier loop states through Loop Memory Attention helps on the latter two\.
## Appendix BBlock Selection
We use the angular\-distance probe of[Koishekenov, Lipani, and Cancedda \(2026\)](https://arxiv.org/html/2609.03379#bib.bib26)as the first stage of block selection\. For every input we read the residual stream at the final token, the one position that a causal model lets see the whole sequence, and we record each layer’s hidden state\. We then measure the angular distance between adjacent layers,d\(xℓ,xℓ\+1\)=1πarccoscos\(xℓ,xℓ\+1\)d\(x\_\{\\ell\},x\_\{\\ell\+1\}\)=\\frac\{1\}\{\\pi\}\\arccos\\cos\(x\_\{\\ell\},x\_\{\\ell\+1\}\), and average it over about ten thousand inputs\. The resulting curve falls steeply across the early layers \(the encoder\), flattens through the middle \(the reasoning\-critical span that behaves like a fixed point\), and rises again near the output \(the decoder\)\. The Kneedle knee\-finder locates the encoder boundary on the forward curve and the decoder boundary on the reversed curve, and the layers between them form a loopable thinking span\. Because that span can be wider than our three\-layer compute budget, the second stage compares compact three\-layer windows inside or near the span by downstream behavior\.
On the2828\-layer bases the probe is sharp\. For Qwen3\-0\.6B, both the C4 validation set and the training mixture place the encoder at the first eleven layers and select layers1212–1414as the compact block\. These three layers sit1515to2525percent below their neighbors, while no fourth layer is separated enough to add\. The formal C4 probe on Qwen3\-1\.7B returns the same window, so both2828\-layer models use1212–1414\.
On the3636\-layer44B and88B bases, the C4 probe again puts the start of the thinking span near layer1414, but its lowest\-distance core is not itself the best loop location\. We therefore compare the deployed early\-middle window, layers1515–1717, against probe\-core and late controls\. At44B, layers1515–1717improve likelihood relative to the baseline \(negative log\-likelihood changes of−0\.0218\-0\.0218without generation and−0\.0075\-0\.0075with generation\), while the probe\-core window2424–2626ties it\. At88B, layers1515–1717are the strongest among the tested windows on both likelihood and generation accuracy, the probe\-core window1818–2020improves less, and a late window2727–2929at the same800800\-step budget gives almost no improvement\. These comparisons are relative rankings used only to fix the loop location\. We therefore loop the compact early\-middle thinking block for the3636\-layer models, not an arbitrary deep block\. The angular probe identifies the span, and the compact\-window ablation fixes the final three layers\.
## Appendix CLoop Memory Attention Details
Each looped layer carries its own memory\. On looptt, layerℓ\\ellreads only the states that layerℓ\\ellwrote on earlier loops, never another layer’s states, and the attention runs along the loop\-time axis rather than the sequence axis\. A token therefore attends from its current state to its own past\-loop states at the same sequence position, which is why the module adds no path for one token to see another and cannot leak future tokens\. The ordinary self\-attention inside the unchanged decoder layer still does all of the cross\-token mixing\.
The query for the memory attention is the previous loop’s output of the same layer, which is also the newest key and value, so the query, keys, and values share one residual position and one source\. We apply QK\-normalization, an RMSNorm on the per\-head queries and keys before their dot product\. Removing it causes the largest degradation in Table[6](https://arxiv.org/html/2609.03379#S5.T6), indicating that the normalization stabilizes memory training\. We bound the memory with a sliding window ofW=3W\{=\}3loops\. Oncet\>Wt\>W, every loop reads the same number of past states, so the memory span remains fixed as depth grows and storage does not increase with the total loop count\.
Two gates and one bias control the path\. A per\-layer scalar gateγ\\gammastarts at one, and a token\-wise gateg=σ\(MLP\(\[q,X¯\]\)\)g=\\sigma\(\\mathrm\{MLP\}\(\[q,\\overline\{X\}\]\)\)starts from a bias of−3\.0\-3\.0, a sigmoid value near0\.0470\.047, so the effective update through the memory is small at initialization while still receiving gradients\. The input\-injection scalarα\\alphastarts at zero in the ReZero style\([Bachlechner et al\. 2021](https://arxiv.org/html/2609.03379#bib.bib2)\), so the injection path initially contributes nothing and can open gradually during training\. Because injection begins only after the first loop and the first loop has no memory, every one\-loop run exactly matches the frozen base computation both before and after training at all scales\. The relative loop\-distance bias is a free, signed, per\-head slope initialized to the ALiBi values\([Press, Smith, and Lewis 2022](https://arxiv.org/html/2609.03379#bib.bib35)\)\. The signed form lets a head learn a flat profile or a preference for older states, while the relative form remains defined at loop distances not observed during training\. Memory attention adds no quadratic sequence term because each token attends over only its ownWWpast\-loop states\. Its cost isO\(seq×W\)O\(\\text\{seq\}\\times W\)per looped layer per loop andO\(seq×W×loops\)O\(\\text\{seq\}\\times W\\times\\text\{loops\}\)over the full unroll, which reduces toO\(seq×loops\)O\(\\text\{seq\}\\times\\text\{loops\}\)for fixedWW, on top of the base model’s usual attention\. Each looped layer uses four memory\-attention heads of dimension128128\(width512512, well belowdd\), so the attention needs fourd×512d\{\\times\}512projections while the token\-gate on\[q,X¯\]\[q,\\overline\{X\}\]contributes the dominant∼2d2\{\\sim\}2d^\{2\}; summed over the three looped layers this is about2\.12\.1percent of the base at0\.60\.6B \(with Loop Memory Attention roughly2\.072\.07percent\) and a small fraction \(about1\.41\.4–2\.2%2\.2\\%\) at every scale,≈0\.12\{\\approx\}0\.12B at88B\. Under our measured teacher\-forced setup, runtime is about1\.1×1\.1\\timesthe unlooped baseline at two loops,1\.3×1\.3\\timesat four loops, and1\.7×1\.7\\timesat eight loops\.
#### Inference\-Time Behavior and Cost\.
At generation time the halting decision is read once from the prompt state, and the chosen depth is reused for every generated token, so no additional halting decision is made per generated token\. Loop Memory Attention keeps at mostWWpast\-loop states per looped layer for each token\. Its footprint therefore scales linearly with sequence length but remains constant in the total loop count\. The looped layers’ self\-attention cache does grow with loop count because each loop produces distinct keys and values\. At the two\-loop operating point, the self\-attention and memory additions together are about15%15\\%of the base key\-value cache at1\.71\.7B\. Under our measured decoding setup, latency at the mean operating depth of2\.042\.04loops is about1\.1×1\.1\\timesthe unlooped baseline\.
## Appendix DVariable\-Depth Training
We sample the loop count once per forward pass from the clamped log\-normal Poisson distribution of[Geiping et al\. \(2025\)](https://arxiv.org/html/2609.03379#bib.bib17)\. With target meanr¯=loop\_train\_mean−1\\bar\{r\}=\\texttt\{loop\\\_train\\\_mean\}\-1and log\-space deviationσ\\sigma, we drawz∼𝒩\(logr¯−12σ2,σ\)z\\sim\\mathcal\{N\}\(\\log\\bar\{r\}\-\\tfrac\{1\}\{2\}\\sigma^\{2\},\\ \\sigma\), setr∼Poisson\(ez\)\+1r\\sim\\mathrm\{Poisson\}\(e^\{z\}\)\+1, and clamprrto\[1,loop\_train\_max\]\[1,\\texttt\{loop\\\_train\\\_max\}\]\. With the defaults \(mean four,σ=0\.5\\sigma\{=\}0\.5, clamp eight\) the realized distribution over depths is approximately10%10\\%at one loop,19%19\\%at two,20%20\\%at three,17%17\\%at four,12%12\\%at five,8%8\\%at six,5%5\\%at seven, and8%8\\%at eight, with a mean near3\.93\.9, a median of four, and a heavy tail in which about a fifth of forward passes run six loops or more\. The heavy tail is what exposes the model to deep unrolls and, together with the relative loop\-distance bias, supports extrapolation beyond the training clamp\. We apply the language\-model loss at the sampled depth and do not use truncated backpropagation through the loop\. The block is three layers and the memory window is three, so the unrolled graph stays small enough to backpropagate in full\.
Distributed training keeps the depth in lock step\. Every rank advances a per\-forward counter from a shared seed and draws the same loop count, so the eight data\-parallel workers run the same number of loops on each step without any extra communication\. The trainer marks unused parameters as expected, because a step that samples a single loop never touches the memory parameters, and this keeps gradient synchronization correct under data parallelism\.
## Appendix EHalting Head and Calibration
The halting head is a single linear layer that reads a pooled loop state and returns a continue logit,pt=σ\(w⊤zt\+b\)p\_\{t\}=\\sigma\(w^\{\\\!\\top\}z\_\{t\}\+b\)\. We pool over prompt positions, with the prompt\-mean pool as the default and a prompt\-last pool available for the setting that matches the position predicting the first answer token\. We train the head by distilling an oracle that reads the same forward pass\. The oracle marks “continue” at depthttonly when a deeper loop lowers the per\-example loss by more than a margin,yt=𝟙\[mint<t′≤16ℒt′<ℒt−δ\]y\_\{t\}=\\mathbb\{1\}\[\\min\_\{t<t^\{\\prime\}\\leq 16\}\\mathcal\{L\}\_\{t^\{\\prime\}\}<\\mathcal\{L\}\_\{t\}\-\\delta\], withδ=0\.01\\delta=0\.01by default\. An optional depth cost can charge each extra loop a quality price before it counts as worthwhile, and we keep it at zero in the runs reported here\. The loss for the answer comparison is the mean loss over answer tokens\. We supervise the head at the probe depths\{1,2,4,6\}\\\{1,2,4,6\\\}with binary cross\-entropy, freeze every other parameter, and optimize only the head with AdamW at a learning rate of3e−43\\mathrm\{e\}\{\-\}4, a cosine schedule with warmup, and gradient clipping at one\. This head distillation is a separate second stage run at all four scales: we first train the loop, memory, and injection modules \(the matched Stage 1 run of Table[S1](https://arxiv.org/html/2609.03379#A1.T1)\), then freeze them together with the base and fit only the halting head, at a different learning rate from Stage 1\. Because the “continue” labels require the per\-depth lossesℒ1,…,ℒ16\\mathcal\{L\}\_\{1\},\\dots,\\mathcal\{L\}\_\{16\}of each training example, Stage 2 adds a forward\-only depth\-1616unroll over its training set; it runs for200200optimizer steps on≈5,000\{\\approx\}5\{,\}000examples, the oracle losses are precomputed once in a single offline sweep, and this oracle\-unroll compute is the primary cost reported in the FLOP accounting of Table[S1](https://arxiv.org/html/2609.03379#A1.T1)\. When continue labels are rare, an optional per\-depth positive weight keeps the loop\-one majority from washing them out\.
At inference the model runs the loop and stops at the first deptht≥Tmint\\geq T\_\{\\min\}where the continue probability falls below a thresholdτ\\tau, otherwise it runs to the budgetTmax=16T\_\{\\max\}\{=\}16\. We use a floor ofTmin=2T\_\{\\min\}\{=\}2in the main comparison so the halting head cannot collapse to a single loop\. Both the floor and the threshold are fixed on held\-out data and never on the test set: we chooseτ\\tauby taking the smallest mean depth that does not lose held\-out likelihood, and we selectTminT\_\{\\min\}on the same held\-out split\. The floor therefore coincides with the best fixed depth of Table[2](https://arxiv.org/html/2609.03379#S4.T2)because the held\-out likelihood profile puts it there, not because the test set was consulted\. The main row in Table[2](https://arxiv.org/html/2609.03379#S4.T2)uses the threshold selected by held\-out negative log\-likelihood \(τ=0\.50\\tau\{=\}0\.50\), which spends2\.042\.04loops on average\. An alternate selector on held\-out accuracy \(τ=0\.40\\tau\{=\}0\.40\) spends2\.062\.06loops at a similar operating point\. A leave\-one\-seed\-out check sets each seed’s threshold from the other seven seeds, testing whether the reported gain depends on a test\-tuned threshold rather than on the halting head itself\. Under this protocol the gain is\+2\.0\+2\.0points \(range\[\+0\.4,\+3\.8\]\[\{\+\}0\.4,\\,\{\+\}3\.8\]across the eight leave\-one\-out folds\), close to the held\-out number, so the reported gain does not rely on a test\-tuned threshold\.
#### Paired Significance\.
We test the MathQA halting head against fixed\-depth compute with paired statistics over the matched test items, using exact McNemar tests\([McNemar 1947](https://arxiv.org/html/2609.03379#bib.bib29);[Fagerland, Lydersen, and Laake 2013](https://arxiv.org/html/2609.03379#bib.bib13)\)on the discordant pairs and10,00010\{,\}000\-sample paired bootstraps\. The eight evaluation seeds are non\-overlapping, so the24002400items are unique instances and the McNemar test is computed on24002400independent pairs\. The counts below are three\-training\-seed means; the McNemar test givesp<0\.001p<0\.001on every individual training seed\. RecurTrace answers5353more questions than the best fixed depth \(13661366versus13131313of24002400\), a2\.22\.2\-point gain at matched mean depth \(std0\.290\.29pp across training seeds\), with a mean discordant split of5656to33\(5959pairs\) favoring adaptive halting and a95%95\\%bootstrap interval, clustered on the eight evaluation seeds, of\[\+0\.8,\+3\.6\]\[\{\+\}0\.8,\\,\{\+\}3\.6\]percentage points\. The5656wrong\-to\-right transitions concentrate among the∼65\{\\sim\}65items per training seed that receive more than two loops \(Table[S6](https://arxiv.org/html/2609.03379#A5.T6)\), and the33right\-to\-wrong transitions confirm that the oracle\-distilled head seldom over\-loops an item already correct\.
#### Full Test Set Check\.
The24002400evaluation items cover about80%80\\%of the MathQA test set and support per\-seed variance across eight non\-overlapping draws\. A single\-seed run on the full test set \(29852985items\) reaches56\.7%56\.7\\%at2\.032\.03mean loops, within0\.30\.3pp of Table[2](https://arxiv.org/html/2609.03379#S4.T2)\.
#### Composition of the Deepened Items\.
The∼65\{\\sim\}65items per training seed deepened past the two\-loop floor are analyzed by MathQA operation category, answer\-token length, and one\-loop hardness\.∼50\{\\sim\}50of∼65\{\\sim\}65\(77%77\\%\) are hard by the one\-loop split\. They span several operation categories rather than concentrating in one family, and their median answer length stays close to the24002400\-item subsample, so the gain is not driven by one template family\.
#### Halting at Non\-Probe Depths\.
Binary cross\-entropy supervision uses probe depths\{1,2,4,6\}\\\{1,2,4,6\\\}, but inference assigns a continue probability at every integer depth\. Table[S5](https://arxiv.org/html/2609.03379#A5.T5)shows halting decisions at depths33through88\. Table[S4](https://arxiv.org/html/2609.03379#A5.T4)reports held\-out balanced oracle\-label accuracy and area under the ROC curve at all depths11–88\. Depths33,55, and77sit between supervised probes, and each stays within1\.21\.2points of its nearest supervised neighbor, so the linear readout degrades smoothly across the depths it never saw rather than breaking at them\.
Table S4:Per\-depth halting calibration on held\-out MathQA items \(median training seed\)\. Balanced accuracy is the mean of per\-class agreement rates with Eq\. \([6](https://arxiv.org/html/2609.03379#S3.E6)\) continue labels, which accounts for the growing class imbalance at deeper depths\. Depths33,55, and77are used at inference but not directly supervised\.
#### Depth Histogram at the Main Operating Point\.
Table[S5](https://arxiv.org/html/2609.03379#A5.T5)reports how many of the24002400test items stop at each loop depth under adaptive halting \(τ=0\.50\\tau\{=\}0\.50,Tmin=2T\_\{\\min\}\{=\}2\)\. The floor forces every item to two loops, and the conservative threshold stops97\.3%97\.3\\%there\. The remaining6565items \(2\.7%2\.7\\%\) continue to three or more loops and account for the entire accuracy gain over the fixed two\-loop budget\. Among them,4848stop after three loops,1010after four, and77at depth five or beyond\. The mean depth is2\.042\.04loops, matching Table[2](https://arxiv.org/html/2609.03379#S4.T2); no item reaches theTmax=16T\_\{\\max\}\{=\}16budget, so every stop is head\-decided\.
Table S5:Depth histogram at the main operating point \(τ=0\.50\\tau\{=\}0\.50,Tmin=2T\_\{\\min\}\{=\}2,88non\-overlapping evaluation seeds,24002400unique items\)\. Counts are three\-training\-seed means \(rounded\)\. Most items halt at the floor; the6565continuing to three or more loops drive the accuracy gain\.
#### Paired Transition Breakdown\.
Table[S6](https://arxiv.org/html/2609.03379#A5.T6)cross\-tabulates per\-item correctness under adaptive halting versus the fixed two\-loop baseline \(three\-training\-seed means, rounded\)\. Of24002400items,13101310are answered correctly by both methods and10311031by neither, leaving5959discordant pairs\. Adaptive halting flips5656items from wrong to right and only33from right to wrong, a net gain of\+53\+53items \(\+2\.2\+2\.2points\)\. All5656wrong\-to\-right transitions come from the∼65\{\\sim\}65items that receive more than two loops, confirming that the extra computation is responsible for the accuracy gain\. The33right\-to\-wrong cases are items where over\-looping past the correct answer at depth two leads to a changed and incorrect response, but the oracle\-distilled head keeps such regressions rare\. The pattern holds across all three training seeds\.
Table S6:Paired transition table of per\-item correctness under adaptive halting \(τ=0\.50\\tau\{=\}0\.50,Tmin=2T\_\{\\min\}\{=\}2\) versus fixedT=2T\{=\}2\(three\-training\-seed means, rounded\)\. The5656wrong\-to\-right flips and33right\-to\-wrong flips yield a net\+53\+53\. Exact McNemarp<0\.001p<0\.001on every training seed\.
#### Halting\-Head Calibration and an Oracle\-Depth Bound\.
The counts here are three\-training\-seed means; because each seed deepens a different set, they are per\-seed averages rather than one fixed set of items\. The head deepens about6565items per training seed and about5656flip from wrong to right\. Two distinct rates describe the deepened items\. The oracle\-label precision is about85%85\\%: roughly5555of the6565are oracle\-positive, their loss falling by more than the marginδ\\delta\. The answer\-flip rate is about86%86\\%: roughly5656of the6565turn a wrong greedy answer right\. Both rates are best read against their population base rates\. At depth two about153153of the24002400items \(6\.4%6\.4\\%\) are oracle\-positive, so the85%85\\%precision on the selected tail is roughly thirteen times the population rate, at a recall of about36%36\\%\(5555of153153\)\. The flip rate has a tighter reference\. Of the10871087items that fixedT=2T\{=\}2answers wrongly, only151151\(13\.9%13\.9\\%\) are answered correctly at any depth in11–1616, a count implied by the correctness ceiling below \(61\.0%61\.0\\%is14641464of24002400, against13131313at fixedT=2T\{=\}2\)\. Deepening a randomly chosen subset of the wrong items therefore flips at most13\.9%13\.9\\%of them, so the head’s86%86\\%is at least six times what blind deepening reaches, and it recovers5656of the151151recoverable items while touching only6565\. This is consistent with the per\-depth AUROC of0\.740\.74in Table[S4](https://arxiv.org/html/2609.03379#A5.T4), which summarizes ranking quality averaged over the whole distribution and places no bound on precision in the extreme tail that a threshold firing on2\.7%2\.7\\%of items reads\. The two rates need not coincide, since a supra\-δ\\deltaloss drop and a changed argmax are distinct criteria, but at this operating point both signals concentrate in the same tail\. As an accuracy upper bound, a*correctness*oracle that assigns each item the depth at which its greedy answer is correct \(if any depth yields a correct answer\) reaches61\.0%61\.0\\%\. This is a different criterion from the loss oracle of Eq\. \([6](https://arxiv.org/html/2609.03379#S3.E6)\), which marks whether a deeper loop lowers the teacher\-forced loss rather than whether it flips the greedy answer\. RecurTrace sits at54\.7<56\.9<61\.054\.7<56\.9<61\.0, above the best fixed depth and below this correctness ceiling\.
The same head architecture supports all four trained\-halting baselines\. With the ACT objective\([Graves 2016](https://arxiv.org/html/2609.03379#bib.bib20)\)the head forms a halting distribution and pays an expected\-depth ponder cost of0\.010\.01\. With the PonderNet objective\([Banino, Balaguer, and Blundell 2021](https://arxiv.org/html/2609.03379#bib.bib5)\)it pays a Kullback\-Leibler penalty of weight0\.010\.01toward a geometric prior with parameter0\.20\.2\. Both objectives use the absolute distance to the oracle target depth as a per\-depth surrogate quality cost, so they see the same labels as the oracle distillation\. On the looped backbone both collapse to a single loop, as Table[2](https://arxiv.org/html/2609.03379#S4.T2)reports, because the per\-example loss is already low after one loop and the compute penalty dominates the small fraction of inputs that improve with depth\. To rule out that this collapse is an artifact of a single untuned penalty, we also swept the ACT ponder cost and the PonderNet KL weight over\{0\.001,0\.01,0\.1\}\\\{0\.001,0\.01,0\.1\\\}each, training only the halting head, and both stay collapsed at a mean depth of1\.01\.0loops across all six settings\. We read this collapse as a property of attaching penalty\-based halting post hoc to a frozen looped backbone, where the head is fitted after the representation it reads is fixed and cannot shape the network so that deeper loops pay off, rather than as a refutation of ACT or PonderNet in the end\-to\-end settings they were designed for\.
#### LoopUS\-Conf and TaH\-Mismatch baselines\.
Two additional baselines use the same halting head but replace our oracle signal\. LoopUS\-Conf follows the LoopUS confidence recipe\([Park et al\. 2026](https://arxiv.org/html/2609.03379#bib.bib33)\): the head is trained with a binary cross\-entropy confidence loss plus a monotonicity regularizer that encourages the continue probability to decrease with depth, without any oracle labels\. The confidence threshold is selected on held\-out data as for RecurTrace\. TaH\-Mismatch adapts the oracle signal of Think\-at\-Hard\([Fu et al\. 2026b](https://arxiv.org/html/2609.03379#bib.bib16)\)to the sequence level: the “continue” label at depthttisyt=𝟙\[a^t≠a\]y\_\{t\}=\\mathbb\{1\}\[\\hat\{a\}\_\{t\}\\neq a\], wherea^t\\hat\{a\}\_\{t\}is the greedy answer decoded at depthttandaais the reference answer, and the head is trained with binary cross\-entropy against this token\-mismatch target\. Both baselines use the same head capacity, optimizer, and threshold\-selection protocol as RecurTrace, isolating the effect of the supervision signal\.
## Appendix FBenchmark Breakdown and Diagnostics
Table[S7](https://arxiv.org/html/2609.03379#A6.T7)lists the benchmark groups and diagnostic groups with item counts evaluated after bucket\-stratified subsampling\. The train\-covered suite holds the fourteen tasks whose training splits enter the mixture, and the classic suite holds eight standard multiple\-choice benchmarks\. The held\-out group, including the BIG\-Bench Hard subsets, is diagnostic evidence only, not used for the main breadth claim\. We evaluate with bucket\-stratified sampling, reporting generation accuracy and teacher\-forced NLL at loops in\{1,2,4,6,8\}\\\{1,2,4,6,8\\\}\.
Table S7:Benchmarks and diagnostics; “Eval items” are the subsampled counts actually evaluated, not full test\-set sizes\. The BIG\-Bench Hard held\-out group is retained only as a diagnostic and is excluded from the main breadth claim reported in the body\.Table[S8](https://arxiv.org/html/2609.03379#A6.T8)reports per\-suite changes against the same\-budget baseline at the two scales with full per\-suite generation,0\.60\.6B and1\.71\.7B\. At1\.71\.7B the suite\-level numbers match the breadth table in the body\. Negative log\-likelihood falls and accuracy rises on train\-covered tasks and on the classic suite \(\+1\.9\+1\.9points\)\. At0\.60\.6B the likelihood gains are the largest across scales because the weaker base has more headroom, with both suites showing meaningful NLL reductions\. The overall same\-budget accuracy gains at44B \(\+2\.2\+2\.2points\) and88B \(\+3\.4\+3\.4points\) appear in Table[S12](https://arxiv.org/html/2609.03379#A8.T12)\. The held\-out and BIG\-Bench Hard rows remain diagnostic and are not read as a main claim\. For transparency the diagnostic scores are\+0\.3\+0\.3pp on the BIG\-Bench Hard subsets \(28\.4%28\.4\\%to28\.7%28\.7\\%\) and\+0\.4\+0\.4pp on the remaining held\-out tasks \(34\.8%34\.8\\%to35\.2%35\.2\\%\) at1\.71\.7B, weaker than the train\-covered and classic results, consistent with treating them as out\-of\-scope diagnostics, not headline evidence\.
Table S8:Per\-suite generation results at0\.60\.6B and1\.71\.7B against a same\-budget baseline \(three\-training\-seed means at both scales\)\. Both NLLΔ\\Delta\(teacher\-forced negative log\-likelihood minus the no\-loop baseline\) and AccΔ\\Delta\(generation accuracy, pp\) are measured at a fixed two\-loop depth, matching Table[S12](https://arxiv.org/html/2609.03379#A8.T12)\. The overall44B and88B same\-budget gains appear in Table[S12](https://arxiv.org/html/2609.03379#A8.T12)\.
## Appendix GDifficulty\-Adaptation Details
We split each seed’s MathQA test items by correctness at a single loop\. Easy items are already solved at loop depth one, and hard items, including items the model never answers correctly, need a deeper unroll \(the easy/hard split is at loop depth one, where easy items are those answered correctly atT=1T\{=\}1and hard items are those answered incorrectly\)\. This split is independent of the fixed two\-loop baseline used for the paired transition counts, so the∼50\{\\sim\}50hard items among the∼65\{\\sim\}65deepened and the5656wrong\-to\-right flips against fixed two loops are counted against different references and do not conflict\. The body uses two operating points from the same model and seeds, distinguished by the stopping threshold and the floor\. Table[S9](https://arxiv.org/html/2609.03379#A7.T9)reconciles them\.
Table S9:Operating\-point reconciliation\. Both rows use the same model; the main row is the three\-training\-seed mean \(Table[2](https://arxiv.org/html/2609.03379#S4.T2)\) and the difficulty row the median training seed \(Table[S11](https://arxiv.org/html/2609.03379#A7.T11)\)\. The main point \(τ=0\.50\\tau\{=\}0\.50,Tmin=2T\_\{\\min\}\{=\}2\) is the operating point selected on held\-out NLL, and the difficulty point \(τ=0\.10\\tau\{=\}0\.10, no floor\) maximizes the held\-out gain and exposes the hard\-minus\-easy \(H−\-E\) gap more clearly\. The difficulty point spends more compute \(2\.802\.80loops\) yet reaches only53\.6%53\.6\\%\(12871287of24002400\), below the best fixed depth, because without a floor it both stops some items too early and over\-computes others, lowering accuracy despite the higher mean depth\. It is an illustration of the adaptation pattern, not a competing accuracy number\.#### Main operating point \(τ=0\.50\\tau\{=\}0\.50,Tmin=2T\_\{\\min\}\{=\}2\)\.
At the main operating point, the conservative threshold stops97\.3%97\.3\\%of items at the two\-loop floor \(Table[S5](https://arxiv.org/html/2609.03379#A5.T5)\)\. The hard\-minus\-easy loop gap is\+0\.06\+0\.06loops, smaller than atτ=0\.10\\tau\{=\}0\.10but positive on all eight seeds \(\+0\.02\+0\.02to\+0\.11\+0\.11\)\. Of the∼65\{\\sim\}65items per training seed that receive more than two loops,∼50\{\\sim\}50\(77%77\\%\) are hard by the loop\-depth\-one split, so the halting head routes compute to items that need it\. The paired transition breakdown \(Table[S6](https://arxiv.org/html/2609.03379#A5.T6)\) shows5656of these items flip from wrong to right and only33from right to wrong, yielding the\+53\+53net correct\-answer gain\. At this threshold the continue\-probability distributions for oracle\-positive and oracle\-negative items remain separated on held\-out data \(Appendix[E](https://arxiv.org/html/2609.03379#A5)\), so a small mean depth gap can still select a high\-precision tail\.
#### Difficulty operating point \(τ=0\.10\\tau\{=\}0\.10\)\.
The difficulty figure reads the halting head at the deeper threshold \(τ=0\.10\\tau\{=\}0\.10, mean2\.802\.80loops\) that maximizes the held\-out gain\. Table[S10](https://arxiv.org/html/2609.03379#A7.T10)gives the per\-seed mean depth on easy and hard items at this threshold\. The halting head spends more loops on hard items than easy items on every one of the eight seeds, the gap averages0\.590\.59loops, and the smallest per\-seed gap is still positive\.
Table S10:Mean loop depth on easy and hard MathQA items per evaluation seed at the difficulty operating point \(τ=0\.10\\tau\{=\}0\.10\), shown for the median training seed\. Hard items receive more loops than easy ones on all eight evaluation seeds, and the mean gap is\+0\.59\+0\.59loops\. Gaps are computed from unrounded values\. The pattern holds across all three training seeds\.Table[S11](https://arxiv.org/html/2609.03379#A7.T11)sweeps the shared threshold without theTmin=2T\_\{\\min\}\{=\}2floor and shows the trade it controls, which Figure[S1](https://arxiv.org/html/2609.03379#A7.F1)plots as a compute\-accuracy curve\. A lower threshold keeps the halting head looping, which raises the mean depth, lowers the loop\-count reduction, and widens the hard\-easy gap\. A higher threshold stops sooner\. Across the safe range every threshold keeps a nonnegative held\-out gain on all eight seeds, andτ=0\.10\\tau\{=\}0\.10is the value that maximizes the summed gain while keeping the hard\-easy gap positive on every seed\. Atτ=0\.50\\tau\{=\}0\.50without a floor the mean depth drops to1\.061\.06because the head is confident enough to stop most items after a single loop\. Adding theTmin=2T\_\{\\min\}\{=\}2floor as in the main operating point forces every item to at least two loops and raises the mean to2\.042\.04, producing the accuracy reported in Table[2](https://arxiv.org/html/2609.03379#S4.T2)\.
Table S11:Shared\-threshold sweep on MathQA \(eight evaluation seeds, median training seed\)\. Loop cut is the mean loop\-count reduction relative to a sixteen\-loop budget \(1−T¯/161\{\-\}\\bar\{T\}/16\), not total compute\. Hard−\-easy is the mean hard\-minus\-easy loop gap, andΔ\\Deltacorrect is the summed gain in correct answers over that budget\. The selected operating point \(τ=0\.10\\tau\{=\}0\.10\) is in bold\.Figure S1:Sweeping the shared stopping thresholdτ\\tauwithout theTminT\_\{\\min\}floor traces a compute\-accuracy curve on MathQA\. Asτ\\taufalls the halting head keeps looping, so the mean loop count grows, and accuracy rises to an optimum nearτ=0\.10\\tau\{=\}0\.10\(2\.802\.80loops,53\.6%53\.6\\%\), then declines as extra loops are wasted\. The six points are the thresholds in Table[S11](https://arxiv.org/html/2609.03379#A7.T11), accuracy recovered from theΔ\\Deltacorrect column over the24002400MathQA items\.
## Appendix HAdditional Ablations and Discussion
#### Memory Against Plain Looping\.
The consolidated ablation in Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)isolates Loop Memory Attention by removing it and looping the block as plain re\-iteration\. On the train\-covered suite the teacher\-forced NLL change against the same\-budget baseline at the best\-likelihood loop is−0\.06\-0\.06nats at0\.60\.6B and\+0\.07\+0\.07nats at1\.71\.7B for plain looping, against−0\.15\-0\.15and−0\.03\-0\.03nats once the memory is added\. At44B and88B the pattern strengthens: plain looping drifts to\+0\.05\+0\.05and\+0\.06\+0\.06nats while memory yields−0\.03\-0\.03and−0\.02\-0\.02nats\. Plain looping on a stronger base drifts the representation without adding information, and memory turns the extra passes into an NLL reduction\. The held\-out and classic suites move the same direction at both scales, so the effect is not specific to training tasks\. The generation\-accuracy counterpart at1\.71\.7B, where Loop Memory Attention improves over the memoryless Encode\-Think\-Decode\-style baseline by2\.32\.3points on MathQA and2\.42\.4on the classic suite, is in the same table\. These ablation runs are trained separately from the breadth models, so their full\-model NLL changes on the train\-covered suite differ from the breadth measurements \(Tables[4](https://arxiv.org/html/2609.03379#S4.T4)and[S8](https://arxiv.org/html/2609.03379#A6.T8)\) by0\.020\.02nats at1\.71\.7B and0\.040\.04nats at0\.60\.6B\.
#### Matched Same\-Start Memory Control at88B\.
To test loop memory at the88B scale under a fixed budget, we start from a trained plain\-looping checkpoint and continue training in two matched ways\. One adds the loop\-memory modules, a single\-window memory with the gate and input injection trained without auxiliary losses, and the other continues plain looping for the same number of steps\. The memory continuation reaches lower teacher\-forced NLL than the matched plain continuation on both seeds, by0\.0400\.040and0\.0280\.028nats at the best loop and by0\.0160\.016and0\.0500\.050nats at four loops\. Because the comparison shares the same starting checkpoint and the same extra budget, it isolates the memory from the additional training steps\. We report it as a controlled single\-configuration result rather than a broad necessity claim\.
#### Task Type Decides Plain Against Memory\.
A controlled study on the synthetic extrapolation buckets shows the picture is not one\-sided\. On pure pointer\-chasing chains, where the task is a clean fixed\-point iteration, plain looping extrapolates a little better than the memory variant at deep unrolls, which trails only slightly rather than collapsing\. On the stateful tasks that must carry intermediate values, the symbolic and arithmetic chains, the memory variant is the stronger of the two\. This is the behavior the token\-wise gate is designed to reconcile\. It can close the memory on stateless patterns and open it on stateful ones, which is why a single setting holds across the breadth suites without per\-task tuning\. The per\-bucket accuracies behind this split appear in the bottom block of Table[5\.1](https://arxiv.org/html/2609.03379#S5.SS1.SSS0.Px1)in the main text\.
#### Parameter\-Matched Non\-Loop Control\.
A looped model adds about2\.22\.2percent trainable parameters over the frozen base, so one alternative explanation for its gains is the extra capacity rather than the recurrence\. To separate the two at1\.71\.7B we train a non\-looped control that adds the same budget of trainable parameters, a low\-rank adapter of matched size on the same block, but applies it only once with no looping, and we compare it against RecurTrace under identical data, steps, and evaluation\. The matched\-capacity control reaches45\.4%45\.4\\%generation accuracy against the44\.8%44\.8\\%same\-budget baseline, so it captures about half of RecurTrace’s\+1\.2\+1\.2\-point gain, and adding recurrence and memory supplies the other half to reach46\.0%46\.0\\%\. The likelihood picture is more one\-sided, since the capacity control lowers the overall2222\-task teacher\-forced NLL by only0\.010\.01nats against that baseline while RecurTrace lowers it by0\.080\.08\. Repeated depth with memory, not added capacity alone, carries the effect\.
#### Per\-Scale Summary\.
Table[S12](https://arxiv.org/html/2609.03379#A8.T12)collects the same\-budget generation\-accuracy and teacher\-forced NLL changes across scales\. Accuracy gains grow with scale, from\+0\.6\+0\.6to\+3\.4\+3\.4points, while the teacher\-forced NLL reduction shrinks over the same range, from0\.150\.15to0\.010\.01nats\. We read the two trends as consistent rather than conflicting, because the metrics average over different populations\. Teacher\-forced NLL is a mean over every answer token, and most of those tokens a strong base already predicts confidently, so the headroom a≈2%\{\\approx\}2\\%module can move shrinks toward zero as the base improves and the mean barely shifts\. Generation accuracy records only whether the argmax changes, so it is decided by the minority of items whose top two candidates sit close together, where a logit change too small to register in the mean NLL is enough to flip the answer\. At0\.60\.6B the base is weak, so likelihood has broad headroom while many of the items it improves remain far from correct; at88B the balance reverses\. The paragraphs below expand on the44B and88B rows\.
Table S12:Overall2222\-task \(unweighted task mean\) generation accuracy \(%\) and teacher\-forced NLL change \(nats\) over the same\-budget fine\-tuned baseline at each scale, at a fixed two\-loop depth, shown to one decimal\. Every row averages33training seeds \(std0\.220\.22,0\.290\.29,0\.330\.33,0\.370\.37pp from0\.60\.6B to88B\)\. Per\-suite and per\-task breakdowns appear in Tables[S8](https://arxiv.org/html/2609.03379#A6.T8),[S13](https://arxiv.org/html/2609.03379#A8.T13), and[S14](https://arxiv.org/html/2609.03379#A8.T14)\.
#### The44B Comparison\.
At44B, RecurTrace improves generation accuracy by2\.22\.2points over a fine\-tuned baseline trained under the same budget, and it lowers teacher\-forced NLL by about0\.020\.02nats\. The gain is consistent with the smaller scales and is measured against the same\-budget baseline rather than a per\-task loop oracle\. The300300\-step module follow\-up is shorter than the0\.60\.6B and1\.71\.7B schedules, so we treat this row as an initial scale check rather than a fully matched training\-length replication\. The halting head is distilled at44B as at the other scales \(Stage 2, Table[S1](https://arxiv.org/html/2609.03379#A1.T1)\); we report this scaling row at a fixed two\-loop depth and leave a full adaptive\-halting*evaluation*at44B to future work\.
#### The88B Comparison\.
At88B, RecurTrace improves generation accuracy by3\.43\.4points over a same\-budget fine\-tuned Qwen3\-8B baseline\. Table[S13](https://arxiv.org/html/2609.03379#A8.T13)reports the full per\-suite breakdown with absolute accuracies across three seeds\. The baseline fine\-tunes all attention and feed\-forward parameters of Qwen3\-8B\-Base on the same reasoning mixture for800800optimizer steps using eight H800 GPUs, bfloat16 precision, a global batch of128128, a peak learning rate of1e−51\\mathrm\{e\}\{\-\}5with a cosine schedule, and a maximum length of10241024tokens\. RecurTrace freezes the base and trains only the loop, memory, and injection modules \(≈\\approx0\.12B, at most2%2\\%\) for the same800800steps with the same optimizer and schedule \(Stage 1\); the halting head is distilled separately afterwards \(Stage 2, Appendix[E](https://arxiv.org/html/2609.03379#A5)\)\. Both runs therefore consume about105105M training tokens \(800800steps×\\times128128sequences×\\times10241024tokens\), each on the same hardware and precision, with the training budget accounted for in Table[S1](https://arxiv.org/html/2609.03379#A1.T1): because the baseline updates all≈\\approx8\.2B parameters while RecurTrace updates only the added modules, any budget mismatch favors the baseline, so the gain is not an artifact of extra training compute\. The comparison replaces an earlier one against the untuned Qwen3\-8B\-Base, which overstated the gap by also measuring the distance from an untrained checkpoint to any supervised model\. RecurTrace at88B is evaluated at a fixed two\-loop depth; the halting head is not invoked in this scaling comparison, so the reported gain reflects the loop\-memory mechanism\. Teacher\-forced NLL drops by0\.010\.01nats at88B, a small but consistent improvement\.
Table S13:88B per\-suite generation accuracy \(%\) over three seeds\. The baseline is a same\-budget fine\-tuned Qwen3\-8B\. Overall is the unweighted mean over all2222tasks, i\.e\., the task\-count\-weighted mean of the two suite rows\. Per\-seed overall gains are\+3\.02\+3\.02,\+3\.69\+3\.69,\+3\.61\+3\.61\(mean3\.43\.4, std0\.370\.37pp\)\. Teacher\-forced NLL drops by0\.010\.01nats\.Table[S14](https://arxiv.org/html/2609.03379#A8.T14)gives the per\-task breakdown for selected benchmarks at88B\. Among the displayed train\-covered tasks, gains range from\+3\.4\+3\.4to\+5\.3\+5\.3pp, and across all1414train\-covered tasks they range from\+1\.7\+1\.7to\+6\.1\+6\.1pp, while classic commonsense benchmarks are more mixed \(−0\.6\-0\.6to\+3\.1\+3\.1pp\), and two of them \(BoolQ, WinoGrande\) show small negative changes within seed noise\. This pattern is consistent with a mechanism that adds latent reasoning depth rather than general capacity\. Per\-task three\-seed standard deviations range from0\.40\.4to1\.91\.9pp, and the overall per\-seed standard deviation is0\.370\.37pp\.
Table S14:Per\-task generation accuracy \(%\) at88B, three\-seed mean\. Base is the same\-budget fine\-tuned Qwen3\-8B baseline, and Loop is RecurTrace\. Multi\-step reasoning tasks gain the most, while two classic benchmarks show small negative changes within seed noise\. The remaining seven train\-covered tasks \(arithmetic, p\-hop, symbolic, CLUTRR, MuSiQue, StrategyQA, 2WikiMultiHopQA\) range from\+1\.7\+1\.7to\+6\.1\+6\.1pp\. Per\-task three\-seed standard deviations range from0\.40\.4to1\.91\.9pp\.
#### Reproducibility\.
The looped model lives in the local Qwen3 modeling code and loads on top of standard Qwen3 checkpoints, so the base weights load unchanged and only the loop parameters initialize fresh\. All training uses eight H800 GPUs\. The evaluation sweeps loops in\{1,2,4,6,8\}\\\{1,2,4,6,8\\\}with bucket\-stratified sampling and reports both generation accuracy and teacher\-forced negative log\-likelihood\. The MathQA adaptive comparison aggregates eight seeds of three hundred items each, for24002400test items, and selects every threshold on held\-out data\. The block\-selection probe, the synthetic data generators, and the evaluation scripts are deterministic given their seeds and configurations\.Similar Articles
@machinestein: ICML 2026: Latent Reasoning in TRMs is Secretly a Policy Improvement Operator Why does recursive reasoning, especially …
The paper reveals that latent reasoning in transformer-based reasoning models (TRMs) functions as a policy improvement operator, and proposes an algorithm that enhances learning and inference efficiency by up to 18x.
LaTER: Efficient Test-Time Reasoning via Latent Exploration and Explicit Verification
The paper introduces LaTER, a two-stage reasoning paradigm that combines latent exploration with explicit Chain-of-Thought verification to reduce token usage and improve efficiency in large language models without sacrificing accuracy.
Learning Latent Reasoning Traces for Scalar Reward Models End-to-End
Proposes LatentRM, a reward modeling framework that learns intermediate reasoning traces as discrete latent variables to explicitly maximize downstream scalar reward likelihood, improving preference modeling and policy alignment across in-distribution and OOD tasks.
Learning to Refine Hidden States for Reliable LLM Reasoning
Proposes ReLAR, a reinforcement-guided latent refinement framework that iteratively updates hidden representations in LLMs before decoding, improving reasoning reliability and efficiency compared to chain-of-thought methods.
Looped Language Models Improve Compositional Tool Calling
Looped language models enhance compositional tool calling by leveraging recurrent computation, improving accuracy on multi-step tasks while adaptive inference optimizes the balance between performance and compute cost. The study suggests these models are promising for reliable agentic systems.