WorksMathematics
Posterior Frequencies and the Cost of Not Fitting: A Correction to a Memorization Lower Bound
Abstract
Feldman's memorization lower bound assigns a frequency coefficient based on how often a point appears in the training sample. We give an exact three-point counterexample to its conditional and averaged forms, using independent fair labels and a permutation-equivariant learner. A sequence of sampling priors makes the ratio of the proposed penalty to actual excess risk grow exponentially, ruling out a universal positive constant-factor repair. The priors vary with sample size, the offending profiles become rare, and both quantities vanish. Retaining the original model, we obtain an exact replacement using full-sample posterior probabilities. Under exchangeability, these depend on multiplicity and the complete frequency profile. We characterize the largest multiplicity-only coefficients valid for unrestricted learners. The original coefficient has the posterior-mean form of Good's exact frequency formula and is an occupancy-weighted average of the corrected coefficients.
Introduction
If a learner misclassifies an observed noiseless label, it incurs population error whenever the corresponding input is encountered again. In a model with an unknown sampling distribution, the conditional cost is therefore the input’s posterior probability given the training sample. Feldman [1] uses this observation to relate fitting rare examples to generalization. His Theorem 2.3 assigns the same coefficient to every point observed times in a sample of size :
where is the random probability of a fixed domain point. This is the posterior mean of , conditional only on the number of times the fixed point appears in the sample. It has the same functional form as Good [2].
The learner, however, observes all sample counts. These may reveal additional information about . In Feldman’s model, raw weights are drawn independently and then normalized; independence before normalization does not justify ignoring the other counts.
Feldman’s work provides an influential theoretical account of why learning from long-tailed distributions can require memorizing rare examples. Theorem 2.3 is a central step in that account: it connects errors on observed examples to excess population risk through frequency-dependent coefficients. Establishing the precise validity of this connection is therefore important beyond the particular conditioning identity used in its proof. We identify the failed conditioning step, give an exact counterexample to the theorem itself, and recover a valid lower bound within the original model.
The contributions are threefold. First, § 3 gives an exact three-point counterexample, with independent fair labels and a permutation-equivariant learner. Second, § 4 shows that the failure can be exponentially large in relative terms: along even sample sizes , a sequence of three-entry frequency lists gives
Thus no universal positive constant multiple of the original penalty is valid. The prior changes with , the learner errs on an increasingly rare count profile, and both the penalty and excess risk tend to zero. This is a worst-case multiplicative obstruction, not a fixed-prior asymptotic result or a nonvanishing additive gap.
Third, § 5–§ 6 give the exact replacement and its sharp multiplicity-only relaxation. Under a permutation-invariant prior, the full-sample posterior depends only on the point’s multiplicity and the frequency profile: the numbers of domain points appearing zero times, once, twice, and so forth. A multiplicity-only coefficient is valid for all learners exactly when it does not exceed the smallest feasible profile coefficient. Feldman’s instead averages these coefficients with occupancy weights, allowing learners to select errors on profiles where the average is too large.
Related work and scope. The posterior decomposition and exchangeability arguments are standard; their role here is to identify the exact correction. The main contributions are the counterexample, its exponential relative amplification, and the sharp criterion for universal learner-dependent bounds. Count-only prediction is closely related to Johnson’s sufficientness postulate: under suitable assumptions across sample sizes, it leads to classical Dirichlet characterizations ([5]). Our criterion concerns one fixed sample size and observed categories; it is not a characterization of Dirichlet priors. § 6.3 makes this distinction precise. Lee et al. [4] characterize when predictive rules based on species counts are compatible with an exchangeable sampling model. Our question is different: given a sampling model, which posterior probabilities yield valid lower bounds on a learner’s excess risk? Appendix C gives a finite-dimensional Gamma-integral calculation related to posterior analysis of normalized random measures ([3]); it is a computational aid, not a new posterior method.
We correct Theorem 2.3 of arXiv:1906.05271v4, dated January 10, 2021, while retaining its normalized-weight model. § 7 identifies specific downstream dependencies and separates them from calculations that do not use the failed conditioning identity. Fixed-prior and typical-profile approximations, including long-tail guarantees, require additional analysis.
Model and posterior probabilities
Let be a finite domain and let be a finite label set with at least two elements. A prior is a probability distribution on the simplex
Independently draw a probability vector and a labeling function , where is any distribution on . Independence here is between and ; the labels may be dependent across points. Conditional on , draw and observe
All claims conditional on a dataset concern datasets of positive probability. We assume . A learner maps each dataset to a distribution on ; its randomization is independent of the latent variables conditional on the dataset. No computational or hypothesis-class restriction is imposed.
For a realized sample , define the counts and the observed set by
Noiselessness makes the label well-defined for every . Let
Define as the posterior mean of . As shown in Lemma 1 below, it satisfies
We also write because this quantity depends only on the input counts.
Lemma 1 (Posterior factorization) Conditional on , the random variables and are independent. The posterior of depends only on , and the posterior of is its prior conditioned on agreeing with all observed labels. In particular, (2) holds.
Proof. For a fixed ordered dataset, its likelihood given is
The two factors involve separate variables, and the joint prior is a product. Normalization therefore yields a product posterior. Integrating against its factor gives (2).
Feldman’s sampling prior. Given a list of positive numbers, independently choose each uniformly from its entries and set
Repeated entries are counted with their multiplicities. The list may sum to one, but the independently sampled weights need not. More generally, one may use any common distribution on positive raw weights. This construction gives an exchangeable prior: permuting the coordinates of does not change its distribution. We write for the marginal law of in the list model, following Feldman. This law generally differs from the uniform law on the raw list.
Count-only conditioning. For a fixed , conditional on , the count has distribution . Consequently,
whenever the denominator is positive. Under an exchangeable prior the value does not depend on , and we write for this common value. Equation (4) is valid; the assertion for every dataset is the additional claim that fails.
Risk and error-count conventions. For a dataset , let
The infimum is over all learners. Thus is the minimum posterior risk achievable from the same observed data and the specified priors; the predictor is not given the latent labeling function or sampling distribution. Write and for the corresponding averaged quantities. For observed points define
Thus counts misclassified distinct points in expectation over the learner’s randomness, with no division by and no extra factor . It is Feldman’s . In this notation the original assertion is
for every learner and dataset, together with its averaged version. We now show that both assertions can fail.
An exact counterexample
We use and the raw list
Thus with probability and with probability , independently for . Direct averaging over the 27 equally likely choices of list entries gives
In contrast, exchangeability and imply
The first point occurs once in both sequences, but its posterior means differ. Appendix § 10 supplies an exact-arithmetic certificate.
Proposition 2 (Failure with independent fair labels) Let , and let the sampling prior be the law of , where the are independent, with and . Independently of , draw the labels , , independently from Bernoulli: each label is 0 or 1 with equal probability. Each point’s label is drawn once and is shared by all occurrences of that point in the sample. For these sampling and labeling priors, there exists a permutation-equivariant learner for which both (5) and its averaged version fail.
Proof. Consider the event that the counts are a permutation of . The learner predicts all observed labels correctly except that, on , it flips the label of the unique singleton. On each unseen point it predicts 0 or 1 with equal probability, using independent random bits. This rule is equivariant under permutations of the domain.
The learner is posterior-optimal on every unseen point. Thus, conditional on a sample in , its excess risk is exactly the posterior mass of the singleton, namely (7). Its only observed-point error is that singleton, so the proposed penalty is (6). This is a strict violation. Outside its excess risk and penalty are both zero. By exchangeability, averaging multiplies both quantities by the same positive factor and preserves the violation. For example, . ▪
A constant-zero labeling prior gives an even shorter witness: use the same rule with zero predictions except for the singleton flip. Then the optimal risk is zero. The fair-label construction shows that the failure does not depend on knowing all labels in advance.
The conditioning error. The proof of Lemma A.1 in Feldman [1] asserts that, given , the relative weights of all other points have the law of fresh independent raw weights normalized over those points. For the three-point construction with raw list , the identity gives . Since each belongs to , we have and . Equality therefore forces . Hence deterministically under that conditioning. In contrast, two fresh independent draws from the raw list can be and , yielding relative weights and after normalization. The asserted conditional construction is therefore invalid. The counterexample uses the original finite-list model exactly; no limit, approximation, or alternative prior is involved.
An exponentially large relative failure
The three-point counterexample has a small numerical discrepancy. We now show that this is not a uniform limitation: even with , the original coefficient can exceed the correct one by an arbitrarily large factor.
For even , put and use the probability list
Multiplying every raw weight by the same constant leaves the normalized vector unchanged. We may therefore compute with weights equal to with probability and to 1 with probability . Let denote the resulting prior on . Let be the event that the count vector is a permutation of , and define the singleton’s posterior mass on this event by
Here denotes a singleton; the profile is implicit. By exchangeability, this is the singleton’s posterior mass for every sample in . Throughout this section, is computed under the sample-size-dependent prior ; the same convention applies in Appendix B. The notation means , here along even sample sizes.
Theorem 3 (No universal constant-factor repair). For the priors (9),
With independent fair binary labels there is a permutation-equivariant learner whose proposed averaged penalty and actual excess risk satisfy
Consequently, no constant , independent of the frequency list and sample size, makes valid for all such models and learners.
Proof. Write and define the four expectations
Thus and . The singleton count alone leaves posterior weight on all-equal raw configurations. Observing that another point occurs times assigns those configurations a much smaller likelihood. Quantitatively, the eight raw-weight configurations give
Here is the leading-term calculation. Since , factors of the form tend to one. For , the configurations and each contribute asymptotically , while contributes asymptotically . The all-equal configurations have total probability and normalized vector ; they supply the leading term of . Their contribution to is negligible because . All other contributions to are negligible because , or decay faster.
For , only contributes at order . For this configuration contributes asymptotically , while contributes
The other terms are smaller. Appendix B lists every configuration’s scaled limit. Taking ratios gives (10).
The learner predicts observed labels correctly except that it flips the unique singleton on ; it predicts independent fair bits on unseen points. This is permutation-equivariant and optimal except at the flipped point. Hence its excess risk is , whereas . The event has positive probability, proving (11) and the final assertion.
Size of the event and absolute risks. There are six assignments of the counts to named points and orders for each assignment. Thus
and
Both quantities vanish. The theorem excludes a uniform multiplicative repair over frequency lists, including on a fixed three-point domain. It does not exclude useful additive-error bounds, bounds on typical profiles, or approximations for a fixed long-tailed prior. The list in (9) depends on , which is essential to the scope of this conclusion. For , exact enumeration gives ; Appendix B provides further finite-sample values.
The corrected bound and its profile reduction
For the learner and label posterior, define
The posterior label regret at is
By noiselessness, when .
Theorem 4 (Exact posterior decomposition). For every sampling prior , independent labeling prior , learner , and positive-probability dataset ,
and
In particular, dropping the second sum gives a lower bound. Equality in that lower bound is achieved by every learner that makes posterior-optimal predictions on unseen points.
Proof. By Lemma 1 and the independence of the learner’s randomization,
Because the output class contains all functions on , the conditional risk can be minimized separately at each point. Choosing any maximizing label for each gives (16). Subtracting yields . For observed points the label posterior is a point mass at , giving (17). A maximizing label on each unseen point sets its regret to zero.
An alternative proof of the inequality modifies by correcting all its observed-point predictions and keeping its other predictions. The decrease in risk is exactly the first sum in (17). The modified learner cannot have risk below . This proof explains the cost of not fitting without any exchangeability assumption.
Sharpness. For any chosen observed point , a learner can make a deliberate error only at and use optimal predictions everywhere else. Its excess risk is exactly . Thus the individual weights in the lower bound cannot be increased while retaining a statement for all learners. A point observed with positive count necessarily has positive posterior mass under a positive-probability dataset.
Since the data space is finite and pointwise minimizers exist,
Averaging (17) consequently gives a valid unconditional decomposition as well. The posterior coefficient remains inside the expectation; it cannot in general be replaced by a count-only mean.
Reduction to the frequency profile
Assume from now on that is exchangeable. Define the profile
Every profile satisfies and . The coordinate records the number of unseen domain points; is known in this model. A profile is feasible if it has positive probability. Let denote the finite set of feasible profiles.
Lemma 5 (Profile reduction). There are functions , defined whenever and , such that
In particular, all points of the same multiplicity have the same posterior mean, regardless of their observed labels.
Proof. If two count vectors have the same profile, a permutation of domain points maps one to the other. If their designated coordinates have the same count, the permutation can be chosen to map those coordinates to each other. Apply this change of variables to numerator and denominator of (2); exchangeability preserves the prior. Lemma 1 removes the dependence on labels.
Corollary 6 (Corrected profile-dependent bound). Under an exchangeable sampling prior,
Its averaged form is
Both bounds are attained by learners that predict optimally on unseen points, with arbitrary predictions on observed points.
Proof. Substitute Lemma 5 into Theorem 4, group the observed points by multiplicity, and then average.
The sampling prior must be exchangeable, but the labeling prior and the learner need not be. In particular, label structure does not destroy the reduction of the frequency posterior to the profile. It affects the unseen-point regret and the learner’s pattern of errors.
The corrected coefficients obey the normalization identity
including . Computing them requires the sampling prior; the profile alone does not specify a prior-free numerical value.
Good's formula and sharp count-only bounds
An exact averaging identity
Define the random total probability of the points with multiplicity by
This quantity depends on both and the sample. Conditional on the profile, its expectation is
where the product is interpreted as zero when .
Proposition 7 (Relation to the count-only coefficient).** For every with ,
Proof. Apply the tower property to and use Lemma 5. Alternatively, exchangeability gives
Their ratio is (4); (21) gives the middle expression.
Thus the averaging is weighted by the number of points in the multiplicity class. An unweighted expectation over profiles is generally different. A profile containing more singletons is more likely under conditioning on a specified point being a singleton.
For Good’s fixed-population model, let be fixed population probabilities and choose an index uniformly from , independently of the sample. Then
This is formula (13), with , of Good [2], after changing notation. It has the same functional form as (4). Good averages over a uniformly selected species in a fixed population; Feldman’s coefficient averages over the marginal law of a normalized random frequency.
One may also put a uniform random permutation prior on the fixed vector . The marginal frequency law is then , where is a unit point mass at , so (23) is its count-only posterior mean. The full-profile posterior and Corollary 6 still apply, but the random permutation does not in general make conditioning on the other counts redundant. The empirical Good–Turing estimate, typically written when and , is a further estimation step; none of the exact identities here justify substituting it into a universal learner-dependent bound without additional control.
The largest coefficients valid for every learner
For each attainable positive multiplicity, define
The minimum exists because the set of profiles is finite.
Theorem 8 (Sharp multiplicity-only coefficients). Fix an exchangeable sampling prior, a labeling prior independent of , , and . Let be constants for the attainable positive multiplicities. The following statements are equivalent:
For every learner and every positive-probability dataset,
For every learner,
for every attainable positive multiplicity.
Here the learner class is unrestricted, as in § 2. Terms corresponding to unattainable multiplicities are zero and may be omitted.
Proof. The third assertion implies the first by Corollary 6, since ; averaging gives the second. For the converse, suppose at a feasible profile with . Under the fixed labeling prior, start from a posterior-optimal predictor. When , select uniformly one observed point with count and replace its known label by any different label; leave all other predictions optimal. Conditional on this profile, the excess risk is exactly and . Outside this profile the excess risk and all are zero. Thus the first assertion fails. The unconditional excess risk is , whereas the claimed penalty is . Feasibility ensures , so the second assertion fails too.
Sharpness permits learners to concentrate errors on a selected profile; restricted algorithm or hypothesis classes may admit larger coefficients. The witness need not be permutation-equivariant for arbitrary labeling priors. For independent fair labels, however, fair predictions on unseen points and uniform selection within the multiplicity class give an equivariant witness. Thus symmetry alone does not repair the theorem.
Corollary 9 (Validity of the count-only coefficient). The bounds in Theorem 8 hold with for all attainable positive multiplicities if and only if, for every such , is constant over all feasible profiles with .
Proof. By Proposition 7, is a weighted average of these profile coefficients. Every feasible profile with has strictly positive weight, proportional to . An average is at most the minimum exactly when all its positively weighted terms are equal. Apply Theorem 8.
For the counterexample, the singleton-containing profiles are and . Their singleton coefficients are respectively and . Thus the sharp universal singleton coefficient is , strictly below . The improvement supplied by a realized profile is retained by and lost by taking the minimum in .
Relation to Johnson's sufficientness postulate
The posterior mean is also the predictive probability that the next input equals . Requiring it to depend on the sample only through and is a form of Johnson’s sufficientness postulate. Zabell [5] develops classical characterizations of Dirichlet prediction from such conditions, imposed across sample sizes with additional assumptions. See also Lee et al. [4] for the species-sampling setting.
Corollary 9 instead fixes , , and the prior, and characterizes a risk bound valid for every learner using posterior means for positive counts only. Without conditions across sample sizes or for unseen categories, it implies neither a Dirichlet characterization nor uniqueness of the prior.
A case where count-only conditioning is sufficient. For comparison, if have a common Gamma distribution with shape and rate , then has the symmetric Dirichlet distribution. Multiplication of its density by gives a Dirichlet posterior with parameters , so
The profile dependence disappears, as required by Corollary 9. This example checks the formulas and isolates a setting where the original proof strategy works. Our correction does not impose this prior or replace Feldman’s finite list by Gamma weights.
Consequences for the cited results
Unqualified result and equation numbers below refer to Feldman [1], arXiv version 4; references to our results are identified explicitly.
Disproved statements. Lemma 2.1, proved through Lemma A.1, identifies the full-sample posterior mass with the count-only coefficient. Our counterexample disproves that identity and both forms of Theorem 2.3. Our Theorem 3 also rules out repairing its averaged form by a universal positive constant multiplier.
The subpopulation extension, Theorem 3.2, also fails when subpopulations are point masses on distinct domain points. The two prediction distributions in Definition 3.1 then coincide, making every learner subpopulation-coupled with coupling parameters one. The bound reduces to Theorem 2.3, disproved by our Proposition 2. We do not analyze the coupling argument for nontrivial subpopulations.
Affected proof steps. In the noisy-label Theorem 2.4, equation (7) replaces full posterior masses by the singleton coefficient. The population-risk conclusions of Corollary 4.6 and Theorem 4.8 invoke that bound, so these conversions require separate justification. We do not supply counterexamples to each noisy-label or privacy statement or resolve their other assumptions and conventions.
Calculations independent of the conditioning error. Several intermediate calculations do not use the failed identity. The singleton-count formula and equation (8) in Section 2.5 are marginal occupancy calculations. The first inequality of Lemma 2.6 bounds the count-only coefficient itself; such a bound does not by itself bound the coefficient at every profile. Likewise, the label-prediction arguments in Lemma 4.4 and the first part of Theorem 4.8 do not rely on the frequency-conditioning step. Their conversion into excess population risk is the part requiring care. This dependency analysis does not certify every other statement in those sections.
Available repair and unresolved scope. Our Theorem 4 supplies an exact noiseless replacement. Under the additional fixed- condition of our Corollary 9, the original noiseless coefficients are valid. More generally, a uniform profile-wise lower bound on would suffice. The present counterexamples do not settle the proposed Zipf or other fixed long-tail conclusions; recovering them requires controlling these posterior coefficients, or the resulting learner-weighted expectation.
Discussion
Full-sample posterior frequencies give a valid lower bound in the original normalized-weight model for every independent labeling prior and every learner. The sharp-coefficient theorem identifies exactly when count-only coefficients suffice. A next step is to bound the corrected penalty for specified long-tailed priors or algorithm families. This requires controlling the posterior coefficient or its learner-weighted expectation; concentration of the normalization sum alone does not supply that control.
AI Disclosure
Generative AI was used to assist with mathematical exploration, drafting, and LaTeX preparation.
Exact-arithmetic certificate
Rescale all raw weights by four, which leaves unchanged. Let , with probabilities and , and let count the coordinates of equal to two. Every expectation used in § 3 can be computed from the eight-term formula
The eight vectors and their weights are shown in Table 1. This is equivalent to enumeration over the 27 equally likely list-entry choices, but combines repeated entries.
| Raw vector | Probability | Normalized vector |
Table 1. Exact normalized vectors in the counterexample.
In particular, substituting the four expressions used in the counterexample into (25) gives
Taking the corresponding ratios yields (6) and (7). Thus the finite counterexample can be checked directly from Table 1, without external code.
Leading terms for the exponential relative gap
Let , , and use the definitions of , , , from Theorem 3. Table 2 records the contribution of each raw configuration to the indicated scaled expectation, in the limit along even . The first row combines the all-small and all-large configurations because they yield the same normalized vector. The other rows have probabilities (one large weight) or (two large weights), as indicated.
| Raw configuration | Probability | ||||
| All equal | |||||
| Sum |
Table 2. Limits of individual contributions to the four scaled expectations.
For example, the third row contributes
to , and to . The first row contributes to exactly. The fifth row contributes to . The limits use , , and . The remaining terms either have one of these vanishing ratios or contain , whose contribution is smaller than every fixed exponential rate. Since the number of configurations is finite, summing the limits proves (12).
Evaluating the corrected coefficients
The ratio in (2) defines the corrected weights for any prior. For independently normalized positive weights it can be reduced to integrals in one variable, avoiding enumeration over all raw-weight assignments.
| 8 | 0.158246 | 0.0839837 | 1.88424 |
| 16 | 0.0609648 | 0.00494029 | 12.3403 |
| 32 | 0.0235565 | 1234.9 | |
| 64 | 0.00380177 |
Table 3. Finite-sample values for the family (9), computed with exact rational arithmetic and rounded for display.
Suppose are independent with a common law on and . For integers , , and a profile , define
Each is finite for , even if the raw moments of are infinite.
Proposition 10 (One-dimensional integral formula). For and , including ,
Both integrals are finite and the denominator is positive.
Proof. For and an integer ,
For a count vector with profile , independence and Tonelli’s theorem give
The numerator of (2) increases one exponent from to and replaces by . Apply the same identity with . The ratio of the Gamma factors is , yielding (26). The expectations of the corresponding products of probabilities are finite, bounded by one, and the denominator is positive. This also verifies the stated integrability without separate raw-moment assumptions.
For a finite raw list, . Equation (26) is a computational representation; small likelihoods may require rescaling or logarithmic evaluation. For the three-point example, quadrature gives singleton coefficients 0.330242363322 and 0.333333333333 for profiles and , matching (7) and (8). With absolute and relative quadrature tolerances , the maximum observed discrepancy over all six feasible profile–multiplicity pairs was at most . This diagnostic is not a certified numerical-error bound. The exact values follow independently from the finite sum in Appendix § 10; the quadrature comparison is only an implementation check.
References
- [1]Vitaly Feldman. Does learning require memorization? a short tale about a long tail. arXiv:1906.05271v4, 2021. URL https://arxiv.org/abs/1906.05271v4. Version 4, January 10, 2021. Conference version appeared in STOC 2020.
- [2]I. J. Good. The population frequencies of species and the estimation of population parameters. Biometrika, 40(3–4):237–264, 1953. doi: 10.1093/biomet/40.3-4.237.DOI
- [3]Lancelot F. James, Antonio Lijoi, and Igor Prünster. Posterior analysis for normalized random measures with independent increments. Scandinavian Journal of Statistics, 36(1):76–97, 2009. doi: 10.1111/j.1467-9469.2008.00609.x.DOI
- [4]Jaeyong Lee, Fernando A. Quintana, Peter Müller, and Lorenzo Trippa. Defining predictive probability functions for species sampling models. Statistical Science, 28(2):209–222, 2013. doi: 10.1214/12-STS407.DOI
- [5]S. L. Zabell. W. E. Johnson’s “sufficiency” postulate. The Annals of Statistics, 10(4):1090–1099, 1982. doi: 10.1214/aos/1176345975.