[KongchangAI]
ConceptKL Divergence / Kullback-Leibler Divergence / KL散度

KL Divergence

An asymmetric measure from information theory that quantifies the difference between two probability distributions. In the VAE loss function, it serves as a regularization term that constrains the encoder's output distribution to remain close to a standard normal prior, preventing fragmentation of the latent space.

Core Facts

Timeline (last 90 days)

Oct 26

IDM uses measures such as KL divergence to minimize the difference between the student's reconstructed item distribution and the teacher's distribution.

Unverified50%
Oct 25

Data drift can usually be detected by monitoring statistical distances between the input distribution and the training distribution (such as PSI or KL divergence), whereas concept drift can only be caught through labeled online evaluation.

Unverified50%
Oct 24

KLD should be positioned as a diagnostic tool rather than a ranking basis; reasonable uses include observing distribution shift trends before and after quantization, comparing relative differences of different quantization configurations on the same data, and assisting in troubleshooting anomalies.

Unverified50%
Oct 24

The relationship between KLD and downstream benchmark performance is not linear: when KLD is below a certain magnitude, downstream metrics are almost unaffected; only when KLD rises significantly does task performance begin to decline markedly.

Unverified50%
Oct 24

Gaming KLD costs very little, requiring only adjusting quantization scale parameters on the evaluation data with almost no change to model weights; whereas gaming benchmarks requires fine-tuning the model, consuming large amounts of GPU compute, and is prone to exposing overfitting on held-out test sets.

Unverified50%
Oct 24

In quantization evaluation, having the original model generate the dataset itself and computing KLD on these generated tokens with zero weight assigned to prompt tokens can better reflect real inference scenarios.

Unverified50%
Oct 24

Calibration data should be treated as training data for the quantized model, and any KLD computed on it or on data from the same distribution should be regarded as training error rather than generalization error.

Unverified50%
Oct 24

KLD values themselves have no absolute good-or-bad threshold; they are meaningful only when two models are compared on the same data with the same calculation method, and KLD values reported in different papers are often not directly comparable across studies.

Unverified50%
Oct 24

KLD is sensitive to the distribution tails: as long as the quantized model assigns extremely low probability to low-probability tokens, KLD will be significantly inflated, even if those tokens have little impact on generation quality.

Unverified50%
Oct 24

KLD measures relative entropy, i.e., the extra number of bits needed to encode the original model's output using the quantized model's distribution, so its unit is bits/token.

Unverified50%

40 more timeline events

All Facts (20)

Verified

The RLHF pipeline consists of three steps: training a reward model to predict human preference scores, adjusting language model parameters using the PPO reinforcement learning algorithm, and using KL divergence constraints to prevent the model from deviating from its original language capabilities.

90%
Verified

KL divergence is asymmetric, i.e., D(p,q) ≠ D(q,p).

80%
Verified

Common methods for detecting data drift include the KS test, PSI (Population Stability Index), and sliding-window-based statistical monitoring.

65%
Verified

Cross-entropy = entropy of the true distribution + KL divergence.

65%
Unverified

从KL散度角度看,每一代合成数据与真实分布之间的散度都在单调递增,且误差会在迭代中累积

85%
Unverified

IDM uses measures such as KL divergence to minimize the difference between the student's reconstructed item distribution and the teacher's distribution.

50%
Unverified

Data drift can usually be detected by monitoring statistical distances between the input distribution and the training distribution (such as PSI or KL divergence), whereas concept drift can only be caught through labeled online evaluation.

50%
Unverified

Gaming KLD costs very little, requiring only adjusting quantization scale parameters on the evaluation data with almost no change to model weights; whereas gaming benchmarks requires fine-tuning the model, consuming large amounts of GPU compute, and is prone to exposing overfitting on held-out test sets.

50%
Unverified

In quantization evaluation, having the original model generate the dataset itself and computing KLD on these generated tokens with zero weight assigned to prompt tokens can better reflect real inference scenarios.

50%
Unverified

The relationship between KLD and downstream benchmark performance is not linear: when KLD is below a certain magnitude, downstream metrics are almost unaffected; only when KLD rises significantly does task performance begin to decline markedly.

50%
Unverified

Judging whether a quantized model is suitable for a specific task ultimately still requires evaluation in real scenarios and cannot rely on KLD alone.

50%
Unverified

Calibration data should be treated as training data for the quantized model, and any KLD computed on it or on data from the same distribution should be regarded as training error rather than generalization error.

50%
Unverified

KLD values themselves have no absolute good-or-bad threshold; they are meaningful only when two models are compared on the same data with the same calculation method, and KLD values reported in different papers are often not directly comparable across studies.

50%
Unverified

KLD measures relative entropy, i.e., the extra number of bits needed to encode the original model's output using the quantized model's distribution, so its unit is bits/token.

50%
Unverified

KLD is sensitive to the distribution tails: as long as the quantized model assigns extremely low probability to low-probability tokens, KLD will be significantly inflated, even if those tokens have little impact on generation quality.

50%
Unverified

KLD should be positioned as a diagnostic tool rather than a ranking basis; reasonable uses include observing distribution shift trends before and after quantization, comparing relative differences of different quantization configurations on the same data, and assisting in troubleshooting anomalies.

50%
Unverified

KLD (KL divergence) measures the difference between two probability distributions, with the formula D_KL(P||Q)=∑_x P(x)log(P(x)/Q(x)).

50%
Unverified

The KL divergence between SCEs and real execution is more than ten times lower than that of BashArena, indicating that the simulated environment closely matches the real environment in behavior distribution.

50%
Unverified

The paper derives an error bound between the squared distance of behavior map coordinates and the trajectory KL divergence under explicit assumptions.

50%
Unverified

The distillation loss often uses KL divergence to measure the difference between the student distribution and the teacher distribution.

50%

Source Articles