采用共享 KV 缓存的 LSTM 式循环 Transformer

arXiv cs.LG 论文

摘要

本文研究了一种 LSTM 风格的循环 Transformer,其循环核心共享权重和单个键值缓存,在宽度为 1024 时将参数量减少了 40.4%,并将持久缓存组数从十五组减少到四组。通过一致性损失对齐并行与递归训练过程,消除了 81–89% 的续写损失惩罚;在较低的 token 预算下,权重绑定的成本最低。

arXiv:2610.33360v1 Announce Type: new Abstract: Recurrent transformers reuse weights to perform deep computation with fewer parameters. We study an LSTM-style transformer that also shares one key--value cache across its recurrent core. At width 1024, it uses 40.4% fewer parameters than an untied control at nearly matched forward FLOPs, and reduces persistent cache sets from fifteen to four. Parallel training supplies cache entries from a standard-attention pass, whereas continuation reads entries produced recursively using shared attention. We address this mismatch by aligning the two training passes' cache entries with a consistency loss during the final 10% of a fixed training-token budget. Across three model widths on FineWeb, this removes 81--89% of the continuation-loss penalty relative to full-cache evaluation. The improvement replicates on disjoint documents for two training seeds. Across four widths and 1.05--4.19B training tokens, the loss cost of weight tying is smallest at lower token budgets, suggesting an opportunity to use recurrent computation when data and model storage are limited.
查看原文
查看缓存全文

缓存时间: 2026/10/28 07:27

# LSTM-Style Looped Transformers with Shared KV Caches
Source: [https://arxiv.org/html/2610.33360](https://arxiv.org/html/2610.33360)
###### Abstract

Recurrent transformers reuse weights to perform deep computation with fewer parameters\. We study an LSTM\-style transformer that also shares one key–value cache across its recurrent core\. At width 1024, it uses 40\.4% fewer parameters than an untied control at nearly matched forward FLOPs, and reduces persistent cache sets from fifteen to four\. Parallel training supplies cache entries from a standard\-attention pass, whereas continuation reads entries produced recursively using shared attention\. We address this mismatch by aligning the two training passes’ cache entries with a consistency loss during the final 10% of a fixed training\-token budget\. Across three model widths on FineWeb, this removes 81–89% of the continuation\-loss penalty relative to full\-cache evaluation\. The improvement replicates on disjoint documents for two training seeds\. Across four widths and 1\.05–4\.19B training tokens, the loss cost of weight tying is smallest at lower token budgets, suggesting an opportunity to use recurrent computation when data and model storage are limited\.

## 1Introduction

Applying the same transformer blocks repeatedly separates parameter count from computational depth\. Universal Transformers, ALBERT, and recurrent language models use this principle to share parameters across layers or iterations\([Dehghani et al\., 2019](https://arxiv.org/html/2610.33360#bib.bib9);[Lan et al\., 2020](https://arxiv.org/html/2610.33360#bib.bib21);[Geiping et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib12)\)\. The corresponding attention caches are usually not shared: at each iteration, a token attends to representations of earlier tokens from that same iteration\. A direct decoder therefore stores keys and values for every block application, even when its weights are reused\.

Shared attention memories already reduce this storage in both untied and looped models\([Wu & Tu, 2024](https://arxiv.org/html/2610.33360#bib.bib33);[Sun et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib30);[Conchello Vendrell et al\., 2026](https://arxiv.org/html/2610.33360#bib.bib8);[O’Neill & Reid, 2026](https://arxiv.org/html/2610.33360#bib.bib23)\)\. We study the loss and computation costs of combining weight tying with one cache for the entire recurrent core\. The central question is whether a parallel training objective prepares the model to reuse entries produced recursively during inference\.

Our default model places four distinct transformer blocks between one untied prologue block and two epilogue blocks\. An LSTM\-style update\([Hochreiter & Schmidhuber, 1997](https://arxiv.org/html/2610.33360#bib.bib17);[Gers et al\., 2000](https://arxiv.org/html/2610.33360#bib.bib13)\)combines each core application with a carried state through input and forget gates, then normalizes the state before its next use\. Three iterations give fifteen block applications but only seven sets of block weights\. All core blocks read the final block’s final\-iteration cache for preceding tokens \(Figure[1](https://arxiv.org/html/2610.33360#S1.F1)\)\.

tokenembed\.prologue1 blockF1F\_\{1\}F2F\_\{2\}F3F\_\{3\}F4F\_\{4\}NgN\_\{g\}LSTM\-style cellcr=fr⊙cr−1\+ir⊙grc\_\{r\}=f\_\{r\}\\odot c\_\{r\-1\}\+i\_\{r\}\\odot g\_\{r\}NNepilogue2 blocksoutputheadgrg\_\{r\}hrh\_\{r\}three passes: reuse eachFjF\_\{j\}and the gatescarry to next passgatesir,fri\_\{r\},f\_\{r\}depend onhr−1h\_\{r\-1\}h0=c0=sh\_\{0\}=c\_\{0\}=ss=N⁡\(prologue output\)s=N\(\\text\{prologue output\}\)One core KV cache, shared across all slots and passesF4F\_\{4\}’s final\-pass K/V⟶\\longrightarrowpersistent cache⟶\\longrightarrowearlier\-token attention inF1,F2,F3,F4F\_\{1\},F\_\{2\},F\_\{3\},F\_\{4\}Each block uses its own current\-token K/V\. Prologue and epilogue caches stay separate\.NgN\_\{g\}: learned RMSNorm;NN: gain\-free RMSNorm

\(a\)LSTM\-style recurrence with one shared core cache\.
\(b\)Continuation loss versus parameter count and forward computation\.
Figure 1:Parameter and cache sharing have distinct costs\.\(a\) The four core blocks have distinct weights, reused across iterations; preceding tokens supply one common donor cache\. Prologue and epilogue retain their own caches\. \(b\) Widths 512, 768, and 1024 after 4\.19B training tokens, evaluated on the same 1,280 document continuations with 2,048 prompt tokens and 512 scored targets\. Repaired models add donor consistency during the final training stage\. The FLOPs panel estimates one inference forward, not latency or the two\-pass training cost \(Appendix[D](https://arxiv.org/html/2610.33360#A4)\)\. All points use one training seed\.Table 1:Continuation loss, model size, forward computation, and persistent KV storage after 4\.19B training tokens\.Full\-cache and shared\-cache losses score identical targets under ordinary prompt prefill \(Section[3](https://arxiv.org/html/2610.33360#S3)\)\. Repaired models repeat their parents’ final training stage with donor consistency, retaining the same token budget\. FLOPs use the reference attention lengths in Appendix[D](https://arxiv.org/html/2610.33360#A4); two\-pass training costs about twice as much at fixed width and tokens\. Sets and KV storage describe each model’s serving layout: shared\-cache columns use four sets; recurrent full\-cache evaluation requires fifteen\. BF16 KV storage is calculated from tensor dimensions for equal\-length cache sets, excluding scratch space; window\-sized allocations are discussed in Section[4\.3\.2](https://arxiv.org/html/2610.33360#S4.SS3.SSS2)\. Lower loss is better\.We use a common framework derived from modded\-nanogpt\([Jordan et al\., 2024a](https://arxiv.org/html/2610.33360#bib.bib19)\)111[https://github\.com/KellerJordan/modded\-nanogpt](https://github.com/KellerJordan/modded-nanogpt)to compare untied, standard\-cache recurrent, and shared\-cache recurrent models across four widths and three token budgets\. Each width has a 15\-layer untied control that approximately matches the recurrent model’s forward computation\. Weight tying reduces parameters at this fixed computational depth, with higher loss under the tested recipe\. A separate comparison pairs recurrent width 1024 with untied width 768 to approximately match parameter count; the wider recurrent model achieves lower continuation loss using more forward and training computation \(Figure[1](https://arxiv.org/html/2610.33360#S1.F1), Table[1](https://arxiv.org/html/2610.33360#S1.T1)\)\.

Cache sharing introduces a second tradeoff\. A two\-pass objective can train all core blocks to read a common cache, but its parallel second pass reads caches produced by standard attention\. During continuation, newly appended entries are themselves produced using shared attention\. We measure the total penalty of switching cache policies on matched targets and examine the role of cache histories separately\. Adapting the KV\-consistency idea of[Wu & Tu \(2024\)](https://arxiv.org/html/2610.33360#bib.bib33), we encourage the two passes to write similar donor keys and values during the final training stage\. The intervention improves shared\-cache continuation at widths 512–1024, with a small full\-cache loss cost, and its effect replicates on disjoint documents for two width\-768 training seeds\.

Finally, we compare recurrent update rules and inference depths\. Gated carry improves loss at the trained depth in a controlled ablation; a Huginn\-style injection baseline also supports additional depth when trained across depths\. Variable\-depth training and cache consistency can be combined, but the tested state\-based stopping rule does not beat fixed depth four\. We therefore evaluate parameter efficiency, cache storage, and adaptive computation separately\.

## 2Method

### 2\.1Backbone and gated recurrence

An untied prologue𝒫\\mathcal\{P\}produces a seed representation, a core ofKKdistinct transformer blocksF=FK∘⋯∘F1F=F\_\{K\}\\circ\\cdots\\circ F\_\{1\}is appliedRRtimes, and an untied epilogueℰ\\mathcal\{E\}produces the final representation\. We write PiiEjjforiiprologue andjjepilogue blocks\. Our default is P1E2 withK=4K=4andR=3R=3: seven sets of block weights and fifteen block applications\. A*slot*denotes a block position in the core; weights are shared across iterations, not across slots\.

Each block uses pre\-RMSNorm with learned gains\([Zhang & Sennrich, 2019](https://arxiv.org/html/2610.33360#bib.bib36)\), rotary positions\([Su et al\., 2021](https://arxiv.org/html/2610.33360#bib.bib29)\), grouped\-query attention\([Ainslie et al\., 2023](https://arxiv.org/html/2610.33360#bib.bib1)\), and a SwiGLU feedforward layer\([Shazeer, 2020](https://arxiv.org/html/2610.33360#bib.bib28)\)\. We use an RMS variant of query/key normalization\([Henry et al\., 2020](https://arxiv.org/html/2610.33360#bib.bib15)\): gain\-free RMS normalization within each head, with fixed attention\-logit scaledhead−1/2d\_\{\\rm head\}^\{\-1/2\}\. Head dimension is 64, with two query heads per KV head\. Long and short attention windows contain 2,048 and 1,024 tokens\. The prologue uses a long window, the core repeats long/short/short/short, and the epilogue uses short/long\. The 15\-layer untied control has five long\-window layers, at zero\-based indices 0, 4, 7, 10, and 14, and ten short ones\. Both models therefore have the same counts of long and short block applications\. Input embeddings and the output projection share weights\. Appendix[B](https://arxiv.org/html/2610.33360#A2)gives remaining dimensions and initialization details\.

Let𝒩\\mathcal\{N\}denote gain\-free RMS normalization, and𝒩g\\mathcal\{N\}\_\{g\}the core’s learned\-gain candidate normalization\. For token embeddingsxx, initializes=𝒩⁡\(𝒫⁡\(x\)\)s=\\mathcal\{N\}\(\\mathcal\{P\}\(x\)\)andc0=h0=sc\_\{0\}=h\_\{0\}=s\. One iteration computes

gr\\displaystyle g\_\{r\}=𝒩g​\(F⁡\(hr−1\)\),\\displaystyle=\\mathcal\{N\}\_\{g\}\(F\(h\_\{r\-1\}\)\),\(1\)fr\\displaystyle f\_\{r\}=σ⁡\(Wf​hr−1\+bf\),ir=σ⁡\(Wi​hr−1\+bi\),\\displaystyle=\\sigma\(W\_\{f\}h\_\{r\-1\}\+b\_\{f\}\),\\qquad i\_\{r\}=\\sigma\(W\_\{i\}h\_\{r\-1\}\+b\_\{i\}\),\(2\)cr\\displaystyle c\_\{r\}=fr⊙cr−1\+ir⊙gr,\\displaystyle=f\_\{r\}\\odot c\_\{r\-1\}\+i\_\{r\}\\odot g\_\{r\},\(3\)hr\\displaystyle h\_\{r\}=𝒩⁡\(cr\)\.\\displaystyle=\\mathcal\{N\}\(c\_\{r\}\)\.\(4\)The gates act per token and coordinate\. This is an LSTM\-style update over depth, without atanh\\tanhor output gate\. The carrycrc\_\{r\}accumulates information; its normalized readhrh\_\{r\}supplies the next core application, gates, and eventually the epilogue\. A separate learned\-gain normalization precedes the output projection\. The candidate’s learned gain can change its magnitude, while normalization of the carry read controls the input scale of the next iteration\.

Gate matrices start at zero, withbf=1b\_\{f\}=1andbi=0b\_\{i\}=0\. The initial gates are therefore approximately 0\.7311 and 0\.5\. With identity\-initialized blocks, unit candidate gain, and idealized exact normalization, the first update givesc1=1\.2311​sc\_\{1\}=1\.2311sandh1=h0h\_\{1\}=h\_\{0\}\. This preserves direction at initialization; the forget bias specifies initial carry retention, not contraction of the complete state\-dependent recurrence\.

### 2\.2One cache for all core blocks

Standard attention uses preceding\-token keys and values from the same block and iteration\. A direct decoder storesP\+K​R\+EP\+KR\+Ecache sets\. Our shared\-cache policy uses one donor for the entire core: the own keys and values computed by the final core block on its final iteration\. Every core block, on every iteration, reads this donor for preceding positions and its own key and value at the current position\. Attention still respects each block’s window and document boundaries\. Prologue and epilogue blocks retain separate caches, givingP\+1\+EP\+1\+Esets: four instead of fifteen for the default model\. Keys are stored after query/key normalization and rotary positions\. This adapts final\-layer KV sharing\([Wu & Tu, 2024](https://arxiv.org/html/2610.33360#bib.bib33)\)to a tied core while retaining each block’s own current\-token KV\.

The two\-pass objective trains these reads in parallel over token positions\. First, run standard attention, obtain cross\-entropyCE1\\mathrm\{CE\}\_\{1\}, and retain the donor\. Second, restart the recurrence from the same prologue seed, use the retained donor for shared\-cache attention, and recompute the epilogue andCE2\\mathrm\{CE\}\_\{2\}\. We minimize

ℒ2​p=12​CE1\+12​CE2\.\\mathcal\{L\}\_\{\\mathrm\{2p\}\}=\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{1\}\+\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{2\}\.\(5\)Both terms are mean next\-token cross\-entropies\. The donor remains in the computation graph, so the second loss also updates the first\-pass cache producer\.

This construction does not make the second pass identical to autoregressive continuation\. In training, the donor for every preceding position was computed by standard attention\. During continuation, a newly processed token reads shared past caches and appends its own final donor entry; subsequent tokens then read that entry\. Epilogue caches also develop recursively\. Ground\-truth token inputs do not remove this difference in hidden\-state histories\. Comparing full\-cache and shared\-cache continuations on identical targets measures the total effect of changing cache policy, including both the read layout and the histories supplying it\.

### 2\.3Donor consistency during the final training stage

We adapt the successive\-iteration KV MSE explored by[Wu & Tu \(2024, Appendix C\.3\)](https://arxiv.org/html/2610.33360#bib.bib33), using a scale\-normalized KV loss during the final training stage\. LetX1X\_\{1\}andX2X\_\{2\}denote the first and second passes’ own final donor tensor, forX∈\{K,V\}X\\in\\\{K,V\\\}\. Define

eX\\displaystyle e\_\{X\}=mean⁡\[\(X2−stopgrad⁡\(X1\)\)2\]sX\+10−6,\\displaystyle=\\frac\{\\operatorname\{mean\}\\big\[\(X\_\{2\}\-\\operatorname\{stopgrad\}\(X\_\{1\}\)\)^\{2\}\\big\]\}\{s\_\{X\}\+10^\{\-6\}\},\(6\)ℒ\\displaystyle\\mathcal\{L\}=ℒ2​p\+γ2​\(eK\+eV\),γ=0\.3\.\\displaystyle=\\mathcal\{L\}\_\{\\mathrm\{2p\}\}\+\\tfrac\{\\gamma\}\{2\}\(e\_\{K\}\+e\_\{V\}\),\\qquad\\gamma=0\.3\.\(7\)The mean is over token positions, KV heads, and head coordinates\. EachsXs\_\{X\}is a reference first\-pass mean square calibrated once at branch start and held fixed\. The recorded fixed\-depth branches use 16 chunks of 8,192 tokens for calibration\. The auxiliary target is detached; the first\-pass donor’s gradient path through the second cross\-entropy remains live\.

We apply this objective by branching from the start of the parent’s final decay and repeating its last 1,600 updates, preserving the optimizer state, token stream, and schedule\. Thus the repaired model has the same 4\.19B\-token budget as its parent; 10% of its updates use consistency\. This targets the stored donor, without directly matching output probabilities or epilogue entries\. Comparisons with those additional terms and with whole\-run consistency appear in Appendix[G](https://arxiv.org/html/2610.33360#A7)\. The loss encourages local agreement under first\-pass histories; it does not enforce agreement under every recursively generated history\.

### 2\.4Variable depth and stopping

For variable\-depth training, each update draws one rank\-synchronizedR∼𝒰​\{3,…,6\}R\\sim\\mathcal\{U\}\\\{3,\\ldots,6\\\}\. At inference a token may stop when consecutive read states point in similar directions\. With the same gain\-free normalization as above, the implementation computes

qr,t=1d​⟨𝒩⁡\(hr,t\),𝒩⁡\(hr−1,t\)⟩\.q\_\{r,t\}=\\frac\{1\}\{d\}\\left\\langle\\mathcal\{N\}\(h\_\{r,t\}\),\\mathcal\{N\}\(h\_\{r\-1,t\}\)\\right\\rangle\.\(8\)This is a cosine up to normalization epsilon and finite precision\. The token stops at the firstr≥2r\\geq 2withqr,t\>0\.98q\_\{r,t\}\>0\.98, or at the six\-pass cap\. Its selected stopping iteration supplies its donor entry\. Read\-state direction, carry magnitude, and prediction loss need not converge together\.

The batched decoder freezes stopped states but continues computing until all rows have stopped\. We report each token’s selected depth, not executed FLOPs or latency savings\. Parallel chunk probes instead use a global state statistic and a common stopping depth\. The adaptive consistency branch repeats the last 1,000 of 8,000 updates \(12\.5%\): 200 constant\-rate updates followed by 800 decay updates\.

## 3Experimental setup

##### Training and comparisons\.

We train on FineWeb\([Penedo et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib24)\)using a common framework derived from modded\-nanogpt\([Jordan et al\., 2024a](https://arxiv.org/html/2610.33360#bib.bib19)\)\. Tied and untied models use the same block components, data loader, and optimizer implementation\. We simplify the architecture to support controlled recurrence experiments\. We distinguish four trained variants: an*untied*15\-layer control; a*standard cell*trained with single\-pass cross\-entropy and separate caches; a*two\-pass cell*trained with Equation[5](https://arxiv.org/html/2610.33360#S2.E5); and its*repaired*branch trained with Equation[7](https://arxiv.org/html/2610.33360#S2.E7)near the end\. The standard cell is a separate model, not the first pass of the two\-pass cell\.

The main ladder uses widths 384, 512, 768, and 1024 and fixed depth three\. Endpoints of 4,000, 8,000, and 16,000 updates contain 1\.048576B, 2\.097152B, and 4\.194304B training tokens\. Each update processes 262,144 tokens in 32 chunks of 8,192, with attention confined to chunks and documents\. Training uses BF16 on eight H100s, global gradient clipping at norm 1, Muon for hidden matrices\([Jordan et al\., 2024b](https://arxiv.org/html/2610.33360#bib.bib20)\), and AdamW\([Loshchilov & Hutter, 2019](https://arxiv.org/html/2610.33360#bib.bib22)\)for embeddings, normalization gains, and biases\. The selected learning rates are 0\.01 and3×10−43\\times 10^\{\-4\}, respectively\. After an 80\-update warmup, a constant\-rate trunk supports branches with linear decay over the last 10% of each budget \(Appendix[B](https://arxiv.org/html/2610.33360#A2)\)\. Common named tensors share initial values in paired controls\. Training data order is fixed across seeds\. The repository maps models to recorded configurations and results\.

##### Chunk validation\.

All losses are next\-token cross\-entropy in nats\. Standard and parallel shared\-cache validation score the same 1,280 chunks of 8,192 targets \(10,485,760 targets total\)\. Standard validation uses each block and iteration’s own past representations\. For the main two\-pass models, parallel shared\-cache validation is the second\-pass computation of Section[2\.2](https://arxiv.org/html/2610.33360#S2.SS2)\. These provide the model\-size ladder and update\-rule comparisons\. They do not measure a cache that is updated recursively during continuation\.

##### Prompt\-prefill continuation\.

Our primary continuation evaluation uses 1,280 document\-contained spans, each with 2,048 prompt tokens followed by 512 scored targets \(655,360 targets total\)\. Ordinary prefill computes the prompt with standard attention\. The full\-cache reference retains all block\-iteration caches; the shared\-cache continuation retains the final donor and prologue/epilogue caches\. Subsequent token processing updates the respective caches recursively\. Both score the same targets and always receive ground\-truth token inputs\. The first target uses the final prompt logits, followed by 511 decoding steps\. We call the shared\-cache result*served loss*; it measures teacher\-forced continuation, not sampled generation quality\.

A 512\-prompt/2,048\-target diagnostic changes both continuation length and target positions\. A two\-pass\-prefill diagnostic retains first\-pass donor entries but second\-pass epilogue entries and logits\.*Cold*evaluation processes both prompt and continuation sequentially from empty caches under the shared policy; it is reported separately\. After selecting the repair, we evaluate it on the next 1,280 eligible documents disjoint from the original spans and chunk set; this is fresh same\-source evaluation, not a new training replicate \(Appendix[C](https://arxiv.org/html/2610.33360#A3)\)\. The appendix’s update\-rule and cache\-producer pilots use separate held\-out documents and state their evaluation policy alongside each result\.

##### Resources and uncertainty\.

Parameter counts include tied embeddings once and all used weights\. Reference forward FLOPs count dense projections and attention products for one pass at the stated depth, using mean attended lengths in an 8,192\-token chunk with 2,048/1,024 windows\. They omit elementwise operations and are not measured serving latency\. We also report estimated training FLOPs because two\-pass and single\-pass objectives differ substantially in cost \(Appendix[D](https://arxiv.org/html/2610.33360#A4)\)\. KV storage counts persistent BF16 keys and values, excluding scratch space\.

Width\-768 untied and two\-pass ladders have three training seeds; repair confirmation uses two of them\. Other widths and update\-rule/deep\-depth experiments use one seed\. Paired continuation errors use a block bootstrap over ordered document spans, with blocks of eight and 2,000 resamples\. These conditional standard errors describe variation over evaluation documents, not over training runs\. We report training\-seed variation separately \(Appendix[F](https://arxiv.org/html/2610.33360#A6)\); the compact prespecification summary is in Appendix[K](https://arxiv.org/html/2610.33360#A11)\.

## 4Results

### 4\.1Model size and computation

The primary controls match width, training tokens, and the number of block applications\. Their reference forward FLOPs differ by only 1\.5–2\.4%, from the recurrent gates\. Untied models have lower loss at each width \(Figure[2](https://arxiv.org/html/2610.33360#S4.F2)\)\. We also compare models of different widths with approximately equal parameter counts \(Figure[1](https://arxiv.org/html/2610.33360#S1.F1)\)\.

Figure 2:Loss across widths and training\-token budgets\.The three models are separately trained\. Standard and parallel shared\-cache validation score the same 1,280 chunks \(10,485,760 targets\)\. Each width has a 15\-layer untied control approximately matched to one recurrent forward; two\-pass training costs more\. Points use seed 0; Appendix[F](https://arxiv.org/html/2610.33360#A6)repeats the width\-768 two\-pass/untied comparison over three seeds\. Appendix[E](https://arxiv.org/html/2610.33360#A5)replots the losses against reference forward FLOPs\. These parallel losses do not measure shared\-cache continuation\.#### 4\.1\.1Fixed width and training tokens

At 4\.19B tokens, both recurrent families have higher loss than the untied control at every width, with smaller gaps for wider models \(Figure[2](https://arxiv.org/html/2610.33360#S4.F2)\)\. At width 1024 and 1\.05B tokens, single\-pass standard and two\-pass parallel shared losses are within 0\.0002 nats of the untied control with 40\.4% fewer parameters \(seed 0; Table[7](https://arxiv.org/html/2610.33360#A5.T7)\)\.

All model families improve from 1\.05B to 4\.19B tokens, while both recurrent families’ gaps to the untied controls increase at every tested width, despite nearly matched forward computation \(Figure[5](https://arxiv.org/html/2610.33360#A5.F5)\)\. The loss cost of reducing parameters through recurrence is therefore smaller at the lower token budgets\. Across three training seeds at width 768, the two\-pass model’s shared\-minus\-untied gap grows from 0\.0115 to 0\.0209 to 0\.0309, with seed standard deviations 0\.0009, 0\.0014 and 0\.0025, respectively\. This supports the budget trend at that width; the other widths and the single\-pass cells have one seed each\. These observations do not identify an asymptotic capacity limit or a width at which parity would be reached\.

Matching estimated training compute instead pairs the two\-pass models at 2\.10B tokens with untied controls at 4\.19B\. Their parallel shared\-cache losses are higher by 0\.0957–0\.1439 nats across the four widths \(Table[6](https://arxiv.org/html/2610.33360#A4.T6)\)\. These comparisons precede consistency repair and do not measure recursive continuation quality\.

#### 4\.1\.2Cross\-width comparison at approximately matched parameter count

After donor\-consistency training, the width\-1024 recurrent model has 136\.202M parameters, close to the width\-768 untied model’s 135\.978M\. On the same primary continuation spans their losses are 3\.1953 and 3\.2393: a paired difference of−0\.0441\-0\.0441nats \(block\-bootstrap SE 0\.0014\)\. The recurrent model uses 545\.5M rather than 328\.9M reference forward FLOPs per token, a factor of 1\.66\. Its estimated training computation is 3\.22 times larger at the same token budget, excluding consistency\-loss overhead\. This cross\-width comparison matches parameters, not forward computation\. The width\-1024 untied compute control has 228\.49M parameters and uses 532\.9M reference forward FLOPs per token; its loss is 3\.1515, compared with the recurrent model’s 3\.1953 \(Table[1](https://arxiv.org/html/2610.33360#S1.T1)\)\. The cross\-width comparison uses seed 0 on the original spans; it has not received the held\-out confirmation used for the width\-768 repair in Section[4\.3](https://arxiv.org/html/2610.33360#S4.SS3)\. Detailed parameter and compute accounting is in Appendix[D](https://arxiv.org/html/2610.33360#A4)\.

### 4\.2Update\-rule controls and a Huginn\-style baseline

We compare the gated\-carry update with a plain update that removes the carry and gates and overwrites the hidden state with the normalized candidate,hr=𝒩⁡\(gr\)h\_\{r\}=\\mathcal\{N\}\(g\_\{r\}\)\. For each update, we also test input injection: a learned linear adapter projects the concatenation of the current hidden state and the prologue statess, giving core inputA⁡\[hr−1;s\]A\[h\_\{r\-1\};s\]at every iteration\. The four factorial arms in Table[2](https://arxiv.org/html/2610.33360#S4.T2)share the backbone, initialization of common parameters, data order, three\-iteration depth, single\-pass objective and training schedule\. Removing the cell also removes carry accumulation, so this control does not isolate learned gates from the carried residual state\.

We additionally test a*Huginn\-style*baseline, adapting the input\-injection recurrence of[Geiping et al\. \(2025\)](https://arxiv.org/html/2610.33360#bib.bib12)to our common backbone\. It uses the same adapter at every iteration, starts from a normalized Gaussian hidden state, and setshr=grh\_\{r\}=g\_\{r\}: the core’s learned\-gain candidate becomes the next hidden state directly, without a cell carry or gates\. This differs from the plain adapter arm, which starts fromssand applies gain\-free normalization to the candidate\. The fixed\-depth comparison uses three iterations; Section[4\.2\.1](https://arxiv.org/html/2610.33360#S4.SS2.SSS1)separately tests variable\-depth training and gradient truncation\. These controls use standard caches\. A separate width\-512 shared\-cache pilot tests the repair across update rules \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px1)\)\.

Table 2:Recurrent update and input\-adapter controls\.P1E2 at width 768, three iterations and 1\.05B training tokens, one training seed\. Losses use standard attention on 10,485,760 targets\. Parentheses are paired block\-bootstrap SEs of the difference from the cell, conditional on these checkpoints\. Parameter counts exclude embeddings\.The gated\-carry update improves loss relative to plain overwrite at the trained depth\. Input injection reduces the plain model’s loss by 0\.0155 but changes the cell’s by only\+0\.0001\+0\.0001, closing about half the plain\-versus\-cell gap\. Neither cell variant tolerates doubling the evaluation depth: at six iterations their losses rise to 4\.0125 and 4\.1154, whereas the plain adapter and Huginn\-style arms reach 3\.5690 and 3\.5266\. Low loss at the trained depth and robustness to additional iterations are separate properties\.

#### 4\.2\.1Gradient truncation and additional depth

At fixed depth three, the Huginn\-style baseline remains 0\.022–0\.025 nats above the single\-pass cell as training increases from 1\.05B to 4\.19B tokens \(Table[18](https://arxiv.org/html/2610.33360#A8.T18)\)\. The other three update\-rule ablations were trained only to 1\.05B tokens\. For a separate comparison at greater depth, we train both updates at width 512 overR∼𝒰​\{4,…,32\}R\\sim\\mathcal\{U\}\\\{4,\\ldots,32\\\}on 1\.05B tokens, with standard caches and either full gradients or gradients through only the last eight iterations\. Token budgets and sampled depths are matched; training computation differs between gradient treatments\. At evaluation depth 32, full\-gradient losses are 3\.6065 for the cell and 3\.6036 for injection, a difference of−0\.0029\-0\.0029\(SE 0\.0003\)\. This small gap concerns these checkpoints, not statistical equivalence across runs\.

Truncation changes the comparison substantially: it raises the cell’s loss by 0\.0757 and lowers injection’s by 0\.0140, producing a 0\.0926 gap\. When the depth exceeds eight, truncation cuts the cell’s only gradient path to its prologue, while injection retains a path through the adapter on later iterations\. The controls establish an architecture\-dependent effect of truncation, not a general ranking of update rules\. At depth 64, injection’s loss is almost unchanged while the full\-gradient cell’s rises by 0\.0222\. The best deep arm reaches 3\.5896 at depth 32, compared with 3\.5941 for the fixed\-depth\-three cell at the same width and token budget, using 6\.5 times its forward FLOPs\. Full curves are in Appendix[H](https://arxiv.org/html/2610.33360#A8)\.

All these update\-rule comparisons have one training seed\. They adapt Huginn’s recurrent structure to a common smaller\-scale language\-model setting\([Geiping et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib12)\); they do not reproduce its scale, training recipe or reasoning evaluations\. The results therefore do not resolve whether its reported benefits from additional inference depth transfer to this regime\.

### 4\.3Shared\-cache continuation and donor consistency

A low parallel shared\-cache loss does not ensure accurate continuation through a recursively updated cache\. At width 768, the two\-pass model’s shared loss on chunks is 3\.2675, below its standard loss of 3\.2728\. On the primary continuation spans, however, its full\-cache loss is 3\.2827 and its shared\-cache continuation loss is 3\.3347: a penalty of 0\.0520 \(SE 0\.0013\)\. These are different evaluation sets, so the penalty is computed within the continuation protocol, on identical targets\. Token inputs remain ground truth; the recursively produced quantities are cache entries, not sampled tokens\.

The two\-pass objective exposes each token to donor entries from a standard first pass\. During continuation, it instead reads entries written by earlier shared\-cache forwards\. The continuation contrast changes both read layout and cache history\. Figure[3](https://arxiv.org/html/2610.33360#S4.F3)shows how this total penalty varies with continuation position\. The shorter\-prompt, longer\-continuation diagnostic has a larger average penalty: 0\.0826 at width 768\. That comparison changes both conditioning and scored positions, so it does not isolate continuation length alone\.

A separate diagnostic holds the shared\-read policy fixed and repeatedly recomputes donors on the same 64 chunks\. From the second to third iterate, the parent’s loss rises from 3\.2510 to 3\.2994; after repair it rises from 3\.2515 to 3\.2596\. This supports a cache\-history contribution, but does not decompose the prompt\-prefill continuation penalty \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px2)\)\.

Figure 3:Excess loss during shared\-cache continuation\.Width 768, 4\.19B training tokens, seed 0, before and after late donor consistency\. Each curve subtracts the same checkpoint’s full\-cache loss at the same positions\. Both settings use the original 1,280 documents; prompt and continuation lengths differ together\. The repair reduces the excess loss throughout the continuation, without making the two cache computations equivalent\.#### 4\.3\.1Late consistency training

Applying donor consistency during the final 10% of training reduces the continuation penalty at all three evaluated widths \(Table[3](https://arxiv.org/html/2610.33360#S4.T3)\)\. Across both continuation settings, 81–93% of the within\-model penalty is removed\. The continuation’s full\-cache loss increases by 0\.0011–0\.0025\. The separate prespecified guard on chunk\-standard degradation also passes its 0\.005 tolerance\. The repaired models still trail their width\-matched untied controls by 0\.0891, 0\.0545 and 0\.0438 nats at widths 512, 768 and 1024 \(Table[1](https://arxiv.org/html/2610.33360#S1.T1)\)\.

Table 3:Effect of late donor consistency\.Repaired minus untreated checkpoint at 4\.19B tokens, seed 0, on the primary 2,048\-prompt/512\-target setting\. Parentheses are paired block\-bootstrap SEs\. The residual penalty subtracts the repaired model’s own full\-cache loss from its shared\-cache continuation loss\. Absolute losses and resources are in Table[1](https://arxiv.org/html/2610.33360#S1.T1)\.At width 768, a second training seed reproduces the improvement\. On a further 1,280 disjoint documents reserved for confirmation, continuation losses improve by 0\.0434 \(SE 0\.0011\) and 0\.0298 \(SE 0\.0006\) for seeds 0 and 1; their full\-cache costs are 0\.0010 and 0\.0014\. The corresponding penalty reductions are 80% and 75%\. This confirms the selected repair on fresh same\-source documents, with different effect sizes across the two seeds; it does not establish cross\-domain generalization\.

##### Loss variants\.

At width 768, increasing donor weight fromγ=0\.1\\gamma=0\.1to 0\.3 to 1\.0 lowers continuation loss from 3\.3001 to 3\.2938 to 3\.2902, while full\-cache costs relative to the rerun control rise from 0\.0005 to 0\.0012 to 0\.0057\. We select 0\.3 using the chunk\-standard quality guard: its cost is 0\.0013, whereas weight 1\.0 costs 0\.0052, just outside the 0\.005 tolerance\. Adding output distillation to combined donor/epilogue consistency almost eliminates the penalty but costs 0\.0112 in chunk\-standard loss\. Donor\-only supervision achieves the improvement; its slight advantage over combined supervision does not isolate epilogue effects, because the combined loss halves the donor coefficient\. Applying consistency throughout training also changes its normalization from fixed to tracked scales; those comparisons do not isolate the effect of timing\. Appendix[G](https://arxiv.org/html/2610.33360#A7)reports the variants and both continuation settings\. A separate width\-512 pilot also finds that donor consistency improves plain and input\-injection updates, so the repair does not require the gated carry at this setting \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px1)\)\.

#### 4\.3\.2Cache storage and measured memory

With two query heads per KV head, one BF16 cache set uses2​d2dbytes per token\. The shared layout has four sets rather than fifteen, giving 3\.75 times less storage with uniform\-length rings, or 2\.86 times less when each cache is allocated to its actual attention window\. In an eager decoder on one H100, filled\-cache peak memory at batch 160 is 2\.77 and 2\.72 times lower than the same cell’s standard layout at widths 768 and 1024; the ratios against the untied models are 2\.87 and 2\.85\. These measurements include implementation workspace during sequential cache fill, excluding ordinary parallel\-prefill workspace, and are distinct from KV tensor sizes\. They do not establish a latency benefit: at width 1024 and batch 160, a shared\-cache decode step takes 37\.2 ms versus 20\.7 ms with the cell’s standard layout\. The cause of this difference has not been isolated\. Appendix[J](https://arxiv.org/html/2610.33360#A10)gives the batch\-size measurements and their implementation limits\.

### 4\.4Variable depth and per\-token stopping

Training overR∼𝒰​\{3,…,6\}R\\sim\\mathcal\{U\}\\\{3,\\ldots,6\\\}makes loss less sensitive to evaluation depth\. At width 768 and 2\.10B tokens, the variable\-depth two\-pass model’s standard chunk loss ranges from 3\.3477 to 3\.3551 over depths four through eight\. A model trained at depth three instead deteriorates from 3\.3504 at depth three to 3\.7543 at depth six\. The robustness has a cost: at depth three, the variable\-depth model’s standard loss is 0\.0188 higher than the fixed\-depth model’s\. At depth four it recovers approximately the fixed\-depth model’s depth\-three loss, using an additional core pass\.

#### 4\.4\.1Shared\-cache continuation

Donor consistency also improves the variable\-depth model\. We re\-run its last 1,000 of 8,000 updates with consistency enabled and fixed reference scales\. On the primary continuation spans, loss improves by 0\.0325–0\.0370 at fixed depths three, four and six and under per\-token stopping, while full\-cache loss increases by 0\.0011–0\.0017\. The residual penalties at fixed depths three, four and six are−0\.0015\-0\.0015,\+0\.0082\+0\.0082and\+0\.0136\+0\.0136\. This supports compatibility of the repair with variable\-depth training, but its effect is not uniform across evaluation depths\.

Figure 4:Fixed depth outperforms the tested stopping rule\.The width\-768 model is trained over depths 3–6 on 2\.10B tokens, with and without late donor consistency\. Losses use shared\-cache continuation on the primary 1,280 spans\. Fixed depths are three, four and six; per\-token stopping uses successive\-state cosineτ=0\.98\\tau=0\.98, minimum depth two and cap six\. The horizontal axis counts selected passes, not executed GPU computation\. There is one training seed\.The tested stopping rule does not improve the loss–depth tradeoff \(Figure[4](https://arxiv.org/html/2610.33360#S4.F4)\)\. For the repaired model, fixed depth four gives loss 3\.3761 at four passes\. Stopping selects 4\.75 passes on average and gives loss 3\.3816, a paired disadvantage of 0\.0055 \(SE 0\.0002\)\. Fixed depth four also dominates stopping for the untreated model and for the model trained with consistency from the start\. With worse loss and more selected passes, this stopping rule offers no advantage over that fixed\-depth control\. Full depth and consistency comparisons are in Appendix[I](https://arxiv.org/html/2610.33360#A9)\.

## 5Related work

##### Cache sharing and consistency\.

Layer\-Condensed KV Cache \(LCKV\) shares final\-layer keys and values across layers and handles their sequential dependency through iterative parallel cache refinement\([Wu & Tu, 2024](https://arxiv.org/html/2610.33360#bib.bib33)\)\. Its Appendix C\.3 also tests an MSE loss between successive cache iterates, with lower perplexity in one configuration and higher perplexity in others\. We adapt this idea to an LSTM\-style tied core using normalized donor matching late in training\. Our two\-pass objective starts with standard attention, and each block retains its own current\-token K/V; LCKV masks that position\. Our two\- and four\-sweep controls vary refinement within this recipe, with full gradients \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px4)\)\.

Feedback Transformer uses one shared memory of past\-token layer representations and shared K/V projections\([Fan et al\., 2020](https://arxiv.org/html/2610.33360#bib.bib11)\)\. Cross\-Layer Attention reuses earlier layers’ KVs\([Brandon et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib6)\), and YOCO’s cross\-decoder shares caches produced by its self\-decoder\([Sun et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib30)\)\.[Wu et al\. \(2025\)](https://arxiv.org/html/2610.33360#bib.bib34)compare lower\- and upper\-layer donors, including their training and prefill costs\. Our early\-donor ablation tests this choice in a tied core \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px3)\)\. Huginn tests zero\-shot sharing across iterations\([Geiping et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib12), Section 6\.2\), and a Mixture\-of\-Recursions variant reuses first\-recursion KVs\([Bae et al\., 2025b](https://arxiv.org/html/2610.33360#bib.bib3)\)\. Our final donor is shared across both iterations and distinct core blocks\.222Concurrent work by[Huang et al\. \(2026\)](https://arxiv.org/html/2610.33360#bib.bib18)studies terminal KV reuse across iterations, learned training\-depth priors, and orthogonal input injection\. It retains one cache per physical layer; we share one donor across distinct core blocks and evaluate finite\-depth donor consistency\.

MELT adapts pretrained Ouro models using gated cache\-writing states, chunk\-wise training, and distillation at every loop\([Conchello Vendrell et al\., 2026](https://arxiv.org/html/2610.33360#bib.bib8)\)\. It shares a global cache across loops for each layer while retaining small per\-loop sliding\-window caches\. Our gates update the recurrent carry, and all core blocks share one donor\. Looped Latent Attention compresses loop trajectories and reconstructs loop\-specific KVs using a distilled codec\([O’Neill & Reid, 2026](https://arxiv.org/html/2610.33360#bib.bib23)\)\. Its unsuccessful final\-loop\-reuse control leaves the original model frozen; our shared\-cache models are trained for that policy\. FlashLoop uses sparse updates and quantized cross\-loop KV residuals without retraining\([Yang & Liu, 2026](https://arxiv.org/html/2610.33360#bib.bib35)\)\. These methods adapt pretrained models; we study training from scratch and subsequent consistency repair\.

##### Depth recurrence and gating\.

Universal Transformers apply shared updates with adaptive computation\([Dehghani et al\., 2019](https://arxiv.org/html/2610.33360#bib.bib9)\), ALBERT shares layer parameters\([Lan et al\., 2020](https://arxiv.org/html/2610.33360#bib.bib21)\), and deep equilibrium models formulate prediction through a fixed point of a tied transformation\([Bai et al\., 2019](https://arxiv.org/html/2610.33360#bib.bib4)\)\. Our finite recurrence uses an LSTM\-style carry\([Hochreiter & Schmidhuber, 1997](https://arxiv.org/html/2610.33360#bib.bib17);[Gers et al\., 2000](https://arxiv.org/html/2610.33360#bib.bib13)\), with independent input and forget gates and a normalized read\. The controls test the combined carry/gate update\.

Huginn combines a prelude/core/coda architecture with input injection, randomized depth, and truncated backpropagation\([Geiping et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib12)\)\. Our Huginn\-style arm adapts these mechanisms to a common backbone\. Its full\- and truncated\-gradient controls use standard caches; shared\-cache update controls appear separately in Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px1)\. Neither reproduces Huginn’s scale or full recipe\. Relaxed Recursive Transformers convert pretrained models using layer\-specific low\-rank adapters\([Bae et al\., 2025a](https://arxiv.org/html/2610.33360#bib.bib2)\)\. Mixture\-of\-Recursions learns token\-level depth routing\([Bae et al\., 2025b](https://arxiv.org/html/2610.33360#bib.bib3)\), and Ouro uses an entropy\-regularized exit policy\([Zhu et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib37)\)\. Our stopping rule uses state agreement without learned routing\.

##### Scaling recurrence\.

Parcae studies allocation between training tokens and loop depth at fixed parameter count\([Prairie et al\., 2026](https://arxiv.org/html/2610.33360#bib.bib25)\)\. At matched executed depth,[Schwethelm et al\. \(2026\)](https://arxiv.org/html/2610.33360#bib.bib27)find that their baseline recurrence saves parameters but increases loss at matched training computation\. SMELT estimates training\-compute savings at matched loss for a tuned looped mixture\-of\-experts recipe with closely matched per\-token FLOPs, parameters, and cache storage\([Wang et al\., 2026](https://arxiv.org/html/2610.33360#bib.bib31)\)\.[Chen et al\. \(2026\)](https://arxiv.org/html/2610.33360#bib.bib7)distinguish weight sharing, boundary operators, and model growth, finding gains from more recurrence when training repeatedly on limited data\.

##### Distillation and adaptive computation\.

MiniLM matches attention distributions and value relations\([Wang et al\., 2020](https://arxiv.org/html/2610.33360#bib.bib32)\); our auxiliary target is the stored donor itself\. Adaptive computation time and PonderNet learn stopping policies\([Graves, 2016](https://arxiv.org/html/2610.33360#bib.bib14);[Banino et al\., 2021](https://arxiv.org/html/2610.33360#bib.bib5)\)\. CALM addresses early exits and missing deeper past\-token representations\([Schuster et al\., 2022](https://arxiv.org/html/2610.33360#bib.bib26)\), while LayerSkip uses intermediate exits for self\-speculative decoding\([Elhoushi et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib10)\)\. Our state\-agreement rule has neither a learned halting loss nor speculative verification and is evaluated against fixed\-depth controls under the same cache policy\.

## 6Discussion and limitations

The loss penalty for tying grows with the training\-token budget at nearly matched forward computation, suggesting more scope for parameter savings when data are limited\. Our depth\-three ladder extends the training stream as the budget grows\. On a 100M\-token corpus reused over ten epochs,[Chen et al\. \(2026\)](https://arxiv.org/html/2610.33360#bib.bib7)find that increasing recurrence can outperform adding parameters\. Whether shared\-cache models retain those multi\-epoch gains is open\. Our grid neither optimizes width/depth nor fits scaling exponents\. All families improve through 4\.19B tokens; we observe no capacity floor or compute\-optimal training endpoint\.

When training is amortized over many predictions, loss at a given inference and cache budget may justify more training\. The cache\-producer comparisons illustrate the distinction: early production wins the pilot at equal training compute, while an existing late\-producer checkpoint has lower loss on fresh documents after about four times as much estimated training compute, at nearly equal inference cost \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px3)\)\. Neither result establishes a generally better producer or attributes the gap to recurrently refined memory alone\.

Donor consistency reduces the shared\-cache continuation penalty\. The repeated\-donor diagnostic supports a contribution from cache histories, without decomposing the full penalty\. The improvement requires no direct epilogue supervision, but does not exclude epilogue effects or guarantee agreement on other histories\. The confounds in the loss\-variant controls remain \(Appendix[G](https://arxiv.org/html/2610.33360#A7)\)\. Two seeds confirm the selected repair on fresh same\-source documents, without establishing a generally optimal coefficient or zero quality cost\.

The repair also helps plain and injection updates in a single\-seed pilot; the tested LSTM\-style carry is not necessary for that improvement\. Four refinement sweeps provide no advantage over two sweeps with late consistency at matched estimated training compute \(Appendix[G](https://arxiv.org/html/2610.33360#A7.SS0.SSS0.Px4)\); their equal\-token ranking depends on prompt history\. These pilots do not establish a best update rule or producer across scales\. Holding normalization fixed would separately test the value of applying consistency late\.

Evaluation covers FineWeb language\-model loss with ground\-truth inputs\. Sampled generation, longer contexts, downstream tasks, and larger models may behave differently\. Most configurations have one run; document\-level uncertainty excludes training variability\. Our small\-scale Huginn\-style experiments leave open how architecture, data, and optimization affect the value of additional depth\.

Cache storage and selected depth do not determine latency\. Uniform cache rings overstate savings relative to window\-sized allocations; our implementation slows at width 1024 with large batches\. The adaptive decoder computes stopped rows until the batch completes\. A quality–latency improvement over fixed depth remains to be demonstrated\.

## 7Conclusion

An LSTM\-style weight\-tied transformer reduces parameter count at fixed computational depth and shares one persistent cache across its recurrent core\. Two\-pass training leaves a shared\-cache continuation penalty; late donor\-KV consistency substantially reduces it, with a small full\-cache loss cost and confirmation on disjoint documents\. At matched width and approximately matched forward computation, untied controls retain lower loss\. Simpler updates also benefit from consistency in a pilot, and adaptive stopping does not improve on fixed depth\. The evidence supports cache sharing with a measured quality and computation tradeoff, rather than a general advantage for gated recurrence\.

## References

- Ainslie et al\. \(2023\)Joshua Ainslie, James Lee\-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebron, and Sumit Sanghai\.GQA: Training generalized multi\-query transformer models from multi\-head checkpoints\.In*Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing*, pp\. 4895–4901\. Association for Computational Linguistics, 2023\.doi:10\.18653/v1/2023\.emnlp\-main\.298\.URL[https://aclanthology\.org/2023\.emnlp\-main\.298/](https://aclanthology.org/2023.emnlp-main.298/)\.
- Bae et al\. \(2025a\)Sangmin Bae, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Seungyeon Kim, and Tal Schuster\.Relaxed recursive transformers: Effective parameter sharing with layer\-wise LoRA\.In*International Conference on Learning Representations \(ICLR\)*, 2025a\.URL[https://openreview\.net/forum?id=WwpYSOkkCt](https://openreview.net/forum?id=WwpYSOkkCt)\.
- Bae et al\. \(2025b\)Sangmin Bae, Yujin Kim, Reza Bayat, Sungnyun Kim, Jiyoun Ha, Tal Schuster, Adam Fisch, Hrayr Harutyunyan, Ziwei Ji, Aaron Courville, and Se\-Young Yun\.Mixture\-of\-recursions: Learning dynamic recursive depths for adaptive token\-level computation\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2025b\.URL[https://arxiv\.org/abs/2507\.10524](https://arxiv.org/abs/2507.10524)\.
- Bai et al\. \(2019\)Shaojie Bai, J\. Zico Kolter, and Vladlen Koltun\.Deep equilibrium models\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2019\.
- Banino et al\. \(2021\)Andrea Banino, Jan Balaguer, and Charles Blundell\.PonderNet: Learning to ponder\.*arXiv preprint arXiv:2107\.05407*, 2021\.
- Brandon et al\. \(2024\)William Brandon, Mayank Mishra, Aniruddha Nrusimha, Rameswar Panda, and Jonathan Ragan\-Kelley\.Reducing transformer key\-value cache size with cross\-layer attention\.In*Advances in Neural Information Processing Systems*, volume 37, 2024\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2024/hash/9e23d020c18e4c40d81c6a0fc7a46f68\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2024/hash/9e23d020c18e4c40d81c6a0fc7a46f68-Abstract-Conference.html)\.
- Chen et al\. \(2026\)Zixi Chen, Akshay Vegesna, Samip Dahal, and Andrew Gordon Wilson\.How model growth, recursion, and boundary operators influence scaling exponents\.*arXiv preprint arXiv:2609\.19107*, 2026\.URL[https://arxiv\.org/abs/2609\.19107](https://arxiv.org/abs/2609.19107)\.
- Conchello Vendrell et al\. \(2026\)Victor Conchello Vendrell, Arnau Padrés Masdemont, Niccolò Grillo, Jordi Ros\-Giralt, Arash Behboodi, and Fabio Valerio Massoli\.Memory\-efficient looped transformer: Decoupling compute from memory in looped language models\.*arXiv preprint arXiv:2605\.07721*, 2026\.URL[https://arxiv\.org/abs/2605\.07721v3](https://arxiv.org/abs/2605.07721v3)\.
- Dehghani et al\. \(2019\)Mostafa Dehghani, Stephan Gouws, Oriol Vinyals, Jakob Uszkoreit, and Łukasz Kaiser\.Universal transformers\.In*International Conference on Learning Representations \(ICLR\)*, 2019\.
- Elhoushi et al\. \(2024\)Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich, Basil Hosmer, Bram Wasti, Liangzhen Lai, Anas Mahmoud, Bilge Acun, Saurabh Agarwal, Ahmed Roman, Ahmed Aly, Beidi Chen, and Carole\-Jean Wu\.LayerSkip: Enabling early exit inference and self\-speculative decoding\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pp\. 12622–12642, 2024\.doi:10\.18653/v1/2024\.acl\-long\.681\.URL[https://aclanthology\.org/2024\.acl\-long\.681/](https://aclanthology.org/2024.acl-long.681/)\.
- Fan et al\. \(2020\)Angela Fan, Thibaut Lavril, Edouard Grave, Armand Joulin, and Sainbayar Sukhbaatar\.Addressing some limitations of transformers with feedback memory\.*arXiv preprint arXiv:2002\.09402*, 2020\.
- Geiping et al\. \(2025\)Jonas Geiping, Sean McLeish, Neel Jain, John Kirchenbauer, Siddharth Singh, Brian R\. Bartoldson, Bhavya Kailkhura, Abhinav Bhatele, and Tom Goldstein\.Scaling up test\-time compute with latent reasoning: A recurrent depth approach\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2025\.URL[https://arxiv\.org/abs/2502\.05171](https://arxiv.org/abs/2502.05171)\.
- Gers et al\. \(2000\)Felix A\. Gers, Jürgen Schmidhuber, and Fred Cummins\.Learning to forget: Continual prediction with LSTM\.*Neural Computation*, 12\(10\):2451–2471, 2000\.doi:10\.1162/089976600300015015\.URL[https://direct\.mit\.edu/neco/article/12/10/2451/6415/Learning\-to\-Forget\-Continual\-Prediction\-with\-LSTM](https://direct.mit.edu/neco/article/12/10/2451/6415/Learning-to-Forget-Continual-Prediction-with-LSTM)\.
- Graves \(2016\)Alex Graves\.Adaptive computation time for recurrent neural networks\.*arXiv preprint arXiv:1603\.08983*, 2016\.
- Henry et al\. \(2020\)Alex Henry, Prudhvi Raj Dachapally, Shubham Shantaram Pawar, and Yuxuan Chen\.Query\-key normalization for transformers\.In*Findings of the Association for Computational Linguistics: EMNLP 2020*, pp\. 4246–4253\. Association for Computational Linguistics, 2020\.doi:10\.18653/v1/2020\.findings\-emnlp\.379\.URL[https://aclanthology\.org/2020\.findings\-emnlp\.379/](https://aclanthology.org/2020.findings-emnlp.379/)\.
- Hinton et al\. \(2015\)Geoffrey Hinton, Oriol Vinyals, and Jeff Dean\.Distilling the knowledge in a neural network\.*arXiv preprint arXiv:1503\.02531*, 2015\.URL[https://arxiv\.org/abs/1503\.02531](https://arxiv.org/abs/1503.02531)\.
- Hochreiter & Schmidhuber \(1997\)Sepp Hochreiter and Jürgen Schmidhuber\.Long short\-term memory\.*Neural Computation*, 9\(8\):1735–1780, 1997\.doi:10\.1162/neco\.1997\.9\.8\.1735\.
- Huang et al\. \(2026\)Benhao Huang, Chufan Shi, Junlin Chen, Shicheng Wen, Zhengzhong Liu, Eric Xing, and Xuezhe Ma\.Towards looped models done right\. Part II: Rethinking at fixed points, 2026\.URL[https://github\.com/ifm\-ai/xllm\-loop/blob/main/papers/part2\.pdf](https://github.com/ifm-ai/xllm-loop/blob/main/papers/part2.pdf)\.Technical report, September 29\.
- Jordan et al\. \(2024a\)Keller Jordan, Jeremy Bernstein, Brendan Rappazzo, @fernbear\.bsky\.social, Vlado Boza, Jiacheng You, Franz Cesista, Braden Koszarsky, and @Grad62304977\.modded\-nanogpt: Speedrunning the NanoGPT baseline\.GitHub repository, 2024a\.URL[https://github\.com/KellerJordan/modded\-nanogpt](https://github.com/KellerJordan/modded-nanogpt)\.
- Jordan et al\. \(2024b\)Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein\.Muon: An optimizer for hidden layers in neural networks, 2024b\.URL[https://kellerjordan\.github\.io/posts/muon/](https://kellerjordan.github.io/posts/muon/)\.
- Lan et al\. \(2020\)Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut\.ALBERT: A lite BERT for self\-supervised learning of language representations\.In*International Conference on Learning Representations \(ICLR\)*, 2020\.
- Loshchilov & Hutter \(2019\)Ilya Loshchilov and Frank Hutter\.Decoupled weight decay regularization\.In*International Conference on Learning Representations*, 2019\.URL[https://arxiv\.org/abs/1711\.05101](https://arxiv.org/abs/1711.05101)\.
- O’Neill & Reid \(2026\)James O’Neill and Fergal Reid\.Looped latent attention: Cross\-loop KV compression for looped transformers\.*arXiv preprint arXiv:2607\.15456*, 2026\.URL[https://arxiv\.org/abs/2607\.15456v2](https://arxiv.org/abs/2607.15456v2)\.
- Penedo et al\. \(2024\)Guilherme Penedo, Hynek Kydlíček, Loubna Ben Allal, Anton Lozhkov, Margaret Mitchell, Colin Raffel, Leandro Von Werra, and Thomas Wolf\.The FineWeb datasets: Decanting the web for the finest text data at scale\.*arXiv preprint arXiv:2406\.17557*, 2024\.
- Prairie et al\. \(2026\)Hayden Prairie, Zachary Novack, Taylor Berg\-Kirkpatrick, and Daniel Y\. Fu\.Parcae: Scaling laws for stable looped language models\.*arXiv preprint arXiv:2604\.12946*, 2026\.URL[https://arxiv\.org/abs/2604\.12946](https://arxiv.org/abs/2604.12946)\.
- Schuster et al\. \(2022\)Tal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani, Dara Bahri, Vinh Q\. Tran, Yi Tay, and Donald Metzler\.Confident adaptive language modeling\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, 2022\.URL[https://arxiv\.org/abs/2207\.07061](https://arxiv.org/abs/2207.07061)\.
- Schwethelm et al\. \(2026\)Kristian Schwethelm, Daniel Rückert, and Georgios Kaissis\.How much is one recurrence worth? Iso\-Depth scaling laws for looped language models\.*arXiv preprint arXiv:2604\.21106*, 2026\.URL[https://arxiv\.org/abs/2604\.21106v3](https://arxiv.org/abs/2604.21106v3)\.
- Shazeer \(2020\)Noam Shazeer\.GLU variants improve transformer\.*arXiv preprint arXiv:2002\.05202*, 2020\.URL[https://arxiv\.org/abs/2002\.05202](https://arxiv.org/abs/2002.05202)\.
- Su et al\. \(2021\)Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu\.RoFormer: Enhanced transformer with rotary position embedding\.*arXiv preprint arXiv:2104\.09864*, 2021\.URL[https://arxiv\.org/abs/2104\.09864](https://arxiv.org/abs/2104.09864)\.
- Sun et al\. \(2024\)Yutao Sun, Li Dong, Yi Zhu, Shaohan Huang, Wenhui Wang, Shuming Ma, Quanlu Zhang, Jianyong Wang, and Furu Wei\.You only cache once: Decoder\-decoder architectures for language models\.In*Advances in Neural Information Processing Systems*, volume 37, 2024\.URL[https://proceedings\.neurips\.cc/paper\_files/paper/2024/hash/0df38cd13520747e1e64e5b123a78ef8\-Abstract\-Conference\.html](https://proceedings.neurips.cc/paper_files/paper/2024/hash/0df38cd13520747e1e64e5b123a78ef8-Abstract-Conference.html)\.
- Wang et al\. \(2026\)Shaowen Wang, Ge Zhang, Kairong Luo, Yuhao Wu, Shaofan Liu, Jiaheng Liu, Wenhao Huang, Shen Yan, and Jian Li\.SMELT: Scaling laws for compute\-matched MoE looped transformers\.*arXiv preprint arXiv:2609\.01343*, 2026\.URL[https://arxiv\.org/abs/2609\.01343v3](https://arxiv.org/abs/2609.01343v3)\.
- Wang et al\. \(2020\)Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou\.MiniLM: Deep self\-attention distillation for task\-agnostic compression of pre\-trained transformers\.In*Advances in Neural Information Processing Systems*, volume 33, 2020\.URL[https://proceedings\.neurips\.cc/paper/2020/hash/3f5ee243547dee91fbd053c1c4a845aa\-Abstract\.html](https://proceedings.neurips.cc/paper/2020/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html)\.
- Wu & Tu \(2024\)Haoyi Wu and Kewei Tu\.Layer\-condensed KV cache for efficient inference of large language models\.In*Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\)*, pp\. 11175–11188\. Association for Computational Linguistics, 2024\.doi:10\.18653/v1/2024\.acl\-long\.602\.URL[https://aclanthology\.org/2024\.acl\-long\.602/](https://aclanthology.org/2024.acl-long.602/)\.
- Wu et al\. \(2025\)You Wu, Haoyi Wu, and Kewei Tu\.A systematic study of cross\-layer KV sharing for efficient LLM inference\.In*Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 2: Short Papers\)*, pp\. 396–403\. Association for Computational Linguistics, 2025\.doi:10\.18653/v1/2025\.naacl\-short\.34\.URL[https://aclanthology\.org/2025\.naacl\-short\.34/](https://aclanthology.org/2025.naacl-short.34/)\.
- Yang & Liu \(2026\)Wanqi Yang and Shiwei Liu\.FlashLoop: Fast and memory\-efficient looped transformers via lazy updates\.*arXiv preprint arXiv:2609\.29812*, 2026\.URL[https://arxiv\.org/abs/2609\.29812v2](https://arxiv.org/abs/2609.29812v2)\.
- Zhang & Sennrich \(2019\)Biao Zhang and Rico Sennrich\.Root mean square layer normalization\.In*Advances in Neural Information Processing Systems*, volume 32, 2019\.URL[https://proceedings\.neurips\.cc/paper/2019/hash/1e8a19426224ca89e83cef47f1e7f53b\-Abstract\.html](https://proceedings.neurips.cc/paper/2019/hash/1e8a19426224ca89e83cef47f1e7f53b-Abstract.html)\.
- Zhu et al\. \(2025\)Rui\-Jie Zhu, Zixuan Wang, Kai Hua, Tianyu Zhang, Ziniu Li, Haoran Que, Boyi Wei, Zixin Wen, Fan Yin, He Xing, Lu Li, Jiajun Shi, Kaijing Ma, Shanda Li, Taylor Kergan, Andrew Smith, Xingwei Qu, Mude Hui, Bohong Wu, Qiyang Min, Hongzhi Huang, Xun Zhou, Wei Ye, Jiaheng Liu, Jian Yang, Yunfeng Shi, Chenghua Lin, Enduo Zhao, Tianle Cai, Ge Zhang, Wenhao Huang, Yoshua Bengio, and Jason Eshraghian\.Scaling latent reasoning via looped language models\.*arXiv preprint arXiv:2510\.25741*, 2025\.URL[https://arxiv\.org/abs/2510\.25741](https://arxiv.org/abs/2510.25741)\.

## Appendix AAcknowledgements

The experiments, code, and manuscript were developed using Fable 5\.1 and GPT\-6 Astra\. The author verified and edited the resulting work\.

Experiments used a local workstation with an NVIDIA GeForce RTX 4090 and Modal cloud instances\. Main model training used eight NVIDIA H100 GPUs per job; brief hardware\-selection benchmarks also used H200 and B200 GPUs\.

## Appendix BArchitecture and training recipe

All models use the same transformer block: a learned\-gain RMS normalization before attention and before the MLP, rotary positional embeddings, gain\-free per\-head query/key normalization, and a SwiGLU MLP\. Attention has 64\-dimensional heads and two query heads per key/value head\. For model widthdd, the MLP hidden width is8​d/38d/3rounded up to a multiple of 128\. The tokenizer has 50,257 entries; input and output embeddings share one matrix padded to 50,304 rows\. There are no value\-embedding tables, raw\-embedding residual skips, learned residual\-mixing scalars, or FP8 output projection in these experiments\.

The recurrent model has one prologue block, four distinct core blocks, and two epilogue blocks \(P1E2\)\. The core weights are reused at each iteration\. Its prologue, first core slot, and last epilogue use a 2,048\-token attention window; other blocks use 1,024 tokens\. At three iterations this gives five long\-window and ten short\-window block applications\. The untied comparator has 15 blocks, with long windows at zero\-based indices 0, 4, 7, 10, and 14\. Thus the models match the counts of long and short applications, while placing them differently in the stack\. Causal attention is also restricted to the current document and logical chunk\. The maximum attention window and the 8,192\-token logical chunk length are distinct quantities\.

Attention and MLP output projections start at zero, so each transformer block initially acts as the identity\. Other projection matrices use a uniform distribution with standard deviation0\.5/fan​\_​in0\.5/\\sqrt\{\\mathrm\{fan\\\_in\}\}; embeddings have independent Gaussian entries with standard deviation 0\.02\. Normalization gains start at one\. Gate matrices start at zero, with forget and input biases 1 and 0\. The initial forget coefficientσ⁡\(1\)≃0\.731\\sigma\(1\)\\simeq 0\.731describes carry retention, not contraction of the full recurrent map\. The cell starts with hidden state and carry equal to the gain\-free\-normalized prologue output\. Its carry read is gain\-free RMS normalization; the candidate and final output normalizations have learned gains\. There is no additive latent noise in the cell\. The Huginn\-style comparator instead starts from a unit\-RMS Gaussian hidden state, uses the prologue adapter on every pass, and reads the normalized candidate directly\.

##### Data and optimization\.

The global batch contains 262,144 tokens, arranged as 32 logical chunks of 8,192 tokens\. All paired models see the same ordered FineWeb training stream\. An update’s chunk indices are determined by its step, independently of microbatching\. Training uses eight H100 GPUs with four chunks per rank per update\. Memory\-intensive runs split these into two or four microbatches; accumulation preserves the global batch\. Attention does not cross logical chunk boundaries\. Training does not cycle over exhausted data\.

Hidden matrices use Muon with learning rate 0\.01, momentum 0\.95, five Newton–Schulz iterations, weight decay 0\.1, and update scalingmax⁡\(1,rows/columns\)\\sqrt\{\\max\(1,\\mathrm\{rows\}/\\mathrm\{columns\}\)\}\. The tied embedding and remaining parameters use AdamW at learning rate3×10−43\\times 10^\{\-4\}, withβ=\(0\.9,0\.95\)\\beta=\(0\.9,0\.95\)andϵ=10−8\\epsilon=10^\{\-8\}\. Embeddings have weight decay 0\.1; normalization gains and biases have none\. Gradients are accumulated and synchronized before global norm clipping at 1\.0\. The recipe is common across model widths, rather than separately tuned to each architecture\. Models compute in BF16 with FP32 normalization and loss reductions\. Optimization states and complete random\-number\-generator states are saved for continuation\. The ladder uses PyTorch 2\.14 and CUDA 13\.

Each main\-ladder schedule warms up for 80 updates and then holds its learning rate constant\. Separate branches decay linearly to zero over the final 10% of each endpoint \(Table[4](https://arxiv.org/html/2610.33360#A2.T4)\)\. The constant\-rate trunk continues independently of its earlier decay branches\. An early annealed endpoint is therefore not the state from which the longer run resumes\. The separately trained standard cell has one cross\-entropy objective\. The two\-pass cell uses equally weighted standard and shared passes; both receive gradients\. These objectives define different trained models\. The width\-512 follow\-up schedules in Appendix[G](https://arxiv.org/html/2610.33360#A7)instead use approximately 2% of their updates for warmup: 80 at 4,000 updates, 51 at 2,529, and 155 at 7,766, with decay over the final 10%\.

Table 4:Training endpoints\. Token counts include the complete path to each endpoint; extra branches consume additional experimental computation but do not add to that path\.The ladder and mechanism factorial initialize common tensors using generators keyed by tensor name and training seed\. Adding a gate or adapter therefore does not redraw the shared backbone\. The fixed\-depth Huginn\-style continuation also inherits a named\-initialized checkpoint; its recurrence and stochastic hidden\-state initialization still differ from the cell’s\. The three width\-768 ladder seeds vary initialization and training RNG while preserving data order\. They replicate the two\-pass\-cell versus untied comparison, not every ablation\.

## Appendix CEvaluation protocols and uncertainty

##### Chunk validation\.

Standard and parallel shared\-cache validation each score 10,485,760 targets in the same 1,280 chunks of 8,192 tokens\. Standard attention reads the cache for its own block and iteration\. In the main two\-pass models’ parallel shared pass, every core block reads older\-token entries from the last core slot’s final iteration in the first pass; its current token uses its own key and value\. The two passes share the prologue computation but run separate core and epilogue computations\. Appendix[G](https://arxiv.org/html/2610.33360#A7)specifies the early\-producer and additional\-sweep variants\. Ground\-truth token inputs are used throughout\.

##### Prompt\-prefill continuation\.

The primary continuation evaluation uses 1,280 documents, each at least 2,561 tokens long\. Each example starts at a document boundary and supplies 2,048 prompt tokens, followed by 512 scored next\-token targets: 655,360 targets in total\. The full\-cache reference evaluates the ordinary model on the same document prefix and scores precisely those targets\. The shared\-cache evaluation prefills the prompt with ordinary attention, keeps the first pass’s final donor and the prologue/epilogue caches, and then appends new donor entries after each input token\. The final prompt logit scores the first continuation target; processing that target as the next ground\-truth input produces the prediction for the following target\. Thus 512 targets require 511 new token updates after prefill\. No model samples its next token in this evaluation\.

The diagnostic split uses a 512\-token prompt and 2,048 targets on the same documents, for 2,621,440 targets\. It changes both prompt length and scored positions, so its aggregate difference is not a controlled effect of continuation length alone\. Positionwise loss differences within either setting show how errors change as recursively generated cache entries replace prompt entries\. A second prefill diagnostic retains the first\-pass core donor but takes epilogue history and final prompt logits from the parallel second pass\. It still does not replace subsequent donor entries with first\-pass entries\.

##### Cold sequential evaluation\.

A separate diagnostic processes complete validation chunks token by token from empty caches, with caches reset at document boundaries\. For example, at width 768 and 4\.19B training tokens, the untreated two\-pass model has cold shared\-cache loss 3\.3426 and parallel shared\-cache loss 3\.2675\. Their difference, 0\.0751, describes that cold protocol; it is not a correction to prompt\-prefill continuation\. Cold decoding and the prefill protocols both use ground\-truth inputs, despite their different cache histories\.

##### Selection and confirmation\.

The original continuation documents lie beyond the chunk\-validation prefix in the validation shard\. They were reused to compare objectives and regularization weights\. A further 1,280 eligible documents, disjoint from both earlier sets, were reserved for confirmation of the selected width\-768 donor\-only recipe atγ=0\.3\\gamma=0\.3\. The two training seeds were evaluated on this same confirmation set; they are not two new independent text sets\. The confirmation supports transfer to fresh documents from the same source, not to another corpus\. Cross\-width parameter matching uses the original spans and has no corresponding held\-out confirmation\.

All paired differences are computed before rounding from per\-example loss sums on identical targets\. Unless stated otherwise, reported standard errors use 2,000 moving\-block bootstrap resamples of eight adjacent chunks or spans\. Blocks preserve some dependence between nearby chunks; spans themselves are document\-contained\. These errors condition on the trained checkpoint pair\. They do not include training seed variation or uncertainty from selecting a recipe on the reused set\. Seed standard deviations are reported separately where independent training seeds exist\.

## Appendix DParameter, computation, and storage accounting

Table[5](https://arxiv.org/html/2610.33360#A4.T5)counts all trainable parameters, including the tied embedding once\. Non\-embedding counts exclude that table\. All listed parameters participate in the forward computation; shared tensors are counted once\. The standard cell, two\-pass cell, and repaired cell at a given width have the same parameters\.

For a dense matrix multiply, one multiply and one add count as two FLOPs\. Attention contributes4​d​k¯4d\\bar\{k\}per block application, where for a windowWWand chunk lengthL=8192L=8192,

k¯=W⁡\(W\+1\)/2\+\(L−W\)​WL\.\\bar\{k\}=\\frac\{W\(W\+1\)/2\+\(L\-W\)W\}\{L\}\.\(9\)This averages the causal window over chunk positions and ignores additional document boundaries\. It is a reference accounting convention, not measured device work or an exact cost for each continuation position\. The counts include projection, gate, adapter, MLP, and output\-head matrix multiplications, but exclude normalization, rotations, nonlinearities, masking, memory movement, and auxiliary\-loss overhead\.

LetFPF\_\{P\}denote the prologue cost andFQF\_\{Q\}the core, epilogue, and head together\. A standard forward costsFP\+FQF\_\{P\}\+F\_\{Q\}; the two\-pass objective costsFP\+2​FQF\_\{P\}\+2F\_\{Q\}\. With full backpropagation and no activation recomputation, estimated training cost is three times the executed forward\. For truncated backpropagation, we count the executed forward plus twice the taped forward; activation checkpointing adds the recomputed core forward\. Total estimated training FLOPs equal the appropriate per\-token cost times the number of training tokens\. The fixed\-depth repair uses the same two\-pass base accounting, with its auxiliary computations excluded explicitly\.

Table 5:Resources at three recurrent iterations\. Parameters are millions; FLOPs are millions per token\. Forward is a single standard forward for every row; training counts both passes for the two\-pass objective\. The repair shares the two\-pass row’s base cost\.Δ​P\\Delta PandΔ​F\\Delta Fare percentage differences in total parameters and forward FLOPs relative to the same\-width untied control\.The recurrent standard forward is 1\.5–2\.4% more expensive than its same\-width untied control under this convention\. Two\-pass training instead costs 1\.98–1\.99 times as much at the same token budget\. Matching tokens therefore does not match training computation\. The repaired width\-1024 versus untied width\-768 comparison has almost identical parameter counts \(\+0\.16%\+0\.16\\%for the recurrent model\) but costs 1\.66 times as much per standard forward and 3\.22 times as much in estimated training FLOPs\. The existing intermediate endpoints allow an approximately equal\-training\-compute comparison at fixed width: two\-pass models trained on 2\.097B tokens versus untied models trained on 4\.194B tokens \(Table[6](https://arxiv.org/html/2610.33360#A4.T6)\)\. The untied models receive at most 1\.1% more training computation\. The two\-pass models have fewer parameters but higher loss by 0\.0957–0\.1439 nats\. These are parallel chunk losses before donor repair; they do not measure shared\-cache continuation or predict an unrun repair\.

Table 6:Approximately matched estimated training computation, using existing seed\-0 endpoints\. T denotes the two\-pass model at 2\.097B tokens and U the untied model at 4\.194B\. Parameters include embeddings; computation is total training FLOPs in units of101810^\{18\}\. Losses score the same 1,280 chunks \(10,485,760 targets\): T uses parallel shared\-cache validation before repair, U standard validation\. Parentheses are paired block\-bootstrap SEs, conditional on the checkpoints\.##### Persistent cache storage\.

ForSScache sets, BF16 storage per cached token is2×2×HKV×64×S2\\times 2\\times H\_\{\\mathrm\{KV\}\}\\times 64\\times Sbytes\. At P1E2,K=4K=4, andR=3R=3, standard caching needs1\+4⋅3\+2=151\+4\\cdot 3\+2=15sets; full sharing needs1\+1\+2=41\+1\+2=4\. Uniform 2,048\-position rings therefore reduce allocated KV storage by15/4=3\.7515/4=3\.75\. Sizing each set to its longest read window instead gives five long and ten short sets for standard caching, versus three long and one short set for full sharing:\(5⋅2\+10\)/\(3⋅2\+1\)=20/7≃2\.86\(5\\cdot 2\+10\)/\(3\\cdot 2\+1\)=20/7\\simeq 2\.86\. The shared donor must retain a long window because the first core slot reads it, although the last core slot produces it\. These formulas exclude scratch tensors and model weights; measured peaks appear in Appendix[J](https://arxiv.org/html/2610.33360#A10)\.

## Appendix EComplete width and token ladder

Table[7](https://arxiv.org/html/2610.33360#A5.T7)separates the ordinary cell trained with one loss from the cell trained with the two\-pass objective\. The latter has two reported parallel losses, neither of which is a recursively updated shared\-cache continuation loss\. These are seed\-0 results\. Increasing training tokens improves every arm in this range, while both recurrent\-minus\-untied gaps widen at each tested width\. Figure[5](https://arxiv.org/html/2610.33360#A5.F5)shows the same ladder against reference forward FLOPs: the gaps widen while the same\-width compute mismatch remains 1\.5–2\.4%\. These measurements do not establish an asymptotic capacity floor or a width at which parity must occur\.

Figure 5:Loss versus reference forward computation across training\-token budgets\.The same checkpoints and losses as Figure[2](https://arxiv.org/html/2610.33360#S4.F2), with widths 384, 512, 768, and 1024 in increasing compute order\. The horizontal axis counts one standard forward under Appendix[D](https://arxiv.org/html/2610.33360#A4)’s attention\-length convention, as an inference compute reference; it does not count two\-pass training or measure serving latency\. Untied and single\-pass cell losses use standard validation; two\-pass cell losses use parallel shared\-cache validation before consistency repair\. All points use training seed 0 and the same 10,485,760 targets\.Table 7:Complete chunk\-validation ladder; loss↓\\downarrow\. Tokens are billions\.Δcell\\Delta\_\{\\rm cell\}is standard\-cell minus untied;Δshared\\Delta\_\{\\rm shared\}is two\-pass shared minus untied\. Each row scores the same 10,485,760 targets\.At 4\.19B tokens, sharing reduces the two\-pass model’s own parallel loss by 0\.0012, 0\.0036, 0\.0053, and 0\.0063 at widths 384, 512, 768, and 1024, respectively\. This within\-model contrast should not be substituted for the cost of changing the training objective or the cost of recursive cache updates\. The paired uncertainty of the separately trained standard\-cell versus untied comparison is approximately 0\.0004–0\.0005 nats; that of the two\-pass shared versus untied comparison is approximately 0\.0004–0\.0006 at this endpoint\.

## Appendix FTraining seeds and held\-out confirmation

Table 8:Three training seeds at width 768, on the common chunk evaluation\. Loss↓\\downarrow;Δ\\Deltais two\-pass shared minus untied\. Tokens are billions\.The mean shared\-minus\-untied differences at 1\.05B, 2\.10B, and 4\.19B tokens are0\.01150\.0115,0\.02090\.0209, and0\.03090\.0309, with seed standard deviations0\.00090\.0009,0\.00140\.0014, and0\.00250\.0025\(n=3n=3\)\. These are larger than the paired text\-sampling errors and specific to this comparison\. Across the same three seeds at 4\.19B, shared\-minus\-standard loss within the two\-pass model averages−0\.0055\-0\.0055with seed standard deviation0\.00050\.0005\.

Table 9:Held\-out width\-768 confirmation at 4\.19B tokens, with 2,048 prompt tokens and 512 targets\. Differences compare the repair to its own untreated parent; parentheses are paired bootstrap SEs\. All losses are in nats per target \(↓\\downarrow\)\.On these fresh documents, the repair reduces the within\-model continuation penalty from 0\.0554 to 0\.0110 for seed 0 and from 0\.0416 to 0\.0104 for seed 1: reductions of 80% and 75%\. Remaining repaired\-minus\-untied gaps are0\.0521​\(0\.0015\)0\.0521\\ \(0\.0015\)and0\.0600​\(0\.0017\)0\.0600\\ \(0\.0017\)\. This supports the repair across two trained checkpoints while retaining both its small full\-cache cost and its residual gap to the untied model\.

## Appendix GConsistency objective and ablations

For a donor tensorX∈\{K,V\}X\\in\\\{K,V\\\}, the auxiliary error is

eX=mean⁡\[\(X2−stopgrad⁡\(X1\)\)2\]sX\+10−6,Ldonor=12​\(eK\+eV\)\.e\_\{X\}=\\frac\{\\operatorname\{mean\}\\bigl\[\(X\_\{2\}\-\\operatorname\{stopgrad\}\(X\_\{1\}\)\)^\{2\}\\bigr\]\}\{s\_\{X\}\+10^\{\-6\}\},\\qquad L\_\{\\rm donor\}=\\tfrac\{1\}\{2\}\(e\_\{K\}\+e\_\{V\}\)\.\(10\)The target is the first pass’s final\-iteration own key or value in the last core slot; the prediction is the corresponding tensor in the second pass\. Keys are compared after query/key normalization and positional rotation, values as stored\. For donor\-only training, the objective isL=12​CE1\+12​CE2\+γ​LdonorL=\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{1\}\+\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{2\}\+\\gamma L\_\{\\rm donor\}\. Only the auxiliary reference tensor detaches: gradients through the first\-pass donor used as attention input to the second pass remain live\.

The fixed scalessK,sVs\_\{K\},s\_\{V\}are reference mean squares, calibrated once at branch start\. Each rank evaluates one microbatch of two 8,192\-token chunks; averaging across eight ranks uses 16 chunks, or 131,072 tokens\. These are the first microbatches on each rank of the branch’s starting update, not necessarily 16 consecutive chunks in the global stream\. Calibration runs at depth 3 for fixed\-depth models and at depth 6 for the variable\-depth model\. Scales are held fixed thereafter and stored in checkpoints\. The initial calibration sample depends on rank count and microbatch size; changing hardware decomposition requires preserving the scales or treating recalibration as a recipe change\.

For epilogue supervision, K/V errors are averaged within each epilogue block and then across the two blocks\. The combined objective usesLKV=12​\(Ldonor\+Lepi\)L\_\{\\rm KV\}=\\tfrac\{1\}\{2\}\(L\_\{\\rm donor\}\+L\_\{\\rm epi\}\), whereas donor\-only usesLKV=LdonorL\_\{\\rm KV\}=L\_\{\\rm donor\}\. At equalγ\\gamma, dropping the epilogue term therefore doubles the donor coefficient\. The comparison establishes that donor\-only supervision is sufficient for the observed repair; it does not isolate the effect of removing an otherwise equally weighted epilogue penalty\.

Output distillation\([Hinton et al\., 2015](https://arxiv.org/html/2610.33360#bib.bib16)\)usesβmeantKL\(stopgrad\(p1,t\)∥p2,t\)\\beta\\,\\operatorname\{mean\}\_\{t\}\\mathrm\{KL\}\(\\operatorname\{stopgrad\}\(p\_\{1,t\}\)\\\|p\_\{2,t\}\)at temperature one\. Matching output distributions need not match stored cache entries, and matching entries in the parallel objective does not guarantee a fixed point under recursive decoding\. The continuation evaluations test the consequences directly\.

Table 10:Width\-768 auxiliary\-loss ablations on the same 1,600\-update decay branch\. Full and shared losses score the primary continuation targets \(↓\\downarrow\)\. Penalty is shared minus full within that model\. The last column is the change in*chunk\-standard*loss relative to the no\-auxiliary branch control; its preset quality limit is\+0\.005\+0\.005\.The control branch reproduces the parent’s chunk\-standard loss to 0\.0001 and its primary continuation loss to 0\.0006\. Donor\-onlyγ=0\.3\\gamma=0\.3provides a substantial improvement while staying inside the quality limit\. Increasingγ\\gammato 1\.0 further reduces the residual penalty but raises chunk\-standard loss by 0\.0052 and primary full\-cache continuation loss by 0\.0057\. The combined K/V andβ=1\\beta=1distillation arm almost closes the within\-model penalty, at a chunk\-standard cost of 0\.0112\. This is a result for that combined objective, not an isolated estimate of the KL term under the decay schedule\. A smallerβ=0\.3\\beta=0\.3with donorγ=0\.1\\gamma=0\.1gives similar served loss to donor\-onlyγ=0\.3\\gamma=0\.3, with a larger full\-cache cost\. The chosen coefficient is a tested tradeoff, not an estimated optimum\.

##### Repair with different recurrent updates\.

A width\-512 pilot applies the donor\-only term to the gated cell, plain normalized overwrite and Huginn\-style injection\. Each update has one 3,600\-step trunk followed by paired 400\-step branches withγ=0\\gamma=0or0\.30\.3\. The injection uses Gaussian latents keyed by example and position, shared across parallel passes and sequential decoding, rather than the earlier stream\-noise convention\. Table[11](https://arxiv.org/html/2610.33360#A7.T11)scores all six models under cold serving on the same 1,280 selection documents, distinct from the main evaluation and the producer confirmation below\. Repair improves all three updates in this single\-seed pilot; the effect is not specific to the gated carry\. The paired errors quantify variation over documents, not training seeds\.

Table 11:Recurrent\-update repair pilot: width 512, P1E2,R=3R=3, 1\.048576B training tokens and four persistent cache sets \(4 KiB/token\)\. Cold loss scores 512 targets after 2,048 prompt tokens per document\.Δ\\Deltais repair minus the corresponding untreated branch, with paired bootstrap SE\. Reference forward cost follows Appendix[D](https://arxiv.org/html/2610.33360#A4)\.
##### Repeated donor updates over whole chunks\.

A smaller diagnostic repeatedly applies the parallel cache producer to the same 64 validation chunks, starting from standard attention\. Letkkcount whole\-sequence forwards, each with three core iterations\. Atk=1k=1, the model produces standard attention caches; atk=2k=2, it reads those donors, as in the two\-pass objective\. For eachk\>2k\>2, it restarts from the same prologue states and reads the preceding forward’s donors, then recomputes its own donor and epilogue outputs\. Table[12](https://arxiv.org/html/2610.33360#A7.T12)reports the loss of each forward on the same targets\.

Table 12:Recorded donor\-iteration diagnostic at width 768 and 4\.194B training tokens, seed 0: 64 chunks of 8,192 targets \(524,288 total\)\. Eachkkis a new whole\-sequence forward with three core iterations, not an additional core iteration within one forward\. Loss↓\\downarrow; the first forward uses standard attention\.The second forward improves loss in both checkpoints, but subsequent donor updates increase it\. Late consistency substantially reduces that increase\. No standard\-prefill prefix is retained during these whole\-chunk updates: this is a cold\-history diagnostic, not a decomposition of the primary prompt\-prefill continuation penalty\. Six iterates do not establish convergence or equality to sequential decoding\.

##### An early cache producer\.

An alternative forms each token’s shared core K/V directly from its prologue representation, using the first core block’s existing projections\. This entry is independent of the recurrent computation, so parallel shared attention and cold sequential serving use the same past\-token entries\. A single shared\-pass training objective suffices; a standard producer pass is unnecessary\. Producer depth is also a design choice in cross\-layer and decoder\-sharing architectures\([Brandon et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib6);[Sun et al\., 2024](https://arxiv.org/html/2610.33360#bib.bib30);[Wu et al\., 2025](https://arxiv.org/html/2610.33360#bib.bib34)\)\.

This removes a path for communicating refined representations between tokens\. Later recurrent passes can change the current token’s queries, carry and prediction, but cannot change the entry read by future core blocks\. Their output still reaches the epilogue, whose separate caches retain projections of recurrently refined states for future epilogue attention\. Thus recurrence can improve computation over a fixed memory; it cannot enrich that memory for future recurrent computation\. The early producer and its prologue remain trainable end to end\.

Table[13](https://arxiv.org/html/2610.33360#A7.T13)compares early and repaired late producers at width 512, with the same P1E2 layout andR=3R=3\. The early models use either the two\-pass objective or only shared\-pass cross\-entropy, without consistency\. All losses use cold serving on the same 1,280 selection documents and 655,360 targets as the refinement ablation below\. This avoids applying the single\-objective model’s untrained standard\-attention function to the prompt\.

Table 13:Early versus repaired late cache production\. All models have 46\.933M parameters and four persistent cache sets \(4 KiB per token in BF16\)\. Training cost is relative to the repaired late model\. Reference forward FLOPs use Appendix[D](https://arxiv.org/html/2610.33360#A4)’s convention plus the early producer’s extra K/V projection; they are not measured latency or prefill cost\. Cold loss↓\\downarrow\.At equal tokens, the repaired late producer has lower cold loss than either early variant\. The single\-objective early producer costs about half as much to train per token; spending the same training compute on more tokens reverses the comparison \(3\.6240 versus 3\.6587\)\. These are single\-seed recipe comparisons, which change both cache production and training supervision; they do not isolate the effect of storing deeper features\.

We then compare two existing checkpoints on 1,280 previously unused documents under the same cold protocol \(Table[14](https://arxiv.org/html/2610.33360#A7.T14)\)\. The late producer trained for 4\.194B tokens has lower loss than the early producer trained for 2\.036B: early minus late is\+0\.1409\+0\.1409\(paired SE0\.00190\.0019; 95% bootstrap interval\[0\.1374,0\.1448\]\[0\.1374,0\.1448\]\)\. Both have nearly the same reference inference cost and cache storage\. The late model used2\.06×2\.06\\timesas many tokens and approximately4×4\\timesthe estimated training FLOPs, with a different objective and schedule\. This establishes an ordering of these available checkpoints at similar inference cost, not a general ranking of producer architectures or training efficiency\.

Table 14:Producer comparison on fresh documents, separate from the pilot selection set\. Both width\-512 P1E2 checkpoints have 46\.933M parameters,R=3R=3and four cache sets \(4 KiB/token\)\. Cold loss scores 655,360 targets with 2,048\-token prompts\. Training FLOPs exclude auxiliary\-loss overhead; forward FLOPs are reference estimates, not measured serving latency\.The early producer still uses its recurrent depth\. In a 64\-chunk monitoring probe of the longer\-trained early model, parallel shared losses at depths2,3,4,62,3,4,6are3\.7838,3\.5717,3\.6362,4\.02743\.7838,3\.5717,3\.6362,4\.0274, respectively \(524,288 targets; trained depth three\)\. Removing the third pass hurts this checkpoint, as do passes beyond the trained depth\. This is a depth perturbation of one model, not a comparison of separately trained depths or a held\-out confirmation of the best architecture\.

##### Training with additional cache\-refinement sweeps\.

We also trained width\-512 P1E2 models with four distinct core blocks and two or four whole\-sequence sweeps, keeping the recurrent depth atR=3R=3\(46\.933M parameters\)\. Each sweep restarts the recurrent states from the same prologue representations\. Sweep 1 uses standard attention; each later sweep reads the preceding sweep’s donor caches\. The objective is12​CE1\+12​CEn\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{1\}\+\\tfrac\{1\}\{2\}\\mathrm\{CE\}\_\{n\}forn∈\{2,4\}n\\in\\\{2,4\\\}, with gradients through all sweeps\. Intermediate sweeps execute only the core; the epilogue and vocabulary head run on sweeps 1 andnn\. Treated branches add donor\-only consistency withγ=0\.3\\gamma=0\.3over the final 10% of updates, matching the last sweep to the detached first\-sweep reference with fixed calibrated loss scales\. This varies the sweep count within our recipe; it does not reproduce the full LCKV training algorithm\([Wu & Tu, 2024](https://arxiv.org/html/2610.33360#bib.bib33)\)\.

Table[15](https://arxiv.org/html/2610.33360#A7.T15)separates equal\-token and approximately equal\-training\-compute comparisons\. All use one training seed and the same new selection set of 1,280 documents, with 2,048 prompt tokens and 512 continuation targets per document \(655,360 targets\)\. The set is separate from the earlier selection and confirmation documents\. Handoff serving retains standard\-prefill prompt caches; cold serving processes the prompt and continuation under the shared policy from empty caches\. Both score identical ground\-truth targets\.

Table 15:Cache\-refinement training ablation at width 512\. Training compute is relative to the two\-sweep, 1\.048576B\-token reference \(1,109\.560 estimated PFLOPs\), using the accounting in Appendix[D](https://arxiv.org/html/2610.33360#A4)\. Four\-sweep compute\-matched runs use 2,529 updates \(a\+0\.0183%\+0\.0183\\%compute mismatch\); the other runs use 4,000\. All sequential evaluations retainR=3R=3and one shared core cache; they do not execute additional sweeps\. Loss↓\\downarrow\.Sweepsnnγ\\gammaTokens \(B\)Train computeHandoffColdChunk std\.201\.0491\.00×1\.00\\times3\.71223\.79613\.608120\.31\.0491\.00×1\.00\\times3\.65233\.65873\.6101401\.0491\.58×1\.58\\times3\.66843\.65223\.610040\.31\.0491\.58×1\.58\\times3\.67333\.65393\.6113400\.6631\.00×1\.00\\times3\.75923\.74843\.717340\.30\.6631\.00×1\.00\\times3\.76323\.75153\.7187At equal tokens, four sweeps without consistency improve cold loss by 0\.0065 relative to the repaired two\-sweep model \(paired bootstrap SE 0\.0011\), but worsen handoff loss by 0\.0161 and require 58% more training compute\. At matched compute, the four\-sweep model sees fewer tokens and is worse under both serving protocols; its cold loss is 0\.0898 higher\. Adding consistency to four\-sweep training improves neither protocol in this pilot\. Thus four sweeps do not improve the served\-loss tradeoff at the common training budget\. This is a negative result for the tested four\-sweep recipe at matched compute; the equal\-token cold improvement remains a benefit at higher training cost\. These results use one seed and selection data\.

Table 16:All six donor\-refinement readouts for the four\-sweep\-trained models, on 64 chunks of 8,192 targets \(524,288 total\)\. The trained shared objective uses sweep 4\. Cold sequential loss scores the same chunks\. Loss↓\\downarrow; these chunk losses are separate from the continuation losses above\.The diagnostic in Table[16](https://arxiv.org/html/2610.33360#A7.T16)has its lowest loss at the trained fourth sweep, followed by a rebound at sweep 5\. It does not show monotone convergence to sequential serving\. The shared validation loss of these models uses four sweeps, whereas the original models use two, so their parallel losses also have different evaluation costs\. The pattern is consistent with specialization to the training sweep count, rather than evidence that extra sweeps eliminate the recursive\-cache discrepancy\.

##### A restart schedule that did not preserve parent quality\.

An additional four\-arm pilot began from the already annealed width\-768 model and reset the optimizer\. It added 1,000 updates \(262\.144M tokens\), with 80 warmup updates and decay only over the final 100\. Table[17](https://arxiv.org/html/2610.33360#A7.T17)reports this separately because even the no\-auxiliary control degraded sharply\. The cache term helps relative to that control, but none of the resulting models improves upon the original parent’s shared continuation loss\. The main repair instead resumes the original optimizer and learning\-rate schedule at the start of its decay segment\.

Table 17:Optimizer\-reset pilot: primary continuation losses and separate chunk\-standard loss \(↓\\downarrow\)\. The parent has 4\.194B training tokens; pilot arms have 4\.456B\.
##### Applying consistency throughout training\.

A fresh fixed\-depth pair at 1\.049B tokens uses donorγ=0\.3\\gamma=0\.3from the start\. The reference scales track first\-pass mean squares with an exponential moving average \(decay 0\.99\), updated after each step; each update uses fixed denominators across its microbatches and ranks\. Shared continuation loss improves from 3\.5097 to 3\.4839, while chunk\-standard loss increases from 3\.4628 to 3\.4654\. A variable\-depth pair at 2\.097B improves shared continuation by 0\.029–0\.033 but increases full\-cache continuation loss by 0\.006–0\.009 \(Appendix[I](https://arxiv.org/html/2610.33360#A9)\)\. These comparisons change both the duration of regularization and its scale normalization relative to late fixed\-scale repair\. They do not identify which change explains the larger cost\. The recorded whole\-run models also include one warmup update to the EMA before the training counter starts; this initialization detail is part of their evaluated recipe\.

## Appendix HRecurrent update and deep\-depth controls

The fixed\-depth factorial changes two components: gated carry accumulation versus a plain normalized update, and presence versus absence of the prologue adapter\. It does not independently toggle gates while preserving the carry\. At width 768, three iterations, and 1\.049B tokens, losses are 3\.4517/3\.4518 for the cell without/with the adapter and 3\.4838/3\.4683 for the plain update\. Averaging over adapter levels, the gated\-carry update improves loss by0\.0243​\(0\.0002\)0\.0243\\ \(0\.0002\); the adapter improves it by0\.0077​\(0\.0002\)0\.0077\\ \(0\.0002\), with interaction0\.0156​\(0\.0004\)0\.0156\\ \(0\.0004\)\. Each added gate or adapter contributes approximately 1\.18M matrix parameters\. These are single\-seed, common\-backbone controls, not parameter\-identical treatments\.

Table[18](https://arxiv.org/html/2610.33360#A8.T18)collects all available training\-budget endpoints for the five updates in Table[2](https://arxiv.org/html/2610.33360#S4.T2), with the untied control for reference\. Among the recurrent updates, only the cell without an adapter and the Huginn\-style baseline were extended to 2\.097B and 4\.194B tokens\. The Huginn\-style model’s gap to the cell stays close to 0\.023 nats across these budgets\. The longer\-training behavior of the other three ablations remains untested\. This fixed\-depth comparison differs from the deep experiment below in both width and training\-depth distribution\.

Table 18:Update\-rule comparisons across training\-token budgets\.Width 768, with three recurrent iterations for P1E2 and a 15\-layer untied control\. Columns give standard validation loss \(↓\\downarrow\) after the final learning\-rate decay at each budget, on the same 1,280 chunks \(10,485,760 targets\)\. One training seed per arm; Huginn\-style losses use the same evaluation\-noise draw as Table[2](https://arxiv.org/html/2610.33360#S4.T2)\. A dash in a loss column denotes an experiment not run at that budget\. Parentheses in the final row are paired block\-bootstrap SEs, conditional on the checkpoints\.For the deep comparison, all four width\-512 models train on 1\.049B tokens, with depth drawn uniformly from 4 through 32 and synchronized across ranks\. Full\-gradient arms checkpoint core activations and recompute them in the backward pass\. Truncated arms backpropagate through only the final eight iterations\. Without an adapter, truncation cuts the cell’s gradient to its prologue when the sampled depth exceeds eight; the injection model retains a path through its prologue adapter\. The comparison therefore tests an interaction between update rule and gradient path, rather than a generic benefit of truncation\.

Table 19:Forced\-depth standard losses \(↓\\downarrow\) after uniform\-depth training at width 512\. Each entry scores 10,485,760 targets; one training seed per arm\.AtR=32R=32, truncation increases cell loss by0\.0757​\(0\.0004\)0\.0757\\ \(0\.0004\)and decreases Huginn\-style loss by0\.0140​\(0\.0002\)0\.0140\\ \(0\.0002\)\. With full gradients, Huginn\-style minus cell is−0\.0029​\(0\.0003\)\-0\.0029\\ \(0\.0003\); with truncation it is−0\.0926​\(0\.0004\)\-0\.0926\\ \(0\.0004\)\. The full\-gradient losses are close in absolute terms, without establishing statistical equivalence or reproducing the original Huginn scaling result\. Gaussian latent seeds were controlled across depths, and two evaluation\-noise draws changed the aggregate Huginn\-style losses by at most 0\.00012\. These draws are not additional training seeds\.

Figure 6:Depth extrapolation with full and truncated gradients, using the models in Table[19](https://arxiv.org/html/2610.33360#A8.T19)\. Training depths range from 4 to 32; depth 64 is extrapolation\.
## Appendix IVariable depth and stopping

The variable\-depth two\-pass model samplesRRuniformly from 3 through 6, with full backpropagation, and trains to 2\.097B tokens\. Table[20](https://arxiv.org/html/2610.33360#A9.T20)compares it with the two\-pass model trained at fixedR=3R=3\. Variable\-depth training sacrifices some shortest\-depth quality and remains much more tolerant of additional iterations\. This concerns parallel evaluation, not the recursively updated cache\.

Table 20:Parallel losses at width 768 and 2\.097B tokens \(↓\\downarrow\)\. A dash denotes an unrecorded fixed\-depth comparison\.The late adaptive repair starts from update 7,000 and repeats the final 1,000 updates with donor\-onlyγ=0\.3\\gamma=0\.3\. Because decay begins at 7,200, this includes 200 constant\-rate updates and 800 decay updates: 12\.5% of the complete training path\. The optimizer, data position, and depth RNG continue from the parent\. In contrast, the fixed\-depth repair repeats only the final 10% decay segment\.

Table 21:Primary shared\-cache continuation losses for the variable\-depth model, before repair, with whole\-run EMA\-normalized consistency, and with late fixed\-scale consistency \(↓\\downarrow\)\. Numbers in parentheses are mean selected recurrent passes\.Halting compares the cosine of successive hidden states at each token, beginning after the second pass, and uses threshold 0\.98 with a cap of six\. A stopped row keeps its selected state and donor; batched computation continues until all rows stop or the cap is reached\. Mean selected depth is therefore not executed GPU work\. FixedR=4R=4has lower loss and fewer selected passes than this halting rule in every model in Table[21](https://arxiv.org/html/2610.33360#A9.T21)\. Halting\-minus\-R​4R4differences are0\.0035​\(0\.0003\)0\.0035\\ \(0\.0003\),0\.0023​\(0\.0001\)0\.0023\\ \(0\.0001\), and0\.0055​\(0\.0002\)0\.0055\\ \(0\.0002\), respectively\.

Late consistency costs 0\.0011–0\.0017 in full\-cache continuation loss and at most 0\.0018 in chunk\-standard loss\. Its residual continuation penalty is−0\.0015\-0\.0015,0\.00820\.0082, and0\.01360\.0136at fixed depths 3, 4, and 6; under halting it is 0\.0173\. For the halting comparison the full\-cache reference uses fixed depth 6, so this penalty includes both the cache policy and the stopping rule\. The approximately 67% reduction of that penalty should not be generalized from the fixed\-depth 81–93% range\. The earlier global cosine rule also depends on evaluation mode: in standard parallel evaluation it stops at four passes, whereas the shared pass at threshold 0\.98 and cap 6 has mean depth 4\.86\.

## Appendix JMeasured memory and decoding time

Table[22](https://arxiv.org/html/2610.33360#A10.T22)measures an eager PyTorch decoder on one H100 after filling its cache to 2,048 tokens by sequentially processing random token inputs from empty caches\. This fill differs from the ordinary parallel prompt prefill used for the continuation\-loss evaluation\. For each configuration, the preceding decoder and cache are released before resetting peak\-memory statistics\. Each timing is the median of three trials of 256 continuation steps on an already filled cache; no subtraction of separate prefill timings is used\. Allocated\-memory peaks include the cache fill and timed steps\. They exclude ordinary parallel\-prefill workspace and are not end\-to\-end request memory or latency measurements\. The last column subtracts the allocation measured immediately before constructing that same batch\-size configuration, not a base from a different batch size\.

Table 22:Isolated decoder measurements\. Step times are milliseconds \(↓\\downarrow\);BBis batch size\. Peak and peak\-minus\-base memory are MiB atB=160B=160\(↓\\downarrow\)\.At batch 160, full sharing reduces measured peak memory relative to the same cell’s standard layout by 2\.77 times at width 768 and 2\.72 times at width 1024\. Relative to the untied controls, the ratios are 2\.87 and 2\.85\. These are total allocated peaks, not just persistent KV storage\. Small\-batch step times range from approximately 7\.7 to 9\.2 ms\. At width 1024 and batch 160, shared decoding is slower than standard decoding \(37\.2 versus 20\.7 ms\)\. The present measurements do not isolate the cause of this slowdown or predict an optimized serving engine’s latency\.

Figure 7:Peak allocated memory by batch size for the isolated decoder measurements\. Persistent\-KV allocation and total peaks are distinct quantities; model weights and scratch computation contribute to the latter\.
## Appendix KPrespecified comparisons and decision rules

Table[23](https://arxiv.org/html/2610.33360#A11.T23)distinguishes comparisons specified before their results from exploratory analyses\. The consistency experiments followed discovery of the shared\-cache penalty, but their decision rules preceded the corresponding runs\. Coefficient selection, the cross\-width parameter match and unreplicated ablations remain exploratory; the held\-out repair evaluation used a previously selected coefficient\. Passing a practical loss threshold does not imply zero degradation or statistical equivalence\.

Table 23:Compact comparison and decision\-rule record\. Outcome statements apply only to the tested scales and evaluation protocols\.

相似文章

共享记忆在循环 Transformer 中的惊人有效性

arXiv cs.LG

IBM Research 与 Cornell 的一篇论文表明,对循环预测 Transformer(LPT)进行预训练,让后续递归共享首次递归的 KV cache,可在 150M–1B 参数规模下减少 76–79% 的上下文内存使用,同时降低困惑度,从而证明记忆共享是一种有益的架构归纳偏置,而非仅仅是部署时的技巧。