Residual and MLP Writes Change the Running Record
Trace attention and MLP additions to the residual stream and compare their norms without confusing magnitude with direction, output alignment, or causal importance. Separate MLP hidden activations from their writes.
Each pre-normalized decoder block adds two writes to the residual stream:
where is the attention write and is the MLP write. Recording all three vectors shows what changed at a position without pretending that the residual stream performs a separate hidden operation.
Compare Magnitudes at the Final Position
For the clean prompt:
| Layer | before | |||
|---|---|---|---|---|
| 1 | 2.5121 | 0.2425 | 0.9511 | 2.1260 |
| 2 | 2.1260 | 1.5302 | 0.4572 | 1.5367 |
Layer 2's attention write has a larger norm than its MLP write. This does not prove that attention is more important. Norm measures magnitude, not direction, alignment with the output readout, redundancy with another component, or effect under intervention.
Vector Addition Can Reduce a Norm
The final residual norm after layer 2 is smaller than the incoming norm even though nonzero vectors were added. If an update points partly against the current residual, cancellation reduces the resulting magnitude.
For example:
so
The component norms alone cannot reconstruct this direction.
MLP Activations Are Not MLP Writes
For one position, the first MLP layer creates eight preactivations, ReLU keeps positive entries, and the second linear layer maps them back to four residual features:
A large hidden activation may have a small, opposing, or shared output effect depending on its column in and the other active units.
Q1. Interpret a component norm
Layer 2 has attention-write norm 1.5302 and MLP-write norm 0.4572. What may you conclude without another test?
Select one choice, then check.
Hint
Solution
The Residual Stream Is a Useful Accounting Interface
Elhage et al. (2021) develop the view that Transformer components read from and write to a shared residual stream. Their circuit framework is valuable vocabulary for additive paths and head composition, but its attention-only simplifications and research status must remain visible when applying it to this decoder with MLPs and normalization.