Artifacts

Interactive things I've made with LLMs that I found useful for learning complicated concepts.

Reproducing kernel Hilbert spaces
Nov 14, 2026

RKHSs from scratch, starting with functions as vectors and ending at the representer theorem and kernel ridge regression. Assumes only linear algebra, and ties back to min-norm linear regression and the NTK.

Singular learning theory
Nov 14, 2026

Why counting parameters overstates how complex a neural net is, and what singular learning theory says to count instead. Also why it predicts sudden jumps during training, and how people estimate it on real networks.

Mirror descent and Frank-Wolfe
Nov 11, 2026

Two classic twists on projected gradient descent. Mirror descent measures distance in a way that fits the constraint set, and Frank-Wolfe avoids projecting at all. When each one is worth it.

AdamC, and why gradient norms climb late in training
Nov 11, 2026

Why the gradient norm often goes up near the end of LLM training even when nothing is wrong, built up from how normalization layers and weight decay interact. Then AdamC, a one-line fix to weight decay from Defazio's 2025 paper.

Does Adam favor a basis?
Nov 9, 2026

Gradient descent doesn't care which basis your parameters are written in, but Adam does. Why that happens, and how it ties into the outlier features you see in transformers trained with Adam.

The Welch bound
Nov 9, 2026

How close to orthogonal can you make N unit vectors in d dimensions? The Welch bound, its two-line proof, when it's tight, and why it matters for superposition and sparse recovery.

Chaos, and why retraining is never the same
Nov 8, 2026

An intro to chaos theory (the Lorenz system, Lyapunov exponents, the butterfly effect) starting from basic calculus, and why training a neural net behaves like a chaotic system.

Why H100 has four NVSwitches
Oct 25, 2026

How the 8 GPUs in an H100 server are wired together over NVLink, and why it takes four NVSwitches when B200 gets by with two.

InfiniBand field guide
Oct 25, 2026

An intro to InfiniBand, the network that connects GPUs in big training clusters, for people with no networking background. How data gets from one GPU to another, why the network never drops packets, and how that differs from Ethernet.

Pre-LN vs post-LN gradients
Oct 3, 2026

How where you put LayerNorm in a transformer changes the gradients at each layer, and why that means post-LN needs learning rate warmup while pre-LN mostly doesn't.

Why do ReLU nets need a bias?
Oct 1, 2026

Why ReLU networks need bias terms. Without them every decision boundary has to pass through the origin, which limits what even a very wide net can learn.