cd /news/large-language-models/perplexity-cross-entropy-and-what-0-… · home › topics › large-language-models › article
[ARTICLE · art-177731] src=sithankanna.com ↗ pub= topic=large-language-models verified=true sentiment=· neutral

Perplexity, Cross Entropy, and What 0.76 Means

A cross-entropy of 0.76 corresponds to a perplexity of about 2.1 and means a language model assigns roughly 47% probability to the correct token on geometric average, according to an analysis building on OpenAI's post "Perplexity and Intelligence." The same conversion puts GPT-3.5 at a log perplexity of 0.99 (37% average probability on the correct token) and GPT-4 at 0.91 (40%), while a model choosing uniformly across a 100,000-token vocabulary would score about 11.5. The piece explains that log perplexity equals cross entropy, so exponentiating the negative cross entropy yields the geometric mean probability the model places on the observed token.

recommendation

Report cross entropy alongside perplexity and convert with e^(-CE) to state the average probability the model assigns to correct tokens when comparing models.

more in playbook: Evals and testing for LLM apps
read2 min views7 publishedNov 28, 2026
      Inspired by OpenAI's recent post,
      [Perplexity

    
      and Intelligence](https://openai.com/index/perplexity-and-intelligence/):

Perplexity #

Consider predicting the token at position $t$. The classes are the tokens in the vocabulary, indexed by $k=1,\ldots,d_{\text{vocab}}$. Here $y_{t,k}$ is the target for token $k$ (1 for the observed token, 0 otherwise) and $\hat{y}{t,k}$ is the model's predicted probability of token $k$ given the previous tokens. The cross entropy is $$ \mathcal{L}{\textsf{CE}} = -\sum_{k=1}^{d_{\text{vocab}}} y_{t,k}\ln\hat{y}{t,k}(y{<t}). $$

With a one-hot target, only the term for the observed token $y_t$ survives, leaving $-\ln p_\theta(y_t\mid y_{<t})$. Take a sequence of $N$ tokens

$$ Y=(y_1,\ldots,y_N). $$ Its perplexity is

$$ \operatorname{PP}(Y) = \exp!\left(-\frac{1}{N}\sum_{t=1}^{N}\ln p_\theta(y_t\mid y_{<t})\right). $$ The cross entropy averaged over the same sequence is

$$ \operatorname{CE}(Y) = -\frac{1}{N}\sum_{t=1}^{N}\ln p_\theta(y_t\mid y_{<t}). $$

The term inside the exponential is exactly $\operatorname{CE}(Y)$. So $$ \ln\operatorname{PP}(Y)=\operatorname{CE}(Y). $$

What the Numbers Mean #

Undo the log:

$$ e^{-\operatorname{CE}(Y)} = \left(\prod_{t=1}^{N} p_\theta(y_t\mid y_{<t})\right)^{1/N}. $$ So $e^{-\operatorname{CE}}$ is the geometric mean of the probability the model assigns to the correct token. A cross entropy of $0.76$ gives $e^{-0.76}\approx 0.47$: on (geometric) average, the model puts about 47% on the correct token. The perplexity is $e^{0.76}\approx 2.1$, as if the model were choosing uniformly between about two tokens.

Applying the same conversion to the log perplexities quoted in the OpenAI post:

| Model | Log perplexity (aka CE) | Average probability assigned to the correct token <sup>[1](#fn-1)</sup> | 
|---|---|---|

| GPT‑3.5 | 0.99 | 37% | | GPT‑4 | 0.91 | 40% | | “Losses below 0.8” | 0.80 | 45% | | Model producing the maths results | 0.76 | 47% | | Next expected window | 0.68–0.70 | 50–51% |

For context, an LLM has a vocab in the order of 100k. A model that picks a token totally at random assigns a probability of $1/100{,}000 = 0.001\%$ to the correct token. Or a log perplexity of $\ln(100{,}000)\approx 11.5$.

1. It's the geometric mean. [↩](#fnref-1)
── more in #large-language-models 4 stories · sorted by recency
── more on @openai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/perplexity-cross-ent…] indexed:0 read:2min 2026-11-28 · —