George Kingsley Zipf was a Harvard linguist who, by his own admission, did not like mathematics. In his 1932 book on word frequency he wrote that formalizing his data would "introduce the devil into the formula." His one equation survived anyway, and it turned out to be load-bearing for machine learning. Nearly a century later, every tokenizer, every loss curve and most of what modern models are bad at can be traced back to it.
The law, briefly
Zipf's law says that in a large body of text, the frequency of a word is roughly inversely proportional to its rank: the nth most common word appears about 1/n as often as the most common one. The pattern had been noticed before Zipf put his name on it, by the French stenographer Jean-Baptiste Estoup in 1916 and independently in city-population data as far back as 1913, but his 1935 and 1949 books made it a centerpiece of quantitative linguistics.
The numbers are stark. In the Brown Corpus of American English, a 1960s collection of about one million words, the single word "the" accounts for nearly 7% of all tokens. "Of" takes about 3.5%, "and" about 2.9%. In the two-billion-word Oxford English Corpus, the 100 most common lemmas cover about half of all words in use, according to the Wikipedia frequency analysis, and past the head the curve flattens into an enormous tail of words that appear once or twice, which is where proper nouns, jargon and misspellings live. On a log-log plot the distribution is a straight line with slope close to -1, which is why power-law fitting became a small industry; Benoit Mandelbrot proposed a shifted version with rank plus a constant, and later work by Ramon Ferrer-i-Cancho and Ricard Solé found that realistic corpora often show two regimes: an exponent near 1 for frequent words and nearer 2 for the rare ones.
Zipf's own explanation was the "principle of least effort": speakers want to say things cheaply with short, common words, listeners want clarity, and language settles at a compromise that produces the inverse-power distribution. That explanation has been argued over ever since. In a much-cited 2014 critical review in the journal Cognition, Steven Piantadosi showed that the law can be derived from information-theoretic assumptions about word learning and communicative efficiency, while also demonstrating that real word-frequency distributions contain more structure than the clean Zipf form admits.

Tokenizers were built to fit the curve
A large language model never sees raw text; it sees IDs from a fixed vocabulary that was chosen to compress exactly the distribution Zipf described. The standard method, byte-pair encoding, starts from single bytes and repeatedly merges the most frequent adjacent pair until the vocabulary budget is spent. The merge table is, in effect, a rank-frequency histogram with a cutoff. That is why "the" occupies one token slot and a rare surname arrives in a suitcase of fragments.
Vocabulary sizes track how much of the head you want to buy. OpenAI's gpt-2 encoding has 50,257 entries. Meta's Llama 3 ships 128,256, combining 100,000 entries carried over from tiktoken with roughly 28,000 added for non-English text, and Meta reports that the larger table makes every input and output about 19.5% shorter than it would be with Llama 2's 32,000-entry tokenizer. Bigger vocabularies shrink sequences but enlarge the embedding matrices that store them, so the cutoff is an economic decision, not a linguistic one.
The tail has a price, and it falls unevenly across languages.

Petrov, Tayyar and Gasparyan measured how many tokens the same translated sentence costs in ChatGPT-era tokenizers: roughly 1.6x more tokens for Italian than for English, 2.6x for Bulgarian, 3x for Arabic and up to 15x for Shan, with gaps persisting across 17 tokenizers, including ones trained to be multilingual. Because per-token API pricing, context-window fit and even latency all inherit these multiples, frequency coverage at the vocabulary stage quietly sets which language communities get a discount and which pay full freight. We covered the pricing consequences of non-uniform tokens elsewhere; the root cause is the curve.
The loss function rides the same curve
Pre-training optimizes average cross-entropy over predicted tokens, and in a Zipfian corpus the head of the distribution dominates that average. A 2025 study of vocabulary frequency imbalance during pre-training found that frequent words dominate the cross-entropy loss, and that expanding the vocabulary steadily lowers loss on frequent words while raising it on rare ones: gains at the head can outweigh tail damage, and the global metric improves even as the model learns less about the words you actually need it to memorize.
The tail also appears to damage the head. Yu et al., at ACL 2022, traced the known "representation degeneration" problem, in which learned token embeddings crowd into a narrow cone and stop distinguishing meanings, to the gradient dynamics of rare-token embeddings, and showed that gating those gradients improves generation quality across tasks. A 2025 analysis of how transformers process rare tokens likewise confirmed that models specialize painfully on infrequent predictions.
Behavior follows frequency more than difficulty
When models fail, the failure often correlates with how often the target appeared during training rather than how hard the task is. In Binz et al.'s Embers of Autoregression study, GPT-4 scored 42% on a common variant of a Pig Latin task but 23% on a rare variant of comparable complexity, and accuracy on simple counting tasks spikes at multiples of ten, the numbers most frequent in web text. OpenAI's analysis of why language models hallucinate makes the same connection from the training side: facts governed by consistent patterns resolve with scale, but arbitrary low-frequency facts, like a specific person's birthday, cannot be inferred from patterns and instead get guessed. A model that has seen an entity five times and is graded on a distribution where guessing beats abstaining will invent.
For anyone running evals, the practical reading is that aggregate benchmark scores are largely head metrics. They weight common words, common tasks and common distributions of names, and they underreport tail failures: the rare client name, the long-tail locale, the dialect variant.
The curve proves less than it looks like it proves
One more footnote the field keeps skipping. Rank-frequency power laws are not, by themselves, evidence of anything linguistic. George Miller noted in 1957 that randomly generated letter-and-space strings yield Zipf-like word statistics, and Wentian Li showed formally in 1992 (IEEE Transactions on Information Theory) that the near-inverse power law follows from transforming word length into rank, which stretches an exponential into a power law. A 2025 reanalysis for LLMs derives a Zipf-type token law from a textless random model and argues it should serve as the null hypothesis against which any claimed linguistic structure in a model's statistics must be tested. Zipf's law is real in corpora and models alike, but a good fit to the curve mostly measures segmentation, not understanding.
And the loop is closing. The corpus and the model are no longer independent systems. A study of academic abstracts tracked word frequencies on arXiv before and after LLM adoption and found visible drops in words singled out as ChatGPT tell-words, "delve" most famously, once those words became meme-markers in early 2024, while other favored words like "significant" kept climbing. Human writing is starting to re-tune its own frequency distribution around what the models do, and models trained on that text inherit the edit.
Takeaways
- A vocabulary is a bet on the head of a Zipfian distribution. Every cut at 32k, 128k or 200k entries trades sequence length against embedding cost and leaves the tail fragmented.
- Token billing, context fit and latency for a given language follow the tail of the curve, not the marketing page. Check your locale's token premium before pricing a product.
- Aggregate loss and aggregate benchmark scores are head-weighted by construction. Tail behavior, rare entities and rare variants need separate tests.
- Frequency is a confound hiding in most failure stories. Before concluding a task is hard, check how often it appears in text.
Sources
- Zipf's law - Wikipedia (Brown Corpus counts, Estoup and Mandelbrot history, Zipf-Mandelbrot parameters, Li 1992 and Miller 1957 on random texts)
- Most common words in English - Wikipedia (Oxford English Corpus coverage)
- George Kingsley Zipf - Wikipedia (biography, works, least-effort framing)
- Piantadosi, Zipf's word frequency law in natural language: A critical review and future directions, Cognition 2014
- Sennrich et al., Neural Machine Translation of Rare Words with Subword Units, 2016 (byte-pair encoding, frequency-driven merges)
- openai/tiktoken (gpt-2 encoding, 50,257 vocabulary)
- The Llama 3 Herd of Models, 2024 (128,256-entry tokenizer, 19.5% sequence reduction)
- Petrov, Tayyar, Gasparyan, Language Model Tokenizers Introduce Unfairness Between Languages, NeurIPS 2023 (project page with figures)
- Exploiting Vocabulary Frequency Imbalance in Language Model Pre-training, 2025
- Yu et al., Rare Tokens Degenerate All Tokens, ACL 2022
- How Transformers Actually Process Rare Tokens, 2025
- Binz et al., Embers of autoregression show how large language models are shaped by the problem they are trained to solve, PNAS 2024
- OpenAI, Why language models hallucinate
- Berman, Random Text, Zipf's Law, Critical Length, and Implications for Large Language Models, 2025
- Li, Random Texts Exhibit Zipf's-Law-Like Word Frequency Distribution, IEEE Trans. Information Theory 1992
- Human-LLM Coevolution: Evidence from Academic Writing, 2026
