Term
KL divergence
Meaning
The Kullback-Leibler divergence, a non-symmetric measure of how far one probability distribution is from another. It is nonnegative and equals zero only when the two distributions are identical.
Source Emerging Properties in Self-Supervised Vision Transformers
How papers use it 18 papers
Emerging Properties in Self-Supervised Vision Transformers
Use Tracked over training epochs as the divergence between the teacher and student output distributions. It is plotted in a collapse study comparing runs with sharpening only, centering only, and both operations together.
High-Dimensional Continuous Control Using Generalized Advantage Estimation
Use In TRPO, the average KL divergence between the old and new policies over sampled states is the trust-region constraint, bounded by ϵ. For the value function, the paper constrains the average KL divergence between the old and new value functions, each treated as a Gaussian with mean Vφ(s) and variance σ², to be below ϵ, and it uses this as an equivalent form of the squared-difference trust-region bound.
Meaning An asymmetric measure of how much one probability distribution differs from another. It is zero only when the two distributions agree and is not symmetric in its arguments.
MMFlash: Faster Speculative Decoding for Vision-Language Models
Use Used as the distance inside the visual dependence score, comparing the target's next-token distribution with the image against the distribution without it, with the image-conditioned distribution as the first argument.
Meaning A non-negative measure of how far one probability distribution is from another. It is asymmetric, so the order of its two arguments matters.
Policy Optimization for Robust Average Reward MDPs
Use Serves as the distance D that defines the (s, a)-rectangular uncertainty set around the nominal transition kernel, with R as the radius. In the simulations the uncertainty set is the KL divergence uncertainty set, with the radius set to R = 0.1.
Meaning An asymmetric measure of how far one probability distribution is from a reference distribution, computed as the expected log-ratio between the two. It is a common choice for the distance used to build a divergence-based uncertainty ball around a nominal distribution.
Generating Sentences from a Continuous Space
Use Forms the penalty term of the variational lower bound in the paper, computed in closed form for diagonal Gaussians. A zero KL means the model ignores the latent variable. The KL weight is annealed from zero to one during training, and reported Penn Treebank and word-dropout values show how much information the latent code carries.
Meaning The Kullback-Leibler divergence, a non-negative measure of how far one probability distribution is from another. In a variational lower bound, it measures how far the approximate posterior is from the prior.
Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments
Use Used to measure how well an agent's learned approximation of another agent's policy matches that agent's true policy. In the cooperative communication setting, the approximate listener policy learned by the speaker shows a fairly large divergence from the true listener policy, even though learning with the approximation still reaches the same success rate.
Meaning A divergence that measures how far a probability distribution \(Q\) is from a reference distribution \(P\), computed as \(\sum_x P(x)\log(P(x)/Q(x))\). It is nonnegative, equals zero only when the two distributions agree, and is not symmetric in its arguments.
DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
Use In the GRPO objective, a penalty on the divergence between the trained policy and the reference policy is weighted by a coefficient β. The paper uses an unbiased per-sample estimator built from the ratio of reference and current policy probabilities, and adds it directly to the loss rather than folding it into the reward as PPO does. The reference policy is periodically replaced with the latest policy so that the policy can keep exploring while training remains stable.
Meaning A non-negative measure of how much one probability distribution differs from another, asymmetric in its two arguments. In reinforcement learning for language models it is often used as a penalty that keeps the trained policy close to a reference policy.
Auto-Encoding Variational Bayes
Use Appears in the decomposition of the log marginal likelihood as the gap between the approximate posterior \(q_\phi(z|x)\) and the true posterior \(p_\theta(z|x)\). In the rewritten bound, a KL term between the approximate posterior and the prior \(p_\theta(z)\) acts as a regularizer. For the Gaussian model in the paper this term has a closed form, so it does not need to be estimated by sampling.
Meaning A non-negative measure of how far one probability distribution is from another, defined as the expected log ratio of the two densities under the first distribution. It equals zero only when the distributions coincide.
Private and Personalized Frequency Estimation in a Federated Setting
Use Serves as the error measure for personalized histograms. The paper writes the per-user KL error as the test negative log-likelihood minus the entropy of the user distribution, and the clustering objective assigns each user to the center with the smallest KL divergence to that user's distribution.
Meaning An asymmetric divergence between a reference distribution and an estimate of it, written KL(Q‖P). It is not a true distance, since it is not symmetric and does not satisfy the triangle inequality.
Proximal Policy Optimization Algorithms
Use Measures the change between the old and new action distributions in a state, written \(KL[\pi_{\theta_{old}}(\cdot|s_t), \pi_\theta(\cdot|s_t)]\), and its batch average \(d\) is compared with a target value \(d_{targ}\). In the KL penalty variant, the penalized objective subtracts \(\beta\) times this divergence, and \(\beta\) is halved when \(d\) falls below \(d_{targ}/1.5\) and doubled when \(d\) exceeds \(1.5\, d_{targ}\). The paper reports that this penalty variant performed worse than the clipped surrogate objective in its experiments, and that the divergence at the best point of \(L^{CLIP}\) on the first Hopper-v1 update was about 0.02.
Meaning A measure of how much one probability distribution differs from another. It is nonnegative, equals zero when the two distributions are identical, and is not symmetric in its two arguments.
Tutorial on Variational Autoencoders
Use Measures the gap between Q(z|X) and P(z|X), and the regularizer against the prior P(z).
Meaning A measure of how far one probability distribution is from another, which is zero only when they match.
Real-World Humanoid Locomotion with Reinforcement Learning
Use The term D_KL in the joint objective that pulls the observation policy toward the state policy.
Meaning A measure of how far one probability distribution is from another.
Mitigating Backdoors in Masked Diffusion Language Models
Use Measures the per-position change in the output token distribution when a candidate input token is re-masked. For each masked output position, the divergence takes the distribution predicted from the original prompt as the first argument and the distribution predicted after re-masking the candidate token as the second, written as \(d_{j,(i)}^{t} = D_{KL}(p_j^{t} \,\|\, p_{j,(-i)}^{t})\). The largest of these values over the top-K masked output positions are averaged to form the influence score of the candidate token.
Meaning Kullback-Leibler (KL) divergence is a measure of how much one probability distribution differs from a second reference distribution. It is computed as the expected log-ratio of the two distributions under the first one, is nonnegative, and is zero only when the two distributions are identical. It is asymmetric, so swapping the arguments generally changes the value.
The KL Divergence Is Never Negative, Except in PyTorch
Use Serves as the quantity whose numerical accuracy the paper measures in PyTorch. The paper focuses on pairs of nearby distributions, where the true value is of order the unit roundoff or smaller and the floating-point evaluation returns noise, zeros or negative numbers. It is also the loss or regulariser in the applications the paper cites, including variational autoencoders, trust-region policy optimisation, distillation and quantized-model comparison.
Meaning A divergence between two probability distributions that measures how far one distribution is from the other. In exact arithmetic it is never negative and equals zero only when the two distributions are identical.
Trust Region Policy Optimization
Use Used as the trust region measure for TRPO. The paper constrains either the maximum over states, which is the theoretically motivated form, or the average over the state distribution of the old policy, which is the practical form. The average form is used with a bound δ, and the paper reports that it performs similarly to the maximum form on cart-pole.
Meaning The Kullback-Leibler divergence between two probability distributions, which measures how much one distribution differs from another in a non-symmetric way. For policies, it compares the action distributions of two policies at a given state.
Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learning
Use Chosen as the divergence \(D\) in the experiments, so that the VAT smoothness term compares the predicted label distribution at a clean input, \(p(y|x,\hat\theta)\), with the prediction at the perturbed input, \(p(y|x+r,\theta)\). The paper defines \(D\) generally as a non-negative divergence and then selects this form for its experiments.
Meaning The Kullback-Leibler divergence, a non-negative measure of how far one probability distribution is from another. For discrete distributions it is the sum over classes of \(p\log(p/q)\), where \(p\) is the reference distribution and \(q\) is the compared one.
Distilling the Knowledge in a Neural Network
Use Forms the objective used to combine the generalist and specialist predictions at inference. For each test image, the full distribution q over all classes is chosen to minimize the divergence from the generalist distribution plus the sum of divergences from the distributions of the active specialists. Each specialist distribution covers its own classes plus a dustbin class, so its divergence is computed by summing the probabilities that q assigns to the classes inside that dustbin. No general closed-form solution is given, so q is parameterized with a softmax over logits (temperature 1) and optimized by gradient descent for each image.
Meaning A divergence that measures how far one probability distribution is from another, computed by summing, over the outcomes, the probability under the first distribution weighted by the log of its ratio to the second. It is asymmetric, so the order of its two arguments changes the value.
Unsupervised Deep Embedding for Clustering Analysis
Use DEC's objective is the KL divergence from P to Q, summed over points and clusters.
Meaning The Kullback-Leibler divergence, a measure of how one distribution differs from another that is zero only when they match.