Gradient Descent and Optimizer Geometry: Momentum, Adam, and Loss Surfaces
Hand-calculate early steps on a 2D quadratic, compare gradient descent, momentum, and Adam, and reproduce the loss-contour visualization.
Hand-calculate early steps on a 2D quadratic, compare gradient descent, momentum, and Adam, and reproduce the loss-contour visualization.
A hand-calculated 5×5 by 3×3 convolution with output-size math, receptive fields, channel mixing, and im2col.
A three-token hand calculation of scaled dot-product attention, covering Q/K/V, softmax weights, masks, multi-head attention, and KV cache.
A visual and reproducible derivation of dL/dW = (y_hat – y)x^T for y = Wx + b, with NumPy gradient checking.
Trace a two-layer MLP through local gradients, ReLU, softmax cross-entropy, and a reproducible NumPy backward pass.
A practical guide to LLM/RAG/Agent security covering prompt injection, external content isolation, tool allowlists, approval gates, and boundary-aware defenses.
A defensive guide to data poisoning and backdoors, with a toy digits experiment, poison rate, attack success rate, and training pipeline controls.
A practical guide to model privacy risks: membership inference, surrogate extraction, confidence leakage, output minimization, and query governance.
A practical AI security threat modeling guide using NIST adversarial ML, MITRE ATLAS, and OWASP LLM Top 10 to map assets, risks, evidence, and controls.
A defensive robustness evaluation walkthrough using the FGSM equation and a safe scikit-learn digits toy experiment.