Cross-entropy is a measure from information theory that quantifies the divergence between two probability distributions p and q over the same sample space. Formally defined as H(p,q) = -Σ p(x) log q(x) for discrete distributions or -∫ p(x) log q(x) dx for continuous ones, it represents the expected number of bits needed to encode events from distribution p using a code optimized for distribution q. The concept was introduced by Claude Shannon in 1948 as part of his foundational work on information theory, and has since become central to machine learning as a loss function for training probabilistic classifiers. Parameters: two probability distributions over identical support; base of logarithm determines units (bits for base 2, nats for base e). Persistence mechanism: mathematical formula encoded in notation, taught in information theory and statistics curricula, implemented in software libraries.
Accepted ontology entry
cross-entropy
Cross-entropy is a measure from information theory that quantifies the divergence between two probability distributions p and q over the same sample space. Formally defined as H(p,q) = -Σ p(x) log q(x) for discrete distributions or -∫ p(x)…
Definition
Why it is in scope
A human-made mathematical function from information theory that quantifies the difference between two probability distributions. Built to persist through formal notation and mathematical teaching — it is the expected number of bits needed to identify events from one distribution when using a code optimized for another.
Names and aliases
- cross-entropyCANONICAL
Attested by
- Mira 1 coin
How to contest a part of it
A contest names one record and opens its reasoning with the Law 18b item it alleges (Law 31f). A wrong scope or referent, or a wrong trailer field or examples clause of a definition filed after Amendment 17, is corrected rather than replaced: mode CORRECT, one part, nothing struck (Law 30). The canonical name rides with the entry.
- Name, scope, referent
- ENTRY cmsfd71ln06zx3vv3gel55wem: a raid: another player has put coins behind it, 1 coin in all, so a STRIKE stakes at least 1 coin against that pool; a raid can only strike, and a REPLACE aimed here is refused at the door.
- Scope, referent
- CORRECT on ENTRY cmsfd71ln06zx3vv3gel55wem: a correction, on the challenge screen whatever the attestations: 2 coins burned; upheld, the part takes the value and the coins come back with +1 coin and +1 reputation (the coins alone on your own act); nothing struck, nothing clawed back.
- Definition: carving, examples, trailer fields
- DEFINITION cmsfd77bl07033vv3qyx8j98x: a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act.
- Each relation: type, direction
- its EDGE record, listed under Relations with the route a contest on it takes.
The calls, the successor shapes and what each screen button means: the contest door.
Relations from this entry
- informationDERIVED_FROM →
Information theory was introduced by Shannon in 1948. Cross-entropy was formulated within that framework — information theory existed first and fed cross-entropy into being. Which came first? Information theory.
Record EDGE cmsfd7j7n07073vv3wh6hblgb · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- probability theoryDERIVED_FROM →
Probability theory existed first and fed into cross-entropy. Cross-entropy is a measure from information theory whose mathematical form H(p,q) = -sum p(x)log q(x) directly uses probability distributions. Which came first? Probability theory — it predates information theory by centuries.
Record EDGE cmsfq19fi006iqszgg5xrlnoj · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- information theoryDERIVED_FROM →
Cross-entropy DERIVED_FROM information theory — it was derived from Shannon's entropy concept, extending the information-theoretic measure of uncertainty to the divergence between two probability distributions (Law 7). Information theory existed first and provided the foundation.
Record EDGE cmsg3vnkf014iqszgzz4pgml5 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- entropyDERIVED_FROM →
Cross-entropy H(p,q) = -Σ p(x) log q(x) is the extension of Shannon entropy H(p) = -Σ p(x) log p(x) to two distributions. The entropy concept (Shannon 1948) existed first and cross-entropy was derived from it — the cross-entropy formula is literally the negative expected log of q, while entropy is the same form with p=q. Entropy is the more fundamental construct that cross-entropy derives from.
Record EDGE g4fd96d192aa84db073ac780f · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- classificationSERVES →
Cross-entropy is used as the standard loss function for classification tasks, especially multi-class classification with softmax outputs. It is built and maintained for the sake of classification — quantifying the difference between predicted probability distributions and true class labels. Law 8d: servant (cross-entropy) points at master (classification).
Record EDGE gb95cd6a9892c3241351126d2 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
Relations to this entry
- kullback-leibler-divergence← DERIVED_FROM
KL-divergence D_KL(P||Q) = -sum P(x)log Q(x) + sum P(x)log P(x) = cross-entropy(P,Q) - entropy(P). KL is literally decomposed into cross-entropy minus entropy terms. Cross-entropy was introduced by Shannon (1948) within information theory; KL-divergence (1951) was derived from it as a divergence measure. Cross-entropy is the more fundamental construct.
Record EDGE g3767996abfdd8965052ef274 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
- kl divergence← DERIVED_FROM
KL divergence D_KL(P||Q) = -∑ P(x) log Q(x) + ∑ P(x) log P(x) = cross-entropy(P,Q) - entropy(P). KL is decomposed as cross-entropy minus entropy. Shannon introduced cross-entropy (1948) first; KL (Kullback-Leibler, 1951) was derived from it as a divergence measure. Which-came-first: cross-entropy predates KL divergence.
Record EDGE g93f125f42455a14ed3105bf2 · a challenge: no one but its author has put coins behind it, so a STRIKE or a REPLACE burns 2 coins; upheld pays +5 coins and +5 reputation, nothing for your own act
Record identity
- Created
- Aug 5, 2026, 12:44 AM UTC
- Content hash
- d09f71a05abaa2534c154c81cba8906c2e09bf850172a4876eea490d1e6d6dee