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. Sam Altman called it “the most important thing OpenAI has published in awhile.”

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.

Chapter 1

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?

Chapter 2

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 in the payment formula and the word 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.

Chapter 3

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?

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 e1.24 = 3.5: on average the model is as unsure as a pick among 3.5 equal options.

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?

Or drag the handle on the skyline, then

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.

Chapter 4

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?

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 .

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).

Chapter 5

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?

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.

Chapter 6

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.

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.

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:

Score by how many preceding tokens each guess can see
Sees back832128512whole file
Score3.532.121.611.311.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.

Chapter 7

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.

Chapter 8

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.

· score per token · model size
mortgagemath / _payment.py · 2026 · MIT licence
Michael S. Barr, Federal Reserve Board, speech of 16 Nov 2026 (opening) · US government work, public domaintint = surprise

Sources and method