---
title: "What is model perplexity? OpenAI's Perplexity and Intelligence, explained"
url: https://howmodels.work/perplexity/
description: "Perplexity measures an AI model's average surprise at each next token; OpenAI's score fell only from about 0.99 to 0.76 while its models went from ChatGPT to maths breakthroughs. See why, on five real models."
published: 2026-11-24
updated: 2026-11-24
based_on: https://openai.com/index/perplexity-and-intelligence/
---

> Text version of an interactive explainer. The page at https://howmodels.work/perplexity/ lets you click any token, drag the charts and answer a question before each reveal; every number below is the same as on the page.

## Key findings

- OpenAI's reported pretraining score (log-perplexity, average surprise per token) fell by 0.225, from about 0.99 to 0.76, between the models behind the original ChatGPT and its latest. In our separate experiment, Qwen2.5-14B scores 1.24 on a 1,418-token code file written after it was trained.
- Most predictions are nearly free: the easiest half of the tokens holds 1.3% of the model's total surprise on this file, and the hardest tenth holds 51%.
- Making just the 34 hardest predictions perfect (2.4% of the file) lowers the average by about 0.225, the size of OpenAI's whole drop. Making the easiest half perfect lowers it by 0.016.
- From 0.5B to 14B parameters the score falls from 1.85 to 1.24, but unevenly: the best-improving fifth of tokens carries 91% of the net gain, and 456 tokens barely move.
- The model learns as it reads: limited to the last 32 tokens, the same model scores 2.12 (71% worse); on English prose (a Federal Reserve speech) it scores 2.20, and the same limit costs only 21%.

# What is model perplexity?

*An interactive piece*

On November 22, OpenAI published something unusual: [the internal score it has been using to track progress in pretraining its AI models](https://openai.com/index/perplexity-and-intelligence/). Sam Altman called it [“the most important thing OpenAI has published in awhile.”](https://x.com/sama/status/2124551594691932405)

OpenAI's chief scientist, Jakub Pachocki, proposes using this score, alongside other metrics, to establish common limits on how far AI labs should advance their models before safety and monitoring techniques catch up.

From the generation of models behind the original ChatGPT to models producing breakthroughs in mathematics, the reported score has fallen from around 0.99 to 0.76.

**What is this score and how can such a small change accompany such a large increase in capability?** To understand this, we'll take five real AI models, give them the same unfamiliar piece of code, and reconstruct the score from their individual predictions.

## Why is OpenAI tracking this number?

This is the chart OpenAI published. Every dot is a model's score on the same collection of code. Lower is better.

Tap any dot to see the model and its score.

### How can 0.225 mean so much?

Four years of progress: from fluent conversation to reasoning, useful code and mathematical breakthroughs.

The score fell by just 0.225. What actually changed inside that number?

## How do you score a prediction?

Try finishing a sentence: “The capital of France is…”

You'd probably say Paris. A language model does something similar, except it assigns probabilities to many possible continuations. During pretraining, it gets better at predicting what comes next.

To score a prediction, we look at the probability the model gave the **token** that actually appeared: a word, part of a word or a symbol. If it was certain, the penalty is zero. At 50%, the penalty is 0.69. At 10%, it's 2.30.

We call this penalty **surprise**. The less the model expected the actual answer, the more it pays.

Drag the dot to see how surprise changes with probability.

### What does a real model predict?

OpenAI's test code is private. So we'll use a different model family, Qwen2.5, and a real Python file it has never seen before: mortgage-payment code written in spring 2026, after the model was trained.

It guesses while it reads. In one pass over the file it gives odds for the next token at every position, each time using everything before it. A chatbot throws those odds away and keeps only the last set, to write its reply. To score, we keep them all and look up the odds it gave the token that actually came next. “Never seen” matters: the file postdates the model, so it can't have memorised the answers.

No need to understand Python. Try two tokens: the final `1` in the payment formula and the word `worked` a few lines below. The 14B model is nearly certain about the first. It gives the second about one chance in 260,000.

Tap either token, or explore the file yourself.

## How do thousands of guesses become one number?

### How much surprise is in the easiest half?

The model makes 1,418 such predictions on this file, one per token. Take the easiest half, the 709 it was surest of. What share of the file's total surprise do they hold?

**Your guess:** About 50% · About 25% · About 10% · Under 5%. (On the page you pick one before the answer opens.)

### The easy half is almost free

Answer: **1.3%.**

Half the predictions barely register. The hardest tenth, meanwhile, accounts for 51% of the model's total surprise.

Here are all 1,418 tokens, arranged from the easiest prediction on the left to the hardest on the right. The tall bars are the places where the model was most surprised by what it read.

Tap a bar to see which token it represents.

### How do we turn guesses into one score?

Imagine pouring the entire skyline flat, without changing the amount of water. The height it settles at is **1.24**: the model's average surprise per token on this file.

That average, on text the model hasn't seen, is what OpenAI's chart plots. It's called **log-perplexity**; machine-learning people call the same number the cross-entropy loss. Perplexity itself is e^1.24 = 3.5: on average the model is as unsure as a pick among 3.5 equal options.

Pour it again

### How many perfect predictions would cut the score by 0.225?

Remember that 0.225 drop in OpenAI's chart? Let's see how large a change that is in our own experiment.

Imagine we could make some of Qwen's hardest predictions perfect. How many would we need to improve to lower its average surprise by 0.225?

**Your guess:** 10 · Around 35 · Around 140 · Half the file. (On the page you pick one before the answer opens.)

Answer: **Just 34 of 1,418 tokens.**

Make those 34 hardest predictions perfect, and you lower the average by roughly the same amount. Make all 709 of the easiest predictions perfect, and it falls by just 0.016.

Drag the handle to see how quickly the water level falls.

## What changes as models get bigger?

We tested five sizes of Qwen2.5, from 0.5B to 14B parameters, trained the same way. Think of these parameters as the model's learned numerical settings.

Here is the smallest reading the same file: its score is 1.85.

The biggest is 28 times larger and scores 1.24. Before you look: which tokens got better?

**Your guess:** Most tokens improved a little · Mostly the already-easy tokens · Some tokens improved a lot. (On the page you pick one before the answer opens.)

### Does every prediction improve equally?

Answer: **Some tokens improved a lot.**

The best-improving fifth of the tokens accounts for 91% of the net gain. For 456 tokens, the score barely moves.

Watch the skyline as you make the model larger. Blue shows the predictions that got better. Keep an eye on how unevenly the blue appears.

Move the size slider, or sweep through all five.

### What did the larger model get better at?

Look at where the blue landed: *Fannie Mae*, *Actual/360*, *semi-annual* compounding. The bigger model is much better at predicting several terms specific to the world of mortgages.

But there is a twist. The author allows a zero interest rate, writing `annual_rate < 0`. The largest model was 98% sure the next operator would be `<=`. It gave the actual operator just 0.3%.

**A bigger model bets harder on the usual choice and loses more when the author picked another.**

Compare a blue token (better with size) and an underlined one (worse).

## Which predictions remain difficult?

### Can a larger model predict exact digits?

The file gives a worked example: **$25M** at **5.5%** over **30 years** means a yearly constant of `6.8134680%` and a monthly payment of `$141,947.25`.

Will the 14B model guess those digits better than the 0.5B?

**Your guess:** Much better · Somewhat better · No better. (On the page you pick one before the answer opens.)

### Did the bigger model get the digits right?

Answer: **Somewhat better, from 2.64 to 2.18 per digit. But look at the individual digits.**

Every size pays about 2 to 3 per digit, around what a ten-sided die costs (2.30). Only the payment's first two digits get cheaper with size: the bigger models know roughly how large a payment on $25M should be.

Yet these numbers aren't random. 25,000,000 × 6.8134680% ÷ 12 = 141,947.25. A model that could *do the sum* would get them for free.

### How much could a new skill lower the score?

Imagine two upgrades to the model.

**It can do the sum.** Make all 16 digit tokens we just examined perfectly predictable. The average surprise falls by just 0.025. Sixteen difficult predictions disappear, yet the overall score barely moves.

**It can predict the tokens that stumped every model.** There are 85 of them, including names the author invented, unusual phrasings and symbols. On its own, that takes 0.44 off the 1.24: more than a third of the score.

From outside, the two kinds look alike. Some tokens are truly unguessable, like a name nobody has written yet. Others only look that way until a model can work them out. **Nobody knows that split, which is why nobody knows how low the score can go.**

Switch on either simulated upgrade and watch the water level.

## What happens when we take context away?

### What if the model could see only 32 tokens?

Until now, the model could see everything in the file before the token it was trying to predict. By the end of the file, that means up to 1,418 preceding tokens.

What happens to its score of 1.24 if we restrict it to just the previous 32 tokens, roughly two or three lines of code?

The model's learned settings haven't changed. The text hasn't changed. We have only reduced how much of the preceding text it can see.

**Your guess:** Changes very little · Rises about 20% · Rises more than 50%. (On the page you pick one before the answer opens.)

### How much does limiting context hurt?

Answer: **71% more surprise.** The same model goes from 1.24 to 2.12.

The black line shows the model reading with the full preceding file in view. The orange line shows it reading with just 32 tokens in view. As it moves through the file, the two start to separate. The difference shows how much the earlier text can help.

Change the context window to see what the model can read. Tap a token to compare both predictions.

### Why does a repeated name become easier?

Follow the name `LoanParams`, the author's name for a bundle of loan settings.

The first time the model meets `Params`, its surprise is 4.42. On its 4 later appearances, it averages 0.03. Take away the earlier text, and those same later appearances cost 5.88.

Repeats of words already in the file, like this one, account for 32% of the improvement from seeing the whole file. Reading can't help with a first use, which is why many first uses of invented names are among the tokens that stumped every model: unguessable once, then free.

### What happens on a second reading?

Let's give the model the whole file, then give it the same file again.

On the second reading, its score falls from 1.239 to 0.016. It can largely copy what it just read.

This is why unfamiliar test material matters. A low score means much less if the model has already seen the answers.

Read it twice draws the second reading on the chart.

### How much context does the model need?

The score averages every position, so it includes this learning as it reads. The more each guess can see, the lower the score. For Qwen2.5-14B:

| Sees back | 8 | 32 | 128 | 512 | whole file |
|---|---|---|---|---|---|
| Score | 3.53 | 2.12 | 1.61 | 1.31 | 1.24 |

So scores only compare on the same text, read the same way. OpenAI scores every model on the same code, so its comparison holds.

Bigger models lean on reading more. Cutting the view to 32 tokens raises the 0.5B's score by 51% and the 14B's by 71%.

So part of what the number measures is how well a model uses what it has just read.

## Does the same pattern hold in English?

Now give the same five models something quite different: the opening of a November 2026 Federal Reserve speech about AI and financial stability (1,354 tokens).

Qwen2.5-14B scores **2.20** on it, against 1.24 on the code. Prose has few free tokens. On the code, the easier half of the tokens carries 1.3% of all the surprise; on the speech it carries 11.7%. No indentation, few invented names: almost every word is a real choice.

Reading helps prose less. Cut the 14B's view to 32 tokens and its speech score rises 21%, against 71% on the code. Past 512 tokens, about a page, more context buys nothing (2.19 against 2.20): a speech rarely points back further than that, while code keeps calling names defined at the top. Read twice, it still drops to 0.02, because copying works on any text.

Explore the speech, or change model size.

## What happens as perplexity falls further?

### How does this help explain the original chart?

Return to OpenAI's chart. Each dot is an average over a large number of predictions. We've now seen what can happen underneath such an average: a few hard predictions improve dramatically, many others hardly change.

Our Qwen experiment gives us a way to understand why a movement of just a few hundredths could accompany a major change in capability.

### Where does the score go next?

OpenAI expects new abilities at **0.68–0.70**, and doesn't know which. On average that is one coin toss per token (ln 2 = 0.69).

Below it is a floor nobody can place, and near it each step looks smaller and means more. That is why Pachocki proposes limits, based on this number and others, that labs agree not to cross until they can understand and monitor what their models are doing.

## Sources and method

- **The metric.** Surprise is −ln *p*, where *p* is the probability the model gave the token that actually came next (natural log, the article's unit). Log-perplexity, also called average loss or cross-entropy loss, is the mean surprise over every scored token. Perplexity is e raised to that mean. It is not an accuracy, and “as unsure as a pick among *n* equal options” is an analogy, not a count of options the model considered.
- **OpenAI's article:** Jakub Pachocki, [“Perplexity and Intelligence”](https://openai.com/index/perplexity-and-intelligence/), OpenAI, 22 Nov 2026. The 14 chart points, milestone labels and the ~0.68–0.70 window were read from the chart data embedded in the article page, not by eye, and are re-plotted here with attribution. OpenAI measures base models on a fixed snapshot of its internal codebase, which is private; we did not reproduce it. Not every model on the chart improved on the one before. Sam Altman's comment: [post on X](https://x.com/sama/status/2124551594691932405), 22 Nov 2026.
- **Two separate experiments.** OpenAI's numbers come from its models on its code. Ours come from Qwen2.5 on one public file. Different text and different models, so Qwen's numbers can't be placed on OpenAI's axis; the article lists this “difficulty of comparison across labs” itself. Only the shape carries over.
- **The code:** `src/mortgagemath/_payment.py` from [mortgagemath](https://github.com/murraystokely/mortgagemath) by Murray Stokely, pinned at commit [`f107b07`](https://github.com/murraystokely/mortgagemath/blob/f107b074c82e885ea95e3b0bb78660820994373f/src/mortgagemath/_payment.py) (6 May 2026; the file was first committed on 27 Apr 2026). 142 lines: 1,419 tokens, of which 1,418 are scored (the first has nothing before it). Used under the MIT licence:
- **The English text:** Michael S. Barr, [“Some Potential Financial Stability Implications of Artificial Intelligence”](https://www.federalreserve.gov/newsevents/speech/barr20261116a.htm), speech, Federal Reserve Board, 16 Nov 2026: the title and opening sections, footnote markers removed, 1,354 scored tokens. A work of the US government, in the public domain. Code and speech differ in length and kind; the comparison describes these two texts, not code and English in general.
- **Models:** [Qwen2.5](https://huggingface.co/Qwen) base models (Alibaba, Sept 2024) at 0.5B, 1.5B, 3B, 7B, 14B parameters (nominal sizes; “28 times larger” uses these). Licences: Apache 2.0 for 0.5B, 1.5B, 7B and 14B; the Qwen Research licence for 3B. Hugging Face revisions: 0.5B `060db64`, 1.5B `8faed76`, 3B `3aab1f1`, 7B `d149729`, 14B `97e1e76`. All five share one tokenizer, so the tokens are identical across sizes. Run locally in bfloat16 on Apple silicon (MPS), one forward pass over the whole file, with Hugging Face `transformers`. These are five sizes from one family, not the whole family; differences between sizes are observed associations, not proof that size alone caused them.
- **Thresholds.** “Barely moves” means the surprise changed by less than 0.05 between 0.5B and 14B; “got worse” (underlined) means it rose by more than 0.5. The best-improving fifth is the 284 tokens with the largest drop, as a share of the net drop over all tokens.
- **Simulations, not new models.** “Perfect predictions” (chapter 3) and both upgrades (chapter 5) set chosen tokens' measured surprise to zero and recompute the average. “Does the sum” zeroes the 16 digits of 6.8134680 and 141,947.25. “Tokens that stumped every model” are the 85 tokens every size gave under 1% (surprise above 4.6); not all of them are unknowable, and which ones are is not measured here. Neither demonstrates a skill any model actually has.
- **Context:** “only the last 32 tokens” means each token was scored again with just the 32 tokens before it as input (also 8, 128 and 512). The model and its settings are unchanged; only the visible input changes. Tokens near the start, which have fewer tokens before them anyway, keep their normal score. “Read it twice” feeds the file twice in one pass and scores the second copy. The chart lines are each token's surprise averaged over the nearest 100 tokens. The `LoanParams` figures compare its first appearance with the mean of its 4 later ones.

## Data tables

### OpenAI's chart

Points re-plotted from "Perplexity and Intelligence" (Jakub Pachocki, OpenAI, 22 Nov 2026), with attribution. OpenAI measures on its internal codebase; lower is better.

| Model | Month | Log-perplexity | Milestone |
|---|---|---|---|
| GPT-3.5 | 2022-03 | 0.986 | Fluent conversation |
| GPT-4 | 2023-03 | 0.913 | Benefits from thinking before answering |
| GPT-4 Turbo | 2023-11 | 0.909 |  |
| GPT-4o / o1 | 2024-05 | 0.904 |  |
| GPT-4.5 | 2025-02 | 0.876 |  |
| GPT-4.1 / o3 | 2025-04 | 0.902 |  |
| GPT-5 / 5.1 | 2025-08 | 0.893 |  |
| GPT-5.2 | 2025-12 | 0.888 |  |
| GPT-5.3-Codex / 5.4 | 2026-02 | 0.871 | Useful coder |
| GPT-5.5 | 2026-04 | 0.848 |  |
| GPT-5.6 Sol | 2026-07 | 0.828 | Cybersecurity expert |
| GPT-6 Astra | 2026-09 | 0.783 |  |
| GPT-6.2 Astra | 2026-11 | 0.761 | Solved a Millennium Prize math problem |
| Internal model | 2026-11 | 0.732 |  |

### Qwen2.5 base models on a real file

**Mortgage-payment code** (1,418 tokens). Score = average surprise per token, −ln p, natural log. Lower is better.

| Model | Score, full memory | Perplexity | Sees 8 tokens back | Sees 32 tokens back | Sees 128 tokens back | Sees 512 tokens back | Second read of the same text |
|---|---|---|---|---|---|---|---|
| Qwen2.5-0.5B | 1.850 | 6.36 | 4.173 | 2.799 | 2.207 | 1.930 | 0.020 |
| Qwen2.5-1.5B | 1.552 | 4.72 | 3.847 | 2.497 | 1.918 | 1.638 | 0.016 |
| Qwen2.5-3B | 1.433 | 4.19 | 3.754 | 2.353 | 1.797 | 1.504 | 0.013 |
| Qwen2.5-7B | 1.343 | 3.83 | 3.592 | 2.235 | 1.687 | 1.413 | 0.016 |
| Qwen2.5-14B | 1.239 | 3.45 | 3.527 | 2.121 | 1.610 | 1.306 | 0.016 |

**Federal Reserve speech, English prose** (1,354 tokens). Score = average surprise per token, −ln p, natural log. Lower is better.

| Model | Score, full memory | Perplexity | Sees 8 tokens back | Sees 32 tokens back | Sees 128 tokens back | Sees 512 tokens back | Second read of the same text |
|---|---|---|---|---|---|---|---|
| Qwen2.5-0.5B | 2.676 | 14.53 | 4.008 | 3.149 | 2.844 | 2.677 | 0.022 |
| Qwen2.5-1.5B | 2.456 | 11.66 | 3.815 | 2.919 | 2.618 | 2.461 | 0.013 |
| Qwen2.5-3B | 2.346 | 10.44 | 3.742 | 2.847 | 2.519 | 2.346 | 0.023 |
| Qwen2.5-7B | 2.254 | 9.53 | 3.655 | 2.776 | 2.424 | 2.257 | 0.011 |
| Qwen2.5-14B | 2.197 | 9.00 | 3.615 | 2.660 | 2.339 | 2.190 | 0.017 |

"Sees N tokens back" re-scores every token with only the N tokens before it as input. "Second read" feeds the text twice in one pass and scores the second copy. Different text and models from OpenAI's, so these numbers can't be placed on OpenAI's axis.
