← Topic:Technology and AI guideSOURCE EVIDENCEExplore Topic:Technology and AI
Browse the extracted source moments, including those beyond the guide’s selected citations. Source types are distinct. These are retained paraphrases or structured measurements; check the original source and its limitations.
Browse published, available sources beyond the guide’s selected citations. Narrow by source type or date, or explore the Research library across subjects.
3Blue1Brown · 2026-07-16 · ConversationCross-entropy quantifies the inefficiency of applying a compression scheme optimized for one distribution (Q) to data following a different reality (P). Using a toy example of a robot receiving navigation instructions, the author demonstrates that when the probability of certain symbols changes, using the old encoding scheme leads to higher average bit usage. Cross-entropy is defined as the weighted average of these bit costs, serving as a measure of mismatch between two distributions.
3Blue1Brown · 2026-07-16 · ConversationTraining neural networks requires a loss function that effectively guides the model to minimize error. Mathematical derivation shows that if one requires a loss function to reach its minimum only when the model's output distribution matches the training data's statistical distribution, the choice of function is constrained. Logarithmic functions are the only class of functions that satisfy the derivative conditions for this alignment, explaining why cross-entropy (negative log-likelihood) is the standard in deep learning.
3Blue1Brown · 2026-07-16 · ConversationModel distillation provides a more efficient training signal than standard pre-training. Instead of training a smaller 'student' model to predict a single hard target (the true next token), the student is trained against the 'teacher' model's entire output distribution. This uses cross-entropy as a loss function over the full set of probabilities, which functions similarly to learning a skill from a mentor who explains the relative likelihood of various good moves rather than just showing one correct answer.
3Blue1Brown · 2026-07-16 · ConversationKullback-Leibler (KL) divergence measures the 'wasted bits' or inefficiency incurred when using a sub-optimal code. It is formally defined as the difference between cross-entropy and entropy. In machine learning, it serves as an asymmetric distance metric between two probability distributions. While cross-entropy measures the total prediction cost, KL divergence isolates the specific penalty attributable to the divergence between the model's predicted distribution and the target distribution.
Know a source we’re missing? Suggest it →
Source availability and coverage can change. No new AI requests are made to browse evidence.