An unofficial, read-only Hacker News reader. Join the beta →

The KL Divergence Is Never Negative, Except in PyTorch (opens external site)

97 points by Anon84 3 days ago | arxiv.org | 40 comments on HN

View full thread · View on Hacker News

Comment thread (1)

  1. So this is a bug from 2022? https://github.com/pytorch/pytorch/issues/80488

    They didn't really show any real world impacts - maybe in distillation? And what impact using logits throughout would have?

    This seems like an engineering tradeoff decision and each of their changes they haven't quantified it - how much slower does each change give you for an effect in the simulated/real world?

    Could you just cast things to float64 and call it a day?