ALF reads prior-token deep states for 1.1% extra FLOPs; MoE-4B accuracy moves 45.1% to 47.0%

Attention Latent Feedback

Xuyuan Xiong, Siyu Chen, Mengzhao Chen, Yue Su, Zhuoran Yang, Ping Luo, Xihui Liu

cs.LG

2026-11-24

ALF lets each sublayer read the prior token's deeper states. On MoEs to 4.0B, loss falls 0.022-0.024 nats at ~1.1% more decode FLOPs; 17-task accuracy goes from 45.1% to 47.0%.

What problem this solves

When decoding reaches the current token, every layer at the previous position has already finished. Standard causal self-attention links positions only at the same depth, so a shallow sublayer sees the new token's embedding and none of the previous token's deeper states.

The Full-bandwidth Transformer (FBT) gates that previous final state into the next token input. Recycler adds a projection of the same state to the embedding. Both pass a single vector, and only into the input. The final state is trained to predict the next token, which the next position receives as an embedding, so intermediate computation goes unused.

On MoE-1.6B and MoE-2.6B, with backbone, FLOPs, checkpoint, and data order fixed, the best single source for additive input feedback is block 7 of 8 and block 8 of 10. Those beat the final block by 4.4×10^-3 and 4.1×10^-3 nats. Each point is one run. One vector also cannot weight depths separately, and later sublayers never see deeper outputs from the previous position.

Method

Attention Latent Feedback (ALF) keeps each attention and feed-forward sublayer's input from shallower layers at the current position, and also lets it read previous-position outputs at its own depth and above. Shallower previous outputs are skipped, because causal attention below already reaches them. The extra signal is deeper computation that standard attention never shows to shallow layers.

The sublayer input interpolates the current stream and the feedback stream. The mix ρl is learned per sublayer and starts at 0.01. Each previous output passes once through Mi = I + UiDi at rank 64: the identity keeps the original vector, the low-rank term edits a subspace. The maps add under 1% to a forward pass, and each source is mapped once. A query softmaxes over eligible depths. Keys and values are that same mapped vector. The query is shared across positions; the weights still follow the content.

On a standard residual the current stream sums lower outputs, so its scale grows with depth, while a softmax mixture stays roughly flat. Adding them raw washes feedback out in deeper sublayers. A root-mean-square rescale matches the feedback stream to the current stream, so ρl means the same thing at every depth. Attention Residuals (AttnRes) already weight shallower outputs inside the current position, and that stream is a depth average, so the scale factor is 1.

A Recycler-style path still injects the previous final state: parameter-free RMSNorm, then a matrix WE added to the token embedding. WE starts at zero. That path carries the accumulated state that produces the logits. The last feed-forward output stays a separate source for sublayer feedback.

The first 75% of steps train a plain single-pass backbone. The last 25% run two Jacobi passes. Pass 1 turns feedback off. Pass 2 reads, in parallel across the sequence, the states pass 1 wrote at the previous position, so training does not walk tokens one by one. Both passes backpropagate, and the feedback states are not detached. The loss is pass 1 plus the mean of the feedback passes. A third training pass improves loss by only 0.0010 nats. At decode time the previous token's 2L sublayer outputs and top state are cached, so each new token is one exact pass. On MoE-1.6B the extra decode FLOPs are about 1.1%.

Results

Three MoEs follow the Marin recipe on cleaned Dolma 3: 1.59B, 2.60B, and 3.98B total parameters, 61M, 102M, and 162M active, routing each token to 8 of 384 experts plus 2 shared experts, on 47.9B, 80.7B, and 128.1B tokens. FBT and ALF branch from the 75% checkpoint and take two passes on the final quarter. The FBT control drops prefix mixin, the setting with the lower held-out loss. Loss is the mean nat per token over six domains, from three parallel teacher-forced passes, read on the last pass. Further passes keep lowering ALF and raising FBT, so this score is conservative for ALF.

ModelStandard residual+FBT+ALF
MoE-1.6B2.05772.04472.0333
MoE-2.6B1.94001.92611.9170
MoE-4.0B1.84561.83221.8238

Against the standard residual, ALF drops 0.0244, 0.0230, and 0.0218 nats, and beats FBT by at least 0.008 nats at every scale. On MoE-1.6B it leads FBT in all six domains. On AttnRes, MoE-1.6B moves from 2.0424 to 2.0193 and MoE-4.0B from 1.8312 to 1.8097, at least 0.012 nats ahead of FBT.

Seventeen tasks on MoE-4.0B, domains weighted equally:

MethodAccuracyAnswer perplexity
Standard residual45.1%6.24
+FBT46.3%6.05
+ALF47.0%5.97

Accuracy moves from 36.4 to 37.2 on knowledge, 38.1 to 40.7 on reading, 67.6 to 68.7 on commonsense, and 38.2 to 41.3 on math. That is 0.7 points over FBT. On AttnRes, ALF adds 1.7 accuracy points and cuts reference-answer loss by 0.055 nats.

On MoE-1.6B, sublayer feedback alone drops 0.0224 nats on the standard residual and 0.0222 on AttnRes, 96% of ALF's AttnRes gain. Input injection alone drops 0.0113 nats on AttnRes, 49% of that gain.

At fixed MoE-1.6B size, the standard residual needs 1.38× the tokens to match ALF trained on about 48B tokens, a 27% token cut. The extra pass on the final quarter puts training FLOPs at 1.253× the backbone, and the iso-loss compute ratio is about 1.10× in ALF's favor. If width and tokens can both grow, spending the extra 25% FLOPs on a larger single-pass model matches ALF. Across scales, FBT needs 1.07× ALF's training FLOPs to reach the same loss.

Learned depth weights sit on a diagonal: mostly the previous position's own sublayer and the next three. Those four sources hold 73%, 68%, and 64% of the mass. An equal average over those four cuts reads from quadratic to linear in depth, 57%–70% fewer cross-layer reads, and keeps 89%–94% of ALF's loss cut versus the backbone. Loss stays below FBT at all three scales. The gap versus full ALF grows from 0.0013 nats at 1.6B to 0.0024 at 4.0B. Downstream accuracy relative to ALF moves from +0.11 points to −0.23.

Why it matters

Decoding stays one pass per token. About 1.1% extra decode FLOPs buy 1.38× token efficiency when model size is fixed. The loss drop is similar on the standard residual and on AttnRes, so the gain is the cross-position, per-sublayer read.

From 8 blocks to 12, the fixed four-output window falls further behind learned attention, from 0.0013 nats to 0.0024. Deeper stacks are where the softmax earns its keep.

When model size and data scale together, the same extra FLOPs spent on a larger single-pass backbone tie ALF. It stretches a fixed width. It does not replace scaling the model.

Limitations

Decoding caches the previous token's 2L sublayer outputs. That storage is small next to the KV cache, but every sublayer reads it, so memory traffic exceeds final-state feedback. Speculative decoding exists for final-state feedback; covering per-sublayer reads is open. Injecting one intermediate block as a single vector is untested at larger scale, on AttnRes, and with a plain prefill. The runs stop at a 4.0B base MoE and 128B tokens, on short-answer and multiple-choice items, with limited seeds. No post-training and no long-form generation.

Reported loss and accuracy come from three teacher-forced passes. After pass 2, ALF falls another 0.0014 nats and FBT rises 0.0012. That is still not the single-pass decode curve. On a 1,024-token prompt, plain prefill plus feedback on the continuation costs ALF 0.0031 nats against feedback through the prompt, and costs FBT 0.0099. With feedback off at evaluation, neither feedback checkpoint beats the plain backbone.

The 1.10× compute edge is a power-law fit, and it holds only at fixed size. The largest active count is 162M, with no dense model. The seventeen-task average moves 1.9 points, and knowledge only from 36.4 to 37.2.

Terms

Source

What people are saying

Related papers

All paper explainers