Some phrases feel like single words even though they are written as two. "New York" is one such pair for a human reader. It is not one for a language model. "New York" is not a single token in GPT-2's published 50,257-entry vocabulary, and it is not a single token in tiktoken, the byte-pair encoding (BPE) tokenizer files OpenAI ships for its later models. The two-word name splits into "New" and " York", both of which exist as tokens on their own.
The reason is the rule that builds these vocabularies. BPE starts from single bytes and repeatedly merges the most frequent adjacent pair, a scheme Sennrich, Haddow and Birch adapted from a 1994 compression algorithm for machine translation. The GPT-2 paper says the thing plainly: applying BPE to bytes "results in sub-optimal merges due to BPE using a greedy frequency based heuristic for building the token vocabulary." Frequency is what a pair appears, not how strongly the two members belong together.
The statistic that measures belonging is older than any of these models. It is called pointwise mutual information, or PMI, and it quietly underwrites a large share of how language models are built and, increasingly, how their failures are detected.
The formula
Take two words, x and y. Estimate three probabilities from a corpus: P(x), the share of the corpus where x appears; P(y) likewise; and P(x,y), the share where they appear near each other. If the two words were unrelated, the probability of seeing them together would be the product P(x)P(y). PMI is the logarithm of the observed ratio:
pmi(x;y) = log [ P(x,y) / (P(x)P(y)) ]
With log base 2 the result is in bits. Zero means the pair occurs exactly as often as chance predicts. A positive value means the words keep company more than expected; a negative value means they avoid each other, what linguists call complementary distribution. A large value can mean near-identity: if one word almost always brings the other along, the ratio blows up.
Worked example on a hypothetical corpus. In one million tokens, "bread" appears 2,000 times, "butter" 1,500 times, and the two show up in each other's window 1,200 times. If they were independent, the expected joint probability would be 0.002 x 0.0015, or 3 in a million, about 3 co-occurrences. The observed 1,200 is 400 times chance. log2(400) is roughly 8.6 bits. The pair is not merely common, it is glued.

This is the number that Church and Hanks borrowed from information theory in 1990. Their paper attributes the definition to Fano (1961), who framed it for two points x and y with probabilities P(x) and P(y), which is why the qualifier "pointwise" exists: it scores one specific pair, not a whole distribution. Sum PMI over all pairs, weighting each by its own probability, and you get mutual information, the expected value that shows up throughout machine learning, from distillation losses to arguments about what a model can learn from data.
From psychology labs to dictionary offices
Before 1990, "word association" meant experiments. The standard reference was Palermo and Jenkins 1964: a few thousand subjects asked to write a word after each of 200 cue words. "Doctor" produced "nurse" first, then sick, health, medicine and hospital. These norms were the basis of psycholinguistic priming research, where subjects react faster to "nurse" after "doctor", but producing them was slow and expensive.
Kenneth Ward Church at Bell Laboratories and Patrick Hanks at Collins Publishers proposed estimating the same associations from a machine-readable corpus instead. Their measure, which they called the association ratio, is PMI with the joint count divided by the window size to keep it comparable across windows. They counted co-occurrence inside a five-word window, ran the numbers on tens of millions of words of Associated Press wire text, and discarded pairs with five or fewer observations because the ratio "becomes unstable when the counts are very small."
The output anticipated modern distributional semantics by a decade. For "doctor" the top associated words in 44 million words of AP text were dentists, nurses, treating, treat and hospitals: a mix of semantic associates, collocations and verb forms that no experiment had collected. The paper also quotes J.R. Firth's 1957 line that you shall know a word by the company it keeps, which is the entire premise in nine words. Church and Hanks noted one wrinkle that matters for tokenizers later: the association ratio, as they computed it, is not symmetric. It encodes which word precedes the other, so it can pick up order constraints such as "refraining from" versus "keeping from".
The known flaw: rare pairs cheat
Raw PMI has a structural problem. It divides by probabilities, so a pair seen once, both members rare, can score higher than "New" and "York" seen everywhere. The bias toward low-frequency events is documented and measured across collocation and similarity tasks, and unseen pairs are worse than noisy: their joint probability is zero, and the log of zero diverges.
Two fixes became standard. Positive PMI (PPMI) clips all negative values to zero, treating every absent pair as "no evidence" rather than evidence of avoidance. Normalized PMI, from Gerlof Bouma's 2009 paper on collocation extraction, divides PMI by the log of the joint probability, pinning the score between -1 and +1: -1 for a pair that never occurs together, 0 for independence, +1 for complete co-occurrence. Bouma's motivation was exactly the failure mode above: a rare technical term that only ever appears next to one frequent word should score high, and a raw-PMI ranking drowns it in noise. Term-recognition work since then uses NPMI as the "unithood" test precisely because it is less sensitive to occurrence frequency.
Where it shows up in modern LLMs
Embeddings. The cleanest result is from Levy and Goldberg, NeurIPS 2014: the dot product of a word's vector and a context's vector in skip-gram with negative sampling (the word2vec objective) satisfies
M_ij = w_i . c_j = PMI(w_i, c_j) - log k
where k is the number of negative samples. In other words, the vectors trained by a neural network are, at the optimum, a low-rank factorization of a shifted PMI matrix. The intuition that embedding geometry stores statistical word association is not a metaphor; it is an equation. The same paper shows you can skip the network, take a sparse shifted positive-PMI matrix, factorize it with SVD, and get comparable results on word similarity tasks.

Tokenizers. The other lineage above shows the cost of not using PMI. WordPiece, the subword algorithm developed by Schuster and Nakajima for Japanese and Korean voice search at Google and later adopted by BERT with a 30,000-token vocabulary, selects merges to maximize the language-model likelihood of the training corpus rather than raw pair counts, a normalized criterion of the same family as PMI. Even so, mainstream GPT-family tokenizers run plain frequency-driven BPE, which is how a phrase as tightly bound as "New York" can still cost two tokens, one of the small reasons per-million-token prices are not comparable across providers.
Hallucination detection. The most recent use is as a truthfulness signal. A 2024 study of knowledge overshadowing found that when a question packs in multiple conditions, models tend to answer the popular condition and drop the unpopular one, producing factual amalgams. The authors score each condition against the model's candidate answer with pointwise mutual information, and using the overshadowed condition as an early-warning signal anticipates hallucination before it is generated with up to 82% F1 and reduces hallucination rates by 11.2% to 39.4% across model families and sizes, without training. The same 1990 idea, "how much more often does this co-occur than chance predicts", now runs in the other direction: an answer whose association with every part of the question is weak is an answer to distrust.
The takeaway
Frequency counts what you see. PMI counts how surprised you should be to see it. Most of the machinery that turns text into model inputs, tokenizers, embedding tables and increasingly factuality checks, is a choice about which of the two numbers to trust. "New York" is two tokens because the frequency heuristic decided so. Everything that has happened to word association since Church and Hanks put it in a log ratio has been an argument about normalization.
Sources
- Church, K. and Hanks, P. (1990). Word Association Norms, Mutual Information, and Lexicography. Computational Linguistics 16(1):22-29.
- Levy, O. and Goldberg, Y. (2014). Neural Word Embedding as Implicit Matrix Factorization. NeurIPS 27.
- Bouma, G. (2009). Normalized (Pointwise) Mutual Information in Collocation Extraction. Proceedings of the Biennial GSCL Conference 2009, 31-40; discussed and applied in NPMI Driven Recognition of Nested Terms.
- Radford, A. et al. (2019). Language Models are Unsupervised Multitask Learners. OpenAI.
- Sennrich, R., Haddow, B. and Birch, A. (2016). Neural Machine Translation of Rare Words with Subword Units. ACL 2016.
- Wu, Y. et al. (2016). Google's Neural Machine Translation System. arXiv:1609.08144.
- Schuster, M. and Nakajima, K. (2012). Japanese and Korean Voice Search. ICASSP 2012.
- Devlin, J. et al. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.
- Zhang, Y., Li, S., Liu, J., et al. (2024). Knowledge Overshadowing Causes Amalgamated Hallucination in Large Language Models. arXiv:2407.08039.
- Wikipedia. Pointwise mutual information.
- OpenAI. tiktoken tokenizer files; GPT-2 vocab.json.
