Lab Coverage Map
Walk through each lesson
Predict what will change, try the interaction, and explain the result using the formula beside the lab. The following walkthroughs cover the 36 published lessons.
| Lesson | Exercise |
|---|---|
| 1.1 Trace a robot tensor | Switch only the time index, then switch the joint. Describe what each change selects. |
| 1.2 Track a reshape | Pick the same logical position in two layouts. Read both indices. |
| 1.3 Trace a broadcast operand | Change the trajectory, time and feature of the selected output. Watch which changes select a different bias. |
| 1.4 Build an affine output | Add the scaled columns one by one, then add the bias. |
| 1.5 Compare signed and squared error | Explain why opposite errors can cancel in the signed mean while the MSE remains positive. |
| 1.6 Trace a VJP | Select one input coordinate and follow the signed contributions from all outputs. |
| 1.7 Inspect the gradient buffer | Replay with and without clearing. Compare the final leaf gradient. |
| 1.8 Follow a rollout | At the same frame, switch the model’s input between its prediction and the true state. |
| 2.1 Read cross-entropy | Keep the logits fixed and change the target. Identify which probability the loss reads. |
| 2.2 Trace momentum | Start with β = 0, then increase β and compare the parameter paths. |
| 2.3 See gradient clipping | Change the third component and observe how both plotted components are rescaled. |
| 2.4 Check split overlap | Pick a timestep near a boundary and inspect the raw records shared by its windows. |
| 2.5 Condition on an alarm | Compare the two alarm areas in the population before normalizing them. |
| 3.1 Find the principal axis | Sweep the trial axis and compare the residual lengths with the fitted axis. |
| 3.2 Trace convolution taps | Change stride and dilation separately, then predict the next window’s sampled coordinates. |
| 3.3 Check a segmentation metric | Predict only background and compare pixel accuracy with foreground overlap. |
| 3.4 Inspect a hard negative | Move a negative closer than the positive and lower the temperature. Watch both probability bars. |
| 4.1 Recurrent Neural Networks | Trace how each time step contributes to one shared weight. |
| 4.2 Attention Mechanisms | Follow a query from scaled scores through normalized weights to its value mixture. |
| 4.3 Transformer Architecture | Split the model width into heads and follow their outputs back to the residual stream. |
| 4.4 Autoregressive Language Modeling | Watch top-k and top-p change the sampling distribution, then compare with sequential generation. |
| 4.5 Vision Transformer | Select a patch in the image and follow its pixels into the patch matrix. |
| 4.6 Graph Neural Networks | Follow one message from its source through aggregation to the receiving node update. |
| 4.7 State Space Sequence Models | Compare the recurrence with the lag-by-lag convolution on the same input. |
| 5.1 Variational Autoencoders | Hold a noise draw fixed and see how the mean and scale move the latent sample. |
| 5.2 GANs & Normalizing Flows | Deform a grid cell and compare its area before and after varying scale and shear. |
| 5.3 Denoising Diffusion Probabilistic Models | Follow the signal and noise terms at each time and compare the last frame with the original sample. |
| 5.4 Score-based Generative Models | Compare deterministic trajectories and stochastic paths starting from matched draws. |
| 5.5 Flow Matching | Select a space-time point and inspect how component responsibilities weight its velocity. |
| 5.6 Conditional Generation & Guidance | Adjust guidance at the same noise state and compare the conditional and unconditional predictions. |
| 6.1 Large Language Models and Model Adaptation | Step through the low-rank factors, then compare the merged and unmerged outputs. |
| 6.2 Vision-Language Models | Select a prefix or suffix query and see which visual and language tokens are visible. |
| 6.3 Imitation Learning | Follow the learner into new states and inspect the expert labels the collector adds. |
| 6.4 Diffusion Policy | Vary the executed prefix and compare rollout trajectories and replanning counts. |
| 6.5 Vision-Language-Action Models | Follow the reverse generation clock as each Euler update changes the action chunk. |
| 6.6 World Models | Compare predicted candidate costs with the consequences of the executed action. |
Chapter 1 component inventory
Lessons 1.1–1.8 were ported from standalone HTML pages into MDX. Every interactive
visual on this site is a React component from src/components/nn/; the notes contain
no page-local scripts or hand-written HTML canvases.
The shared toolkit lives in src/components/nn/primitives.jsx:
Lab, Split, Stage, Controls, Seg, Range, Stats, Note, Formula,
CodeOut, usePlayback, PlayRow, TensorPane, MatrixGrid, LinePlot,
BarRow, GraphView, MlpView. Each lesson folder composes those primitives into
the labs below.
1.1 Tensor Fundamentals
| Original lab | Component |
|---|---|
| Animated data flow | DataFlowLab |
| Dimension Explorer | DimensionExplorer |
| Axis Navigator | AxisNavigator |
| Trajectory Dataset Builder | TrajectoryLab (build mode) |
| Follow four indices to one robot reading | Manim · LocateRobotReading |
| Inspect an element | TrajectoryLab (inspect mode) |
| RGB Channel Explorer | RgbChannelLab |
| Memory Payload Explorer | MemoryPayloadLab |
| Floating-point Precision Lens | PrecisionLens |
| Device Transfer Simulator | DeviceTransferLab |
1.2 Tensor Manipulation
| Original lab | Component |
|---|---|
| 01 · Index & Slice Navigator | IndexSliceLab |
| 02 · Reshape & Flatten Explorer | ReshapeFlattenLab |
| 03 · Axis Permutation Lab | PermuteLab |
| 04 · Same shape, different values | PermuteLab (compare mode) |
| Trace one output alignment through reshape and transpose | Manim · CompareTensorLayouts |
| 05 · Singleton Axis Builder | SingletonAxisLab |
| 06 · Concatenation Lab | ConcatLab |
| 07 · Stack Lab | StackLab |
| 08 · Robot Data Assembly | RobotAssemblyLab |
1.3 Batch Processing & Broadcasting
| Demonstration | Component |
|---|---|
| Compare per-trajectory and batched calibration | BatchExecution |
| Select an output and trace the measurement and bias it reads | BroadcastTrace |
| Compare reduction groups and reuse a trajectory mean across time | Manim · ReductionGroups |
| Follow training statistics from fit to application | NormalizationFlow |
1.4 Linear Transformations
| Original lab | Component |
|---|---|
| Dot Product Accumulator | DotProductLab |
| Matrix Multiplication Explorer | MatMulLab |
| 2D Transformation Playground | Transform2DLab |
| Neural Linear Layer Inspector | LinearLayerLab |
| Shape & Parameter Inspector | LinearLayerLab (parameter tab) |
| Batched Affine Transformation | BatchedAffineLab |
| Robot State Projection | StateProjectionLab |
1.5 Computational Graphs
| Original lab | Component |
|---|---|
| Scalar Graph Player | ScalarGraphLab |
| Batched Graph Inspector | BatchedGraphLab |
| Residual & Squared Error Lab | ResidualLossLab |
| Parameter Landscape Explorer | LossLandscapeLab |
| One Gradient Step | GradientStepLab |
| Linear System Identification Lab | SystemIdLab |
1.6 Gradients & Backpropagation
| Original lab | Component |
|---|---|
| Gradient Field Explorer | GradientFieldLab |
| Scalar Backpropagation Player | ChainRuleLab |
| Fan-out Gradient Accumulation | FanoutLab |
| Jacobian Column Inspector | JacobianLab |
| VJP Contribution Mapper | VjpLab |
| Two-layer Manual Backpropagation | TwoLayerBackpropLab |
1.7 Automatic Differentiation
| Original lab | Component |
|---|---|
| Dynamic Graph Recorder | GraphRecorderLab |
| Reverse-topological Graph Player | TopoSortLab |
| Leaf & Retain-grad Inspector | LeafGradLab |
| Vector-output Backward Seed | BackwardSeedLab |
| Gradient Buffer Timeline | GradBufferLab |
| Gradient Route Switch | RouteSwitchLab |
| Mini Autograd Engine — live trace | MiniAutogradLab |
1.8 Building a Neural Network from Scratch
| Original lab | Component |
|---|---|
| Nonlinearity Playground | NonlinearityLab |
| Batched MLP Forward Inspector | MlpForwardLab |
| Gradient Flow & Numerical Check | GradientCheckLab |
| One Complete Training Step | TrainingStepLab |
| Dataset & Mini-batch Player | MinibatchLab |
| Live MLP Training Laboratory | MlpTrainingLab |
| Nonlinear Dynamics Rollout | RolloutLab |
All labs are deterministic teaching schematics. They run locally in the browser and do not call PyTorch or any external service; the code labs are executed by the reader in a local Python environment.