Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 23 h ago

The KL Divergence Is Never Negative, Except in PyTorch

Open the sourceReported by Hacker News, arxiv.org, 24 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

A study of 8.5 million certified inputs across 18 closed-form KL divergence families and PyTorch’s F.kl_div found widespread value and gradient errors on CPU and GPU, explaining years of reported negative KL values that users typically clamp at zero. The findings matter because a sign check alone masks a silent numerical failure in widely used ML tooling; the next step is watching whether PyTorch and dependent libraries adopt the proposed stable formulations and compensated implementations.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

PyTorch, Kangning Cui