Errors in PyTorch KL divergence
AI-generated summary A recent study identifies significant numerical inaccuracies and gradient errors in the PyTorch library implementations of Kullback--Leibler divergence. The researchers found that over 85 percent of values calculated using 32-bit floating-point precision exhibited at least a 1 percent relative error.