Kneser-Ney Smoothing
Every n-gram model faces the same embarrassment: a perfectly ordinary phrase it never saw in training gets probability zero. Kneser-Ney smoothing is the most effective of the classical repairs, and it earns that place by asking a sharper question than its predecessors did.
Discounting, and the continuation trick
Two mechanisms do the work. The first is absolute discounting: subtract a fixed amount D from every observed n-gram count and redistribute the freed mass to sequences never seen. The second gives the method its name — the lower-order distribution it backs off to is not how often a word occurs, but in how many distinct contexts it occurs. "Francisco" is a frequent word yet almost always preceded by "San", so its continuation probability is low; "Tuesday" follows many different words, so its is high. A model that backs off on raw frequency will happily predict "Francisco" after "on"; this one will not.
In practice
Modified Kneser-Ney, which uses separate discounts for counts of one, two, and three or more, is the default in n-gram toolkits such as SRILM and KenLM, and it was the strongest count-based baseline for years — its perplexities on standard corpora sit well below Laplace or Good-Turing at the same order. NLTK ships a KneserNeyInterpolated model for the same purpose at teaching scale.
Why it matters
Neural models replaced n-grams for most tasks, but the lesson did not retire: how a model spreads probability over what it has never seen decides its perplexity more than how it scores what it has. Kneser-Ney remains the reference point for count-based language modelling, and still appears wherever a fast, inspectable model beats a network.
Kneser-Ney smoothing redistributes probability mass in an n-gram language model by subtracting a fixed discount from every observed count and backing off to a lower-order distribution built from continuation counts — how many distinct contexts a word follows — rather than raw frequency. That distinction stops frequent but constrained words like "Francisco" being predicted in novel contexts. Its modified form is the strongest classical smoothing method and the default in n-gram toolkits.
You have heard the word "Francisco" plenty of times, but only ever straight after "San". So if a sentence begins "I went on...", guessing "Francisco" would be silly, even though the word itself is common. Kneser-Ney smoothing is the trick that teaches a word-prediction system this difference: it judges a word by how many different situations it shows up in, not merely how often.
Older systems that counted raw popularity made exactly that silly guess. This method was the best-performing fix of its era, and it is still chosen when a small, fast, explainable language model suits the job better than a big neural one.