Attention Latent Feedback and downstream accuracy.(a) Each sublayer uses attention (orange) to weight previous-position outputs from its own depth upward and mix them with the current stream, while the projected top state enters the embedding sum. (b) Domain-balanced accuracy on seventeen tasks for MoE-4.0B on a zoomed axis, comparing ALF with the
Full-bandwidth Transformer (FBT). TL;DR
When a language model decodes token $t$, every layer of token $t-1$ has already finished. Self-attention still connects positions only at the same depth, so a shallow layer of the new token never sees the deeper states of the previous one. Attention Latent Feedback (ALF) lets every sublayer attend to the outputs of the previous token from its own depth upward and mix them into its input. It trains in two parallel passes, decodes in one pass per token, and lowers held-out loss at every scale we train, ahead of feeding back only the final state.
0.022–0.024nats lower held-out loss than the standard residual
45.1→47.0domain-balanced accuracy (%) over 17 tasks, MoE-4.0B 1.38×baseline tokens needed to match its loss
~1.1%extra decoding FLOPs per token
Abstract
During autoregressive decoding, the deeper representations of the previous token have already been computed, yet shallow layers at the current token cannot read them directly because standard self-attention connects positions only at the same depth. We introduce Attention Latent Feedback (ALF), an architecture that allows every sublayer to attend to the outputs of the deeper layers at the previous position. Training unrolls this cross-position recurrence into two parallel passes, whereas decoding remains single-pass using cached previous-token states. Across mixture-of-experts models with up to 4.0B parameters, ALF lowers held-out loss by 0.022–0.024 nats over the standard residual with about 1.1% decoding FLOP overhead, and consistently outperforms prior final-state feedback across all three scales on both standard and attention residual backbones. On MoE-1.6B, ALF matches a 1.38× larger baseline token budget, and on MoE-4.0B it lifts average accuracy across seventeen downstream benchmarks from 45.1% to 47.0%. Analysis further reveals that intermediate and nearby deeper layers drive most of this benefit, allowing a fixed nearest-window variant to retain 89%–94% of the gain at linear read cost while learned attention widens its margin with scale.
Why read more than the final state
Earlier latent feedback hands the next token a single vector: the final state. That state is trained to produce the next-token prediction, and the next position already receives that token as an embedding, so it can expose little of the computation underneath.
To test this, we swept the source block of an additive input feedback path on MoE-1.6B and MoE-2.6B, holding the backbone, parameter count, FLOPs, checkpoint and data order fixed. In both models the best source is a deep intermediate block, block 7 of 8 and block 8 of 10, which lowers held-out loss by 0.0044 and 0.0041 nats relative to the final block. The shallowest sources are far worse, 0.0125 and 0.0067 nats above it.
Intermediate layers therefore carry signal that final-state feedback leaves unused, and the useful depth shifts with the model. ALF removes the need to pick one source at all: every sublayer attends over the whole depth of the previous token and weights it per token and per depth, so the useful layers are discovered during training rather
than chosen in advance (Finding 4). Blog post: Don't feed back the last block, with the full sweep, the per-domain breakdown and what the depth trend looks like across sizes.
The final block is not the best feedback source. Held-out loss at the third evaluation pass, relative to reading the final block, as one block's state is projected and added to the next token's input. Each point is one run.
Where the residual stream flows
Watch one decoding step of a small three-block model. Compare no feedback, the Full-bandwidth Transformer (FBT), which feeds back only the final state, and ALF, on a standard residual stream or on Attention Residuals, where the current stream is itself an attention over depth.
Backbone
Standard residualAttention residual
Feedback
None+ FBT+ ALF
Replay
Swipe the diagram sideways to see both positions.
Token t − 1
current stream (residual)$\alpha$: attention residual over the token's own outputsfeedback from token $t-1$mixture at share $\rho$self-attention, same depth only
Schematic of decoding with cached states of token $t-1$. Line widths of the feedback sketch the learned pattern
of the depth weights, which concentrate on each sublayer's own depth and the few just above it (Finding 4); the widths of the $\alpha$ arcs are illustrative as well.
How ALF works
Each sublayer $l$ draws on two streams. The current stream $x_{t,l}$ is the input that the backbone already gives it, and the sublayer feedback carries the outputs of
position $t-1$ at depths $i\ge l$, which position $t$ has not computed yet.
The mixed input $h_{t,l}$ replaces $x_{t,l}$ as the input of sublayer $l$. The second equation adds the projected final state of token $t-1$ to the token embedding.
Sublayer feedback
Attention over depth
Every output $v_{t-1,i}$ of the previous position passes once through a low-rank map $M_i=I+U_iD_i$ of rank 64. A learned query per sublayer scores the mapped outputs with a softmax over depth ($\beta$), and a learned share $\rho_l$ mixes the result into the current stream.
Input injection
The final state, at the embedding
Following Recycler, a learned projection $W_E$ of the previous final state $z_{t-1}$ is added to the token embedding. It carries the accumulated representation that produced the previous prediction, which the individual sublayer outputs do not.
Training and decoding
Two passes in training, one in decoding
Training runs a plain pass and then a feedback pass that reads the first pass shifted by one position, both in parallel over the sequence, during the last 25% of steps. Decoding caches the $2L$ sublayer outputs and the top-layer state of the previous token, so each new token takes a single pass.
From final-state feedback to attention over depth.(a) FBT feeds the final state of position $t-1$ back into the input of position $t$ through a gate $g$.
(b) In ALF, every sublayer at position $t$ attends over the mapped outputs of position $t-1$ from its own
depth upward (orange) and mixes them with the current stream (blue), while the input injection adds the projected final state to the embedding. Training in two parallel passes, decoding in one pass per token.(a) Pass 1 is the plain backbone; pass 2 reads its outputs one position back, and both losses train the model. (b) During decoding, the previous token's states are already cached, so the feedback is exact.
Five findings
Mixture-of-experts models at three scales (MoE-1.6B, MoE-2.6B and MoE-4.0B) trained under the Marin recipe. FBT and ALF branch from the same checkpoint at 75% of training and see the same data with the same two-pass schedule, with FBT running the recipe that gives it its stronger held-out loss.
Finding 1
ALF lowers loss at every scale and stays ahead of final-state feedback
On the standard residual, ALF lowers held-out loss by 0.024 nats on MoE-1.6B, and the gain holds at 0.023 and 0.022 nats on the two larger models. FBT also improves on the backbone, yet ALF stays at least 0.008 nats below it at every scale, and on MoE-1.6B it leads FBT in all six validation domains, from code and mathematics to web text.
The loss gains carry over to downstream tasks. On MoE-4.0B, ALF raises the domain-balanced accuracy over seventeen tasks from 45.1% to 47.0%, with the largest gains over the backbone in mathematics and reading comprehension. It also leads FBT in all four domains, by the widest margins in reading comprehension and commonsense reasoning.
Accuracy gain over the standard residual+ FBT+ ALF
Knowledge
+0.6
+0.8
Reading comprehension
+1.5
+2.6
Commonsense
+0.1
+1.1
Mathematics
+2.6
+3.1
All domains
+1.2
+1.9
MoE-4.0B, accuracy points over the standard residual (45.1% on average).
Model
MoE-1.6B
MoE-2.6B
MoE-4.0B
Standard residual
Backbone
2.0577
1.9400
1.8456
- FBT
2.0447
1.9261
1.8322
- ALF
2.0333
1.9170
1.8238
Attention residual
Backbone
2.0424
1.9244
1.8312
- FBT
2.0336
1.9144
1.8227
- ALF
2.0193
1.9020
1.8097
Held-out loss in nats per token, averaged over six Dolma 3 domains at the final checkpoint, with three parallel evaluation passes for FBT and ALF. Finding 2
The gain carries over to attention residuals, and the sublayer feedback does most of the work
Attention Residuals (AttnRes) already let each layer weight the earlier layers of its own position. ALF still lowers their loss by margins close to those on the standard residual and widens its lead over FBT to at least 0.012 nats. On MoE-4.0B, it raises AttnRes's downstream accuracy by 1.7 points.
Testing each path alone on MoE-1.6B explains why. The sublayer feedback gives nearly the same gain on both backbones and keeps 96% of ALF's gain on AttnRes, whereas the input injection alone keeps 49% there. Once a backbone links every layer to its token input, reads at every sublayer carry almost all of the remaining benefit.
MoE-1.6B, loss gain
Standard
Attention res.
- Injection
0.0189
0.0113
- Sublayer feedback
0.0224
0.0222
- ALF (both) 0.0244
0.0231
Reduction in held-out loss (nats) over each backbone when only one path is trained, and with both.
ALF complements attention residuals on MoE-4.0B.(a) Average accuracy against reference-answer perplexity for both backbones. (b) Accuracy gain over the attention residual in each domain. Finding 3
At a fixed model size, ALF reaches the same loss with fewer tokens and less compute
We trained the standard residual on MoE-1.6B at several token budgets and fitted a power law to its loss. To match ALF, it needs 1.38× as many training tokens, so ALF saves 27% of the data. The second training pass over the last quarter raises ALF's training FLOPs to 1.25× the backbone, which the token savings more than cover: at equal loss, ALF still needs 1.10× less compute.
Across the three sizes, FBT needs 1.07× the training FLOPs of ALF to reach each ALF model's loss. When model size and unique tokens can both grow freely, spending the extra 25% on a larger single-pass backbone is comparably efficient, so ALF pays off most where training tokens or model size are the binding constraint. At decoding time its extra forward FLOPs are small, while reading the cached outputs at every sublayer raises per-token memory traffic over final-state feedback, which is the main deployment tradeoff.
MoE-1.6B, matched loss
Baseline tokens1.38×
ALF tokens1×
Baseline compute1.38×
ALF compute1.25×
In units of ALF's token budget and of the backbone's compute on it. ALF's second pass costs 1.25×, and 1.38 / 1.25 ≈ 1.10.
Token efficiency on MoE-1.6B. The standard residual needs 1.38× the tokens to reach ALF's loss, against 1.18× for FBT.Compute against FBT across scales. Loss against total training FLOPs, including each method's two-pass overhead.
Finding 4
Sublayers read the nearby deeper layers of the previous token
The learned depth weights form the same narrow diagonal band at all three sizes: most of the weight falls on a sublayer's own depth and the next three deeper sublayers of the previous position. On MoE-4.0B, readers in the lower half put 31% of their weight on the two nearest eligible outputs, where a uniform read would put 11%. Interventions on the trained model agree. Keeping only the most useful middle block retains 40% of the sublayer feedback's contribution, while the top quarter of blocks together retains 21%. Intermediate layers of the previous token carry the strongest signal, and the final state alone leaves it out.
What the sublayer feedback reads. Learned attention maps over depth at the final checkpoints of the three models on the standard residual. Each column gives one sublayer's mean weights over the outputs of the previous position, and hatching marks sources outside its range. The dashed diagonal marks the lower boundary of each sublayer's current and next three deeper sublayers, where most of the weight concentrates.
Why read more than the final state asks the matching question for a single injected vector: which one block to read when only one is read. Both point at intermediate depths.
Finding 5
A fixed window of four nearby outputs keeps most of the gain at linear read cost
The diagonal band suggests a cheaper variant. We replace the softmax over depth with an equal-weight average of each sublayer's own output and the next three deeper ones, keeping the maps, shares and input injection. This removes every depth query and cuts the cross-layer reads per token from quadratic to linear in depth.
The fixed window keeps 89% to 94% of ALF's loss reduction over the standard residual and stays ahead of FBT at every scale. Its gap to learned attention grows with depth, from 0.0013 nats on MoE-1.6B to 0.0024 nats on MoE-4.0B, so learned attention earns a growing share of the gain as models deepen.
Fixed nearest-four window
MoE-1.6B94%
MoE-2.6B92%
MoE-4.0B89%
Share of ALF's loss reduction kept. The window cuts cross-layer reads by 57%, 65% and 70% at the three sizes.