Skip to content
ImagineWorld

LoopMTP: A looped transformer guided by latent multi-token prediction

node_idnode-paper_arxiv-2608.03624_loopmtp-a-looped-transformer-guided-by-latent-multi-token-prediction
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2608.03624
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the deep-learning field, the work presents LoopMTP — a looped transformer guided by latent multi-token prediction — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleLoopMTP: A looped transformer guided by latent multi-token prediction
paper_authorsBehzad Shomali, Markus Frey, David Berghaus, Joachim Koehler, Mehdi Ali
arxiv_id2608.03624
arxiv_urlhttps://arxiv.org/abs/2608.03624
arxiv_categories{"primary":"cs.CL","secondary":[]}
arxiv_v1
arxiv_submitted_at2026-08-04
arxiv_updated_at2026-08-04
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedfalse
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:45:16Z
local graph

LoopMTP: A looped transformer guided by latent multi-token prediction

Section titled “LoopMTP: A looped transformer guided by latent multi-token prediction”

Authors: Behzad Shomali, Markus Frey, David Berghaus, Joachim Koehler, Mehdi Ali

arxiv: 2608.03624

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering. This paper’s figures are not image-based or were unavailable; captions are kept.


Looped transformers have emerged as a parameter-efficient alternative to scaling depth for strong reasoning. By reusing one stack of layers across TT iterations, they attain the effective depth and reasoning capabilities of larger models at a fixed parameter count. Yet existing approaches suffer from latent overthinking and undifferentiated computation, largely because intermediate representations receive no guidance across loops. Multi-token prediction (MTP) supplies exactly the dense, forward-looking supervision the loop is missing. We propose LoopMTP, which links the two through a structural correspondence in latent space: a model that loops TT times can anticipate TT future tokens. LoopMTP realizes this by softly aligning the hidden state of loop tt with the embedding of the token tt steps ahead, while a lightweight gate preserves useful information across iterations. LoopMTP improves average accuracy by up to 8.1% (relative) over the non-looped baseline, with training remaining stable for up to 15 loops.

Large language models (LLMs) have demonstrated strong reasoning capabilities that translate into substantial gains on downstream applications such as mathematics and code generation Guo et al. (2025); Shao et al. (2024). From an architectural perspective, these capabilities have historically been tied to scale, and in particular to depth. Many reasoning tasks benefit from applying more sequential computation to an input Saunshi et al. (2025), which standard transformers realize by stacking additional layers. As a result, strong reasoners tend to be very large. Orthogonal to increasing model size, a separate line of work improves reasoning by modifying the pretraining objective itself. Rather than relying solely on next-token prediction, these approaches adopt richer objectives such as multi-token prediction (MTP), which trains the model to predict the next kk tokens simultaneously. By forcing the model to think ahead, MTP has been shown to strengthen the reasoning capabilities of LLMs Liu et al. (2024); Gloeckle et al. (2024). However, the benefits of MTP have so far been demonstrated only at larger scale.

Yet access to such models is usually constrained: frontier models are often available only via API, and many organizations cannot host competitive open-weight models locally. In domains such as healthcare, this is a hard requirement; sensitive data cannot leave the premises, so models must run on-site, often on limited hardware Garg et al. (2026). Strong reasoning is thus increasingly needed under a parameter-efficient budget.

Looped transformers have emerged as a promising research avenue toward this goal. Rather than adding parameters, they reuse the same stack of transformer blocks across several iterations, a form of latent reasoning in which the model refines its representation over several loops before committing to a token. This iterative reuse of computation blocks simulates the effective depth of a much larger model at a fixed parameter count, and has been shown to match the reasoning capabilities of significantly larger models Fu et al. (2026).

Despite their success, current looped models suffer from the following limitations. First, they overwrite intermediate computation: each iteration replaces the previous iteration’s hidden representation, discarding information that may still be useful Jeddi et al. (2026); Zhu et al. (2025). This gives rise to latent overthinking Fu et al. (2025), where predictions that are already correct after an early pass are revised into errors as looping continues. Second, they suffer from undifferentiated computation: as the number of iterations grows, hidden representations become increasingly similar across iterations, so successive iterations perform redundant work and waste compute Yu et al. (2025).

To address these limitations, we (1) propose LoopMTP, a novel looped transformer architecture that leverages MTP in latent space as a natural remedy for latent overthinking and undifferentiated computation, (2) study the effect of the MTP alignment objective and the aggregation mechanism on downstream performance, (3) demonstrate that our approach outperforms current looped transformers, and (4) show how our architecture can be used to train small domain-specific expert models.

Looped transformers reuse the same set of parameters across multiple forward passes, achieving the computational depth of larger non-looped models without increasing parameter count (Dehghani et al., 2018; Zeng et al., 2026). Instead of a fixed amount of computation, adaptive looping has also been investigated, where a learned halting mechanism decides how many iterations each input requires (Banino et al., 2021; Zhu et al., 2025; Frey et al., 2026a). Looping in transformers can proceed along two axes both representing a form of latent reasoning. Vertical looping reapplies the same block of layers to iteratively refine the token representations, adding effective depth without lengthening the sequence (Saunshi et al., 2025). Horizontal looping instead unfolds across the sequence. A hidden state is fed back as an additional latent token, carrying reasoning into latent space before any discrete token is emitted (Hao et al., 2024; Shen et al., 2025). Our approach falls in the vertical category: we loop over the model and aggregate representations across iterations, preserving information rather than overwriting it.

Next-token prediction provides a single supervision signal per position, which may limit the model’s ability to plan ahead (Cornille et al., 2024). Multi-token prediction (MTP) addresses this by training the model to forecast several future tokens at once, yielding denser gradients and encouraging representations that account for longer-range dependencies (Liu et al., 2024). While MTP has been widely adopted for speculative decoding at inference time, a separate line of work leverages it to improve training itself (Gloeckle et al., 2024; Liu et al., 2024). With regard to the usage of MTP specifically, the closest work to ours is Noci et al. (2026), who combine MTP with latent reasoning. At selected positions, the model performs a multi-step lookahead in hidden space, supervised against the upcoming ground-truth tokens via a cross-entropy loss over the entire vocabulary. We reduce this cost by using MTP in latent space as a soft guiding signal. Rather than predicting a distribution over the vocabulary, we use cosine similarity to align each iteration’s hidden state with the embedding of a specific future token. Because this signal is applied at every iteration, its cost scales with the number of loops. A cross-entropy objective would incur one vocabulary projection per iteration, whereas our cosine alignment adds negligible overhead even at high loop counts. Moreover, whereas Noci et al. (2026) focus on synthetic planning tasks, we target reasoning in parameter-efficient looped models.

Figure 1 contrasts our proposed method, LoopMTP, with standard looped transformers and multi-token prediction. LoopMTP addresses representation overwriting and latent overthinking, and undifferentiated computation through an MTP-guided looped block (Section 3.2), learned state aggregation (Section 3.3), and a soft-alignment auxiliary objective (Section 3.4).

In the following, we build upon the notation of Saunshi et al. (2025). Let f_θf\_{\theta} denote a stack of LL transformer blocks with shared parameters θ\theta, and TT denote the number of times this stack is applied. Given an input token sequence u=(u_1,…,u_S)∈VS\mathbf{u}{=}(u\_{1},\dots,u\_{S})\in\mathcal{V}^{S}, where V\mathcal{V} denotes the vocabulary and SS the sequence length, we first embed the tokens:

x(0)  =  Embed(u)∈RS×d,\mathbf{x}^{(0)}\;=\;\mathrm{Embed}(\mathbf{u})\in\mathbb{R}^{S\times d},(1)

and then apply f_θf\_{\theta} recursively for t=1,…,Tt=1,\dots,T:

x(t)  =  f_θ ⁣(x(t−1),x(0) , t).\mathbf{x}^{(t)}\;=\;f\_{\theta}\!\left(\mathbf{x}^{(t-1)},\mathbf{x}^{(0)}\,,\,t\right).(2)

The explicit dependence on x(0)\mathbf{x}^{(0)} and the iteration index tt is discussed in Section 3.2.

Figure 1: Architecture and mechanism overview. (a) A standard looped transformer block applied T T times where next-token supervision is applied only at the very end. (b) A standard multi-token prediction (MTP) model requiring full-vocabulary projections. (c) LoopMTP (ours): per-iteration outputs are aligned in the latent space with future token embeddings (soft MTP) and combined via a gating mechanism. Illustrated for a model with T = 3 T{=}3 loops.

Our MTP-guided looped block f_θf\_{\theta} comprises all LL transformer blocks, i.e., we loop over the entire model. Each application of f_θf\_{\theta} at iteration tt takes as input the previous iteration’s output x(t−1)\mathbf{x}^{(t-1)} and the fixed token embeddings x(0)\mathbf{x}^{(0)}, and outputs x(t)\mathbf{x}^{(t)}. We construct the input to f_θf\_{\theta} via three operations: (i) a normalized iteration-index embedding, (ii) per-iteration normalization, and (iii) a concatenation-and-projection step.

Iteration-index embedding and per-iteration normalization.

Section titled “Iteration-index embedding and per-iteration normalization.”

Following Frey et al. (2026a), we explicitly signal the current iteration by appending the normalized iteration index to token vectors. We then normalize hidden states with iteration-specific LayerNorms LNprev_t\mathrm{LN}^{\text{prev}}\_{t} and obtain token embeddings using LNtok\mathrm{LN}^{\text{tok}}:

h(t−1)  =  LNprev_t ⁣([ t−1T  ∥  x(t−1) ])∈RS×(d+1),\mathbf{h}^{(t-1)}\;{=}\;\mathrm{LN}^{\text{prev}}\_{t}\!\left(\big[\,\frac{t{-}1}{T}\;\|\;\mathbf{x}^{(t-1)}\,\big]\right){\in}\mathbb{R}^{S\times(d+1)},(3)
e  =  LNtok ⁣(x(0))∈RS×d,\mathbf{e}\;=\;\mathrm{LN}^{\text{tok}}\!\left(\mathbf{x}^{(0)}\right)\in\mathbb{R}^{S\times d},(4)

where ∥\| denotes feature-axis concatenation. Per-iteration norms are crucial, letting each loop operate on inputs with iteration-specific statistics.

The previous-iteration state and the re-normalized token embedding are merged by concatenation along the feature axis followed by a linear projection P\mathrm{P}:

y(t)  =  P ⁣([ e  ∥  h(t−1) ])∈RS×d.\mathbf{y}^{(t)}\;=\;\mathrm{P}\!\left(\big[\,\mathbf{e}\;\|\;\mathbf{h}^{(t-1)}\,\big]\right)\in\mathbb{R}^{S\times d}.(5)

The shared backbone is then applied:

x(t)  =  f_θ ⁣(y(t))  =  Layer_L∘⋯∘Layer_1 ⁣(y(t)).\mathbf{x}^{(t)}\;=\;f\_{\theta}\!\left(\mathbf{y}^{(t)}\right)\;=\;\mathrm{Layer}\_{L}\circ\cdots\circ\mathrm{Layer}\_{1}\!\left(\mathbf{y}^{(t)}\right).(6)

To preserve stability under a variable number of unrollings, we adapt layer-norm scaling (LNS) (Sun et al., 2026) to the looped setting. Inside each layer ℓ\ell, the input x\mathbf{x} is first normalized (i.e. pre-norm transformer) and rescaled by a fixed factor 1T\frac{1}{T}:

x  =  x+Attn ⁣(1T RMSNorm(x)),\displaystyle\mathbf{x}\;=\;\mathbf{x}+\mathrm{Attn}\!\left(\tfrac{1}{T}\,\mathrm{RMSNorm}(\mathbf{x})\right),(7)
------------
x  =  x+FFN ⁣(1T RMSNorm(x)).\displaystyle\mathbf{x}\;=\;\mathbf{x}+\mathrm{FFN}\!\left(\tfrac{1}{T}\,\mathrm{RMSNorm}(\mathbf{x})\right).(8)

Unlike standard LNS (Sun et al., 2026), which scales by 1n\frac{1}{\sqrt{n}}, where nn is the running depth, our Loop-LNS variant uses a fixed factor of 1T\frac{1}{T} for all effective sub-blocks, reflecting the fact that the backbone is reused TT times rather than deepened.

We chose the fixed per-iteration factor 1T\frac{1}{T} over running-depth alternatives for a specific reason: a progressive counter that scales layer ℓ\ell in iteration tt by 1(t−1)⋅L+ℓ\frac{1}{(t{-}1)\cdot L+\ell} yields tiny factors for later iterations of deep unrollings, which we found empirically neutralizes their gradient contribution. The constant 1T\frac{1}{T} balances residual-stream stability with sufficient signal propagation to all iterations.

Per-Iteration Representation Alignment with MTP.

Section titled “Per-Iteration Representation Alignment with MTP.”

To exploit the per-iteration hidden states {x(t)}_t=2T\{\mathbf{x}^{(t)}\}\_{t=2}^{T}, we encourage each iteration’s hidden state to point toward the output embedding of the token it should anticipate. For iteration t≥2t{\geq}2, position ii is aligned to the output embedding of token u_i+tu\_{i+t}, so that the tt-th iteration is responsible for anticipating the token tt steps ahead. The first iteration t=1t{=}1 is reserved as an unconstrained representation (i.e. no supervision): the model is free to learn what kind of information to encode here, so that this representation is rich enough for subsequent iterations to read out multiple future tokens from it.

Rather than discarding the intermediate iterations, we aggregate {x(t)}_t=1T\{\mathbf{x}^{(t)}\}\_{t=1}^{T} via a token-wise weighted sum with a shared, content-conditional gate. Let W_g∈Rd×dW\_{g}\in\mathbb{R}^{d\times d} be a single linear gate shared across all iterations and let β=(β_1,…,β_T)∈RT\boldsymbol{\beta}=(\beta\_{1},\dots,\beta\_{T})\in\mathbb{R}^{T} be per-iteration scalar bias parameters. For each iteration tt and position i∈{1,…,S}i\in\{1,\dots,S\}, we compute an unnormalized gate:

g_i(t)=softplus ⁣(W_g x_i(t)+β_t⋅1_d)  ∈  Rd,g\_{i}^{(t)}=\text{softplus}\!\Big(W\_{g}\,\mathbf{x}\_{i}^{(t)}+\beta\_{t}\cdot\mathbf{1}\_{d}\Big)\;\in\;\mathbb{R}^{d},(9)

where 1_d∈Rd\mathbf{1}\_{d}\in\mathbb{R}^{d} is the all-ones vector. We then normalize gate values across iterations:

g~(t)_i=g(t)_i∑_s=1Tg(s)_i+ε,\tilde{\mathbf{g}}^{(t)}\_{i}{=}\frac{\mathbf{g}^{(t)}\_{i}}{\sum\_{s=1}^{T}\mathbf{g}^{(s)}\_{i}+\varepsilon},(10)

where ε=10−8\varepsilon=10^{-8} to avoid division by zero. Finally, the aggregation happens as follows:

z_i  =  ∑_t=1Tg~(t)_i⊙x(t)_i,\mathbf{z}\_{i}\;=\;\sum\_{t=1}^{T}\tilde{\mathbf{g}}^{(t)}\_{i}\odot\mathbf{x}^{(t)}\_{i},(11)

where ⊙\odot is the elementwise product. The gating mechanism itself introduces a linear layer of size d×dd{\times}d and TT learnable scalar bias terms, amounting to <0.5%{<}0.5\% additional parameters for our models.

Similarly to Frey et al. (2026a), we found the gate initialization important: the exact initial value matters less than how the model behaves at the beginning of training. The first bias term is initialized to a moderately positive value, while all subsequent bias terms start at a substantially negative value. This provides a strong prior toward the first iteration, i.e., acting as a vanilla non-looped transformer at first, while leaving later iterations free to take over as training progresses.

The total loss combines three terms: the main next-token cross-entropy, a hidden-state alignment loss, and a ponder regularizer.

The next-token prediction (NTP) loss, commonly used as the main pretraining objective for LLMs, is applied to the output of the language-model head on the normalized aggregated representation z\mathbf{z} (denoted by p_iagg\mathbf{p}\_{i}^{\text{agg}}):

L_NTP  =  −1S−1∑_i=1S−1log⁡p_iagg ⁣[u_i+1].\mathcal{L}\_{\text{NTP}}\;=\;-\frac{1}{S-1}\sum\_{i=1}^{S-1}\log\mathbf{p}\_{i}^{\text{agg}}\!\left[u\_{i+1}\right].(12)

We regularize the per-iteration hidden states to align with the embeddings of the tokens they are tasked with predicting. Let E∈R∣V∣×dE\in\mathbb{R}^{|\mathcal{V}|\times d} denote the output (unembedding) matrix, treated as a fixed target via stop-gradient sg[⋅]\mathrm{sg}[\cdot]. For t=2,…,Tt=2,\dots,T, the per-step hidden-state alignment loss is:

L(t)_align  =  1S−t∑_i=1S−t ⁣(1−cos⁡ ⁣(x(t)_i, sg[E_u_i+t])).\mathcal{L}^{(t)}\_{\text{align}}\;=\;\frac{1}{S-t}\sum\_{i=1}^{S-t}\!\left(1-\cos\!\big(\mathbf{x}^{(t)}\_{i},\,\mathrm{sg}[E\_{u\_{i+t}}]\big)\right).(13)

The final alignment loss averages these:

L_align  =  1T−1∑_t=2TL(t)_align.\mathcal{L}\_{\text{align}}\;=\;\frac{1}{T-1}\sum\_{t=2}^{T}\mathcal{L}^{(t)}\_{\text{align}}.(14)

Notably, in this case we align the per-iteration hidden state with the future token embedding, in contrast to L_NTP\mathcal{L}\_{\text{NTP}}, where the alignment is over the distribution. By matching embeddings rather than full output distributions, our objective imposes a softer constraint, which is why we refer to it as soft MTP alignment. We emphasize that our alignment approach does not predict multiple future tokens in the traditional sense: each iteration’s hidden state is steered toward a future token’s embedding via cosine similarity, acting as a representational regularizer rather than a distributional constraint. We retain the term “multi-token prediction” to reflect the lookahead structure of the supervisory signal, while noting that this cosine-based formulation avoids the vocabulary-sized projection that makes standard MTP expensive—a property that we believe contributes to its effectiveness at small scale. Importantly, computing L_align\mathcal{L}\_{\text{align}} requires only a cosine similarity between each iteration’s output and its corresponding target, adding negligible overhead.

The aggregator’s gates induce a per-token distribution G_i(t)=1d∑_kg~(t)_i,kG\_{i}(t){=}\tfrac{1}{d}\sum\_{k}\tilde{\mathbf{g}}^{(t)}\_{i,k} over the TT iterations. Following Zhu et al. (2025), we pull this distribution toward the uniform prior Q=(1/T,…,1/T)Q{=}(1/T,\dots,1/T) over the TT iterations via the Kullback–Leibler (KL) divergence:

L_ponder  =  1S∑_i=1SKL ⁣(G_i ∥ Q).\mathcal{L}\_{\text{ponder}}\;=\;\frac{1}{S}\sum\_{i=1}^{S}\mathrm{KL}\!\left(G\_{i}\,\|\,Q\right).(15)

The final loss is calculated as the weighted sum of next token prediction loss, alignment loss, and the ponder loss as follows:

L=L_NTP+λ_align L_align+λ_ponder L_ponder\mathcal{L}=\mathcal{L}\_{\text{NTP}}+\lambda\_{\text{align}}\,\mathcal{L}\_{\text{align}}+\lambda\_{\text{ponder}}\,\mathcal{L}\_{\text{ponder}}(16)

The LoopMTP model is a GPT-2-style decoder-only transformer. In our experiments, we set the number of layers to L=12L=12, the embedding dimension to d=1024d=1024, the number of attention heads to 32, and the nominal FFN hidden dimension to 4096. We employ rotary positional embeddings (Su et al., 2024), apply RMSNorm to queries and keys prior to attention (Henry et al., 2020; Dehghani et al., 2023), and use SwiGLU (Shazeer, 2020) in the FFNs. We compare LoopMTP against two baselines: (1) a non-looped baseline, and (2) LoopFormer (Jeddi et al., 2026), the current state-of-the-art among looped models. The non-looped baseline keeps the same architectural hyperparameters as LoopMTP, except that its nominal FFN hidden dimension is increased to 4352 (realized width 3072), which more than compensates for the parameters introduced by our gating module and input-fusion projection, giving the baseline roughly 6M more parameters than LoopMTP. At the same depth and width, LoopFormer has approximately 20M more parameters than our model.

All models are trained on the high-quality subset of Nemotron-CC-v2 (Basant et al., 2025) and Nemotron-CC-Math-v1 (Mahabadi et al., 2025) for 6.8B tokens. The models are optimized using the Muon (Liu et al., 2025) and AdamW (Loshchilov and Hutter, 2017) optimizers with a peak learning rate of 1.9×10−31.9\times 10^{-3}, a cosine warmup over 0.0010.001 of total training steps, and a cosine decay schedule down to 1/101/10 of the peak learning rate. We train LoopFormer on the same data. Because LoopFormer training was highly unstable across loop configurations, we ran a grid search over learning rate, weight decay, and warmup ratio, yielding 12 configurations per loop count, and report the best result for each. Appendices A, C, and  D provide further details on training and implementation for both approaches, the role of weight decay, and a FLOPs comparison.

In our experiments, we report perplexity on a random 5M-token subset of FineWeb-Edu (Lozhkov et al., 2024) and OpenWebText (Gokaslan et al., 2019). Downstream performance is evaluated on three groups of tasks using the OLMES framework (Gu et al., 2025): (1) commonsense benchmarks: ARC-Challenge (ARC-C) and ARC-Easy (ARC-E) (Clark et al., 2018), HellaSwag (HS) (Zellers et al., 2019), LAMBADA (LB) (Paperno et al., 2016), PIQA (Bisk et al., 2020), SocialIQA (SIQA) (Sap et al., 2019), and Winogrande (WG) (Sakaguchi et al., 2021); (2) a math suite: Algebra, Counting & Probability, Geometry, Intermediate Algebra, Number Theory, Prealgebra, and Precalculus; and (3) code benchmarks: CodeX HumanEval (Chen et al., 2021) and MBPP (Austin et al., 2021). The reported accuracy and BPB values are averaged over 3 random seeds. Because our experiments are conducted at a small scale, we use bits-per-byte (BPB) as our primary metric, as it is a reliable proxy for downstream performance at larger scales (Gadre et al., 2025; Heineman et al., 2026). For benchmarks where accuracy provides a meaningful signal, we report accuracy as well. In Section 5, we report accuracy on GSM8K Cobbe et al. (2021) and BPB on the math suite.

Lang. Modeling (PPL ↓\downarrow)General Tasks (Accuracy ↑\uparrow)Math/Code/QA (BPB ↓\downarrow)
Model# ParamsFineWeb-EduOpenWebTextARC-CARC-EHSWGSIQAPIQALBAvgQAMathCodeAvg
Non-looped266M21.0823.5631.6059.9038.4850.9644.8565.9832.1646.280.99480.71140.86240.8562
LoopFormer∗280M
Loops=3†21.1823.9132.0458.6938.6150.2444.1966.0030.9845.821.02120.73440.90370.8864
Loops=521.0523.6535.2459.6541.6152.3545.8765.2935.1347.880.97470.68980.83480.8331
Loops=720.6623.2030.0146.4934.3751.4342.3960.5220.8440.861.51401.72592.30121.8470
Loops=920.7223.3132.1749.9736.5050.8642.9460.9723.7342.451.45551.60341.80891.6226
LoopMTP(ours)
Loops=319.4321.5735.4962.2842.6050.0746.3767.1735.4848.490.95410.66810.80710.8098
Loops=5260M18.8920.9735.3263.3844.3552.5446.8867.5236.7949.540.94130.65840.79210.7973
Loops=718.8720.9435.1064.0744.7852.9946.9567.9736.3949.750.93690.65750.78220.7922
Loops=918.8620.9236.0163.7144.6452.7047.7867.8637.4750.020.93660.65860.80030.7985

Table 1: Main results. We report perplexity for language modeling tasks, accuracy for general tasks, and BPB for QA, math, and code suites. QA reports BPB on the same seven benchmarks for which accuracy is shown under General Tasks. ∗ for LoopFormer Jeddi et al. (2026), stable training required a separate grid search over learning rate, weight decay, and warmup ratio at each loop count. † indicates runs whose reported averages are over two random seeds, as one of the three runs diverged.

Table 1 reports model performance on the perplexity benchmarks and downstream tasks. The numbers reported in the main experiment are averaged across three random seeds. Detailed results are presented in Appendix E.

Despite being slightly smaller, LoopMTP outperforms the non-looped baseline on nearly every benchmark: not only on reasoning-based tasks, but also on perplexity, general tasks, and QA suites. On general tasks, it improves average accuracy by up to 8.08% over the non-looped baseline (50.02% vs. 46.28%) and 21.76% over LoopFormer (49.75% vs. 40.86%). On QA, math, and code tasks, it reduces BPB by up to 7.5% and 57% relative to the two baselines (0.7922 vs. 0.8562 and 1.8470) and improves perplexity by 10.5% on FineWeb-Edu and 11.2% on OpenWebText. Additionally, at matched loop counts, LoopMTP outperforms LoopFormer in 27 of 28 cases (4 loop counts ×\times 7 benchmarks), and also achieves better perplexity and QA/math/code performance, without per-loop tuning of stability-critical hyperparameters (learning rate, weight decay, warmup). Only λ_align\lambda\_{\text{align}} (which controls the strength of the auxiliary MTP signal) is tuned, and all swept values train stably.

While the number of unique parameters stays fixed, which governs a looped model’s capacity to store factual information (Frey et al., 2026b), perplexity for LoopMTP continues to improve with additional loops. This is consistent with Zhu et al. (2025), who find that looped models can be stronger at knowledge manipulation. Perplexity and general-task accuracy improve monotonically in loop count (TT), whereas QA, math, and code BPB improve through T=7T{=}7 and regress slightly at T=9T{=}9. Crucially, LoopMTP’s training remains stable, unlike LoopFormer’s: one reason for LoopFormer’s relatively worse performance is its unstable training across different loop numbers and even random seeds (see Appendix E). We leave the analysis of looping limits and upper bounds to future work.

Figure 2 (Top) shows the impact of the MTP auxiliary objective on looped transformer performance across loop counts. On the QA/math/code suites, runs with λ_align>0\lambda\_{\text{align}}{>}0 (w/ MTP) show clear improvements over runs with λ_align=0\lambda\_{\text{align}}{=}0 (w/o MTP). The effect is most pronounced on math, where step-by-step reasoning is required: without MTP, increasing the loop count causes performance to degrade monotonically. General-task average accuracy is also higher with MTP. Together, these results confirm that MTP is an effective guidance signal for looped models, with negligible overhead. Furthermore, the overall results suggest that combining MTP with looped models is a promising direction: unlike Gloeckle et al. (2024), where MTP hurt performance at a small scale, here it consistently improves results.

Figure 2: Impact of MTP auxiliary training signal on performance and per-loop representations. (Top) Aligning per-loop representations with the MTP signal improves performance, particularly at higher loop counts. (Bottom) With MTP, at most iterations yield a more distinct representation.

Figure 2 (Bottom) reports cosine similarities for T=5T{=}5 models trained with and without the MTP signal: between the input and output of each iteration r_ir\_{i} (left), and between the output of the first iteration and the outputs of subsequent iterations (right). The right panel shows that, for w/ MTP model, the second iteration already maps the input to a markedly distinct subspace, and subsequent iterations continue to build on this trajectory. In contrast, the w/o MTP model changes representations only gradually across iterations, with similarities remaining relatively high, particularly across the first three iterations. The left panel shows a consistent pattern: at most iterations, the w/ MTP model produces a more distinct representation than its non-MTP counterpart, increasing expressiveness. These results confirm the existence of undifferentiated computation (Yu et al., 2025), visible in the consistently high cross-iteration similarities of w/o MTP model, and show that MTP encourages each loop to learn a more unique transformation.

Figure 3 shows the median ground-truth rank (log scale) at each recurrence iteration tt, evaluated at its trained offset u_i+tu\_{i+t} over 5M tokens from the OpenWebText dataset. This was obtained by feeding the output of each iteration to the language model head and reading off the logit distribution, for a model trained with MTP (w/ MTP) and its counterpart trained without (w/o MTP). A model that predicts the ground-truth token perfectly assigns it rank one; the lower the rank, the better the model predicts the ground-truth label. The pattern is clear: the rank of the w/o MTP model is up to more than an order of magnitude worse than that of the w/ MTP model. The w/ MTP model, by contrast, stays within a similar range across all future-token predictions. We attribute this to the absence of a discounting factor in our objective: all future tokens are weighted equally. This confirms the alignment is actually achieved and that it transfers to the language-model head’s coordinate system, rather than being satisfied in a subspace the head ignores.

Figure 3: MTP training sharpens ground-truth retrieval. Despite the lightweight nature of the latent MTP guidance, the w/ MTP model achieves a ground-truth rank up to 35.6 × \times better than the w/o MTP model.

Figure 4: Gating mechanism effects. (Left) When all gates are learnable we consistently achieve the best performance, particularly as the number of loops increases. (Right) Later iterations exhibit higher and more variable gate values, indicating increasingly input-dependent blending.

Figure 4 (Left) illustrates the importance of the gating mechanism. We compare our per-iteration gating, All (learnable), against three baselines. In Only last, each iteration overwrites the previous one, with the final gate value fixed to one and all others set to zero. Only last (learnable) similarly zeros all non-final gates but allows the final gate value to be determined by a context-dependent learnable mechanism. All (uniform) combines the representations by simply taking an average. All (learnable) consistently outperforms all other variants. While general tasks accuracy for Only last, All (uniform), and All (learnable) is nearly identical, BPB reveals more nuance. Math BPB highlights the importance of representation aggregation, particularly as the number of loops increases: while all other variants either considerably diverge or stagnate, All (learnable) continues to decrease BPB with more loops. For QA BPB, the limitation of Only last is clear: more iterations means more overwriting and greater information loss. This motivates a mechanism to retain information across loops: even one as simple as averaging, All (uniform), can perform well at higher loop counts. This pattern holds for Code as well, where our gating consistently outperforms all variants across loop counts.

Figure 4 (Right) shows the distribution of normalized gate values for a model with T=5T{=}5 across recurrence iterations, evaluated on 5 million randomly sampled tokens from FineWebEdu. Two trends emerge. First, the mean gate value increases with iteration depth: iterations 1–3 maintain a relatively low and stable mean (≈ 0.17{\approx}\,0.17–0.190.19), whereas iterations 4 and 5 rise to ≈ 0.21{\approx}\,0.21 and ≈ 0.26{\approx}\,0.26, respectively. This suggests that the gating mechanism learns an iteration-aware strategy: early gates act conservatively, yielding a stable scaling value, while later loops integrate newly computed information more dependent on the context. Second, the spread of the distribution grows markedly in later iterations. Early iterations exhibit tight, unimodal distributions, indicating that the gate behaves uniformly across tokens. By contrast, iterations 4 and 5 display substantially wider distributions, implying that the gate adopts a more input-dependent policy at greater depth; selectively deciding, on a per-token basis, how much iterative information to preserve. Taken together, these patterns confirm that the gating mechanism is not merely a static interpolation but learns a structured, depth-dependent blending strategy that enables LoopMTP to benefit from additional recurrence steps without destabilizing training.

In this section, we show that, when trained on a specific domain, LoopMTP can be regarded as a small expert model, well suited to domain-specific reasoning or deployment on memory-constrained hardware. We train models on ∼6.8{\sim}6.8B tokens from Nemotron-CC-Math-v1 dataset on variable number of loops T∈{3,7,9,11,13,15}T\in\{3,7,9,11,13,15\}.

Figure 5: GSM8K accuracy for expert LoopMTP and BPB–accuracy sensitivity. (Left) LoopMTP achieves 19.03% vs. 7.05% at equal parameter count. (Right) The steep slope shows that even small BPB reductions yield meaningful accuracy gains.

Figure 5 (Left) shows GSM8K accuracy (8-shot) for models trained with varying numbers of loops. Despite the small model size (∼\sim260M parameters) and limited pretraining budget, and without any finetuning or instruction tuning, our model reaches 19.03% accuracy on GSM8K. At matched parameter count, the non-looped baseline achieves only 7.05%; a relative improvement of approximately 170% under the same parameter memory budget.

One reading of this gap comes from mechanistic work showing that mathematical ability in LLMs is distributed across a localized parameter subset, with performance scaling with the fraction of that subset removed rather than hinging on a few individual weights (Shomali et al., 2026). What matters for a math expert may therefore be how much of the reused capacity is allocated to math-relevant computation, rather than the raw parameter count. This is precisely what looping provides: more effective capacity at fixed parameter memory.

Accuracy does degrade at certain loop counts: the number of hurt samples (initially correct, flipped to incorrect by additional loops) eventually outweighs the number of rescued samples at those loop counts (we suspect this reflects the model’s underlying reasoning characteristics; Appendix B reports related token-length statistics). Figure 5 (Right) plots GSM8K accuracy against BPB on the math suite across varying numbers of loops, together with a fitted line. The slope of −169-169 indicates that even a small reduction in BPB translates to considerable accuracy gain. For example, a 0.01 reduction in BPB would lead to roughly a 1.69% increase in accuracy.

We introduced LoopMTP, which targets two weaknesses of looped models, latent overthinking and undifferentiated computation, with a MTP-guided looped block, a learned state aggregation, and a soft-alignment auxiliary. As a result, LoopMTP obtains up to 8.1% relative average gains over a parameter-matched non-looped baseline, wins over the state-of-the-art looped model in 27 of 28 matched comparisons, and demonstrates stable training at even large loop counts. We further show LoopMTP can be effectively employed to train small domain-specific expert models. By training a math-expert model, LoopMTP reaches a 11.98 p.p. improvement on GSM8K over the non-looped baseline. As a next step, we aim to investigate the scaling behaviour of LoopMTP and establish corresponding scaling laws.

The small-expert results in Section 5 cover only the math domain; we selected it as a representative task demanding multi-step reasoning, but transfer of these benefits to other specialized domains remains to be verified. While the main results in Section 4.2 are averaged over three seeds, with standard deviations reported in Appendix E, the domain-expert models in Section 5 were each trained with a single seed, a constraint imposed by our computational budget. However, the consistency of improvements as well as stable performance of LoopMTP in other settings might mitigate concerns about seed sensitivity. Finally, we observe diminishing and occasionally non-monotonic gains as the loop count grows; a full characterization of the effective upper bound on useful depth for looped architectures remains an open question.

This work proposes a pretraining architecture. It introduces no new datasets, deploys no system, and involves no human subjects. All models are decoder-only transformers trained from scratch on publicly released corpora and evaluated on standard public benchmarks, in accordance with their licenses.

LoopMTP changes how computation is organized within a fixed parameter budget and is agnostic to training data and downstream tasks; it therefore inherits, but does not amplify, the known limitations of transformer language models trained on web text; we do not expect the architectural changes themselves to introduce new categories of risk. We see a concrete ethical benefit in parameter-efficient models of this kind: by improving parameter efficiency, they can be deployed fully on-premises, allowing sensitive data to remain under the data holder’s control rather than being sent to third-party APIs.

AI assistants were used for copy-editing, LaTeX formatting, and plotting support. The authors were responsible for all research ideas, experimental design, analysis, and conclusions.

  • Austin et al. (2021) J. Austin, A. Odena, M. Nye, M. Bosma, H. Michalewski, D. Dohan, E. Jiang, C. Cai, M. Terry, Q. Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732. Cited by: §4.1.
  • Banino et al. (2021) A. Banino, J. Balaguer, and C. Blundell Pondernet: learning to ponder. arXiv preprint arXiv:2107.05407. Cited by: §2.
  • Bartlett et al. (2017) P. L. Bartlett, D. J. Foster, and M. J. Telgarsky Spectrally-normalized margin bounds for neural networks. Advances in neural information processing systems 30. Cited by: Appendix C.
  • Basant et al. (2025) A. Basant, A. Khairnar, A. Paithankar, A. Khattar, A. Renduchintala, A. Malte, A. Bercovich, A. Hazare, A. Rico, A. Ficek, et al. Nvidia nemotron nano 2: an accurate and efficient hybrid mamba-transformer reasoning model. arXiv preprint arXiv:2508.14444. Cited by: §4.1.
  • Bisk et al. (2020) Y. Bisk, R. Zellers, J. Gao, Y. Choi, et al. Piqa: reasoning about physical commonsense in natural language. In Proceedings of the AAAI conference on artificial intelligence, Vol. 34, pp. 7432–7439. Cited by: §4.1.
  • Bogdan et al. (2025) P. C. Bogdan, U. Macar, N. Nanda, and A. Conmy Thought anchors: which llm reasoning steps matter?. arXiv preprint arXiv:2506.19143. Cited by: Figure 6, Appendix B.
  • Chen et al. (2026) A. Chen, A. Li, B. Zhou, B. Gong, B. Jiang, B. Dan, C. Yu, C. Wang, C. Ma, C. Zhong, et al. The minimax-m2 series: mini activations unleashing max real-world intelligence. arXiv preprint arXiv:2605.26494. Cited by: Appendix B.
  • Chen et al. (2021) M. Chen, J. Tworek, H. Jun, Q. Yuan, H. P. D. O. Pinto, J. Kaplan, H. Edwards, Y. Burda, N. Joseph, G. Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374. Cited by: §4.1.
  • Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord Think you have solved question answering? try arc, the ai2 reasoning challenge. arXiv:1803.05457v1. Cited by: §4.1.
  • Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168. Cited by: §4.1.
  • Cornille et al. (2024) N. Cornille, M. Moens, and F. Mai Learning to plan for language modeling from unlabeled data. arXiv preprint arXiv:2404.00614. Cited by: §2.
  • Dehghani et al. (2023) M. Dehghani, J. Djolonga, B. Mustafa, P. Padlewski, J. Heek, J. Gilmer, A. P. Steiner, M. Caron, R. Geirhos, I. Alabdulmohsin, et al. Scaling vision transformers to 22 billion parameters. In International conference on machine learning, pp. 7480–7512. Cited by: §4.1.
  • Dehghani et al. (2018) M. Dehghani, S. Gouws, O. Vinyals, J. Uszkoreit, and Ł. Kaiser Universal transformers. arXiv preprint arXiv:1807.03819. Cited by: §2.
  • d’Angelo et al. (2024) F. d’Angelo, M. Andriushchenko, A. Varre, and N. Flammarion Why do we need weight decay in modern deep learning?. Advances in Neural Information Processing Systems 37, pp. 23191–23223. Cited by: Appendix C.
  • Frey et al. (2026a) M. Frey, B. Shomali, A. H. Bashir, D. Berghaus, J. Koehler, and M. Ali Adaptive loops and memory in transformers: think harder or know more?. arXiv preprint arXiv:2603.08391. Cited by: §2, §3.2, §3.3.
  • Frey et al. (2026b) M. Frey, B. Shomali, J. Koehler, and M. Ali A dual-path architecture for scaling compute and capacity in llms. arXiv preprint arXiv:2605.30202. Cited by: §4.2.
  • Fu et al. (2026) R. Fu, Z. Yang, J. Zhang, J. Ma, H. Chen, Y. Li, and Y. Chang Simply stabilizing the loop via fully looped transformer. arXiv preprint arXiv:2605.18797. Cited by: §1.
  • Fu et al. (2025) T. Fu, Y. You, Z. Chen, G. Dai, H. Yang, and Y. Wang Think-at-hard: selective latent iterations to improve reasoning language models. arXiv preprint arXiv:2511.08577. Cited by: §1.
  • Gadre et al. (2025) S. Y. Gadre, G. Smyrnis, V. Shankar, S. Gururangan, M. Wortsman, R. Shao, J. Mercat, A. Fang, J. Li, S. Keh, et al. Language models scale reliably with over-training and on downstream tasks. In International Conference on Learning Representations, Vol. 2025, pp. 67661–67682. Cited by: §4.1.
  • Garg et al. (2026) M. Garg, S. Raza, S. Rayana, X. Liu, and S. Sohn The rise of small language models in healthcare: a comprehensive survey. Computer science review 62, pp. 100999. Cited by: §1.
  • Gloeckle et al. (2024) F. Gloeckle, B. Y. Idrissi, B. Rozière, D. Lopez-Paz, and G. Synnaeve Better & faster large language models via multi-token prediction. arXiv preprint arXiv:2404.19737. Cited by: §1, §2, §4.3.
  • Gokaslan et al. (2019) A. Gokaslan, V. Cohen, E. Pavlick, and S. Tellex OpenWebText corpus. Note: http://Skylion007.github.io/OpenWebTextCorpus Cited by: §4.1.
  • Gu et al. (2025) Y. Gu, O. Tafjord, B. Kuehl, D. Haddad, J. Dodge, and H. Hajishirzi Olmes: a standard for language model evaluations. In Findings of the Association for Computational Linguistics: NAACL 2025, pp. 5005–5033. Cited by: §4.1.
  • Guo et al. (2025) D. Guo, D. Yang, H. Zhang, J. Song, P. Wang, Q. Zhu, R. Xu, R. Zhang, S. Ma, X. Bi, et al. Deepseek-r1: incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948. Cited by: §1.
  • Hao et al. (2024) S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. Weston, and Y. Tian Training large language models to reason in a continuous latent space. arXiv preprint arXiv:2412.06769. Cited by: §2.
  • Heineman et al. (2026) D. Heineman, V. Hofmann, I. Magnusson, Y. Gu, N. Smith, H. Hajishirzi, K. Lo, and J. Dodge Signal and noise: a framework for reducing uncertainty in language model evaluation. Advances in Neural Information Processing Systems 38, pp. 17073–17114. Cited by: §4.1.
  • Henry et al. (2020) A. Henry, P. R. Dachapally, S. S. Pawar, and Y. Chen Query-key normalization for transformers. In Findings of the Association for Computational Linguistics: EMNLP 2020, pp. 4246–4253. Cited by: §4.1.
  • Jeddi et al. (2026) A. Jeddi, M. Ciccone, and B. Taati Loopformer: elastic-depth looped transformers for latent reasoning via shortcut modulation. arXiv preprint arXiv:2602.11451. Cited by: Appendix A, Table 4, Table 4, Appendix D, Table 5, Table 6, Table 7, Table 8, §1, §4.1, Table 1.
  • Liu et al. (2024) A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437. Cited by: §1, §2.
  • Liu et al. (2025) J. Liu, J. Su, X. Yao, Z. Jiang, G. Lai, Y. Du, Y. Qin, W. Xu, E. Lu, J. Yan, et al. Muon is scalable for llm training. arXiv preprint arXiv:2502.16982. Cited by: §4.1.
  • Loshchilov and Hutter (2017) I. Loshchilov and F. Hutter Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101. Cited by: Appendix C, §4.1.
  • Lozhkov et al. (2024) A. Lozhkov, L. Ben Allal, L. von Werra, and T. Wolf FineWeb-edu: the finest collection of educational content. Hugging Face. External Links: Link, Document Cited by: §4.1.
  • Mahabadi et al. (2025) R. K. Mahabadi, S. Satheesh, S. Prabhumoye, M. Patwary, M. Shoeybi, and B. Catanzaro Nemotron-cc-math: a 133 billion-token-scale high quality math pretraining dataset. arXiv preprint arXiv:2508.15096. Cited by: §4.1.
  • Noci et al. (2026) L. Noci, G. Bachmann, S. Moosavi-Dezfooli, and M. Nabi Thinking into the future: latent lookahead training for transformers. arXiv preprint arXiv:2603.20219. Cited by: §2.
  • Paperno et al. (2016) D. Paperno, G. Kruszewski, A. Lazaridou, N. Pham, R. Bernardi, S. Pezzelle, M. Baroni, G. Boleda, and R. Fernández The lambada dataset: word prediction requiring a broad discourse context. In Proceedings of the 54th annual meeting of the association for computational linguistics (volume 1: Long papers), pp. 1525–1534. Cited by: §4.1.
  • Radford et al. (2019) A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, and I. Sutskever Language models are unsupervised multitask learners. Cited by: Table 2.
  • Sakaguchi et al. (2021) K. Sakaguchi, R. L. Bras, C. Bhagavatula, and Y. Choi Winogrande: an adversarial winograd schema challenge at scale. Communications of the ACM 64 (9), pp. 99–106. Cited by: §4.1.
  • Sap et al. (2019) M. Sap, H. Rashkin, D. Chen, R. Le Bras, and Y. Choi Social iqa: commonsense reasoning about social interactions. In Proceedings of the 2019 conference on empirical methods in natural language processing and the 9th international joint conference on natural language processing (EMNLP-IJCNLP), pp. 4463–4473. Cited by: §4.1.
  • Saunshi et al. (2025) N. Saunshi, N. Dikkala, Z. Li, S. Kumar, and S. J Reddi Reasoning with latent thoughts: on the power of looped transformers. In International Conference on Learning Representations, Vol. 2025, pp. 14855–14881. Cited by: §1, §2, §3.1.
  • Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. Li, Y. Wu, et al. Deepseekmath: pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300. Cited by: §1.
  • Shazeer (2020) N. Shazeer Glu variants improve transformer. arXiv preprint arXiv:2002.05202. Cited by: §4.1.
  • Shen et al. (2025) Z. Shen, H. Yan, L. Zhang, Z. Hu, Y. Du, and Y. He Codi: compressing chain-of-thought into continuous space via self-distillation. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 677–693. Cited by: §2.
  • Shomali et al. (2026) B. Shomali, L. Victor, T. Selbach, A. H. Bashir, D. Berghaus, J. Koehler, M. Ali, and M. Frey LLM parameters for math across languages: shared or separate?. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (ACL 2026), pp. 1212–1235. Cited by: §5.
  • Su et al. (2024) J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu Roformer: enhanced transformer with rotary position embedding. Neurocomputing 568, pp. 127063. Cited by: §4.1.
  • Sun et al. (2026) W. Sun, X. Song, P. Li, L. Yin, Y. Zheng, and S. Liu The curse of depth in large language models. Advances in Neural Information Processing Systems 38, pp. 163104–163136. Cited by: §3.2, §3.2.
  • Yu et al. (2025) C. Yu, X. Shu, Y. Wang, Y. Zhang, H. Wu, J. Li, R. Long, Z. Chen, Y. Xu, W. Su, et al. MeSH: memory-as-state-highways for recursive transformers. arXiv preprint arXiv:2510.07739. Cited by: §1, §4.3.
  • Zellers et al. (2019) R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi Hellaswag: can a machine really finish your sentence?. In Proceedings of the 57th annual meeting of the association for computational linguistics, pp. 4791–4800. Cited by: §4.1.
  • Zeng et al. (2026) B. Zeng, S. Song, S. Huang, Y. Wang, H. Li, Z. He, X. Wang, Z. Lin, et al. PonderLM: pretraining language models to ponder in continuous space. In The Fourteenth International Conference on Learning Representations, Cited by: §2.
  • Zhu et al. (2025) R. Zhu, Z. Wang, K. Hua, T. Zhang, Z. Li, H. Que, B. Wei, Z. Wen, F. Yin, H. Xing, et al. Scaling latent reasoning via looped language models. arXiv preprint arXiv:2510.25741. Cited by: §1, §2, §3.4, §4.2.

The hyperparameter values for our main experiments are shown in Table 2. One choice worth highlighting is the value of λ_align\lambda\_{\text{align}} for each loop count, which was obtained by a sweep over {0.01, 0.05, 0.1, 0.15, 0.3, 0.4} to get the optimal performance. The overall increasing trend indicates that larger loop counts yield gradient contributions from a greater number of iterations, potentially strengthening the effective optimization signal and allowing more aggressive alignment of intermediate representations without sacrificing performance.

For the training runs in Section 5, all hyperparameters remain the same except for gate initializations and optimizer settings. The first and second gates are initialized to 0.550.55 and −3.0-3.0, with each subsequent iteration decreasing by 0.50.5. Learning rate (LR) is set to 1.889×10−31.889{\times}10^{-3} and weight decay (WD) to 0.1320.132.

For LoopFormer, we perform a grid search over WD, warmup ratio, and LR for each loop configuration. The LR is swept over {6×10−4,1.9×10−3,3.8×10−3}\{6{\times}10^{-4},1.9{\times}10^{-3},3.8{\times}10^{-3}\}, corresponding to the value reported in the original paper, the value used for LoopMTP, and a higher setting. WD is swept over {0.1, 0.2} and warmup ratio over {0.001, 0.08}, covering both the LoopMTP values and those reported by Jeddi et al. (2026). This yields 12 configurations per loop count. Crucially, LoopFormer’s grid search targets training stability: without the right combination training diverges due to gradient explosion. By contrast, LoopMTP trains stably across all loop counts under a single fixed configuration of stability-critical hyperparameters. The only per-loop adjustment is λ_align\lambda\_{\text{align}}, which controls the strength of the auxiliary alignment signal: all swept values produce stable training runs, and the sweep serves solely downstream performance.

CategoryParameterValue
Model ArchitectureLayers12
Embedding dim1024
Query heads32
KV heads32
FFN hidden dim (nominal 4d4d)4096
TokenizerGPT-2 Radford et al. (2019)
Vocabulary size50304
Position encodingRoPE
ActivationSwiGLU
Normalization layerRMSNorm
Weight tying✗
LoopingIterations (TT){3,5,7,9}
Gates initial biasFirst:0.550.55 , Rest:−3.0-3.0
Shared gate✓
Per-iter. norms (hidden)✓
Per-iter. norms (token embd)✗
Lossλ_ponder\lambda\_{\text{ponder}}0.05
λ_align\lambda\_{\text{align}}{0.01, 0.01, 0.05, 0.15}
Alignment typeCosine
OptimizerOptimizerMuon
Learning rate1.9×10−31.9\times 10^{-3}
AdamW β\beta(0.9, 0.95)(0.9,\,0.95)
Weight decay (WD)0.1
WD excluded layersEmbedding, Layer/RMSnorm
Gradient clip1.0
LR SchedulerWarmup ratio0.001
Div factor10
Anneal strategyCosine
TrainingMixed precisionBF16
Sequence length2048
Optimization steps27,864
Effective batch size≈\approx245K
Total training tokens≈6.8\approx 6.8B

Table 2: Key design decisions and hyperparameter values. The values used for LoopMTP in Section 4.

Appendix B An Observation on Loop Count and Reasoning-Step Length

Section titled “Appendix B An Observation on Loop Count and Reasoning-Step Length”

To generate hypotheses about why certain loop counts outperform others (e.g., 9 vs. 11), we conduct an exploratory analysis of GSM8K responses from Section 5. We stress that the evidence below is correlational. We use MiniMax-M2.5 (Chen et al., 2026) to annotate responses following Bogdan et al. (2025) and measure average tokens per sentence within each semantic tag. The resulting distributions (Figure 6) suggest a coupling between MTP lookahead depth and the natural token length of reasoning steps, which we term the horizon alignment conjecture.

Figure 6: Average number of tokens per annotated tag . The reasoning traces are annotated following Bogdan et al. (2025) .

Canonical sentence lengths define the alignment target.

Section titled “Canonical sentence lengths define the alignment target.”

Across loop configurations, the model’s reasoning vocabulary settles into a narrow band of characteristic lengths: active_computation (AC) steps average ∼14.5{\sim}14.5–15.515.5 tokens, while problem_setup (PS) and fact_retrieval (FR) steps cluster at ∼11{\sim}11–1313 tokens, and plan_generation (PG) steps average ∼14{\sim}14–1616 tokens. These values vary little with loop depth, marking them as intrinsic structural units of the model’s reasoning rather than artifacts of a particular decoding configuration.

A possible account of the Loop15\text{Loop}15 peak.

Section titled “A possible account of the Loop15\text{Loop}15Loop15 peak.”

A 15-token lookahead is the smallest window that fully contains a canonical AC step from opening clause to final result. Because the model can preview an entire computational thought within a single horizon, it never commits to an intermediate token without visibility into where the calculation lands, explaining the accuracy peak at Loop15\text{Loop}15 (19.03%19.03\%).

Figure 7: Effect of WD on a looped model. (Left) Gradients during training for T = 9 T{=}9 model (Right) Per-layer spectral norms of the trained model.

An unexplained dip at Loop11\text{Loop}11 and Loop13\text{Loop}13.

Section titled “An unexplained dip at Loop11\text{Loop}11Loop11 and Loop13\text{Loop}13Loop13.”

When the lookahead window neither spans a full execution step nor coincides with a stable planning boundary, performance degrades sharply. At Loop11\text{Loop}11, the horizon falls just short of the ∼14.5{\sim}14.5 token AC baseline; unable to preview the outcome of a computation already begun, the model enters a recovery mode visible as bloated uncertainty_management (UM) sentences averaging ∼28{\sim}28 tokens—verbose, structurally unanchored attempts to re-derive context the window could not supply. At Loop13\text{Loop}13, the horizon is wide enough to enter an AC step but too narrow to exit it cleanly, trapping generation in mid-computation limbo (∼35{\sim}35 UM tokens). Crucially, misalignment does not suppress generation but redirects it into unproductive verbosity.

We stress the limits of this account. It offers a plausible reading of the Loop15\text{Loop}15 peak and the Loop11\text{Loop}11 / Loop13\text{Loop}13 dip, but it does not explain the strong results at Loop7\text{Loop}7 (18.12%) and Loop9\text{Loop}9 (18.73%), whose lookahead horizons are further from the canonical AC length than those of the configurations that underperform. A mechanism operating solely through horizon–step alignment would predict the opposite ordering for these points.

Appendix C Importance of Weight Decay Value for Looped Models

Section titled “Appendix C Importance of Weight Decay Value for Looped Models”

While weight decay (WD) is standard in language model training (Loshchilov and Hutter, 2017), it is typically left at its default value. Our experiments reveal that WD has a surprisingly large impact on reasoning performance for looped models. To isolate this effect, we fix λ_align=0.3\lambda\_{\text{align}}{=}0.3 throughout this section.

As shown in Figure 7 (Left), low WD leads to rapidly diminishing gradient norms over training, while medium and high WD sustain larger norms throughout. We note that the observed pattern is consistent with the view that weight decay acts less as a classical regularizer than as a modifier of optimization dynamics (d’Angelo et al., 2024). We hypothesize this effect is amplified in looped architectures: as the function is composed TT times, the sensitivity introduced by sharp minima compounds across loops.

GSM8K Accuracy ↑\uparrow
WDNon-loopedT=3T{=}3T=5T{=}5T=9T{=}9
Low (0.0132)5.008.4211.4413.57
Medium (0.132)7.0512.8814.7018.49
High (0.2)5.0712.1316.9818.12

Table 3: Performance of looped models for different weight decay values. Weight decay (WD) alone accounts for relative differences of up to 53% between the best- and worst-performing settings at a fixed number of iterations.

Higher WD also constrains weight norms (Figure 7, Right), reducing layer Lipschitz constants (Bartlett et al., 2017) and improving stability under repeated application. On GSM8K (Table 3), medium and high WD consistently outperform low WD in both looped and non-looped settings, with up to 53% relative improvement. High WD peaks at T=5T{=}5 (16.98% vs. 11.44%) but is surpassed by medium WD at T=9T{=}9 (18.12% vs. 18.49%), suggesting excessive decay over-constrains capacity. These results identify WD as a surprisingly impactful yet undertuned hyperparameter for looped models.

Inference (FLOPs/token, ×109\times 10^{9})Training (total FLOPs, ×1019\times 10^{19})
TTLoopMTPLoopFormerΔ\DeltaLoopMTPLoopFormerΔ\Delta
Non-looped0.481–0.988–
31.20 (2.49×\times)1.31 (2.73×\times)−8.8%-8.8\%2.46 (2.49×\times)4.15 (4.20×\times)−40.7%-40.7\%
51.93 (4.01×\times)2.12 (4.40×\times)−8.9%-8.9\%3.96 (4.01×\times)6.63 (6.71×\times)−40.2%-40.2\%
72.66 (5.53×\times)2.92 (6.08×\times)−9.0%-9.0\%5.47 (5.53×\times)9.11 (9.23×\times)−40.1%-40.1\%
93.39 (7.05×\times)3.73 (7.75×\times)−9.0%-9.0\%6.97 (7.05×\times)11.6 (11.74×\times)−39.9%-39.9\%

Table 4: FLOPs comparison between LoopMTP, its non-looped baseline and LoopFormer Jeddi et al. (2026). Parenthesised values are multiples of the non-looped baseline. Δ\Delta is the relative change of LoopMTP with respect to LoopFormer; negative values indicate that LoopMTP requires less computation.

Following the accounting of the LoopFormer Jeddi et al. (2026), we write the cost of a forward pass with tt loop iterations as C(t)=C_io+t C_1C(t)=C\_{io}+t\,C\_{1}, where C_ioC\_{io} collects the loop-independent input/output compute (final norm + unembedding; embedding lookups are free) and C_1C\_{1} is the cost of one pass through the shared LL-block stack plus each model’s per-iteration machinery. The non-looped baseline is the T=1T=1 instance of the same expression, with a slightly wider SwiGLU. LoopMTP follows the LLaMA sizing rule (23⋅4d\tfrac{2}{3}\cdot 4d, rounded up to the nearest multiple of 256256), so the nominal 40964096 of Table 2 corresponds to a realized hidden width of 28162816 at d=1024d{=}1024. For the baseline, which has no input projection or aggregation gate, we widen this to the next multiple of 256256, i.e. 30723072. Because the width is constrained to multiples of 256256, this does not match the recurrence parameters exactly: it overshoots them, leaving the baseline roughly 66M parameters larger than LoopMTP. We count 22 FLOPs per multiply–accumulate, score attention causally, and take one training step to cost 3×3\times the forward pass. For our configuration (L=12L=12, d=1024d=1024, S=2048S=2048, ∣V∣=50304|V|=50304, D≈6.8D\approx 6.8B), per token:

Baseline:{C_io/S=1.03×108C_1base/S=3.78×108\displaystyle\left\{\begin{aligned} C\_{io}/S&=1.03\times 10^{8}\\ C\_{1}^{\mathrm{base}}/S&=3.78\times 10^{8}\end{aligned}\right.
------------
LoopMTP:{C_io/S=1.03×108C_1/S=3.65×108\displaystyle\left\{\begin{aligned} C\_{io}/S&=1.03\times 10^{8}\\ C\_{1}/S&=3.65\times 10^{8}\end{aligned}\right.
------------
LoopFormer:{C_io/S=1.03×108C_1/S=4.03×108\displaystyle\left\{\begin{aligned} C\_{io}/S&=1.03\times 10^{8}\\ C\_{1}/S&=4.03\times 10^{8}\end{aligned}\right.

Inference uses a single TT-loop trajectory for both models, C_inf(T)=C_io+T C_1C\_{\mathrm{inf}}(T)=C\_{io}+T\,C\_{1} and a single pass for the baseline, C_infbase=C_io+C_1baseC\_{\mathrm{inf}}^{\mathrm{base}}=C\_{io}+C\_{1}^{\mathrm{base}} . Over a token budget DD, training costs:

Ctrain_base\displaystyle\mathcal{C}^{\mathrm{train}}\_{\mathrm{base}}=3 (C_io+C_1base) D/S,\displaystyle=3\,\big(C\_{io}+C\_{1}^{\mathrm{base}}\big)\,D/S,
------------
Ctrain_LoopMTP\displaystyle\mathcal{C}^{\mathrm{train}}\_{\mathrm{LoopMTP}}=3 (C_io+T C_1) D/S,\displaystyle=3\,\big(C\_{io}+T\,C\_{1}\big)\,D/S,
------------
E[Ctrain_LoopFormer]\displaystyle\mathbb{E}\big[\mathcal{C}^{\mathrm{train}}\_{\mathrm{LoopFormer}}\big]=3 (2 C_io+3T2 C_1) D/S,\displaystyle=3\,\big(2\,C\_{io}+\tfrac{3T}{2}\,C\_{1}\big)\,D/S,

since LoopFormer backpropagates both its full TT-loop trajectory and a short MM-loop trajectory with M∼Unif{1,…,T−1}M\sim\mathrm{Unif}\{1,\dots,T-1\} (E[M]=T/2\mathbb{E}[M]=T/2).

Table 4 compares the training and inference FLOPs of LoopFormer and LoopMTP. For a matched loop count TT and token budget, LoopMTP requires only 0.59–0.60×\times the training FLOPs of LoopFormer, while achieving better performance. The additional computational cost of LoopFormer primarily stems from its dual-trajectory objective. During inference, LoopMTP remains approximately 10% more FLOP-efficient. Relative to the non-looped baseline of the same size, LoopMTP costs 2.49–7.05×\times the FLOPs at both training and inference for T=3T{=}3–99. Importantly, looping converts compute into effective depth; it does not reduce total computation relative to a shallow model.

In this section, we present more detailed results, including a breakdown of the aggregated numbers reported in Table 1, along with the average and standard deviation (STD) values. All results in this section report the average performance for each configuration across 3 random seeds (unless otherwise noted), together with the corresponding standard deviation.

General & QA Tasks (Accuracy ↑\uparrow)
ModelARC-CARC-EHSWGSIQAPIQALBAvg
Non-looped31.601.1659.900.5438.480.0450.960.2744.850.2765.980.2432.160.8946.280.28
LoopFormer∗
Loops=3†32.040.8158.692.0438.612.5650.240.6744.191.9766.000.9830.983.2945.821.76
Loops=535.241.4059.650.9841.610.8652.350.8445.870.2365.290.5635.130.6247.880.49
Loops=730.013.4446.4914.3434.377.3051.431.5542.393.6660.527.2520.8415.2440.867.48
Loops=932.173.2049.9716.3836.507.6650.861.6842.943.9860.977.9623.7316.7842.458.22
LoopMTP(ours)
Loops=335.491.2462.280.9342.600.3250.070.7146.370.8167.170.1335.481.0848.490.08
Loops=535.321.7963.380.7244.350.3552.540.4646.880.5967.520.2436.791.0949.540.36
Loops=735.100.8964.070.6944.780.2952.990.8346.950.5167.970.8536.391.4449.750.31
Loops=936.010.3963.710.5344.640.1652.700.3547.780.1667.860.3337.471.4650.020.16

Table 5: Accuracy results on general and QA tasks, with multi-seed standard deviations. ∗ for LoopFormer Jeddi et al. (2026), stable training required a separate grid search over learning rate, weight decay, and warmup ratio at each loop count. † indicates runs whose reported averages are over two random seeds, as one of the three runs diverged.

General & QA Tasks (BPB ↓\downarrow)
ModelARC-CARC-EHSWGSIQAPIQALBAvg
Non-looped0.88420.00081.14890.00300.82800.01060.74930.00650.95430.01101.22620.00201.17230.00610.99480.0045
LoopFormer∗
Loops=3†0.90170.01991.16250.02110.86370.06650.78150.06880.97820.05871.25000.02621.21090.02741.02120.0412
Loops=50.87710.00491.14940.01250.78950.01130.71340.01200.90860.01341.21960.00431.16550.01240.97470.0083
Loops=71.36580.63041.63840.65711.64671.07831.28930.72701.46150.68691.62410.53631.57200.50201.51400.6882
Loops=91.30050.60701.57300.63451.55961.11661.25590.80011.39730.71211.58520.53351.51680.49661.45550.7000
LoopMTP(ours)
Loops=30.86000.00041.11550.00570.77680.01710.68850.00180.89430.00581.20050.00851.14310.00510.95410.0013
Loops=50.85510.00241.11290.00500.74920.00640.66660.00280.87210.00771.19130.01191.14210.00460.94130.0033
Loops=70.85150.00331.11210.00300.74730.01420.66260.00190.87300.00361.19650.00251.11510.01020.93690.0022
Loops=90.85260.00221.10860.00680.73590.02200.66490.00700.87560.00271.19800.01521.12040.01070.93660.0050

Table 6: BPB results on general and QA tasks, with multi-seed standard deviations. ∗ for LoopFormer Jeddi et al. (2026), stable training required a separate grid search over learning rate, weight decay, and warmup ratio at each loop count. † indicates runs whose reported averages are over two random seeds, as one of the three runs diverged.

Math & Reasoning Tasks (BPB ↓\downarrow)
Modelalgebracounting & probabilitygeometryintermediate algebranumber theoryprealgebraprecalculusAvg
Non-looped0.70150.00290.68390.00230.76960.00320.73210.00470.76610.00090.66960.00190.65720.00280.71140.0024
LoopFormer∗
Loops=3†0.72600.04420.70140.03910.79630.04720.75790.04450.78890.03840.69010.03820.68010.04330.73440.0421
Loops=50.67890.01330.66040.01130.75430.00950.70530.01160.74610.01270.64900.01290.63480.01080.68980.0116
Loops=71.76551.44661.50791.12301.85461.45971.85371.52471.71871.28941.59661.25641.78441.53431.72591.3763
Loops=91.62961.36131.41301.07411.71951.38111.71341.43411.61301.23771.48121.18841.65451.45081.60341.3039
LoopMTP(ours)
Loops=30.65260.00200.64420.00340.73020.00290.68330.00320.72400.00160.62890.00190.61380.00310.66810.0022
Loops=50.64100.00220.63310.00100.71900.00310.67840.00080.71300.00190.61690.00050.60770.00290.65840.0014
Loops=70.64140.00300.63060.00170.71790.00130.67710.00350.71000.00230.61530.00250.61010.00210.65750.0021
Loops=90.64100.00400.63220.00240.71800.00610.68190.00730.71320.00450.61370.00320.61030.00710.65860.0049

Table 7: BPB results on math and reasoning tasks, with multi-seed standard deviations. ∗ for LoopFormer Jeddi et al. (2026), stable training required a separate grid search over learning rate, weight decay, and warmup ratio at each loop count. † indicates runs whose reported averages are over two random seeds, as one of the three runs diverged.

Coding Tasks (BPB ↓\downarrow)
Modelmbppcodex humanevalAvg
Non-looped0.97100.00330.75380.00480.86240.0040
LoopFormer∗
Loops=3†0.99220.05060.81520.07260.90370.0616
Loops=50.93200.01530.73750.01860.83480.0163
Loops=72.48202.02702.12051.77622.30121.9015
Loops=91.96641.47391.65151.31341.80891.3937
LoopMTP(ours)
Loops=30.90720.01130.70700.01070.80710.0083
Loops=50.88760.00420.69650.00620.79210.0037
Loops=70.88120.00530.68320.00170.78220.0019
Loops=90.89420.01150.70640.00870.80030.0101

Table 8: BPB results on coding tasks, with multi-seed standard deviations. ∗ for LoopFormer Jeddi et al. (2026), stable training required a separate grid search over learning rate, weight decay, and warmup ratio at each loop count. † indicates runs whose reported averages are over two random seeds, as one of the three runs diverged.

Table 5 shows the accuracy for general and QA tasks. Here, LoopMTP not only consistently outperforms the non-looped baseline and LoopFormer (27 out of 28 settings; the exception is Winogrande at TT=3), but also shows more stable performance, i.e. lower STD values. While the STD values for LoopMTP consistently remain in a very low range, LoopFormer’s performance suffers from large oscillations (despite its hyperparameters being tuned separately for each loop count): for 3-loop training, one of LoopFormer’s runs diverged (which is why the 3-loop LoopFormer results are aggregated over only two runs), and for 7 and 9 loops, one of the runs did not perform very well after training. Tables 6–8 show the BPB values separately for each aggregated benchmark. The same pattern holds: LoopMTP consistently outperforms both the non-looped and LoopFormer baselines.