Cross Entropy and KL Divergence: Quantifying Differences Between Distributions
Understanding why modern machine learning models optimize cross entropy and how KL divergence comes into play. Introduction Probability distributions are essential to machine learning. Whether we are building a classifier, language model, or generative model, the objective is the same: Making the predicted probability distribution as close as possible to the true distribution. But we can’t just subtract the probabilities and find loss/error so,we ask How do we measure the difference between two probability distributions? ...