On numerical issues of divergences between nearly equal distributions
Not on the map. Why?
Abstract (arXiv)
Barron et al. (2026) recently identified numerical issues in the softmax and soft cross-entropy loss. We show that similar issues are present in standard divergence operations between categorical distributions. This includes the forward and reverse Kullback-Leibler (KL) divergence and generalized Jensen-Shannon divergence (JSD), as well as Monte Carlo KL estimates and entropy. When the distributions are nearly equal, rounding and cancellation issues affect the forward and gradient computations. These issues can affect settings using divergences in optimization objectives, such as knowledge distillation, reinforcement learning, and proximal methods. We propose numerically stable reformulations and provide example implementations for each setting, validated by property-based tests.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 21 of its 48 references that are in the map. Submitted 13 Nov 2026.
Builds on
21 of 48 references.
References · 21
- 2022Training language models to follow instructions with human feedbackcited by 16,493
- 2015Distilling the Knowledge in a Neural Networkcited by 10,967
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2015Trust Region Policy Optimizationcited by 2,662
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,392
- 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,298
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,281
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2016Sequence-Level Knowledge Distillationcited by 908
- 2015Policy Distillationcited by 496
- 2014New insights and perspectives on the natural gradient methodcited by 473
- 2019A Theory of Regularized Markov Decision Processescited by 300
9 more
- 2017Soft-DTW: a Differentiable Loss Function for Time-Seriescited by 285
- 2015How (not) to Train your Generative Model: Scheduled Sampling, Likelihood, Adversary?cited by 83
- 2025Grokking at the Edge of Numerical Stabilitycited by 61
- 2025On a few pitfalls in KL divergence gradient estimation for RLcited by 34
- 2025A Comedy of Estimators: On KL Regularization in RL Training of LLMscited by 22
- 2026A Fix for Softmax and Cross-Entropycited by 5
- 2018Monte Carlo Information Geometry: The dually flat casecited by 4
- 2026Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Trainingcited by 2
- 2026Property-Based Testing for Robust Softmax and Cross-Entropycited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Worst-Case Optimal √ε-Rate Stability of KL Divergence under Perturbations of Gaussian Distributions
- 2025Generalized Kullback-Leibler Divergence Loss
- 2023Decoupled Kullback-Leibler Divergence Loss
- 2026A Unified Kullback--Leibler Divergence Analysis of Generative Diffusion Models via Entropy Production Rate
- 2025Better Estimation of the Kullback--Leibler Divergence Between Language Models
- 2026Divergence controls entropy in distillation
- 2025On Flow Matching KL Divergence
- 2026Simplex Relaxation for Discrete Diffusion