HOT RADAR
opensourceHEAT 6.4°

AI CURATED HOT STORY · 11/23/2026

PyTorch KL Divergence Found Systematically Inaccurate Across 8.5M Inputs

1 reports archived1 independent sourcesupdated 11/23/2026, 23:18:30
Synthesis & Latest Updates
1 Sources Cross-Validated

An audit of 8.5 million inputs across 18 closed-form KL families and F.kl_div finds widespread value and gradient errors in PyTorch on both CPU and GPU: over 85% of FP32 results carry at least 1% relative error near KL 1e-7, about 30% turn negative at smaller divergences, and higher precision does not fix it. The authors propose stable closed-form decompositions, compensated arithmetic and analytic gradients that remove over 97% of significant errors, with code and data open-sourced.

LATEST/An audit of 8.5 million inputs across 18 closed-form KL families and F.kl_div finds widespread value and gradient errors in PyTorch on both CPU and GPU: over 85% of FP32 results carry at least 1% relative error near KL 1e-7, about 30% turn negative at smaller divergences, and higher precision does not fix it. The authors propose stable closed-form decompositions, compensated arithmetic and analytic gradients that remove over 97% of significant errors, with code and data open-sourced.

Hourly heat curve

9 fully observed hours
Now
6.4
Peak
7.702:00
24h change
–

The line compares only sources observed throughout; gap hours are interpolated to keep the trend continuous.

Coverage timeline

Total 1 reports · Latest first
  1. Hacker News AIT2·78 pts
    • Over 85% of FP32 closed-form KL values show at least 1% relative error near KL 1e-7, and about 30% go negative at smaller divergences
    • Higher precision is not the cure; 22 of 23 configurations still leave 7-51% of FP32 values significantly wrong
    • Errors propagate to parameter fitting, identical-start distillation (up to 97% top-1 disagreement) and 19-59% of GPT-2 circuit edge scores
    • Stable decompositions and compensated arithmetic remove over 97% of significant errors; code is open-sourced