← All tools
EDTOOLKITS GUIDES

Residual Stream: Compare Adding an Update with Replacing State

By Team Edtoolkits · AI learning

Ablate hand-built layers and trace changes through a six-number residual stream.

Use the guide alongside the working tool.

Open The Residual Stream: A River Layers Add To →

Explore the lesson

Watch layers drop their results into the stream.

Switch layers off one at a time.

Compare the stream with a network that replaces everything.

A comparison to try

Choose one token and compare replacement with residual addition, keeping the layer settings fixed. Disable a layer and inspect the final vector, then compare the remove-each-layer results.

Read the result

Residual addition carries the previous state forward alongside an update. A layer that changes the final numbers strongly is influential in this particular toy computation; the effect depends on the other enabled layers.

A mistake to avoid

The six dimensions and layer recipes are invented and directly readable. Real representations distribute information across many coordinates, so an ablation or prominent dimension alone does not establish a human concept or a complete causal explanation.

Teaching model and privacy

Six tiny layers with weights made by a fixed recipe, working on six numbers per token. A simplified teaching version, not a real trained model. Nothing leaves your browser.

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE