Interpolated absolute discounting uses P(w∣v)=max⁡(c(vw)−d,0)c(v)+λ(v)Plow(w) with 0<d<1. Choose λ(v) so that the distribution sums to 1, and prove it. Then explain why Kneser–Ney replaces the lower-order unigram by the continuation probability Pcont(w)=N1+(∙w)N1+(∙∙), and check that this also sums to 1. If c(v)=10 with 4 distinct followers and d=0.75, what is λ(v)?

Sequence models and transformers, Language modelling
Level L3 Intermediate. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can prove normalisation and give the right reason for the continuation probability.

Key idea

λ(v)=d N1+(v∙)c(v), the mass taken away by discounting. For the lower-order model, Kneser–Ney uses the number of distinct left contexts of w, not its raw count.

Steps

  1. Let N1+(v∙)=∣{w:c(vw)>0}∣ be the number of distinct words seen after v. Every seen w has c(vw)≥1>d, so max⁡(c(vw)−d,0)=c(vw)−d, and unseen words contribute 0.
  2. Sum the first term over w: 1c(v)(∑wc(vw)−d N1+(v∙))=1−d N1+(v∙)c(v).
  3. If Plow sums to 1, the second term sums to λ(v). Total =1−dN1+(v∙)c(v)+λ(v)=1 exactly when λ(v)=d N1+(v∙)c(v).
  4. Numbers: λ=0.75×4/10=0.30. So 30% of the mass is passed to the lower-order model.
  5. Why continuation: the lower-order model is used only when the higher-order context failed, i.e. for a word that has not been seen after v. A word such as "Francisco" is frequent but almost always follows "San", so as a fresh continuation it is unlikely. The raw unigram count would wrongly give it a high probability.
  6. Define Pcont(w)=N1+(∙w)/N1+(∙∙), where N1+(∙w) is the number of distinct words preceding w and N1+(∙∙)=∑wN1+(∙w) is the number of distinct bigram types.
  7. Normalisation: ∑wPcont(w)=∑wN1+(∙w)N1+(∙∙)=1 by definition of the denominator.

Common mistakes

How long your answer should be

One page; 8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Sequence models and transformers: Show that the cross-entropy of a model q on text from the true distribution p equals H(p)+KL(p∥q), so perplexity can never go below 2H(p). Why can the perplexities of two models with different tokenisers not be compared directly, and how do you convert to bits per character? For a model with perplexity 20 per token and 4.5 characters per token, what is the bits per character?
Next in Sequence models and transformers: In connectionist temporal classification (CTC), an acoustic model gives, for each of T=4 frames, a distribution over the symbols {a,b,blank}. How are alignments mapped to labels, how many alignments of length 4 collapse to the label "ab", how many to "aa", and what is the probability of "ab" if every frame is uniform over the three symbols?