Statement
Let $X_1, X_2, \dots$ be i.i.d. from an unknown distribution $P_0$ with density $p_0$ with respect to a dominating measure $\lambda$. Let $\mu$ be a prior on probability distributions $P$ with densities $p$. The posterior mean of the density, or Bayes predictive density, after $n$ observations is $$\hat p_n(x) = \hat p_n(x; X^n) = \frac{\int p(x) \prod_{i=1}^n p(X_i)\, \mu(dP)}{\int \prod_{i=1}^n p(X_i)\, \mu(dP)},$$ the conditional density of $X_{n+1}$ given $X^n = (X_1, \dots, X_n)$ under the Bayes mixture. Write $D(P_0 \| P) = \int p_0 \log (p_0 / p)\, d\lambda$ for relative entropy. Barron assumes that the prior charges every relative-entropy neighbourhood of the truth: $$\mu\{P : D(P_0 \| P) < \varepsilon\} > 0 \quad \text{for all } \varepsilon > 0. \tag{1}$$
Problem (Barron 1987, §3.20). "Determine whether the sequence of Bayes estimators $\hat p_n$ converges to the true density $p_0$ in the sense that" $$\lim_{n \to \infty} \mathbb{E}_{P_0} D(P_0 \| \hat p_n) = 0.$$ "It is also of interest to know whether $\lim_n D(P_0 \| \hat p_n) = 0$, $P_0$ almost surely." Either result would imply that $D(P_0 \| \hat p_n) \to 0$ in probability (Barron 1987, pp. 85–86; quoted from the OCR of the printed text with notation normalized).
Barron proves that (1) implies $\liminf_n \mathbb{E} D(P_0 \| \hat p_n) = 0$ and the Cesàro statement $\frac{1}{n} \sum_{k<n} \mathbb{E} D(P_0 \| \hat p_k) \to 0$. The question is whether the individual terms, and not only their averages, tend to zero. A negative answer needs a prior satisfying (1) whose risk sequence keeps returning to a level bounded away from zero, on a sparse set of sample sizes.
Formal special case. The Lean statement takes the alphabet $\mathbb{N}$ (counting measure) and a prior with countable support: weights $w(k)$ on component distributions $Q_k$, $k \in \mathbb{N}$. Condition (1) then reads: for every $\varepsilon > 0$ some $k$ has $w(k) > 0$ and $D(P_0 \| Q_k) < \varepsilon$. A counterexample of this form answers Barron's question in the negative. A proof settles only this case, not general priors or general sample spaces. Only the expected-risk question is formalized, not the almost-sure one.
Background
Why this is information theory. The risk $\mathbb{E} D(P_0 \| \hat p_n)$ is the expected redundancy at time $n$ of the Bayes mixture code. That code encodes $X_{n+1}$ with the predictive distribution $\hat p_n$, for example by arithmetic coding. Its excess expected code length over the ideal code for $P_0$ on that symbol is exactly $\mathbb{E} D(P_0 \| \hat p_n)$ nats. By the chain rule for relative entropy, the cumulative redundancy over a block is $$\sum_{k=0}^{n-1} \mathbb{E} D(P_0 \| \hat p_k) = D(P_0^n \| M^n), \qquad M^n(dx^n) = \int P^n(dx^n)\, \mu(dP),$$ the relative entropy between the source and the mixture code (Barron 1987, proof of Lemma 1; Clarke and Barron 1990). Barron's Cesàro result is therefore the statement that the Bayes mixture is a universal code for the class with vanishing per-symbol redundancy, $D(P_0^n \| M^n) = o(n)$. Barron asked whether the instantaneous redundancy also vanishes. Grünwald and Kotłowski (2011) call $\mathbb{E} D(P_0 \| \hat p_n)$ the "instantaneous redundancy" or "individual risk" of sequential prediction under log loss and pose the rate version of the same question. Walker (2004, §3.3) records that Barron's 1988 report cites universal data compression and portfolio selection as applications that need consistency in relative entropy. The problem also belongs to Bayesian nonparametric statistics, where it is a question about posterior predictive consistency. The quantity at stake is a redundancy, so we classify it as statistical information theory.
Why it is not routine. The cumulative redundancy is controlled by how much prior mass sits near $P_0$ in relative entropy. The time-$n$ redundancy is a difference of two cumulative redundancies, and no general argument controls it. If $n \mapsto \mathbb{E} D(P_0 \| \hat p_n)$ were non-increasing, the Cesàro result would finish the proof (Barron 1987, p. 87). It is not always non-increasing (see below). The posterior itself can fail to concentrate near $P_0$ in Hellinger distance or relative entropy under (1). The predictive density averages over the posterior, though, so posterior inconsistency does not settle the question either.
What is known
- Barron's own results (1987). Under (1):
- Lemma 1: $\liminf_n \mathbb{E} D(P_0 \| \hat p_n) = 0$, $\liminf_n D(P_0 \| \hat p_n) = 0$ almost surely, and $\frac{1}{n}\sum_{k \le n} \mathbb{E} D(P_0 \| \hat p_k) \to 0$. The proof bounds $D(P_0^n \| M^n) \le n\varepsilon + \log (1/\mu(N_\varepsilon))$, where $N_\varepsilon = \{P : D(P_0 \| P) < \varepsilon\}$, and uses the chain-rule identity above.
- Lemma 2: the averaged estimator $\bar p_n = \frac{1}{n} \sum_{k=1}^n \hat p_k$ satisfies $\mathbb{E} D(P_0 \| \bar p_n) \to 0$, by convexity. This also holds when each $\hat p_k$ is computed from any $k$ of the $n$ observations.
- Lemma 3: the posterior mean minimizes the Bayes risk $R_n = \int \mathbb{E}_P D(P \| \hat p_n)\, \mu(dP)$ among all density estimators, and $R_n$ is non-increasing. Barron writes that it is not known whether $\lim R_n = 0$, and that the risk $\mathbb{E}_P D(P \| \hat p_n)$ "might increase for some $P$ and some $n$".
- Lemma 4 (Doob's martingale method): $D(P \| \hat p_n) \to 0$ almost surely for $\mu$-almost every $P$ satisfying (1). This gives no information at a specified $P_0$.
- Lemma 5: the posterior concentrates on every neighbourhood of $P_0$ that is open for setwise convergence (Barron 1986, via Schwartz 1965; first obtained by Freedman 1963 in the discrete case under finite entropy).
- For parametric problems Barron cites Strasser (1981): under (1) and mild conditions, consistency of the maximum-likelihood estimator implies consistency of Bayes rules.
- Evidence against consistency (Barron 1987, §3). Barron announced priors satisfying (1) whose posterior concentrates outside relative-entropy neighbourhoods of $P_0$. The construction appears in Barron's 1988 technical report and in Barron, Schervish and Wasserman (1999, §3.5). There, $P_0$ is uniform on $[0,1)$, the prior satisfies (1), and the posterior mass of a family of densities at fixed Hellinger distance from $P_0$ has $\limsup$ equal to $1$ almost surely. This is a statement about the posterior, not the predictive. Bariletto and Walker (2025) call it the only known violation of Hellinger posterior consistency under (1). They also observe that in this example the posterior predictive must, with positive probability, converge to the uniform density in Hellinger distance, at least along a subsequence (by Walker 2004, Theorem 1).
- The risk need not be monotone. Barron (1998, p. 28) states that the relative-entropy risk "can increase for some sample sizes, even at parameter values given very high prior probability", and that "it is the time average of Kullback risk that is assured good behavior." Grünwald and Kotłowski (2011) give the simplest instance. With a uniform prior on the Bernoulli parameter and fair-coin data, the risk is $0$ at sample size $0$ and positive at sample size $1$. They add that no examples are known of substantially increasing risk at large $n$.
- The atom case. For a countable prior with $w(P_0) > 0$, the cumulative redundancy is at most $\log (1/w(P_0))$ for every $n$. So $\sum_n \mathbb{E} D(P_0 \| \hat p_n) < \infty$ and the individual risks tend to $0$ (Grünwald and Kotłowski 2011, citing Grünwald 2007, Ch. 6). Machine-checked here. The rate is open: Grünwald and Kotłowski ask whether a bound $\log(1/w(P_0))/n^\gamma$ holds for some $\gamma > 0$. The counterexample uses a truth in the relative-entropy closure of the prior’s support with no prior atom at the truth.
- Cesàro results and rates. Barron (1998) bounds the cumulative risk by an index of resolvability, a finite-sample quantity. Yang and Barron (1999) and Yang (2000) use Cesàro averages of Bayes predictives to attain minimax rates, as does Catoni's progressive mixture. Haussler and Opper (1997) relate cumulative relative-entropy risk to mutual information and metric entropy. Martin and Hong (2012, Proposition 1) show that $\log \mu(K_n) \gtrsim -n\varepsilon_n^2$, where $K_n = \{P : D(P_0 \| P) \le \varepsilon_n^2\}$, gives the Cesàro rate $\frac{1}{n}\sum_{i \le n} \mathbb{E} D(P_0 \| \hat p_{i-1}) \lesssim \varepsilon_n^2$. They remark that, as Walker (2003) explains, the prior "would have to be rather strange" for this not to imply convergence of $\hat p_n$ itself. That remark is heuristic, not a theorem.
- Almost-sure Cesàro results. Under (1), $\frac{1}{N}\sum_{n \le N} H(\hat p_{n-1}, p_0) \to 0$ almost surely in Hellinger distance (Walker 2003, as restated in Walker 2004, §4). Walker (2004, Theorem 3) proves $\frac{1}{N}\sum_{n \le N} D(P_0 \| \hat p_{n-1}) \to 0$ almost surely when, in addition, $\sum_n n^{-2} \operatorname{Var}\{\log (I_n / I_{n-1})\} < \infty$, where $I_n$ is the normalized marginal likelihood. Again only averages are controlled.
- Smooth parametric families. Clarke and Barron (1990) prove $D(P_\theta^n \| M^n) = \frac{d}{2}\log \frac{n}{2\pi e} + \frac{1}{2}\log\det I(\theta) + \log \frac{1}{w(\theta)} + o(1)$ for smooth $d$-dimensional families. This suggests, but does not prove, time-$n$ redundancy $\sim d/(2n)$. Grünwald and Kotłowski (2011) list a bound $\frac{k}{2n} + O(1/n^2)$ for $k$-parameter exponential families as open.
- Related discussion. Sancetta (2012) derives finite-sample bounds for the cumulative relative-entropy loss of Bayesian predictions. In the published discussion, Liang (2012) separates consistency of predictions in the Cesàro sense from the behaviour of the per-time divergence. (We could read only search-engine extracts of Liang's comment.) Seeger, Kakade and Foster (2008) use the Cesàro notion, under the name "information consistency", for Gaussian-process methods.
- Two small observations (ours):
[proved]Degenerate truth. If $P_0 = \delta_{x_0}$, the risk is non-increasing and tends to $0$ under (1). With $q = Q(\{x_0\})$, the data are all $x_0$ and $\hat p_n(x_0) = m_{n+1}/m_n$, where $m_n = \int q^n\, \mu(dQ)$. Cauchy–Schwarz gives $m_n^2 \le m_{n-1} m_{n+1}$, so the ratios $r_n = m_{n+1}/m_n$ are non-decreasing and $m_n \le m_0 r^n$ with $r = \lim r_n$. Condition (1) gives $\mu\{q > 1 - \delta\} > 0$ for every $\delta > 0$, so $m_n^{1/n} \to 1$, hence $r = 1$ and $\mathbb{E} D(P_0 \| \hat p_n) = -\log r_n \downarrow 0$.[heuristic]A natural mechanism fails. Try to create risk spikes with components $B_j$ that agree with $P_0$ except on a set $A_j$ of $P_0$-mass $\eta_j \ll 1/n_j$, where $B_j$ puts almost no mass. Such a $B_j$ can win the posterior around time $n_j$ while $D(P_0 \| B_j)$ is large. However, the predictive still carries the posterior mass $\pi$ of the good components on $A_j$, so the risk is only about $\eta_j \log (1/\pi) \lesssim D(P_0^{n_j} \| M^{n_j})/n_j \to 0$. The counterexample below selects one of many candidate unseen atoms after observing the history. Its missing mass tends to zero while its logarithmic deficit grows.- Resolution, December 2026. A countable counterexample gives expected risk at least $3(j+1)/2$ nats at deterministic sample sizes $n_j\to\infty$. The prior uses models that each omit a single atom from a finite block. When exactly one atom is unseen, its omitting model is the only surviving model of that block. Small positive contamination weights give KL support. Proof and verification.
Formal statement and certificate
InfoTheory.Problems.BayesPredictiveKlConsistency.Statement quantifies over P₀ w : PMF ℕ and Q : ℕ → PMF ℕ.
klNat P Qis relative entropy in nats, written as $\sum_x q(x)\,\varphi(p(x)/q(x))$ with $\varphi(t) = t\log t - t + 1$. Every term is nonnegative, a term is⊤where $p > 0 = q$, and the sum lives inℝ≥0∞.mixLik w Q xs$= \sum_k w(k) \prod_i Q_k(x_i)$ is the mixture likelihood.posteriornormalizes $w(k)\prod_i Q_k(x_i)$. It falls back to the prior on samples of mixture likelihood $0$.predictive w Q xsis the posterior mixture of the $Q_k$.bayesRisk P₀ w Q n$= \sum_{x^n} P_0^n(x^n)\, D(P_0 \| \hat p(\cdot \mid x^n))$ is the expected risk after $n$ observations.HasKLSupport P₀ w Qis condition (1).
The statement asks that HasKLSupport imply Tendsto (bayesRisk P₀ w Q) atTop (𝓝 0). The file imports Mathlib.Probability.ProbabilityMassFunction.Constructions for PMF, PMF.normalize and PMF.bind.
InfoTheory.Known.Certificates.BayesPredictiveKlConsistency proves, using only the standard axioms:
klNat_eq_zero_iff,klNat_eq_top,klNat_eq_ofReal_tsum,klNat_ne_top_iff:klNatvanishes exactly on the diagonal. It is⊤without absolute continuity, and whenever finite it equals $\sum_x p\log(p/q)$.predictive_apply_of_ne: the predictive is Barron's posterior mean, $\sum_k w(k)L_k Q_k(x) / \sum_k w(k) L_k$.mixLik_ne_zero,bayesRisk_eq_of_posteriorMean,bayesRisk_ne_top: under the hypothesis, the fallback branch is used only on $P_0^n$-null samples, the risk does not depend on it, and every risk is finite.bayesRisk_zero: at $n = 0$ the risk is $D(P_0 \| \sum_k w(k) Q_k)$.pointMass_instance: the hypothesis is satisfiable for every $P_0$, and the point-mass prior at $P_0$ has risk $0$.sum_bayesRisk_eq_redundancy,redundancy_pure: the redundancy identity $\sum_{k<n} \mathbb{E} D(P_0 \| \hat p_k) = D(P_0^n \| M^n)$, and tensorization $D(P_0^n \| Q^n) = n D(P_0 \| Q)$.redundancy_le: Barron's bound $D(P_0^n \| M^n) \le n D(P_0 \| Q_k) + \log (1/w(k))$.cesaro_tendsto_zero,frequently_bayesRisk_lt: Barron's Lemma 1, both the Cesàro limit and $\liminf = 0$.tsum_bayesRisk_le_of_atom,tendsto_of_atom: if $P_0 = Q_k$ with $w(k) > 0$, then $\sum_n \mathbb{E} D(P_0 \| \hat p_n) \le \log (1/w(k))$, and the conclusion ofStatementholds.
The solution module verifies the expected-risk disproof and the stronger quantitative sequence of risk spikes. Lean disproof.
References
- A. R. Barron, "Are Bayes rules consistent in information?," in Open Problems in Communication and Computation (T. M. Cover and B. Gopinath, eds.), Springer, 1987, §3.20, pp. 85–91 (doi:10.1007/978-1-4612-4808-8_22).
- A. R. Barron, "Discussion: On the consistency of Bayes estimates," Annals of Statistics 14(1):26–30, 1986.
- A. R. Barron, "The exponential convergence of posterior probabilities with implications for Bayes estimators of density functions," Technical Report 7, Department of Statistics, University of Illinois, Champaign, 1988.
- A. R. Barron, "Information-theoretic characterization of Bayes performance and the choice of priors in parametric and nonparametric problems," in Bayesian Statistics 6 (J. M. Bernardo, J. O. Berger, A. P. Dawid and A. F. M. Smith, eds.), Oxford University Press, 1998, pp. 27–52.
- A. Barron, M. J. Schervish and L. Wasserman, "The consistency of posterior distributions in nonparametric problems," Annals of Statistics 27(2):536–561, 1999.
- N. Bariletto and S. G. Walker, "On a necessary condition for posterior inconsistency: new insights from a classic counterexample," arXiv:2510.18126, 2025.
- O. Catoni, "A mixture approach to universal model selection," preprint LMENS-97-30, École Normale Supérieure, 1997.
- B. S. Clarke and A. R. Barron, "Information-theoretic asymptotics of Bayes methods," IEEE Transactions on Information Theory 36(3):453–471, 1990 (doi:10.1109/18.54897).
- J. L. Doob, "Application of the theory of martingales," Le Calcul des Probabilités et ses Applications, Colloques Internationaux du CNRS 13, 1949.
- D. A. Freedman, "On the asymptotic behavior of Bayes' estimates in the discrete case," Annals of Mathematical Statistics 34:1386–1403, 1963.
- P. D. Grünwald, The Minimum Description Length Principle, MIT Press, 2007.
- P. D. Grünwald and W. Kotłowski, "Bounds on individual risk for log-loss predictors," Proc. 24th Conference on Learning Theory (COLT 2011), JMLR Workshop and Conference Proceedings 19:813–816, 2011.
- D. Haussler and M. Opper, "Mutual information, metric entropy and cumulative relative entropy risk," Annals of Statistics 25(6):2451–2492, 1997 (doi:10.1214/aos/1030741081).
- F. Liang, "Comment on article by Sancetta," Bayesian Analysis 7(1):45–46, 2012 (doi:10.1214/12-BA701B).
- R. Martin and L. Hong, "On convergence rates of Bayesian predictive densities and posterior distributions," arXiv:1210.0103, 2012.
- J. Mourtada, "Universal coding, intrinsic volumes, and metric complexity," Journal of the European Mathematical Society, 2025 (doi:10.4171/jems/1649).
- J. Mourtada, "Estimation of discrete distributions in relative entropy, and the deviations of the missing mass," Mathematical Statistics and Learning 9(1):69–144, 2026 (doi:10.4171/msl/55).
- A. Sancetta, "Universality of Bayesian predictions," Bayesian Analysis 7(1):1–36, 2012 (doi:10.1214/12-BA701).
- L. Schwartz, "On Bayes procedures," Zeitschrift für Wahrscheinlichkeitstheorie und verwandte Gebiete 4:10–26, 1965.
- M. Seeger, S. M. Kakade and D. P. Foster, "Information consistency of nonparametric Gaussian process methods," IEEE Transactions on Information Theory 54(5):2376–2382, 2008 (doi:10.1109/TIT.2007.915707).
- H. Strasser, "Consistency of maximum likelihood and Bayes estimates," Annals of Statistics 9:1107–1113, 1981.
- S. G. Walker, "On sufficient conditions for Bayesian consistency," Biometrika 90(2):482–488, 2003 (doi:10.1093/biomet/90.2.482).
- S. G. Walker, "New approaches to Bayesian consistency," Annals of Statistics 32(5):2028–2043, 2004 (doi:10.1214/009053604000000409).
- Y. Yang, "Mixing strategies for density estimation," Annals of Statistics 28(1):75–87, 2000 (doi:10.1214/aos/1016120365).
- Y. Yang and A. R. Barron, "Information-theoretic determination of minimax rates of convergence," Annals of Statistics 27(5):1564–1599, 1999 (doi:10.1214/aos/1017939142).