Hugging Face Papers ↗ · 2026-11-20
Feedback Shortcut: Speculative Decoding for Latent Feedback Transformers
Media reports Hugging Face Papers Source language: Chinese
Feedback Shortcut enables speculative decoding in latent-feedback Transformers, staying within 10^-4 BPB of the exact-decoding ceiling while accelerating decoding…
Full text
\metadata
[ Code]https://github.com/ifm-ai/LoRM \authorsep, \authorsep, \authorsep ‡\ddagger]Institute of Foundation Models\affiliationsep, †\dagger]USC\affiliationsep, ∗\ast]CMU
Feedback Shortcut: Speculative Decoding for Latent Feedback Transformers
Benhao Huang Affiliation: [ Xuezhe Ma Affiliation: [ Hector Liu Affiliation: [
November 20, 2026 Correspondence:
Abstract
Feeding each position’s top-layer hidden state back into the next position’s input improves Transformer performance. However, this feedback breaks speculative decoding, since verifying a drafted token requires the top-layer state from its preceding position, which forces the draft to rely on an approximate stand-in. Training the model to adapt to this stand-in can lower the exact-decoding performance ceiling, while using it at inference time further introduces approximation error. We propose Feedback Shortcut to address both bottlenecks. First, State alignment trains a lightweight projection from multi-token prediction head states to stand-ins, leaving base model training untouched. Second, Pipelined correction re-evaluates each draft using its predecessor’s newly computed state—a much closer proxy to true feedback. Running this correction inside the verification pass of subsequent drafts improves accuracy with zero extra calls. Across 135M and 780M scales, Feedback Shortcut stays within 10−410^{-4} bits per byte of the exact-decoding ceiling on Paloma and accelerates decoding by 2.4×2.4\times–2.8×2.8\times for only ∼2%\sim 2\% extra training compute. At large batch sizes, skipping correction still preserves Transformer speed and over 80%80\% of latent feedback’s gains.
Figure 1: Draft token verification in speculative decoding. ✓\checkmark marks an accepted draft, and each dashed box represents a single forward pass. (a) Standard Transformers only condition on token embeddings, allowing a single pass to verify all drafts in parallel. (b) With latent feedback, each position depends on the preceding position’s top-layer state, requiring a separate pass per draft. (c) Feedback Shortcut supplies drafted positions with stand-ins as+ka_{s+k} projected from MTP heads so one pass verifies both drafts, while subsequent passes refine them concurrently with verifying incoming drafts in the way of pipelined correction (Section 3).
1 The problem
In latent feedback Transformers [1, 2, 3], the top-layer state of each position is fed to the input of the next position. They perform better than a standard Transformer of the same memory cost. At decoding time, specifically, the transformer blocks ff map the input utu_{t} of position tt to its top-layer state hth_{t}. The input adds the previous state, normalized by RMSNorm and projected by WW, to the token embedding ete_{t}:
ut=et+WRMSNorm(ht−1).u_{t}=e_{t}+W\,\operatorname{RMSNorm}(h_{t-1}). (1)
Because utu_{t} depends on ht−1h_{t-1}, training under Eq. 1 processes one position at a time. A sequence of length TT requires TT sequential forward calls instead of one parallel call. Current training [2] approximates Eq. 1 with fixed-point iteration. In each pass, we compute all positions in parallel from the previous pass’s states, and the fixed point of the iteration satisfies Eq. 1:
[ut(p+1)=et+WRMSNorm(ht−1(p)),ht−1(p)=f(ut−1(p))]→p→∞ut(∗)=et+WRMSNorm(ht−1(∗)).\Big[\,u^{(p+1)}_{t}=e_{t}+W\,\operatorname{RMSNorm}\big(h^{(p)}_{t-1}\big),\quad h^{(p)}_{t-1}=f\big(u^{(p)}_{t-1}\big)\,\Big]\;\xrightarrow{\;p\,\to\,\infty\;}\;u^{(*)}_{t}=e_{t}+W\,\operatorname{RMSNorm}\big(h^{(*)}_{t-1}\big). (2)
The first pass reads no feedback, ut(1)=etu^{(1)}_{t}=e_{t}. In pass p=2,3,…p=2,3,\dots, we read the top states of the previous pass, which converge to the ht−1h_{t-1} of Eq. 1. In practice, two to three passes come close to the fixed point [2].
Speculative decoding [4, 5] drafts KK tokens and verifies them in one forward call, with all positions in parallel (Figure 1a). But in a latent feedback Transformer, a drafted position s+1+ks{+}1{+}k needs hs+kh_{s+k}, and that state is still being computed in the same call (Figure 1b). So, to verify all the drafts in that call, each drafted position needs to read a stand-in as+ka_{s+k} instead of hs+kh_{s+k},
us+1+k=e(x^s+1+k)+WRMSNorm(as+k),u_{s+1+k}=e(\hat{x}_{s+1+k})+W\,\operatorname{RMSNorm}(a_{s+k}), (3)
where k=1,…,Kk=1,\dots,K. Every state computed from a stand-in deviates from exact decoding, leaving a gap.
Ceiling and gap. We measure quality in bits per byte (BPB), where lower is better. The ceiling B(⋅)B(\cdot) of a model is the BPB of its exact decoding, the best quality it can serve. Regular speculative decoding serves the ceiling. With latent feedback, stand-ins let us verify in parallel again, but at a cost in quality. Let θ\theta be the feedback model, the latent feedback Transformer with MTP heads trained without considering its stand-in. Let θ^\hat{\theta} be the model trained for its stand-in aa, and Ba(θ^)B_{a}(\hat{\theta}) the BPB that speculative decoding serves with aa. The gap to the feedback ceiling B(θ)B(\theta) splits into two parts:
Ba(θ^)−B(θ)⏟gap=B(θ^)−B(θ)⏟ceiling drop Δa+Ba(θ^)−B(θ^)⏟approximation error ϵa.\underbrace{B_{a}(\hat{\theta})-B(\theta)}_{\text{gap}}=\underbrace{B(\hat{\theta})-B(\theta)}_{\text{ceiling drop }\Delta_{a}}+\underbrace{B_{a}(\hat{\theta})-B(\hat{\theta})}_{\text{approximation error }\epsilon_{a}}. (4)
The ceiling drop Δa\Delta_{a} arises in training, when the model adjusts to its stand-in. The approximation error ϵa\epsilon_{a} arises in decoding, from reading the stand-in in drafted positions. Within one call, the stand-in’s reads add a one-call error ϵa1\epsilon^{1}_{a}. Left uncorrected, ϵa\epsilon_{a} may accumulate and exceed ϵa1\epsilon^{1}_{a}, because later calls also read the states computed from stand-ins.
Questions. Which stand-in keeps both parts of the gap small while decoding quickly with minimal training cost (Section 2)? And how can we remove the remaining approximation error in decoding without extra calls (Section 3)? Our answer is Feedback Shortcut (Figure 1c). We let drafted positions read a trained stand-in instead of waiting for their feedback, and we correct them in later calls in parallel.
2 Feedback stand-ins
We compare four candidates for the stand-in. They differ in how we train the state that verification reads, and in whether that training also updates the model itself, its blocks ff and MTP heads.
Zeros, as+k=0a_{s+k}=0. We drop the feedback in drafted positions and do not change training.
Figure 2: How we train the stand-in, illustrated with one MTP head. (a) With MTP alone, gt{\color[rgb]{0.7539,0.3984,0.1016}g_{t}} drafts a token, but it is not trained to be feedback. (b) State alignment pulls P(gt)P({\color[rgb]{0.7539,0.3984,0.1016}g_{t}}) toward ht+1(1)h^{(1)}_{t+1}, which training uses as feedback (Eq. 2). (c) With in-place substitution, pass 2 itself learns to read gt{\color[rgb]{0.7539,0.3984,0.1016}g_{t}} as the feedback through the next-token loss.
Figure 3: State alignment’s map PP.
MTP state, as+k=gs,ka_{s+k}={\color[rgb]{0.7539,0.3984,0.1016}g_{s,k}}, is the state of DeepSeek-style MTP heads [6, 7]: gt,1=M1(ht,et+1){\color[rgb]{0.7539,0.3984,0.1016}g_{t,1}}={\color[rgb]{0.7539,0.3984,0.1016}M_{1}}(h_{t},e_{t+1}), gt,k=Mk(gt,k−1,et+k){\color[rgb]{0.7539,0.3984,0.1016}g_{t,k}}={\color[rgb]{0.7539,0.3984,0.1016}M_{k}}({\color[rgb]{0.7539,0.3984,0.1016}g_{t,k-1}},e_{t+k}), and head kk drafts from gt,k{\color[rgb]{0.7539,0.3984,0.1016}g_{t,k}}. We call the heads in sequence the chain. The MTP loss trains g{\color[rgb]{0.7539,0.3984,0.1016}g} to predict a token, not to be read as feedback (Figure 2a).
State alignment, as+k=P(gs,k)a_{s+k}=P({\color[rgb]{0.7539,0.3984,0.1016}g_{s,k}}). We read the MTP state through a learned map PP and pull P(gt,k)P({\color[rgb]{0.7539,0.3984,0.1016}g_{t,k}}) toward ht+k(1)h^{(1)}_{t+k} with a smooth ℓ1\ell_{1} loss, where ht+k(1)h^{(1)}_{t+k} is the first-pass state that the second pass reads (Figure 2b). PP is a linear skip plus an MLP that starts as the identity (Figure 3). This loss trains only the map, with the blocks ff and the heads untouched.
In-place substitution, as+k=gs,ka_{s+k}={\color[rgb]{0.7539,0.3984,0.1016}g_{s,k}}. We train the MTP state itself to be read as feedback. We divide each sequence into random-length training windows, with at most KK stand-ins per window. In a window anchored at ss, position s+1+ks{+}1{+}k reads
us+1+k(2)=es+1+k+WRMSNorm(gs,k),withgs,1=M1(sg(hs(1)),es+1),u^{(2)}_{s+1+k}=e_{s+1+k}+W\,\operatorname{RMSNorm}\big({\color[rgb]{0.7539,0.3984,0.1016}g_{s,k}}\big),\quad\text{with}\quad{\color[rgb]{0.7539,0.3984,0.1016}g_{s,1}}={\color[rgb]{0.7539,0.3984,0.1016}M_{1}}\big({\color[rgb]{0.543,0.543,0.543}\operatorname{sg}(h^{(1)}_{s})},\,e_{s+1}\big), (5)
and the next-token loss trains the heads to provide feedback (Figure 2c). We also test two milder variants, which substitute only in half the sequences of each update or only during the final learning-rate decay.
Figure 4: Correcting drafted positions with K=3K=3 MTP heads when every draft is accepted. Each box is a state computed in that call. (a) One-call verification commits states that read stand-ins, so their errors stay in the cache. (b) Correcting first costs an extra call. (c) Pipelined correction saves that call by correcting while it verifies the next drafts. In (c), hs+5h_{s+5} reads hs+4h_{s+4} from call nn rather than a stand-in, so it commits with the corrected states.
Table 1: Performance of Feedback Shortcut (state alignment, D=1D=1) at batch size 1. We compare it with the standard Transformer, which speculates with its own MTP heads, and with the ceiling, exact decoding of the latent feedback Transformer. FLOPs is the training compute relative to the Transformer, and Feedback Shortcut’s BPB is what speculative decoding serves (Appendices A and E).
BPB ↓\downarrow
Model FLOPs ↓\downarrow Paloma Math Code QA Speedup ↑\uparrow
135M
Transformer 1.00×1.00\times 1.0065±0.00051.0065{\scriptstyle\pm 0.0005} 0.8997±0.00230.8997{\scriptstyle\pm 0.0023} 0.6787±0.00310.6787{\scriptstyle\pm 0.0031} 1.2733±0.00861.2733{\scriptstyle\pm 0.0086} 2.49±<0.01×2.49{\scriptstyle\pm<0.01}\times
Latent feedback, exact 1.10×1.10\times 0.9950±0.00050.9950{\scriptstyle\pm 0.0005} 0.8834±0.00170.8834{\scriptstyle\pm 0.0017} 0.6666±0.00240.6666{\scriptstyle\pm 0.0024} 1.2545±0.01061.2545{\scriptstyle\pm 0.0106} 1.00×1.00\times
Feedback Shortcut (ours) 1.13×1.13\times 0.9951±0.00030.9951{\scriptstyle\pm 0.0003} 0.8844±0.00260.8844{\scriptstyle\pm 0.0026} 0.6660±0.00180.6660{\scriptstyle\pm 0.0018} 1.2542±0.00491.2542{\scriptstyle\pm 0.0049} 2.36±0.02×2.36{\scriptstyle\pm 0.02}\times
780M
Transformer 1.00×1.00\times 0.8379±0.00020.8379{\scriptstyle\pm 0.0002} 0.6678±0.00240.6678{\scriptstyle\pm 0.0024} 0.4690±0.00290.4690{\scriptstyle\pm 0.0029} 0.9639±0.00540.9639{\scriptstyle\pm 0.0054} 2.93±0.01×2.93{\scriptstyle\pm 0.01}\times
Latent feedback, exact 1.17×1.17\times 0.8288±0.00030.8288{\scriptstyle\pm 0.0003} 0.6551±0.00200.6551{\scriptstyle\pm 0.0020} 0.4596±0.00050.4596{\scriptstyle\pm 0.0005} 0.9532±0.00490.9532{\scriptstyle\pm 0.0049} 1.00×1.00\times
Feedback Shortcut (ours) 1.19×1.19\times 0.8287±0.00010.8287{\scriptstyle\pm 0.0001} 0.6551±0.00170.6551{\scriptstyle\pm 0.0017} 0.4625±0.00140.4625{\scriptstyle\pm 0.0014} 0.9541±0.00590.9541{\scriptstyle\pm 0.0059} 2.75±0.04×2.75{\scriptstyle\pm 0.04}\times
3 Pipelined correction
No stand-in is perfect, so verification still deviates from exact decoding. But a stand-in is a good starting point for the iteration of Eq. 2. One more forward step corrects a drafted position by reading the state that the last call computed for the position before it,
uj[n]=e(xj)+WRMSNorm(hj−1[n−1]),u^{[n]}_{j}=e(x_{j})+W\,\operatorname{RMSNorm}\big(h^{[n-1]}_{j-1}\big), (6)
and repeated corrections approach exact decoding. Let DD be the number of corrections a position needs before we commit its prediction. If we run each correction as its own call, we need D+1D{+}1 calls per draft (Figure 4b). Instead, pipelined correction corrects inside the next verification call. It corrects the positions still pending from the previous call and verifies the new drafts in the same call (Figure 4c).
Let dd count the corrections a state has received so far, with d=0d=0 for a state that reads a stand-in. In a call, we commit a position’s prediction only if it passes two checks. The drafted token must equal the token we commit there, and the state must have been corrected at least DD times. For call nn and position jj,
xj+1=argmaxvp(v∣hj[n])ifx^j=xj and dj[n]≥D,dj[n]=dj−1[n−1]+1.x_{j+1}=\arg\max_{v}\,p\big(v\mid h^{[n]}_{j}\big)\quad\text{if}\quad\hat{x}_{j}=x_{j}\;\text{ and }\;d^{[n]}_{j}\geq D,\qquad d^{[n]}_{j}=d^{[n-1]}_{j-1}+1. (7)
If a draft fails the first check, we reject it and all later drafts. As in standard speculative decoding, the prediction at the position before it takes its place, and drafting resumes after it in the next call. Each call still commits at least one token. D=0D=0 is verification without corrections, and D=∞D=\infty is exact decoding. Algorithm 1 in Appendix A gives the full loop.
Additionally, pipelined correction only maintains a sliding window of at most (K+1)(D+1)(K{+}1)(D{+}1) pending positions, so the memory and batch size barely change. Each call recomputes these pending positions along with the new drafts, up to (K+1)(D+1)(K{+}1)(D{+}1) positions. These extra positions add little latency when reading a long KV cache dominates [8], especially in agentic workloads [9].
4 Experiments and results
4.1 Setup
Models. We train latent feedback Transformers of 135M and 780M parameters with K=3K=3 MTP heads. The baseline is a standard Transformer with the same backbone and heads but without feedback. Appendix A describes the architecture and training.
Training and data. Each run trains for one epoch on a prefix of the Dolma 3 mix [10], 13.4B tokens for 135M and 77.8B tokens for 780M. Every setting uses the learning rate and weight decay tuned for the standard Transformer, and trains with three seeds.
Evaluation. We evaluate quality on seven subsets of Paloma [11] and average the BPB over these subsets. We measure speed as the steady-state throughput of a batched engine that serves the first turns of the Spec-Bench and SPEED-Bench prompts [12, 13] with continuous batching, relative to exact decoding in the same engine at the same batch size. For downstream quality, we measure the BPB of the gold answers in the Olmo 3 Base Easy suites [10]. All models decode greedily in float16. We report batch size 1 in Section 4.2 and other batch sizes in Section 4.3. We compare exact decoding with verifying K=3K=3 drafts under pipelined correction with D=0D=0 to 3 corrections. Unless noted, we report means over three seeds, with standard deviations as ±\pm terms or error bars. Appendix A describes the full protocol.
Table 2: One-call error ϵa1\epsilon^{1}_{a} (Eq. 4), in 10−310^{-3} BPB, and exact decoding BPB on Paloma. Below the Transformer, each row adds a stand-in to the feedback model, with its extra training FLOPs. For the 780M MTP state, the error is a range over seeds. Bold marks the lowest value per column.
135M, 13.4B tokens 780M, 77.8B tokens
Setting FLOPs ↓\downarrow ϵa1\epsilon^{1}_{a} ↓\downarrow Exact BPB ↓\downarrow FLOPs ↓\downarrow ϵa1\epsilon^{1}_{a} ↓\downarrow Exact BPB ↓\downarrow
Transformer — — 1.0065±0.00051.0065{\scriptstyle\pm 0.0005} — — 0.8379±0.00020.8379{\scriptstyle\pm 0.0002}
MTP state 0% 6.9±2.46.9{\scriptstyle\pm 2.4} 0.9950±0.0005\mathbf{0.9950}{\scriptstyle\pm 0.0005} 0% 1515 to 151215121 0.8288±0.00030.8288{\scriptstyle\pm 0.0003}
zeros 0% 10.0±0.510.0{\scriptstyle\pm 0.5} 0.9950±0.0005\mathbf{0.9950}{\scriptstyle\pm 0.0005} 0% 6.8±<0.16.8{\scriptstyle\pm<0.1} 0.8288±0.00030.8288{\scriptstyle\pm 0.0003}
state alignment 2.4% 1.7±<0.11.7{\scriptstyle\pm<0.1} 0.9951±0.00030.9951{\scriptstyle\pm 0.0003} 2.0% 1.7±0.11.7{\scriptstyle\pm 0.1} 0.8287±0.0001\mathbf{0.8287}{\scriptstyle\pm 0.0001}
in-place 8.0% 0.6±0.1\mathbf{0.6}{\scriptstyle\pm 0.1} 0.9975±0.00050.9975{\scriptstyle\pm 0.0005} 6.1% 0.6±<0.1\mathbf{0.6}{\scriptstyle\pm<0.1} 0.8306±0.00010.8306{\scriptstyle\pm 0.0001}
in half the sequences 8.0% 1.1±0.11.1{\scriptstyle\pm 0.1} 0.9965±0.00030.9965{\scriptstyle\pm 0.0003} 6.1% 0.9±0.20.9{\scriptstyle\pm 0.2} 0.8299±0.00020.8299{\scriptstyle\pm 0.0002}
only during decay 1.6% 0.8±0.10.8{\scriptstyle\pm 0.1} 0.9970±0.00060.9970{\scriptstyle\pm 0.0006} 1.2% 0.7±<0.10.7{\scriptstyle\pm<0.1} 0.8303±0.00020.8303{\scriptstyle\pm 0.0002}
Figure 5: BPB of the 780M model on each evaluation set against the speedup over exact decoding. Figure 8 in Appendix E shows 135M.
4.2 Feedback Shortcut against the Transformer
Feedback Shortcut achieves the quality of latent feedback at nearly the speculative-decoding speed of the standard Transformer. It stays close to the ceiling at both sizes (10−410^{-4} BPB on Paloma, Table 1), keeping all of feedback’s advantage over the Transformer. On downstream tasks, it also improves over the standard Transformer (Appendix D).
This quality costs little speed. At batch size 1, it decodes 2.36 and 2.75 times faster than exact decoding at 135M and 780M, respectively, close to the Transformer’s 2.49 and 2.93 times. Training costs 1.13 and 1.19 times the Transformer’s FLOPs, mostly from latent feedback’s increased training costs, with state alignment adding only about 2%.
4.3 Ablation study
Stand-ins. We first ask why state alignment is the right stand-in. Within one call, the stand-ins trade one-call error against ceiling drop (Table 2). On one hand, zeros and the MTP state as stand-ins keep the ceiling but have several times the one-call error of state alignment.11 1 The 780M MTP state’s error in Table 2 spans a wide range because each seed’s heads set one coordinate of their state differently. The output head ignores this coordinate, so the MTP loss leaves it free, but the feedback reads it (Appendix C). On the other hand, in-place substitution has the lowest one-call error but lowers the ceiling.
State alignment avoids both problems. Its loss trains only the map and leaves the backbone untouched, so it keeps the ceiling with a small one-call error and extra compute. With one correction, it serves the feedback ceiling nearly as fast as in-place substitution and at a lower BPB (Figure 5). On downstream tasks, state alignment also keeps most of feedback’s advantage (Appendix D).
Number of corrections. We next look for the number of corrections that balances quality and speed. Without correction (D=0D=0), the approximation error is still nonnegligible. Fortunately, one pipelined correction (D=1D=1) removes almost all of it while keeping most of the speedup (Figure 5).
This correction is inexpensive since it runs in the same call that verifies the next drafts, so each round needs one call instead of D+1D{+}1 (Figure 4). This speeds up the decoding considerably. However, it still lags behind standard speculative decoding for two reasons (Table 3), which together trade speed for quality:
•
More positions in a single call. Each call verifies the new drafts and the positions that still need correction. At small batch sizes, these positions are cheap, but they take time once each call becomes compute-bound.
•
More accurate verification. When we check each draft against a state that reads corrected feedback instead of a stand-in, we reject some drafts that one-call verification would accept, which reduces the tokens per call from D=0D=0 to D=1D=1 by 2 to 4% for the trained stand-ins and by 8 to 11% for zeros, which simply drop the feedback at drafted positions.
To check whether errors compound once the model generates on its own, we sample free generations of 1,024 tokens at temperature 1 and compare the distribution of each served token with that of exact decoding (Table 4 in Appendix B). With one correction, the KL divergence of state alignment is below 6×10−46\times 10^{-4} nats per token, and a second correction lowers it about twentyfold more. So, the error remains small even for long generations. Moreover, when greedy decoding departs from exact decoding, it mostly first departs at a near-tie, a token that exact decoding itself scores within 0.1 nats of its own choice, although near-ties make up under 1% of the positions (Table 5 in Appendix B). So, with one correction, the free generation remains close to exact decoding, which makes D=1D=1 the setting we recommend.
Figure 6: Speedup over exact decoding against batch size BB, excluding prefill and the CPU work between calls. One-call verification (D=0D=0) is as fast as the Transformer at every batch size, and larger DD trades speed for accuracy.
Batch size and serving. When batching many requests, the Feedback Shortcut remains faster than exact decoding at each batch size (Figure 6). At small ones, state alignment with one correction decodes 2.36 to 2.75 times faster than exact decoding, close to the Transformer’s 2.49 to 2.93 times. However, as the batch fills the GPU, each call becomes compute-bound, and the positions that correction verifies start to take time. At batch size 256, D=1D=1 is still about 1.7 times faster than exact decoding, but it lags further behind the Transformer. In this regime, a server could switch to one-call verification (D=0D=0), which decodes about as fast as the Transformer but with better performance, though It keeps only 80 to 85% of feedback’s advantage (Figure 5). This offers heavily loaded services a way to trade model quality for serving cost.
5 Related work
Feedback Transformers. Feedback Transformers feed the high-level state of each position to later positions and report performance gains [1, 14, 2, 3, 15]. However, this sequential dependence breaks speculative decoding, whose verifier computes all drafted positions in a single call while each of them needs the top-layer state of the previous position. Feedback Shortcut is a step toward removing this obstacle, allowing these models to be served with speculative decoding.
Speculative decoding. Speculative decoding drafts tokens cheaply and verifies them with a single forward pass of the target, which preserves the target’s output [16, 4, 5]. Drafts come from small models [17], from the target’s own layers [18, 19], from block diffusion [20], or from heads on the target’s states [21, 22, 23]. Multi-token prediction (MTP) trains these heads along with the model, in parallel [6] or as a chain [7, 24]. NextLat [25] regresses the model’s next top-layer state as an auxiliary loss that shapes the model and as a source of drafts. We instead pull the MTP state toward ht+k(1)h^{(1)}_{t+k}, the first-pass state that the second pass reads, and train only a map, so the stand-in can serve as feedback without changing the model (Section 2).
Pipelined inference. If each output needs several sequential steps using a same function module, the next output can start before the current one finishes and share its batched call. Looped Transformers pipeline across depth [26, 27, 28, 29, 30], and video diffusion pipelines across denoising steps [31, 32, 33]. Our pipelined correction shares a similar spirit. Each call corrects the positions that read stand-ins while verifying the next drafts, making the verification more accurate without extra calls.
6 Conclusions
Latent feedback breaks speculative decoding because a drafted position needs to read a state that is still being computed in its verification call. We remove this obstacle by training the stand-in to be read as feedback and by correcting the drafted positions while verifying the next drafts. This recovers most of the speedup that speculative decoding gives a Transformer, at a quality close to that of the feedback model.
Limitations
The Feedback Shortcut is still not exact. Closing the remaining gap needs a stand-in that adds less error while keeping the ceiling. We leave such stand-in and larger-scale experiments to future work.
References
[1] A. Fan, T. Lavril, E. Grave, A. Joulin, and S. Sukhbaatar (2020) Addressing some limitations of transformers with feedback memory. External Links: 2002.09402, Link Cited by: §1, §5.
[2] X. Wang, Z. Cai, Z. Zhan, H. Dong, Y. Fan, G. de Rosa, T. Pearce, and J. Langford (2026) Full-bandwidth transformer. External Links: 2608.08888, Link Cited by: §1, §1, §1, §5.
[3] ByteDance Seed (2026) Recycler: cost-free latent reasoning via hidden state recycling. Note: Preprint Cited by: §1, §5.
[4] Y. Leviathan, M. Kalman, and Y. Matias (2023) Fast inference from transformers via speculative decoding. In Proceedings of the 40th International Conference on Machine Learning, External Links: 2211.17192, Link Cited by: Appendix B, §1, §5.
[5] C. Chen, S. Borgeaud, G. Irving, J. Lespiau, L. Sifre, and J. Jumper (2023) Accelerating large language model decoding with speculative sampling. External Links: 2302.01318, Link Cited by: Appendix B, §1, §5.
[6] F. Gloeckle, B. Y. Idrissi, B. Rozière, D. Lopez-Paz, and G. Synnaeve (2024) Better & faster large language models via multi-token prediction. In Proceedings of the 41st International Conference on Machine Learning, ICML’24. Cited by: §2, §5.
[7] DeepSeek-AI (2024) DeepSeek-v3 technical report. External Links: 2412.19437, Link Cited by: §2, §5.
[8] R. Sadhukhan, J. Chen, Z. Chen, V. Tiwari, R. Lai, J. Shi, I. E. Yen, A. May, T. Chen, and B. Chen (2025) MagicDec: breaking the latency-throughput tradeoff for long context generation with speculative decoding. Note: arXiv:2408.11049 External Links: 2408.11049 Cited by: §3.
[9] Microsoft Azure (2026) GitHub Copilot coding agent traces 2026. Note: https://github.com/Azure/AzurePublicDataset/blob/master/GitHubCopilotCodingAgentDataset2026.md Cited by: §3.
[10] Team Olmo, A. Ettinger, A. Bertsch, B. Kuehl, D. Graham, et al. (2025) Olmo 3. External Links: 2512.13961, Link Cited by: §4.1, §4.1.
[11] I. Magnusson, A. Bhagia, V. Hofmann, L. Soldaini, A. H. Jha, O. Tafjord, D. Schwenk, E. P. Walsh, Y. Elazar, K. Lo, D. Groeneveld, I. Beltagy, H. Hajishirzi, N. A. Smith, K. Richardson, and J. Dodge (2023) Paloma: a benchmark for evaluating language model fit. External Links: 2312.10523, Link Cited by: §4.1.
[12] H. Xia, Z. Yang, Q. Dong, et al. (2024) Unlocking efficiency in large language model inference: a comprehensive survey of speculative decoding. In Findings of the Association for Computational Linguistics: ACL 2024, External Links: Link Cited by: Appendix A, §4.1.
[13] T. Abramovich, M. Ashkenazi, I. Putterman, et al. (2026) SPEED-Bench: a unified and diverse benchmark for speculative decoding. External Links: 2604.09557, Link Cited by: §4.1.
[14] S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. Weston, and Y. Tian (2024) Training large language models to reason in a continuous latent space. External Links: 2412.06769, Link Cited by: §5.
[15] B. Huang, C. Dwivedi, X. Ma, A. Moreno, and H. Liu (2026) Latent feedback is a compute and data amplifier. External Links: 2611.20404, Link Cited by: §5.
[16] M. Stern, N. Shazeer, and J. Uszkoreit (2018) Blockwise parallel decoding for deep autoregressive models. In Advances in Neural Information Processing Systems, Cited by: §5.
[17] X. Miao et al. (2024) SpecInfer: accelerating generative large language model serving with tree-based speculative inference and verification. External Links: 2305.09781, Link Cited by: §5.
[18] J. Zhang et al. (2023) Draft & verify: lossless large language model acceleration via self-speculative decoding. External Links: 2309.08168, Link Cited by: §5.
[19] M. Elhoushi et al. (2024) LayerSkip: enabling early exit inference and self-speculative decoding. External Links: 2404.16710, Link Cited by: §5.
[20] J. Chen, Y. Liang, and Z. Liu (2026) DFlash: block diffusion for flash speculative decoding. In International Conference on Machine Learning (ICML), External Links: Link Cited by: §5.
[21] T. Cai, Y. Li, Z. Geng, H. Peng, J. D. Lee, D. Chen, and T. Dao (2024) Medusa: simple LLM inference acceleration framework with multiple decoding heads. External Links: 2401.10774, Link Cited by: §5.
[22] Y. Li, F. Wei, C. Zhang, and H. Zhang (2024) EAGLE: speculative sampling requires rethinking feature uncertainty. External Links: 2401.15077, Link Cited by: §5.
[23] Y. Li, F. Wei, C. Zhang, and H. Zhang (2025) EAGLE-3: scaling up inference acceleration of large language models via training-time test. External Links: 2503.01840, Link Cited by: §5.
[24] J. Teoh (2026) Multi-token prediction done right. arXiv preprint arXiv:2610.38331. Cited by: §5.
[25] J. Teoh, M. Tomar, K. Ahn, E. S. Hu, T. Pearce, P. Sharma, A. Krishnamurthy, R. Islam, A. Lamb, and J. Langford (2025) Next-latent prediction transformers learn compact world models. arXiv preprint arXiv:2511.05963. Cited by: §5.
[26] J. Geiping, X. Yang, and G. Su (2025) Efficient parallel samplers for recurrent-depth models and their connection to diffusion language models. External Links: 2510.14961, Link Cited by: §5.
[27] S. Cho, L. Cui, S. Kim, D. Han, and I. Han (2026) LoopSpec: pipelined self-speculative decoding for looped transformers. External Links: 2609.17184, Link Cited by: §5.
[28] H. Ha and J. Kim (2026) WaveFront decoding: parallelized self-speculative decoding for looped language models. External Links: 2609.23033, Link Cited by: §5.
[29] Z. Liu, N. Xue, R. Bao, Y. Xu, X. Cao, J. Yao, and Z. Chen (2026) LoopAhead: speculating ahead for faster decoding in looped language models. External Links: 2610.21594, Link Cited by: §5.
[30] B. Huang, C. Shi, J. Chen, S. Wen, Z. Liu, E. Xing, and X. Ma (2026) Towards looped models done right, part ii: rethinking at fixed points. arXiv preprint arXiv:2610.06833. Cited by: §5.
[31] J. Kim, J. Kang, J. Choi, and B. Han (2024) FIFO-diffusion: generating infinite videos from text without training. External Links: 2405.11473, Link Cited by: §5.
[32] D. Ruhe, J. Heek, T. Salimans, and E. Hoogeboom (2024) Rolling diffusion models. External Links: 2402.09470, Link Cited by: §5.
[33] B. Chen, D. M. Monsó, Y. Du, M. Simchowitz, R. Tedrake, and V. Sitzmann (2024) Diffusion forcing: next-token prediction meets full-sequence diffusion. External Links: 2407.01392, Link Cited by: §5.
[34] B. Zhang and R. Sennrich (2019) Root mean square layer normalization. In Advances in Neural Information Processing Systems, Cited by: Appendix A.
[35] J. Su, Y. Lu, S. Pan, A. Murtadha, B. Wen, and Y. Liu (2021) RoFormer: enhanced transformer with rotary position embedding. Note: arXiv:2104.09864 External Links: 2104.09864 Cited by: Appendix A.
[36] A. Henry, P. R. Dachapally, S. S. Pawar, and Y. Chen (2020) Query-key normalization for transformers. In Findings of the Association for Computational Linguistics: EMNLP 2020, Cited by: Appendix A.
[37] N. Shazeer (2020) GLU variants improve transformer. Note: arXiv:2002.05202 External Links: 2002.05202 Cited by: Appendix A.
[38] DeepSeek-AI (2026) DeepSeek-v4: towards highly efficient million-token context intelligence. External Links: 2606.19348, Link Cited by: Appendix A.
[39] Z. Li, L. Liu, C. Liang, W. Chen, and T. Zhao (2025) NorMuon: making Muon more efficient and scalable. Note: arXiv:2510.05491 External Links: 2510.05491 Cited by: Appendix A.
[40] I. Loshchilov and F. Hutter (2019) Decoupled weight decay regularization. In International Conference on Learning Representations, Cited by: Appendix A.
[41] A. Hägele, E. Bakouch, A. Kosson, L. Ben Allal, L. Von Werra, and M. Jaggi (2024) Scaling laws and compute-optimal training beyond fixed training durations. Note: arXiv:2405.18392 External Links: 2405.18392 Cited by: Appendix A.
[42] H. Touvron et al. (2023) Llama 2: open foundation and fine-tuned chat models. External Links: 2307.09288, Link Cited by: Appendix A.
Appendix A Training and evaluation details
Models. We use 135M models with 12 blocks of 768 width each and 780M models with 24 blocks of 1536 width each. The backbone is a pre-norm decoder with RMSNorm [34], rotary positions [35], QK-norm [36] and SwiGLU [37] with untied embeddings. Feedback is fed into the first block of the decoder using the linear fusion WW of Eq. 1. One training pass is run with probability 0.31 and two with probability 0.69. For updates with two training passes, the first pass is run without gradient and the losses are computed in the second pass. The MTP heads are trained with loss weight 0.3 throughout training, as in DeepSeek-V4 [38].
Training. For training the matrices, we use NorMuon [39]. For the embeddings and the output head, we use AdamW [40]. We use a learning rate that increases during the first 1% of the updates and then decays linearly to zero during the last 20% of the updates [41]. Every setting uses the learning rate and weight decay that perform best for the Transformer on a grid of one-epoch runs for each model size. These values are also the best for latent feedback at 780M, and at 135M they are 0.0025 nats per token worse on the validation set than latent feedback’s best. Each update processes 256 sequences of 2,048 tokens. The data is a single shuffled stream of the 150B-token Dolma 3 mix, tokenized with the Llama 2 tokenizer [42].
Stand-ins. State alignment’s map PP has 3.7M parameters at 135M and 14.9M at 780M, with hidden width 2,048 and 4,096; its RMSNorm has no learned scale. Each training window of in-place substitution extends past each of its positions with probability 0.75.
Quality. We score each Paloma document on its own for exact BPB, as Paloma scores documents. We measure the one-call error ϵa1\epsilon^{1}_{a} teacher-forced on windows of the concatenated documents, with all earlier windows being corrected, so that only the current window reads stand-ins. Downstream answers are scored as OLMES scores answers, after the document-start token the models were trained with.
Served quality. To measure the quality of what is served by speculative decoding, the decoding loop is run on a fixed text. For each call of the loop, KK tokens are generated with the MTP heads and the pending positions are verified under pipelined correction with DD corrections. Each committed token is equal to the corresponding token in the fixed text, and a draft is kept only while it is equal to the fixed text. Each token is scored by the distribution of its predecessor in the call that committed it. On Paloma, the loop is run on the windows of the one-call error after prefilling each window’s first 33 tokens, and Figure 5 adds the difference between served and exact BPB measured there to the exact BPB of the whole documents. For the downstream suites, the context is prefilled and the answer is decoded with the same loop, which measures the served BPB directly.
Algorithm 1 Greedy decoding with Feedback Shortcut. 𝒲\mathcal{W} holds the pending positions, cc is the last position whose state is final, and yj=argmaxvp(v∣hj)y_{j}=\arg\max_{v}p(v\mid h_{j}).
1: Prefill x1:cx_{1:c} and commit xc+1x_{c+1}; dc←∞d_{c}\leftarrow\infty, 𝒲←∅\mathcal{W}\leftarrow\emptyset
2: repeat
3: s←max(𝒲∪{c})s\leftarrow\max(\mathcal{W}\cup\{c\})
4: x^s+1←ys\hat{x}_{s+1}\leftarrow y_{s}; draft x^s+2:s+1+K\hat{x}_{s+2:s+1+K} and as+1:s+Ka_{s+1:s+K} from hsh_{s} ⊳\triangleright MTP chain
5: 𝒲←𝒲∪{s+1,…,s+1+K}\mathcal{W}\leftarrow\mathcal{W}\cup\{s{+}1,\dots,s{+}1{+}K\}
6: dj←0d_{j}\leftarrow 0 if j>s+1j>s{+}1, else dj−1+1d_{j-1}+1, for all j∈𝒲j\in\mathcal{W} ⊳\triangleright Eq. 7
7: Compute hjh_{j} and yjy_{j} for all j∈𝒲j\in\mathcal{W} in one call ⊳\triangleright Eq. 3 if dj=0d_{j}=0, else Eq. 6
8: while c+1∈𝒲c{+}1\in\mathcal{W} and dc+1≥Dd_{c+1}\geq D and x^c+1=xc+1\hat{x}_{c+1}=x_{c+1} do
9: xc+2←yc+1x_{c+2}\leftarrow y_{c+1}; c←c+1c\leftarrow c{+}1 ⊳\triangleright commit
10: end while
11: 𝒲←{j∈𝒲:j>c,x^i=yi−1 for all cc,\ \hat{x}_{i}=y_{i-1}\text{ for all }c<i\leq j\} ⊳\triangleright reject
12: until xc+1x_{c+1} is the end token
Decoding and timing. All evaluations, including timings, are performed in float16, following Spec-Bench [12]. The models are trained in bfloat16 mixed precision, but the largest activations are at least 7×7\times smaller than the largest value in float16, and the finer rounding of float16 keeps greedy text closer to float32 decoding than bfloat16 mixed precision. Prefill runs 4 parallel passes of Eq. 2 over the prompt, and exact decoding uses the same prefill. Each answer is decoded to at most 256 new tokens. The single-request timings of Appendix B synchronize the GPU at the boundaries of each request, include prefill and the CPU’s bookkeeping, and count the tokens of both decoders as they are emitted.
Batched engine. To obtain the speeds reported in Section 4, we implemented a batched engine on a single GPU. It takes as input the first turns of Spec-Bench’s 480 questions as well as the 435 SPEED-Bench prompts not contained in Spec-Bench, which are randomly ordered and cycled into a queue of size max(300,8B)\max(300,8B) requests. The engine then serves this queue of requests from BB slots using continuous batching. Each request is stopped at the end token or after 256 new tokens, and its slot then prefills the next prompt in the queue between calls. Each call then packs the pending positions of all slots, so each request computes only its own pending positions and drafts, and exact decoding is also run in the same engine. Throughput is the number of committed tokens per second, over the calls in which all BB slots are busy with requests from the queue. Each call is timed from the upload of its rows to the GPU until its summary is returned to the CPU, so prefill and the CPU’s bookkeeping between calls are not timed.
Appendix B Single-request timing and long generations
Table 3 shows the decoding of 480 Spec-Bench questions, processed request by request (greedily and with sampling) and also reports the number of tokens committed per call, together with ρ\rho behind the costs of correction (see Section 4.3). Table 4 shows generations of 1,024 tokens.
Table 3: Single-request decoding of Spec-Bench, timed as in Appendix A. The bottom two blocks are greedy. For state alignment, in-place substitution and the Transformer, every Spec-Bench task lies within 0.15×0.15\times of the greedy speedup over all questions at D=1D=1. The Transformer verifies exactly and needs no correction, and the 780M MTP state shows ranges because two of its three seeds fail as stand-ins.
135M 780M
Setting D=0D{=}0 D=1D{=}1 D=2D{=}2 D=3D{=}3 D=0D{=}0 D=1D{=}1 D=2D{=}2 D=3D{=}3
Speedup, greedy ↑\uparrow
Transformer 2.34±0.05×2.34{\scriptstyle\pm 0.05}\times 2.69±0.01×2.69{\scriptstyle\pm 0.01}\times
zeros 2.26±0.03×2.26{\scriptstyle\pm 0.03}\times 2.07±0.08×2.07{\scriptstyle\pm 0.08}\times 1.99±0.04×1.99{\scriptstyle\pm 0.04}\times 1.93±0.08×1.93{\scriptstyle\pm 0.08}\times 2.51±0.11×2.51{\scriptstyle\pm 0.11}\times 2.29±0.03×2.29{\scriptstyle\pm 0.03}\times 2.22±0.11×2.22{\scriptstyle\pm 0.11}\times 2.15±0.08×2.15{\scriptstyle\pm 0.08}\times
MTP state 2.25±0.04×2.25{\scriptstyle\pm 0.04}\times 2.08±0.04×2.08{\scriptstyle\pm 0.04}\times 2.01±0.01×2.01{\scriptstyle\pm 0.01}\times 1.96±0.04×1.96{\scriptstyle\pm 0.04}\times 1.911.91–2.60×2.60\times 1.021.02–2.39×2.39\times 0.940.94–2.31×2.31\times 0.930.93–2.22×2.22\times
state alignment 2.19±0.06×2.19{\scriptstyle\pm 0.06}\times 2.05±0.06×2.05{\scriptstyle\pm 0.06}\times 2.03±0.02×2.03{\scriptstyle\pm 0.02}\times 1.95±0.07×1.95{\scriptstyle\pm 0.07}\times 2.58±0.02×2.58{\scriptstyle\pm 0.02}\times 2.45±0.02×2.45{\scriptstyle\pm 0.02}\times 2.36±0.01×2.36{\scriptstyle\pm 0.01}\times 2.30±0.03×2.30{\scriptstyle\pm 0.03}\times
in-place 2.21±0.04×2.21{\scriptstyle\pm 0.04}\times 2.11±0.03×2.11{\scriptstyle\pm 0.03}\times 2.02±0.04×2.02{\scriptstyle\pm 0.04}\times