Notes

Technical notes, refreshers, and worked derivations on varied ML topics.

Long-form Notes

Noise, Scores, and Straight Lines

Diffusion models and flow matching, developed from paths of distributions, scores, velocity fields, SDEs, ODEs, DDPM, guidance, and solver intuition.

v0.1PDFTeX

Functions In, Functions Out

Neural operators as learned solution operators: DeepONets, FNOs, graph operators, low-rank variants, physics-informed losses, and time-dependent maps.

v0.1PDFTeX

ML 101s

Attention Backward Pass

A full index-notation derivation of self-attention backpropagation, including the row-wise softmax Jacobian and the final matrix-form gradients.

v0.3PDF

Direct Preference Optimization

A clean DPO derivation from KL-regularised RL and Bradley-Terry preferences, plus implementation details and common variants.

v0.4PDF