Kullback–Leibler divergence, or relative entropy, measures the dissimilarity between probability distributions P and Q. It is defined as KL(P || Q) = ∫ P(x) · log(P(x) / Q(x)) dx across the variable’s support. section 12.1.5
In PPO-penalty, KL divergence penalizes updates that move a policy too far from its previous version, supporting a manageable trust region and reducing large policy shifts. section 12.1.5
Comparing Gaussian policies
A comparison between two Gaussian distributions with different means and variances illustrates the divergence. KL divergence equals zero exactly when the two distributions are identical. section 12.1.5
KL divergence between two Gaussian distributions
Inspect the figure comparing KL divergence between two Gaussian distributions. section 12.1.5











