Skip to content
Probability•advanced

KL Divergence

Measuring how different two distributions are

Why This Matters for ML

VAE loss function, comparing model outputs to targets

Interactive Visualization

Interact with the visualization to explore

Blue = P (true), Red = Q (model). KL measures how different they are.

The Key Intuition

Explore this concept through the interactive visualization. Try different parameters and observe how the output changes!

Try It Yourself

Use the visualization controls to:

  • Drag vectors to see transformations in real-time
  • Adjust parameters with sliders
  • Observe how changes affect the output
  • Connect the visual behavior to the math