KL — Kullback–Leibler divergence
How different two probability distributions are: zero when they agree, larger the more they differ. It is not symmetric, so KL(P‖Q) and KL(Q‖P) differ.
. In RLHF (section 21.5) it measures how far the trained model has drifted from the model it started from, and the objective subtracts it as a penalty so the model stays fluent while it chases reward.
Example
0.5 ln(0.5/0.9) + 0.5 ln(0.5/0.1) ≈ −0.29 + 0.80.