Abstract: Current language models are considered to have sub-human capabilities at natural language tasks like question-answering or writing code. However, language models are not trained to perform well at these tasks, they are trained to accurately predict the next token given previous tokens in tokenized text. It is not clear whether language models are better or worse than humans at next token prediction. To try to answer this question, we performed two distinct experiments to directly compare humans and language models on this front: one measuring top-1 accuracy and the other measuring perplexity. In both experiments, we find humans to be consistently worse than even relatively small language models like GPT3-Ada at next-token prediction.
Introduction
We often evaluate AI by how well it performs "human" tasks—answering trivia, writing essays, or debugging code. However, causal language models aren't explicitly trained for these tasks; they are trained to minimize the "loss" of predicting the very next token in a sequence.
There has been a lingering question in the research community: Are humans actually better at this fundamental task than the models we build? Previous estimates of "human perplexity" were often based on shaky extrapolations or narrow datasets. This paper seeks an "apples-to-apples" comparison to determine if LMs have already surpassed us at the specific game they were designed to play.
Methods
The researchers conducted two distinct experiments to compare humans against models like GPT-Neo and GPT-3:
- Top-1 Accuracy Game: Participants were shown a text segment from the OpenWebText dataset and asked to guess the single most likely next token. If they guessed correctly, they got a point.
- Perplexity Estimation: Perplexity is harder to measure because it requires a probability distribution over the entire vocabulary (often 50,000+ tokens), which a human cannot provide. To solve this, the authors used importance sampling. Humans were shown a prompt and two candidate tokens (one correct, one sampled from a reference LM) and asked to estimate the relative likelihood of each. To ensure participants gave honest probability estimates rather than just guessing the winner, the authors implemented a weighted binary cross-entropy reward system.
Datasets
- OpenWebText: A high-quality crawl of Reddit-linked web pages, used as the primary benchmark for evaluation.
- The Pile: Used to check for overfitting, comparing model performance on training vs. validation sets.
- Filtered Word-only Dataset: A subset of tokens consisting only of whole words (starting with a space, alphabetical characters only) to account for human difficulty with sub-word tokenization schemes.
Key Results
Top-1 Accuracy
The average human accuracy was roughly 29-30%. In contrast, even the smallest model tested (GPT-Neo-125M) achieved significantly higher accuracy, and GPT-3 (175B) reached 56%. The distribution of human performance shows that even the most skilled human players fall significantly short of the baseline performance of modern language models.
Perplexity
Human perplexity was estimated to be over 100 (lower is better). For comparison, GPT-2 small (117M) has a perplexity of roughly 30-40 on the same data. This indicates that models are far more "certain" and accurate in their probabilistic modeling of text than humans.
Key Insights and Ideas
- The "Superhuman" Threshold is Low: You don't need a trillion-parameter model to beat a human at prediction. Small models (117M to 1.3B parameters) are already significantly better at guessing the next token than motivated humans.
- Coherence vs. Prediction: Humans are excellent at writing coherent text, but next-token prediction requires more than just coherence. It requires "memorizing" the vast, idiosyncratic statistical patterns of the internet—everything from rare proper nouns to specific formatting styles—where LMs have a massive advantage in "memory" capacity.
- Tokenization is a Barrier: Humans struggle with Byte Pair Encoding (BPE). We think in words, but models think in fragments. Even when the researchers filtered the test to only include whole words, LMs maintained their lead, though the gap narrowed.
- Interpretability Implications: This suggests that LMs possess a much denser "world model" than we might assume. If a model is better at predicting the next token than a human, it likely understands the underlying structure and facts of that text more deeply than a human reader does.
Limitations and Future Work
The authors acknowledge several hurdles in making this comparison perfectly fair:
- Calibration: Humans are notoriously bad at assigning precise probabilities, which penalizes their perplexity scores.
- Tokenization Bias: Even with "word-only" filters, the way LMs are trained on sub-word units might give them a structural advantage in seeing patterns that humans ignore.
- Sample Size: The perplexity experiment relied on a relatively small set of 120 unique prompt/token pairs, leading to wider uncertainty intervals for human scores.
Future research could involve training humans specifically on tokenization schemes or using "word-level" models to see if the human-LM gap persists when the "language" of the task is more natural to us.
Summary updated