Posts tagged “basics”

6 posts found

Adam, Muon and Friends Explained: What a Normalised Step Buys, What It Costs, and Which Claims Are Theorems
ai-tutorialstutorialbasics

Adam, Muon and Friends Explained: What a Normalised Step Buys, What It Costs, and Which Claims Are Theorems

Adaptive optimizers for practitioners who use them every day: why Adam's first step is a sign step of length about η√d whatever the gradient's size, why 'Adam moves every coordinate by η' is true for a constant gradient and false in general (3.16η after a quiet stretch, 7.27η in the worst case), why a per-coordinate scale is exactly right for a block-heterogeneous problem and why a constant-step Adam is not monotone even on a noiseless quadratic, what the Reddi counter-example does and does not say, why weight decay under AdamW is an equilibrium norm and under coupled L2 is a layer-dependent accident, what Muon's Newton–Schulz iteration computes and by how much it misses, and how to read a benchmark number. Every number is from a seeded NumPy script that ships with the piece.

Nov 14, 2026•39 min read
Gradient Descent Explained: The Step, the Condition Number, and Why Your Loss Curve Goes Flat
ai-tutorialstutorialbasics

Gradient Descent Explained: The Step, the Condition Number, and Why Your Loss Curve Goes Flat

Gradient descent for practitioners who train models with it: why the step size has a hard ceiling of 2/L and what happens on either side of it, why the condition number is an exponent and not a constant, what the descent lemma actually promises and how a line search collects more, what momentum's square root buys and the one effective-learning-rate fact that is a theorem without qualification, why a flat loss under noise is a floor and not convergence, why the right schedule depends on whether the run is transient-limited or floor-limited, and what the two non-convex pictures — a PL function and a double well — do to every one of those statements. Every number is from a seeded NumPy script that ships with the piece.

Nov 12, 2026•37 min read
Concentration and the Central Limit Theorem Explained: How Many Samples Your Number Needs
ai-tutorialsbasicsprobability-theory

Concentration and the Central Limit Theorem Explained: How Many Samples Your Number Needs

The error bar for practitioners: why an average of independent, identically distributed draws has a Gaussian error of size sigma over root n and how fast that becomes true, why a mean of rare events needs a hundred times more data than a symmetric one, what Chebyshev, Hoeffding and the exact binomial each know, how many test examples resolve a one-point gap (about 12,000 unpaired, a few hundred disagreements paired), why picking the best of a hundred checkpoints adds three points you did not earn, why random vectors in 4,096 dimensions are nearly orthogonal and attention divides by root d, and why 10,000 correlated samples can be worth 50 independent ones — with the batch-means fix.

Oct 31, 2026•56 min read
Probability Theory Explained: Sample Spaces, Random Variables, and the Expectation You Already Optimise
ai-tutorialsbasicsprobability-theory

Probability Theory Explained: Sample Spaces, Random Variables, and the Expectation You Already Optimise

Probability for practitioners who need it for machine learning: why a probability is a function on questions rather than a property of things, why a density can be 40 and is still not a probability, why expectation is linear whether or not anything is independent, why the conditional mean is the best predictor by theorem rather than by training, why cross-entropy's minimiser is calibrated for the same reason, and the seven places — a density mistaken for a probability, base rates, Simpson's paradox, uncorrelated-but-dependent, infinite means, conditioning on a zero-probability event, and 'random' without a measure — where the intuition breaks and the definition does not.

Oct 29, 2026•47 min read
The Information Bottleneck Explained: What a Representation Is For
ai-tutorialsbasicsinformation-bottleneck

The Information Bottleneck Explained: What a Representation Is For

The information bottleneck for practitioners: what it means to keep only the bits that predict, why the binned compression phase in our experiment tracks the activation function rather than learning, why every information-plane number depends on its binning while the exact one for a finite input does not, and how the same equation — not the same explanation, and with β multiplying the opposite term — shows up in a VAE's collapsed latent.

Oct 16, 2026•67 min read
Information Theory Explained: Entropy, Cross-Entropy, and the Loss You Already Use
ai-tutorialsbasicsinformation-theory

Information Theory Explained: Entropy, Cross-Entropy, and the Loss You Already Use

Information theory for practitioners who need it for machine learning: what a bit actually measures, why minimising cross-entropy is minimising KL divergence, the floor label smoothing installs under your loss (and which smoothing convention your framework uses), and why a mutual-information estimate is a measurement with a sign that depends on the regime, not a number.

Oct 15, 2026•52 min read