What is the practical difference between minimizing forward and reverse KL divergence as a training objective?

Quick Overview

Asks how minimizing forward KL divergence differs from minimizing reverse KL divergence when training a model. It tests whether you can reason about where each expectation is taken, how a too-simple model behaves under each direction, and which training setups use which one.

What is the practical difference between minimizing forward and reverse KL divergence as a training objective?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the practical difference between minimizing forward KL divergence and reverse KL divergence as a training objective? Take $p$ as the target (data) distribution and $q$ as the model being trained. ```hint Where the expectation sits Write out both divergences and note which distribution each expectation is taken under. Then ask what happens to each objective when $q$ is near zero somewhere $p$ has mass, and the other way around. ``` ```hint Picture a misspecified model Imagine fitting a single Gaussian to a target with two separated peaks, and sketch where each objective would place it. ``` ### What a Strong Answer Covers - The definition of each direction and which distribution its expectation is taken under. - How each direction behaves when the model family is too simple for the target, with the reason stated in terms of where the penalty becomes large. - What each objective needs in practice (samples from the data, or an evaluable density plus samples from the model) and the training setups that use each. - When the choice of direction stops mattering. ### Follow-up Questions - How does the ELBO relate to reverse KL, and why does variational inference tend to underestimate posterior variance? - RLHF penalizes the policy with $\mathrm{KL}(\pi \| \pi_{\text{ref}})$. What does that direction imply about how the policy may drift from the reference model? - How do the Jensen-Shannon divergence and alpha-divergences relate to these two behaviors? - When distilling a large language model into a smaller one, when would you pick forward KL and when reverse KL between teacher and student?

Overview: Asks how minimizing forward KL divergence differs from minimizing reverse KL divergence when training a model. It tests whether you can reason about where each expectation is taken, how a too-simple model behaves under each direction, and which training setups use which one.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is the practical difference between minimizing forward KL divergence and reverse KL divergence as a training objective?

Take pp as the target (data) distribution and qq as the model being trained.

What a Strong Answer Covers Guidance

  • The definition of each direction and which distribution its expectation is taken under.
  • How each direction behaves when the model family is too simple for the target, with the reason stated in terms of where the penalty becomes large.
  • What each objective needs in practice (samples from the data, or an evaluable density plus samples from the model) and the training setups that use each.
  • When the choice of direction stops mattering.

Follow-up Questions Guidance

  • How does the ELBO relate to reverse KL, and why does variational inference tend to underestimate posterior variance?
  • RLHF penalizes the policy with KL(π∥πref)\mathrm{KL}(\pi \| \pi_{\text{ref}}) . What does that direction imply about how the policy may drift from the reference model?
  • How do the Jensen-Shannon divergence and alpha-divergences relate to these two behaviors?
  • When distilling a large language model into a smaller one, when would you pick forward KL and when reverse KL between teacher and student?