Dissecting the VAE Objective: KL, Reconstruction, and the Reparameterization Trick

We open the ELBO, compute each term, and meet the reparameterization trick — the idea that lets us backpropagate through randomness.

January 10,2026 | Estimated reading time: 8 min | 1589 words | Author: khanhnn

Variational Inference: Cracking the Intractable Integral

Variational Inference transforms the impossible task of computing intractable integrals into a solvable optimization problem, providing the mathematical foundation for modern generative models like VAEs.

December 20,2025 | Estimated reading time: 9 min | 1869 words | Author: khanhnn

Latent Variable Models: A Probabilistic Foundation

From PCA to Probabilistic PCA and general Latent Variable Models: the probabilistic lens that seeds VAEs.

October 28,2025 | Estimated reading time: 7 min | 1401 words | Author: khanhnn

An overview on generative models paradigms

A summary of explicit, implicit and score-based generative models.

December 24,2024 | Estimated reading time: 8 min | 1554 words | Author: khanhnn

Information Theory

Information theory essentials: entropy, cross-entropy, joint/conditional entropy, KL divergence, mutual information.

October 5,2024 | Estimated reading time: 10 min | 2059 words | Author: khanhnn

Diffusion Models

Diffusion Models (DMs) include two processes: forward and backward. Forward process General idea Degrading input data using noise iteratively, forward in time (i.e., $t$ increases). Given image $x_0 \sim q(x_0)$, which called data distribution, forward process gradually adds Gauss noise thru $T$ time steps and produces latent $x_T$. At each time step $t$, we sample Gauss noise that following the distribution $\mathcal{N}(\sqrt{1 - \beta_t} x_{t-1}, \beta_t)$, where the hyper-parameters $0 < \beta_{1:T} < 1$ represent the variance of noise incorporated at each time step....

June 11,2024 | Estimated reading time: 5 min | 1044 words | Author: khanhnn

Determinant of matrices, eigenvalues and eigenvectors

Determinants, eigenvalues, eigenvectors: geometric meaning, finding methods, and linear transformation essence.

August 21,2021 | Estimated reading time: 6 min | 1264 words | Author: khanhnn

Span, basis, and dimension

Linear independence, span, basis, dimension: fundamental concepts for vector spaces and subspaces.

August 7,2021 | Estimated reading time: 6 min | 1118 words | Author: khanhnn

The four fundamental subspaces in Linear Algebra

Four fundamental subspaces: row space, column space, nullspace, left nullspace with dimensions and relationships.

August 7,2021 | Estimated reading time: 8 min | 1540 words | Author: khanhnn

Solving Ax = b

Solving Ax=b: conditions for solutions, complete solution (particular + nullspace), rank relationships.

August 1,2021 | Estimated reading time: 10 min | 2124 words | Author: khanhnn