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.
Ready to apply this workflow?
Try The Residual Stream: A River Layers Add To →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.