Research Log
When the VAE Meets Monte Carlo
Why averaging sampled reconstruction losses estimates an expectation in a VAE, through the law of large numbers and an indicator-variable approach to integration.
Read notePublished notes, tutorials, and research logs from personal machine learning projects.
Short, question-first notes on papers, derivations, experiments, and ideas I want to understand better.
Research Log
Why averaging sampled reconstruction losses estimates an expectation in a VAE, through the law of large numbers and an indicator-variable approach to integration.
Read noteResearch Log
A geometric derivation of why PCA reconstruction mean-squared error equals the sum of the discarded eigenvalues, through orthogonal projections and a 2D example.
Read noteResearch Log
A derivation and geometric playground connecting the affine Gaussian transformation in a diffusion forward process to covariance and the Jacobian determinant.
Read noteResearch Log
A small-step Bayes derivation showing why the reverse conditional can be approximated by a Gaussian even when the previous-state marginal is not Gaussian.
Read noteResearch Log
A daily-life example using car and train commute-time distributions to understand why KL divergence is asymmetric and how it can be used to compare distributions.
Read noteResearch Log
A small experiment comparing two ways to train a toy neural network to learn the score of a noisy three-component Gaussian mixture.
Read noteResearch Log
A derivation of how the noisy marginal score connects to the posterior conditional mean through an average over plausible clean samples.
Read noteResearch Log
A short derivation of the density of a transformed random variable, with intuition for how the Jacobian compensates for stretched lengths and areas.
Read noteResearch Log
An interactive look at how covariance reshapes the score of a multivariate Gaussian, and why the direction of higher density does not always point straight to the mean.
Read noteResearch Log
A conditional-expectation note on why denoising under squared error is estimation, not exact inversion.
Read noteResearch Log
A derivation-driven note on why the score of a one-dimensional Gaussian points toward higher log-density, which means back toward the mean.
Read noteResearch Log
A diffusion note on what it really means for noisy images to stay centered around the original image on average.
Read noteResearch Log
A first-principles probability note on why conditioning on the total
count makes all Bernoulli sequences with exactly k
successes equally likely.
Tutorial
A practical walkthrough for preparing symbolic-music data, training a tokenizer and GPT-2-style model, and deploying an interactive music demo.
Read article