The KL Divergence Is Never Negative, Except in PyTorch
Anon84 · hn · 2026-11-24
An arXiv paper examines why KL divergence, which is mathematically never negative, can be computed as negative in PyTorch, analyzing the implementation details behind the counterintuitive result and its implications for training and evaluation.
More from Research
- New Theory Computes Minimum LoRA Rank for Any SFT Dataset with Under 5% Error — realJessyLin · 2026-11-25
- P≠NP would kill fast-takeoff: why RL only soars where answers are cheap to check — Dan_Jeffries1 · 2026-11-25
- Cong Lu to speak on open-endedness and recursive self-improvement at Imperial College London — cong_ml · 2026-11-25
- How could the world change if AI proves P vs NP? — Dr_Singularity · 2026-11-25
- Projected perplexity analysis puts Claude Sonnet 5.5 and Haiku 5.5 atop post-training rankings — nrehiew_ · 2026-11-25
- Estimated base-model perplexity curve suggests Claude Fable 5.2 matches the strongest frontier baseline — nrehiew_ · 2026-11-25