Deep Learning and Numerical Optimization
-
Tensor Shapes and Broadcasting Contracts
Distinguish sample, position, and feature axes, and track what happens to a broadcast value during differentiation.
-
Reverse-Mode Automatic Differentiation
Propagate sensitivities backward through a graph and add contributions when a value reaches the loss through several paths.
-
Variance-Preserving Weight Initialization
Track signal scale through a random linear layer and derive why a weight variance should depend on the number of incoming features.
-
Mini-Batch Gradients and Sampling Noise
Derive when a mini-batch average estimates the full training gradient and compare estimator variance with update cost.
-
Momentum and Adaptive Gradient Moments
Compare a smoothed gradient direction with coordinatewise scaling and account for moment bias at early steps.
-
Weight Decay and Quadratic Regularization
Derive when an L2 penalty equals multiplicative shrinkage and see what changes when the optimizer rescales gradients.
-
Batch and Layer Normalization Axes
Compute a standardized feature along the intended axis and explain which statistics change between training and inference.
-
Residual Connections and Gradient Paths
Differentiate a residual block and see how its direct path preserves one contribution to the gradient.
-
Gradient Norm Clipping and Update Bounds
Scale a large gradient to a prescribed norm and distinguish whole-batch clipping from clipping individual examples.
-
Stable Softmax and Log-Sum-Exp
Factor out the largest logit to retain the same probabilities while avoiding overflow in exponentiation.
-
Convolution, Shared Weights, and Translation Equivariance
Prove a shift identity by changing an index and identify what padding and stride can change about the result.
-
Message Passing on Graph Neighborhoods
Aggregate neighbors without relying on their order and compare how sum and mean retain different information.
-
Subword Tokens and Embedding Lookups
Map text into reusable units and distinguish a vocabulary identifier, learned embedding, and contextual output.
-
Scaled Dot-Product Attention
Trace a query from similarity scores to a weighted value and separate key width from the number of available positions.
-
Positional Encodings and Relative Offsets
Add sequence position to token states and derive how pairs of sinusoidal coordinates encode relative movement.
-
Autoregressive Factorization and Decoding
Factor a sequence probability into next-token distributions and distinguish a trained model from the rule selecting outputs.
-
Contrastive Learning and Positive Pair Design
Construct training pairs with a declared shared property and diagnose when augmentation teaches an unwanted invariance.
-
Gaussian Noising and Noise Prediction
Compute the conditional mean and variance of a noisy sample and distinguish a denoising target from an unconditional score.
-
Bellman Evaluation and Discounted Returns
Derive the one-step value identity and calculate the return of a simple recurrent state under geometric discounting.
-
Off-Policy Evaluation and Support
Reweight logged decisions by a target policy and explain why an action absent from the logs cannot be evaluated without further assumptions.