Estimating the Entropy of Linguistic Distributions
Paper · 2022 · Aryaman Arora, Clara Meister and Ryan Cotterell
Summary
A corpus records the words that happened to occur in it. A study of word frequencies often asks a broader question about the process that produced those words, including the possibilities a corpus missed. Arora, Meister, and Cotterell examine how this gap affects estimates of Shannon entropy, a measure of uncertainty. Their starting point is the usual practice of treating observed frequencies as probabilities and calculating entropy from them. Although those frequencies are correct on average across repeated samples, the entropy calculated from them is systematically too low on average. The problem matters when many outcomes are rare, as they are in word distributions with a long tail.
The authors compare the usual calculation with corrections that use the number of possible outcomes, the effect of removing observations, the chance of seeing a rare category, or prior assumptions about how probability is spread. They test these approaches on simulated distributions and on word frequencies from 5 languages. For the word-frequency experiment, they make a finite reference distribution from each corpus, then draw fresh samples and see how closely each method recovers the known entropy. The results depend on the kind of distribution and the amount of data. The paper favors Chao–Shen as a general choice with very little data and Nemenman–Shafee–Bialek, or NSB, as more data become available. Horvitz–Thompson is particularly competitive for small samples in the word-frequency experiment, but it can overestimate entropy as the sample grows.
The choice of estimator also changes the size of reported linguistic effects. In a replication measuring how much an adjective tells us about the grammatical gender of the inanimate noun it modifies, the estimates fall when the authors replace the usual frequency calculation with NSB. For Italian, normalized mutual information falls from 20.00% to 11.41%. In five of the seven languages, including each of the four in the original study, the association still reaches statistical significance. In a separate replication comparing how languages group core vocabulary by grammatical gender, estimated mutual information also falls in the reported example, while the same language pairs pass the significance tests and the clustering trees remain the same. The replications show how an estimator can change the numerical strength of an association while leaving the broader pattern recognizable.
Deep dive: Estimating the Entropy of Linguistic Distributions
Estimating the Entropy of Linguistic Distributions compares ways to account for rare events and tests how the choice changes linguistic findings. · about 35 minutes to read
The problem and its context
The uncertainty belongs to a distribution
Shannon entropy describes how uncertain an outcome is before it is observed. If almost all the probability is concentrated on a familiar outcome, a prediction can lean heavily on that outcome and the entropy will be low. If the probability is spread across many plausible outcomes, the next observation is harder to anticipate and the entropy will be higher. The authors situate this idea in Shannon’s work on communication, where entropy also expresses a lower limit on how far a stochastic source can be compressed. For the linguistic questions in this paper, the immediate concern is how to recover that uncertainty from observations.
It matters what counts as an outcome. In the word-frequency experiment, the outcome is the identity of a word token, and the analysis ignores the surrounding words. In a study of grammatical gender, the outcome can instead be a noun’s gender category. A study of how languages group core vocabulary can ask about the categories assigned to corresponding lexical items in different languages. Each definition gives rise to a different probability distribution. A corpus can contain a large amount of text while providing far fewer observations of the particular events that an analysis requires.
The authors illustrate the distinction between observations and possibilities with English phonotactics, the patterns governing which sound sequences a language permits. A sequence such as blick can be compatible with English even if it is absent from the corpus being inspected. A collection of word tokens therefore answers a question about attestation directly. Using it to infer the probabilities of possible forms calls for an additional statistical judgment. New coinages offer another way to see the gap. A collection assembled before a coinage has no record of it, even though the capacity to produce new forms is part of the phenomenon a researcher might want to describe. /free/en/topics/english/
Word-frequency distributions pose a particular difficulty because frequencies fall steeply with rank. Under Zipf’s law, the probability of an outcome is inversely proportional to its rank. The authors treat that pattern as an approximation for words, and they use exact finite distributions of that form in a simulation. In a long-tailed distribution, frequent outcomes can appear repeatedly while much of the vocabulary is sparsely represented. Many rare possibilities can contribute to the uncertainty even though each has little probability on its own. A corpus dominated by repeat observations of common words can therefore give a more complete picture of the head of the distribution than of its tail.
There are two distinct ways in which the empirical frequencies can misrepresent that distribution. Frequencies among observed outcomes fluctuate across samples. Additionally, the observed proportions allocate the entire probability mass to the outcomes that happened to appear. If the target distribution also contains unseen outcomes, their probability is implicit in this calculation. A larger vocabulary creates more room for rare events, but vocabulary size alone gives an incomplete picture. The shape of the distribution determines how much evidence a sample of a given size is likely to contain about its rare categories.
Why these estimates enter linguistic arguments
The paper describes a tradition of using information theory to investigate how languages convey information. Earlier work discussed by the authors asks about the efficiency of the lexicon, the complexity of inflectional systems in morphology, and the relationship between the predictability of words and the time readers take to process them. Surprisal is the information associated with an individual outcome given its probability. Entropy averages that kind of uncertainty over possible outcomes. The distinction helps explain why an investigation of reading behavior can motivate interest in probabilities while an investigation of a grammatical system can use entropy to characterize an entire distribution. On the Complexity and Typology of Inflectional Morphological Systems · Predictive power of word surprisal for reading times is a linear function of language model quality
Entropy also enters quantities that express a relationship between variables. Mutual information measures how much knowing one variable reduces uncertainty about another. In the adjective study, the relevant comparison is between uncertainty about noun gender before and after the identity of the adjective is known. A researcher has to estimate both quantities, and the errors in those estimates need not move together. The distribution of genders across the full dataset and the distributions obtained by grouping the data by adjective can present quite different estimation problems. An error in their difference can affect the size of a linguistic claim even when the underlying association is detectable.
The usual starting point is the plug-in estimator. The researcher counts outcomes, divides each count by the sample size, and evaluates the entropy formula at those proportions. This calculation is easy to interpret because every probability is traceable to a count. The difficulty, known from Miller’s earlier work, is that entropy is a nonlinear function of those probabilities. Computing the entropy of an average set of proportions gives a different result from averaging the entropies of the individual samples. As the authors show, that difference has a direction. The result obtained by counting and plugging in has a downward average error.
Earlier statistical work had already supplied several ways of handling this problem. A correction can approximate the average error mathematically and add it back. Resampling can reveal how much the result changes when the data are perturbed. An estimator can give rare events more weight because they are less likely to appear, or it can average entropy over plausible distributions given the observations. The paper takes these existing approaches as its subject. Its contribution is a practical comparison for linguistic distributions, where large sets of outcomes and uneven probabilities can make an estimator behave differently from how it behaves on smaller or more balanced problems.
This makes the question empirical as well as mathematical. A correction can remove some systematic error while increasing the fluctuation between samples. A prior can stabilize a result while making it depend heavily on the assumed distribution of probability. And an estimator may have little chance to improve on simple counting once the sample is large enough to resolve the underlying probabilities. The study therefore needs settings where the true answer is available for scoring, along with linguistic applications where the practical consequence of changing the estimate can be examined.
The method, step by step
From observations to a number that can be checked
The paper begins each estimation problem with a set of possible outcomes and a sample from the distribution over them. A count histogram records how frequently each outcome appears. The plug-in calculation uses that histogram directly. The alternative estimators use the same observations, but each extracts a different kind of evidence from the histogram or adds a different assumption. The controlled experiments then repeat the sampling process so that a method is judged by how it behaves across datasets, including samples that happen to leave out an unusually informative part of the distribution.
The linguistic replications use a related workflow with a different endpoint. There, the authors apply different entropy estimators inside the same kind of linguistic analysis and examine how the resulting associations, tests, and clusters change. A known entropy is available in the controlled benchmarks. In the replications the authors can compare the answers produced by each method, with no known population effect against which to score their numerical errors.
How the paper evaluates entropy estimates
The steps in order.
The quantity the authors want to recover
H(X) = H(p) = −Σ[k=1…K] p(xₖ) log p(xₖ)
Here X is the discrete random variable whose outcome is observed, p is its probability distribution, and H is the entropy function. The symbol xₖ denotes the outcome indexed by k, and K is the number of possible outcomes in the finite set. The summation sign Σ adds the contributions from the first through the last outcome. The logarithm is natural in the implementation. Entropies calculated with this convention are expressed in nats. The minus sign makes the contributions non-negative, and an outcome of zero probability has zero entropy contribution by the limiting convention.
The logarithm gives a rare outcome more surprisal when it occurs. Multiplication by its probability discounts that surprisal by how frequently it occurs. The two parts of the formula therefore perform different jobs. A single very rare outcome generally contributes little to the sum, but many different rare outcomes may collectively matter. An estimator that loses much of the tail of a distribution can lose entropy even when it represents the most common outcomes reasonably well.
p̂ₘₗₑ(xₖ) = c(xₖ) / N
The hat denotes an estimated probability, and MLE stands for maximum likelihood estimation. The expression c(xₖ) denotes the number of appearances of outcome xₖ. The symbol N is the number of observations in the dataset. Given independent draws from the same categorical distribution, this fraction is the maximum likelihood estimate of the probability of that outcome.
Ĥₘₗₑ(D) = −Σ[k=1…K] (c(xₖ) / N) log(c(xₖ) / N)
Here D is the sample dataset and Ĥₘₗₑ is the plug-in entropy estimator. The index k runs over the K possibilities, each represented by xₖ. The count c(xₖ) and sample size N produce the frequency used in the logarithm and as its weight. Outcomes with zero count contribute zero under the same limiting convention used for entropy. In practice, the sum can therefore be obtained from the histogram entries for outcomes that were observed.
The probabilities estimated from these counts are unbiased, meaning that the average proportion for an outcome across repeated samples is its true probability. The paper’s proof uses the concavity of entropy to show why the corresponding claim fails for the entropy estimate. Concavity means that averaging distributions first tends to yield more entropy than computing entropy first and then averaging. An empirical distribution can look more concentrated because a draw by chance favors certain outcomes. Averaging empirical distributions undoes those deviations in the frequencies, but averaging their entropies retains the effect of the deviations.
Eₚ[Ĥₘₗₑ(D)] ≤ H(p)
The operator Eₚ averages over datasets D drawn from the true distribution p at the sample size under consideration. The quantity inside the brackets is the plug-in estimate, and H(p) is the true entropy. The inequality is a statement about repeated samples. It allows individual datasets to give estimates above the target.
The appendix also expresses the average deficit in terms of how far the empirical frequencies depart from the true ones. The comparison uses Kullback–Leibler divergence, a non-negative discrepancy between probability distributions. Its direction matters because the empirical distribution is the first argument and the true distribution is the second.
bias(Ĥₘₗₑ(D)) = −Eₚ[KL(p̂ₘₗₑ ∥ p)]
The bias on the left is the average estimation error. On the right, KL denotes Kullback–Leibler divergence, and the double vertical bar separates its arguments. The first is the empirical probability distribution p̂ₘₗₑ formed from D, and the second is the true distribution p. The expectation Eₚ averages over the random sample. The sign follows from the divergence being non-negative. This identity concerns the behavior of the entropy estimate even when the set of possible outcomes is fixed.
How the comparison measures error
bias(θ̂(D)) = Eₚ[θ̂(D)] − θ
The symbol θ stands for any fixed population quantity determined by p, such as its entropy. The hatted θ is an estimate calculated from D. The expectation Eₚ again refers to repeated datasets drawn from p. A negative bias indicates that their estimates average below θ. Bias describes direction and persistence. It can be small when a method makes large errors in both directions.
var(θ̂(D)) = Eₚ[(θ̂(D) − Eₚ[θ̂(D)])²]
The notation var denotes variance. The inner expectation is the mean estimate across repeated samples, and the outer expectation averages squared deviations from that mean. The exponent squares each deviation. Here θ̂(D), D, and p have the same meanings as in the bias formula. Variance concerns the instability of the estimate across samples, even if its average is close to the right answer.
MSE(θ̂(D)) = bias(θ̂(D))² + var(θ̂(D))
MSE is mean squared error, the expected squared distance of the estimate from the target θ. The first term squares the estimator’s bias, and the second term is its variance. Both refer to the same repeated sampling process. The comparison also reports MAB, which the paper calls mean absolute bias. It summarizes error magnitude without letting opposite signs cancel. Looking at direction as well as magnitude is important in the word-frequency study because some estimates move from below to above the reference value as the sample size changes.
Corrections based on support size and resampling
Miller–Madow starts with the plug-in estimate and adds a correction derived from an approximation to its bias. The appendix obtains the leading term by expanding the divergence near the true probabilities. The count for a given class fluctuates around its expected count, and the squared fluctuation enters the expansion. After averaging those terms across samples, the leading contribution depends on the number of outcomes and the total size of the sample.
bias(Ĥₘₗₑ(D)) = −(K − 1) / (2N) + o(N⁻¹)
In this expression K is the support size, meaning the number of possible outcomes under p, and N is the size of D. The notation o(N⁻¹) denotes terms that become negligible compared with the reciprocal of N as the sample grows for the fixed distribution. The negative leading term motivates a positive correction. The expansion describes behavior near the large-sample limit. Its leading term can be a poor description of error when empirical frequencies are far from the true probabilities and many categories are rarely seen.
Ĥₘₘ(D) = Ĥₘₗₑ(D) + (K − 1) / (2N)
The subscript MM identifies Miller–Madow, and Ĥₘₗₑ(D) is the baseline estimate for the same sample. The additive term uses K and N as defined above. For a fixed sample size, a larger support produces a larger adjustment. For a fixed support, more observations make the adjustment smaller. The calculation uses a support size supplied for the problem. In a setting where the vocabulary is itself unknown, deciding what counts toward that support becomes part of specifying the estimation task.
The jackknife uses the data to measure sensitivity to sample size. It computes the baseline on the full sample, removes each observation in turn, and recomputes the baseline on every reduced sample. The average of those reduced-sample estimates describes what happens when the dataset loses an observation. A singleton and a frequently repeated word enter through the same procedure, but removing a singleton erases its category from the histogram. This is one way the composition of the observed sample can affect the size of the correction.
Ĥⱼₐ꜀ₖ(D) = N Ĥₘₗₑ(D) − ((N − 1) / N) Σ[n=1…N] Ĥₘₗₑ(D∖{n})
The label JACK identifies the jackknife. D is the full sample of N observations, n indexes the observation being removed, and D∖{n} means the sample with that observation omitted, retaining any other observations of the same outcome. The summation adds the plug-in entropy of every reduced sample. The coefficients turn the change revealed by leaving observations out into a bias correction for the full-sample estimate.
The jackknife is a resampling method in the sense that it reuses the data in systematically altered subsets. Each subset inherits its possibilities from the original sample. Leaving observations out can reveal sensitivity to the presence of a class, but it supplies no new types that were absent throughout. The authors note that the jackknife can also be applied to estimators other than the plug-in calculation. The direct comparison in the paper uses the version built from plug-in estimates.
Corrections based on inclusion and coverage
Horvitz–Thompson weights each observed outcome by the inverse of its estimated chance of appearing at all. The idea is to compensate for the fact that a histogram offers less opportunity to see rare classes. If the true probability of an outcome were known, its chance of inclusion could be obtained from the chance of missing it on every independent draw.
qₖ = 1 − (1 − p(xₖ))ᴺ
Here qₖ is the probability that xₖ appears at least once in N draws. The quantity p(xₖ) is its true probability on a single draw. Subtracting that probability from one gives the chance of missing xₖ on a draw. Raising the miss probability to the power N gives the chance of missing it throughout, and the outer subtraction takes the complementary event.
In the actual estimation problem p is unknown. The authors’ Horvitz–Thompson formula uses the empirical proportion for the same outcome in the entropy contribution and in the calculation of its inclusion probability. A class that appears is therefore given extra weight according to how easy the estimated distribution says it would have been to miss.
Ĥₕₜ(D) = −Σ[k:c(xₖ)>0] (p̂ₘₗₑ(xₖ) log p̂ₘₗₑ(xₖ)) / (1 − (1 − p̂ₘₗₑ(xₖ))ᴺ)
The subscript HT identifies Horvitz–Thompson, and the notation under Σ restricts the sum to indices k whose counts c(xₖ) are positive. The numerator is the probability-weighted log contribution calculated with p̂ₘₗₑ, the empirical proportion from D. The denominator estimates the chance of observing that outcome in a sample of size N. The overall minus sign is the one used in the entropy formula. Restricting the displayed sum to observed classes makes explicit which contributions can be evaluated.
The inclusion correction is strongest for outcomes with small estimated probabilities. Outcomes almost certain to appear receive little change. This gives the method a direct way to respond to uneven probabilities, unlike an additive correction depending only on the support and sample size. The paper notes that the entropy version remains biased. Both the inclusion probability and the logarithmic quantity being estimated involve unknown probabilities that have been replaced with empirical estimates.
Chao–Shen retains the inclusion weighting and also adjusts the probabilities assigned to observed outcomes. Its starting point is sample coverage, the true total probability of the categories seen in the sample. Coverage answers a distinct question from how many categories have been seen. A sample can miss many classes and still cover much of the underlying probability if the missed classes are individually very rare.
C = Σ[k=1…K] p(xₖ) 𝟙{xₖ ∈ D}
The symbol C is sample coverage, and 𝟙 is an indicator that has value one if the condition in braces holds and zero otherwise. The condition xₖ ∈ D says that outcome xₖ occurred in the sample. The sum adds the true probabilities p(xₖ) over the observed categories among the K possibilities. The complement of C is the chance that another draw belongs to an outcome that was absent from D.
Ĉ = 1 − f₁ / N
The hat on C indicates an estimate of coverage. The symbol f₁ is the number of singleton categories, meaning distinct outcomes observed exactly once, and N is the number of observations. This Good–Turing estimate uses the share of observations accounted for by singletons to infer missing probability mass. In the special case where every observation is a singleton, the paper uses N − 1 in place of f₁ to avoid a zero-coverage calculation.
Ĥ꜀ₛ(D) = −Σ[k:c(xₖ)>0] (Ĉ p̂ₘₗₑ(xₖ) log(Ĉ p̂ₘₗₑ(xₖ))) / (1 − (1 − Ĉ p̂ₘₗₑ(xₖ))ᴺ)
The subscript CS denotes Chao–Shen. The summation covers the observed outcomes xₖ, which have positive count c(xₖ). The adjusted probability for each is the empirical proportion p̂ₘₗₑ(xₖ) multiplied by the estimated coverage Ĉ. The numerator uses that adjustment for the entropy contribution. The denominator uses it to estimate inclusion over N draws. The logarithm and overall minus sign have the same roles as in the previous formulas.
Scaling all observed probabilities by coverage leaves some probability mass available for unseen outcomes. The inclusion correction then changes according to those smaller assigned probabilities. The method uses the evidence from singletons without deciding which particular unobserved words should receive the remaining mass. This is valuable when the histogram contains many rare classes. It also ties the adjustment closely to the evidence available in the tail of that particular sample.
Averaging entropy over plausible distributions
Wolpert–Wolf treats the probabilities as uncertain and represents that uncertainty with a Dirichlet prior. A Dirichlet distribution is a distribution over vectors of probabilities that sum to one. The prior supplies a starting weight for each category. Observing counts updates those weights to obtain a posterior distribution, which describes plausible vectors of probabilities after conditioning on the sample. The estimate averages the entropy of those vectors. Because entropy is nonlinear, averaging the entropy and calculating entropy from a single averaged probability vector are different operations.
α̃ₖ = c(xₖ) + αₖ
Here αₖ is the prior parameter of category xₖ, c(xₖ) is its sample count, and α̃ₖ is its updated Dirichlet parameter. The tilde indicates the update from the observed data. A class with zero observations still receives the weight it had under the prior. In the symmetric version, the prior weight is shared across categories, even when their sample counts differ substantially.
à = Σ[k=1…K] α̃ₖ
The quantity à is the total updated weight. The sum runs across the K categories, with α̃ₖ the updated weight for category k. This total determines how the category weights enter the expectation of entropy.
Ĥ𝚠𝚠(D ∣ α) = ψ(Ã + 1) − Σ[k=1…K] (α̃ₖ / Ã) ψ(α̃ₖ + 1)
The subscript WW denotes Wolpert–Wolf. The conditioning bar indicates that the estimate uses the prior parameters α, here a vector of category weights, along with the count data D. The digamma function ψ is the derivative of the logarithm of the gamma function. Its appearances at the total à and at each updated category weight α̃ₖ give the closed form for the posterior mean. The sum is over the K categories. The additions of one are part of the formula for that expectation.
The prior stabilizes probability estimates when data are sparse, but its strength can dominate entropy for large support sizes. With a fixed prior on each category, the possible outcomes collectively receive prior weight even when very little has been observed. A symmetric prior can favor relatively even distributions when its concentration is high and allow more concentrated distributions when it is low. The uncertainty that follows from the resulting probability vectors can therefore depend strongly on a parameter chosen before the data are seen.
Nemenman–Shafee–Bialek, abbreviated NSB, handles that dependence by placing a further distribution over the common Dirichlet parameter. This further distribution is called a hyperprior because it describes uncertainty about a parameter of the prior itself. The construction begins with the mean entropy implied by a symmetric Dirichlet prior at a fixed concentration. Increasing the shared parameter increases that mean, moving it through the range between concentrated and even probability distributions.
E[H(p) ∣ α] = ψ(Kα + 1) − ψ(α + 1)
In this expression α is the positive scalar shared by the K categories. The expectation E is over probability vectors p drawn from the symmetric Dirichlet prior at that α. The expression H(p) is their entropy, and ψ is the digamma function. The average ranges from the low-entropy end near zero toward log K, the maximum entropy for K categories. Choosing the hyperprior requires accounting for how quickly this mean changes as α changes.
pₙₛᵦ(α) = (K ψ₁(Kα + 1) − ψ₁(α + 1)) / log K
The symbol pₙₛᵦ is the hyperprior density over the common parameter α, instead of a probability assigned to a linguistic outcome. The function ψ₁ is the trigamma function, the derivative of ψ. The numerator is the rate of change of the preceding conditional mean entropy with respect to α. Dividing by log K normalizes against the range of that mean. This gives a uniform distribution over the conditional mean entropy before seeing data. Individual distributions drawn under a given α still have their own entropy values, so the authors describe the implication for entropy itself as near-uniform.
Ĥₙₛᵦ(D) = ∫[0…∞] Ĥ𝚠𝚠(D ∣ α · 𝟙) pₙₛᵦ(α) dα
This is the integral as displayed in the paper. The integral sign denotes averaging over the positive values of α, from the lower endpoint zero through the unbounded upper limit. The all-ones vector 𝟙 makes α · 𝟙 the symmetric vector of prior weights, distinct from the indicator used in the coverage formula. The Wolpert–Wolf estimate Ĥ𝚠𝚠 uses D at each such vector, and dα denotes integration with respect to the scalar parameter. The paper calls the resulting estimator a posterior mean, while the displayed weighting factor pₙₛᵦ is the density it defines as the hyperprior. These are distinct roles in the notation. The empirical comparison uses the existing NSB implementation in the ndd module for this calculation.
For the other estimators the authors implement the calculations in Python using NumPy. They make their entropy-estimation code available under the name entropy-estimation, along with the extracted counts they use for their Wikipedia data. The central procedures are counting, resampling, numerical evaluation of formulas, and, for NSB, numerical integration. Each estimator returns a value for the same target entropy of a given sample, which makes the effect of changing the estimator observable without also changing the definition of the linguistic outcome. Array Programming with NumPy
Moving from entropy to a linguistic relationship
MI(X, Y) = H(X) − H(X ∣ Y)
The notation MI denotes mutual information between the variables X and Y. The quantity H(X) is the marginal entropy of X, computed without conditioning on Y. The quantity H(X ∣ Y) is the conditional entropy, the remaining uncertainty about X averaged over the values of Y. In the adjective replication, X can be taken as noun gender and Y as the modifying adjective. The authors use separate entropy estimates for the marginal and conditional terms, then take their difference.
NMI(X, Y) = MI(X, Y) / MIₘₐₓ
Here NMI is normalized mutual information. The numerator is the estimated mutual information between the variables X and Y, and MIₘₐₓ denotes the maximum possible mutual information used as the normalizer. The adjective results are reported as percentages on this normalized scale. The gender-partition replication also uses mutual information and variation of information. The latter expresses separation between partitions through the uncertainty that remains about each partition when the other is known. The contrast between these quantities matters there because the study compares both the numerical similarities and the grouping of languages derived from them.
Experiments and results
Word frequencies with a known reference answer
The natural-data benchmark starts with counts for English, German, and Dutch from CELEX. The counts for Mongolian and Tagalog come from Wikipedia dumps dated November 1, 2021. Within each set of counts, the authors divide by the total frequency to create a probability distribution over the retained words. This is the truncated unigram distribution, with unigram indicating that each draw is a single word considered without surrounding context. Once the counts have been renormalized, the experiment can calculate their entropy directly.
The authors then draw samples of sizes 10², 10³, 10⁴, and 10⁵ from those distributions. These are sample sizes for draws from the experiment’s reference distributions, independent of the size of the corpora from which the counts came. It is the draw that supplies a histogram to the estimators. The known probabilities supply the target against which the estimates are scored. A word can thus be possible in the reference distribution while being absent from a particular draw, reproducing the incomplete observation that motivates the comparison.
The word-frequency results average over 100 samples at each setting in the paper’s comparison table. The metrics include signed bias, MAB, and MSE. The authors use paired permutation tests, sampling 1,000 permutations, to compare MAB and MSE for pairs of estimators. Pairing matters because estimators can be evaluated on the same draws. A sample that happens to be unusually difficult can affect both sides of the comparison. The authors also use Tukey’s test to examine differences among all pairs of methods. The number of statistically distinguishable comparisons varies with the setting, and the tests offer complementary views of those differences.
NSB gets close to the reference entropy from below, with Chao–Shen following closely. There is also a clear regime in which the simpler inclusion weighting does well. The authors report Horvitz–Thompson as the best method for N < 2,000 draws in this word-frequency experiment. As N grows, it tends to move above the known entropy, and the magnitude of its bias can exceed that of the plug-in estimate. The plots show minima where the error changes from an underestimate to an overestimate. At the sampled sizes, every correction other than Horvitz–Thompson yields lower MAB and MSE than the plug-in estimate in the reported corpus comparison.
The paper’s general recommendation favors Chao–Shen under very sparse sampling and NSB with more observations. The Horvitz–Thompson result concerns the specific benchmark made from observed word counts. The difference in emphasis can be understood by keeping track of the reference distribution. The best small-sample method for a particular corpus-derived unigram distribution can differ from the method that is a strong choice across the synthetic and linguistic settings considered together.
Simulations that vary the shape of the distribution
The first simulation uses 1,000 distributions drawn from a symmetric Dirichlet with all category parameters set to 1. The authors vary the number of categories and the number of observations. They know the probabilities of every generated distribution, so each estimate can be scored against its own true entropy. The paper compares these distributions to settings such as part-of-speech tagging, where the outcomes can be a finite inventory of grammatical labels. The analogy concerns the kind of discrete outcome being counted. The simulation uses generated probabilities, with no need to assume that a particular corpus’s frequencies are its population truth.
When the number of observations is much larger than the number of categories, the estimates nearly converge and differences in estimator choice become small. In sparser settings, some corrections are significantly better than alternatives, and the winning method varies across combinations of sample size, support size, and metric. The authors single out Chao–Shen as the estimator most frequently found to have a significant advantage over others in this simulation. The results include an important detail about raw rankings. The table gives an MSE cell to MLE even though the prose concludes that MLE is never the best choice. A cell for the smallest observed error and an overall judgment about which method to prefer answer different questions.
The next simulation examines 1,000 finite Zipfian distributions. Here the outcomes are ranked, and probability decreases in inverse proportion to rank. The procedure again scores estimates against known entropies and compares their errors with paired tests. Chao–Shen recurs among the lowest-error settings in the results, while NSB and Horvitz–Thompson also appear in the winners for particular conditions. These simulations allow the authors to probe cases where the many low-probability classes are a feature of the specified distribution rather than a consequence of how a corpus happened to be filtered. Together with the Dirichlet simulation, they show that estimator choice depends on the geometry of the probabilities as well as on the count of categories.
How adjective choice relates to the gender of inanimate nouns
The first replication starts from a question asked by Williams and colleagues. Do speakers and writers use different adjectives with inanimate nouns assigned to different grammatical genders? The authors obtain noun–adjective relationships from gold-parsed Universal Dependencies corpora. A gold parse supplies an annotated syntactic analysis, including the relationships needed to identify which adjective modifies which noun. The authors use Multilingual WordNet to filter out animate nouns. That restriction focuses the comparison on grammatical gender in a set where animacy has already been screened out. Linking and Extending an Open Multilingual WordNet
The languages from the earlier study are Italian, Polish, Portuguese, and Spanish. The replication adds Arabic, Croatian, and Greek. The appendix specifies sources for the annotated data, including ISDT and VIT for Italian and PDB for Polish. Portuguese and Spanish each draw from GSD alongside a language-specific treebank, Bosque for Portuguese and AnCora for Spanish. The appendix also names PADT for Arabic and GDT for Greek. These are sources of observed noun–adjective relationships. The benchmark measures the association in the resulting samples and does not treat the number of running words in a source corpus as the number of observations in the association test. Converting Italian Treebanks · Extended and Enhanced Polish Dependency Bank · Universal Dependency Annotation for Multilingual Parsing
The comparison table reports normalized mutual information for MLE, Chao–Shen, Miller–Madow, the jackknife, Wolpert–Wolf, and NSB. The Italian analysis contains 16, 856 observations, and the Polish analysis contains 15, 525. In both, NSB yields the smallest reported NMI among the methods in the table. The charts use the same direction label to display smaller measured associations. The known-entropy benchmark supplies separate evidence about estimation error.
Entropy estimators on Italian Universal Dependencies data, adjective–noun gender NMI
NSB gives the smallest estimated association in the Italian sample.
The numbers
| System or setting | NMI % |
|---|---|
| Plug-in | 20.00 |
| Chao–Shen | 15.56 |
| Miller–Madow | 16.43 |
| Jackknife | 14.09 |
| Wolpert–Wolf | 19.67 |
| NSB (this paper) | 11.41 |
Entropy estimators on Polish Universal Dependencies data, adjective–noun gender NMI
Wolpert–Wolf gives the largest association and NSB gives the smallest.
The numbers
| System or setting | NMI % |
|---|---|
| Plug-in | 30.52 |
| Chao–Shen | 23.48 |
| Miller–Madow | 25.49 |
| Jackknife | 21.75 |
| Wolpert–Wolf | 34.68 |
| NSB (this paper) | 17.07 |
The shift also appears outside those charted samples. For Portuguese, with 7, 409 observations, NMI is 27.60% under MLE and 14.18% under NSB. Spanish has 21, 408 observations and yields 20.50% under MLE and 10.50% under NSB. Greek, with 3, 305 observations, goes from 41.58% under MLE to 27.00% under NSB. In Arabic, with 2, 483 observations, the corresponding values are 45.31% and 34.82%. Croatian has 13, 856 observations, with 31.35% under MLE and 19.06% under NSB. These are changes in the reported association for each language when the estimator is replaced. The size of the change varies by language.
The association remains statistically significant with NSB in 5 of the 7 languages tested, including the 4 languages included in the original study. The central replication result therefore has a quantitative and a statistical part. Across the languages, the reported association is smaller under NSB. In the original set of languages, the evidence for an association survives the change. The paper’s finding about overestimation concerns the strength attributed to the relationship.
How languages partition core vocabulary by gender
The replication of McCarthy and colleagues asks about similarity between systems of grammatical gender. Here the observations come from Swadesh lists for 10 European languages. A Swadesh list supplies core lexical items for comparison. For a given language, a gender partition groups the items by their grammatical gender assignments. Comparing partitions asks whether items grouped together by a language tend also to be grouped together by another. This turns the analysis into a comparison of category assignments on corresponding meanings.
The earlier study found that closely related languages tended to make more similar groupings. Arora and colleagues recalculate pairwise comparisons with alternate entropy estimators, then perform hierarchical clustering using mutual information and variation of information. Hierarchical clustering arranges the languages into nested groups using their pairwise relationships. The estimated values are inputs to the grouping procedure, so changing those values can in principle change which languages are joined.
For Croatian–Slovak, the reported MI is 0.54 with MLE and 0.46 with NSB. These values are mutual information for the shared core-vocabulary comparison, on the paper’s MI scale. The hierarchical trees based on MI and on variation of information match the corresponding trees from the original experiment. Significance tests using 1,000 permutations also identify the same language pairs across estimators for both measures. The paper reports significance for the within-Slavic pairs, the within-Romance pairs, and the Bulgarian–Spanish pair.
Here the estimator affects a number that describes how strongly the partitions are associated, while the clustering and significance outcomes in the replication agree. The Croatian–Slovak example gives a direct view of the effect on a single pair. The clustering result addresses a different question about the arrangement of the languages across the complete comparison. The paper reports both because stability of the tree and stability of each pairwise value are separate empirical properties.
What the ablations show
Sample size changes how the corrections behave
The paper studies estimator substitutions and changes in sampling conditions. Its closest counterpart to a conventional ablation is to hold the underlying distribution and the sample fixed while changing how entropy is estimated. This isolates the contribution of the estimator to measured error. Sweeping the sample size then reveals when the changes matter most. An estimator’s error at one sample size can hide a pattern that becomes visible only when the sample gets larger.
The unigram experiment is the clearest example. Horvitz–Thompson’s inclusion correction helps in the reported low-sample range, where the probability that an outcome enters the histogram is central to the problem. At larger sizes, the method can overshoot. The sign change provides more information than the location of a minimum on an unsigned error curve. It tells the reader that the method has passed from the side of the reference associated with missing uncertainty to the side associated with an estimate that is too large.
A method with a small average signed error at such a transition could still fluctuate from sample to sample. That is why the paper checks MAB and MSE and uses paired tests. The low point of a signed or absolute error trace, the rate at which an estimator approaches the reference, and its stability across draws all describe different aspects of performance. The strong showing of NSB in the corpus tests comes from its behavior across sampling regimes, with estimates approaching the benchmark entropy and with lower aggregate error than the plug-in baseline at the tested sizes.
Distribution shape changes what an observed count tells us
The Dirichlet simulation varies both the amount of evidence and the size of the outcome set. With abundant observations relative to support, empirical frequencies already give similar entropy estimates across methods. In sparse settings, knowing that an outcome occurred, knowing that it occurred only once, and knowing how many other outcomes remain possible can carry very different information. The paper observes changes in the winning estimator as those settings vary.
The finite Zipfian experiments show why a single ratio of sample size to support size would give an incomplete account. A ranked distribution can devote many draws to high-probability categories and leave the remaining outcomes hard to observe. For the same size of histogram, the relative count of singletons and the concentration of observations in frequent categories can differ. The favorable performance of coverage and inclusion corrections in some sparse regimes is consistent with the signal those methods were designed to use. The experiments compare their whole formulas, so a performance difference alone cannot identify how much of the gain comes from any one operation within a formula.
A useful comparison is between Horvitz–Thompson and Chao–Shen. Both weight contributions by inclusion, but Chao–Shen also adjusts the empirical probabilities using the singleton count. Changing the coverage estimate affects the entropy contributions and their inclusion weights together. The test therefore shows what happens when that combined correction is used. It offers less direct evidence about how much of any improvement would come from modifying only the weights or only the estimated probabilities.
The comparison between Wolpert–Wolf and NSB likewise concerns complete estimates. Wolpert–Wolf conditions on chosen Dirichlet parameters, while NSB incorporates uncertainty about the shared concentration. Their contrasting behavior is relevant to the authors’ concern about sensitivity to concentration. The estimator comparisons do not give a measured curve for every possible fixed prior weight. The Dirichlet derivation explains the source of the sensitivity, and the experiments assess how the tested implementations handle it.
The replications isolate which conclusions move
In the noun–adjective replication, the linguistic question and the corpus selection are shared across estimators. The large changes in normalized mutual information therefore show that the statistical calculation has substantial influence over the measured effect. The tendency is strongest as a general comparison between MLE and NSB. Intermediate methods do not move in a uniform direction in every language. In both Polish and Portuguese, for instance, Wolpert–Wolf gives higher NMI than MLE, whereas NSB gives lower NMI. Calling all the alternatives bias corrections would obscure the fact that they act differently on the component entropies.
This result may seem surprising next to the proof that plug-in entropy is negatively biased. The proof applies to an entropy, and mutual information is a difference of entropies. If uncertainty within adjective groups is underestimated more strongly than marginal uncertainty, subtracting it can make the estimated reduction in uncertainty too large. Grouping by adjective is a reason to consider that possibility because the effective sample for a conditional distribution is restricted to that adjective’s observations. The replication demonstrates the changes in the resulting mutual information. It does not report a separate population bias measurement for every entropy component of the corpus analysis.
The gender-partition replication provides an additional distinction. Replacing the estimator changes the strength of the relationship reported for Croatian–Slovak, but the significant pair set and the hierarchical trees are stable in the comparison. A clustering tree records the sequence of groupings implied by the input relationships. Values can change while the comparisons decisive for those groupings remain in the same order. Likewise, a test comparing an observed statistic against a permutation distribution can reach the same decision even when changing the statistic shifts the observed value. The authors obtain evidence about stability by rerunning both procedures, rather than inferring it from the change in one pair’s score.
Taken together, the controlled comparisons support claims at different levels. In the simulations and unigram benchmark the reference entropy makes it possible to measure estimation error. In the replications the repeated analyses show which stated conclusions depend heavily on the estimator used. The agreement of significance decisions does not make the reported magnitudes interchangeable. The differences in magnitude, in turn, leave the original evidence for a detectable relationship intact in the cases reported.
Limitations
Limits the authors identify
The authors explicitly treat the corpus-derived unigram distributions as benchmarks. Renormalizing frequency counts gives exact probabilities for the experiment, conditional on the words retained and the counts in those corpora. It is a workable way to know the entropy from which one is sampling. The underlying word distribution of a language remains inaccessible. An estimator that recovers the entropy of a truncated set of frequencies is being evaluated on a well-defined proxy, with the corpus’s composition and lexical coverage already built into it.
The simulated distributions are deliberate simplifications as well. The authors note that a Zipfian distribution is an approximation to word-token probabilities, even for English. The simulations use a finite number of classes. This limits the kind of missing probability encountered compared with a setting where the set of possible words is open or unspecified. The Dirichlet simulation gives another comparison with known probabilities, but its analogy with grammatical categories need not capture the frequencies of a particular set of tags in actual text.
The authors also warn that estimators based on priors can give answers driven by their hyper-parameters when the support is large and the data provide little information. The NSB construction responds to a specific version of that difficulty, namely the effect on entropy of selecting a single concentration for a symmetric Dirichlet. Its success in the tests motivates a recommendation conditioned on data availability and distribution type. The study does not present prior averaging as a way to make rare events observable. The data still constrain the tail only through the counts that the sampling process produced.
For the replications, the authors report reduced effect sizes and surviving statistical evidence. These are appropriately different conclusions. A finding that holds under the tested permutation procedure is sensitive to the definition of the data and the statistic used. Agreement across the tested entropy estimators supplies evidence that the finding is robust to that specific substitution. It leaves questions about other choices in the analysis open.
Limits visible in the study design
The sample draws in the controlled analyses come from specified categorical distributions. This permits calculation of the reference entropy and supports the inclusion formulas, which rely on repeated independent draws. A text corpus can contain dependencies among tokens and can reflect the conventions of its source. For the unigram benchmark, sampling from renormalized counts sets such dependencies aside by design. The resulting evidence applies directly to recovery of a distribution over individually sampled words. Its quantitative errors cannot be carried over directly to entropy defined over sequences or to occurrence probabilities conditioned on context.
Some estimator formulas also require information whose status differs between the experiments and a new linguistic application. K is known in a simulation and can be fixed in a truncated unigram benchmark. In an open vocabulary there may be no equally clear support size. Miller–Madow uses K directly, and the Bayesian formulas place prior weight over the support. A good result with a specified K leaves the practical issue of how to choose that support unresolved when the outcome inventory is itself under study. Coverage weighting has a different dependency, because it relies on interpreting sample singletons as evidence about unobserved mass. Its behavior therefore depends strongly on what constitutes an outcome and on how the sample was obtained.
The replications do not supply a true MI for either linguistic relationship. Lower MSE on word frequencies and synthetic distributions supports the use of NSB as a comparative estimator, but it does not establish an exact amount of inflation in every earlier language-specific estimate. In particular, the adjective calculation estimates conditional entropies on groups of unequal sizes. The aggregate NMI table shows the resulting changes. It does not identify which adjective groups account for them or give a separate calibrated error measure for each conditional distribution.
The adjective analysis also uses a specific grammatical relation and excludes animate nouns using a lexical resource. Its significance result is evidence about the associations measured after those choices. It does not independently establish a causal mechanism linking noun gender to adjective use, or a numerical association for all other constructions involving agreement. In the partition study, the Swadesh lists define the meanings that enter the comparison. Strong agreement in clustering on that vocabulary leaves open the behavior of gender assignments on a different selection of lexical items.
The quantitative results further show why it is necessary to distinguish a recommendation from an unconditional ranking. The most favorable method changes with distribution family, data availability, and metric. Even an apparent winner in a table of empirical errors can be close to other estimators under a statistical comparison. The paper supplies evidence for preferring better-matched estimates over default frequency substitution. It does not supply a universal rule that identifies an optimal estimator from sample size alone.
What came after
Selectively Answering Ambiguous Questions (2023) cites the entropy-estimation study in work on a different problem, how to answer selectively when a question is ambiguous. The connection is a change in the object of uncertainty, from frequencies over linguistic outcomes to a decision involving uncertainty about a question or its answers. The citation establishes that the study entered the discussion of that problem. It does not establish which estimator, if any, the later work adopted or evaluated.
Rethinking the Relationship between the Power Law and Hierarchical Structures (2026) cites the study in work on the relationship between power-law behavior and hierarchical structure. A power law serves a specific role in Arora and colleagues’ paper. It defines a distribution shape for a controlled estimation test and describes a difficulty posed by the tail of word frequencies. The later title frames a different question about the relationship of that shape to structure. The citation establishes the link between the works, while the title and citation alone leave the later paper’s methodological use of the entropy comparison unspecified.
Cite
Cite as Aryaman Arora, Clara Meister and Ryan Cotterell. 2022. Estimating the Entropy of Linguistic Distributions. Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).
@inproceedings{arora2022estimating,
title = {{Estimating the Entropy of Linguistic Distributions}},
author = {Aryaman Arora, Clara Meister and Ryan Cotterell},
booktitle = {Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
year = {2022},
doi = {10.18653/v1/2022.acl-short.20},
url = {https://doi.org/10.18653/v1/2022.acl-short.20}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/arora-2022-estimating-entropy-linguistic-distributions/