Consistency of Variational Bayes Inference for Estimation and Model Selection in Mixtures

Badr-Eddine Chérief-Abdellatif, Pierre Alquier

Introduction

This paper studies the statistical properties of variational inference as a tool to tackle two problems of interest: estimation and model selection in mixture models. Mixtures are often used for modelling population heterogeneity, leading to practical clustering methods . Moreover they have enough flexibility to approximate accurately almost every density . Mixtures are used in many various areas such as computer vision , genetics , economics , transport data analysis and others. We refer the reader to for an account of the recent advances on mixtures. The most famous procedure for mixture density estimation in the frequentist literature is probably Expectation-Maximization , a maximum-likelihood algorithm that yields increasingly higher likelihood. At the same time, the Bayesian paradigm has raised great interest among researchers and practitioners, especially through the Variational Bayes (VB) framework which aims at maximizing a quantity referred to as Evidence Lower Bound on the marginal likelihood (ELBO). Variational Bayes inference is a useful tool for approximating intractable posteriors. It is known to work well in practice for mixture models: one of the most recent survey on VB chooses mixtures as an example of choice to illustrate the power of the method. Moreover states: "the [evidence lower] bound is a good approximation of the marginal likelihood, which provides a basis for selecting a model. Though this sometimes works in practice, selecting based on a bound is not justified in theory". The main contribution of this paper is to prove that VB is consistent for estimation in mixture models, and that the ELBO maximization strategy used in practice is consistent for model selection. Thus we solve the question raised by .

Variational Bayes is a method for computing intractable posteriors in Bayesian statistics and machine learning. Markov Chain Monte Carlo (MCMC) algorithms remain the most widely used methods in computational Bayesian statistics. Nevertheless, they are often too slow for practical uses when the dataset is very large. A more and more popular alternative consists in finding a deterministic approximation of the target distribution called Variational Bayes approximation. The idea is to minimize the Kullback-Leibler divergence of a tractable distribution ρ\rho with respect to the posterior, which is also equivalent to maximizing the ELBO. This optimization procedure is much faster and efficient than MCMC sampling with numerous applications in different fields: matrix completion for collaborative filtering , computer vision , computational biology and natural language processing , to name a few prominent examples.

However, variational inference is mainly used for its practical efficiency and only little attention has been put in the literature towards theoretical properties of the VB approximation until very recently. In the properties of variational approximations of Gibbs distributions used in machine learning are derived. The results are essentially valid for bounded loss functions, which makes them difficult to use beyond the problem of supervised classification. Based on some technical advances from , removed the boundedness assumption in , allowing to study more general statistical models. In , the authors extended the range of models covered by . This allowed them to study mixture of Gaussian distributions as an example. Many questions are still left unanswered: model selection, and the estimation of mixture of non-Gaussian distributions. For example mixture of multinomials are widely used in practice , as well as more intricated examples such as nonparametric mixtures . Note that all the results in are limited to so-called tempered posteriors, that is, where the likelihood is taken to some power α\alpha. Still, the use of tempered posteriors is highly recommended by many authors as a way to overcome model misspecification, see and the references therein. Indeed some results in are valid in a misspecified setting. Alternative approaches were developed to study VB: established Bernstein-von-Mises type theorems on the variational approximation of the posterior. They provide very interesting results for parametric models but it is unclear whether these results can be extended to model selection or misspecified case. More recently, succeeded in adapting the now classical results of to Variational Bayes and showed that a slight modification in the three classical "prior mass and testing conditions" leads to the convergence of their variational approximations, again under the assumption that the model is true. With respect to these works, our contribution is a complete study of the consistency of VB for mixtures of general distributions. In particular, we explicit independent conditions on the prior on the weights, and on the prior on the parameters of the components. The study is done in the case α<1\alpha<1 which allows to prove results in the misspecified case.

The other point addressed in this paper is model selection. This is a natural question which can be interpreted in this context as the determination of the number of components of the mixture. This point is crucial: indeed, too many components can lead to estimates with too large variances whereas with too few components, we may obtain mixtures which are not able to fit the data properly. This is a common issue and a lot of statisticians worked on this question. In the literature, criteria such as AIC and BIC are popular. It is well known that in some collections of models, AIC optimizes the prediction ability while BIC recovers with high probability the true model (when there is one). These two objectives are not compatible in general . Anyway, these results depend on asssumptions that are not satisfied by mixtures. It seems thus more natural to develop criteria suited to a given objective. For example, proposed a procedure to select a number of components that is the most relevant for clustering. A non-asymptotic theory of penalization has been developed during the last two decades using oracle inequalities . In the wake of those works, our paper studies mixture model selection based on the ELBO criterion. We prove a general oracle inequality. This result establishes the consistency of ELBO maximization when the primary objective is the estimation of the distribution of the data.

The rest of this paper is organized as follows. In Section 2 we introduce the background and the notations that will be adopted. Consistency of the Variational Bayes for estimation in a mixture model is studied in Section 3. First, we give the general results under a "prior mass" assumption, as well as a general form for the algorithm to compute the VB approximation (Subsection 3.1). We then apply these results to mixtures of multinomials (Subsection 3.2) and Gaussian mixtures (Subsection 3.3). In each case, we provide a rate of convergence of VB and discuss its numerical implementation. We extend the setting to the misspecified case in Subsection 3.4. Finally, we address the issue of selecting based on the ELBO in Section 4. We discuss possible extensions in Section 5, while Section 6 is dedicated to the proofs.

Background and notations

First, we consider the well-specified case, assuming that the true distribution belongs to the KK-components mixture model. Thus, we define the true distribution P0P^{0} from which data are sampled:

Hence, we want to estimate the true distribution Pθ0P_{\theta^{0}} using a Bayesian approach. Therefore, we define a prior π=πp⨂j=1Kπj\pi=\pi_{p}\bigotimes_{j=1}^{K}\pi_{j} on θ\theta, πp∈M1+(SK)\pi_{p}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) being a probability distribution on some measurable space (SK,A)(\mathcal{S}_{K},\mathcal{A}), and each πj∈M1+(Θ)\pi_{j}\in\mathcal{M}_{1}^{+}(\Theta) a probability distribution on the measurable space (Θ,T)(\Theta,\mathcal{T}). We will also consider in this paper the misspecified case where the true distribution does not belong to our statistical model i.e. is not necessarily a mixture, but the specific notations and framework will be described later.

The negative log-likelihood ratio rnr_{n} between two distributions PP and RR is given by

(note that rn(θ,θ′)r_{n}(\theta,\theta^{\prime}) is used by many authors instead of rn(Pθ,Pθ′)r_{n}(P_{\theta},P_{\theta^{\prime}}) but our notation is more convenient for the extension to the misspecified case). The Kullback-Leibler (KL) divergence between two probability distributions PP and RR is given by

If some measure λ\lambda dominates both PP and RR distributions represented here by their densities ff and gg with respect to this measure, we have

and we will use K(P,R)K(P,R) or K(f,g)\mathcal{K}(f,g) to denote this quantity, depending on the context.

We also remind that the α\alpha-Renyi divergence between PP and RR,

When for some λ\lambda we have f=dPdλf=\frac{dP}{d\lambda} and g=dRdλg=\frac{dR}{d\lambda},

Some useful properties of Renyi divergences can be found in . In particular, the Renyi divergence between two probability distributions PP and RR can be related to the classical total variation TVTV and Hellinger HH distances respectively defined as TV(P,R)=12∫∣dP−dR∣TV(P,R)=\frac{1}{2}\int|dP-dR| and H(P,R)2=12∫(dP−dR)2=1−e−12D1/2(P,R)H(P,R)^{2}={\frac{1}{2}\int(\sqrt{dP}-\sqrt{dR})^{2}}={1-e^{-\frac{1}{2}D_{1/2}(P,R)}} through:

The tempered Bayesian posterior πn,α(.∣X1n)\pi_{n,\alpha}(.|X_{1}^{n}), which is our target here, is defined for 0<α≤10<\alpha\leq 1 by

(it is also referred to as fractional posterior, for example in ). Note that when α=1\alpha=1, then we recover the "true" Bayesian posterior, but the case α<1\alpha<1 has many advantages: it is often more tractable from a computational perspective , it is consistent under less stringent assumptions than required for α=1\alpha=1 and it is more robust to misspecification .

The mean-field approximation is very popular in the Variational Bayes literature. It is based on a decomposition of the space of parameters ΘK\Theta_{K} as a product. Then F\mathcal{F} consists in compatible product distributions. Here, a natural choice is ΘK=SK×Θ×⋯×Θ\Theta_{K}=\mathcal{S}_{K}\times\Theta\times\dots\times\Theta and

We will work on this particular set in the following and we will often use ρ\rho instead of ρp⨂j=1Kρj\rho_{p}\bigotimes_{j=1}^{K}\rho_{j} to ease notation.

We end this section by recalling Donsker and Varadhan’s variational formula. Refer for example to for a proof (Lemma 1.1.3).

with the convention ∞−∞=−∞\infty-\infty=-\infty. Moreover, if hh is upper-bounded on the support of λ\lambda, then the supremum on the right-hand side is reached by the distribution of the form:

This technical lemma is one of the main ingredients for the proof of our results, but it is also very helpful to understand variational approximations. Indeed, for E=ΘK\textbf{E}=\Theta_{K} and using the definition of πn,α(.∣X1n){\pi}_{n,\alpha}(.|X_{1}^{n}), we get:

The quantity maximized in (1) is called the ELBO in the litterature (ELBO stands for Evidence Lower Bound), and many authors actually take this as the definition of VB .

In practice, the choice of α\alpha is not staightforward. Depending on the objective, some heuristic might be available: for example, proposed a nice method to calibrate α\alpha in order to get confidence intervals on a parameter of interest. More generally, cross-validation can give good results. We have to acknowledge that there is no universal method to calibrate α\alpha. This could lead the reader to the idea that the proper Bayesian approach (α=1\alpha=1) is simpler to use. We insist on the fact α=1\alpha=1 can produce catastrophic results in case of misspecification , while we present below some results in the misspecified case with α<1\alpha<1. We believe that the calibration of α\alpha is a very important research direction.

Variational Bayes estimation of a mixture

We start with a result for general mixtures. Later in this section we provide corollaries obtained by applying this theorem to special cases: mixture of multinomials and Gaussian mixtures.

As a special case, when there exists rn,Kr_{n,K} such that there is are distributions ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) and ρj,n∈M1+(Θ)\rho_{j,n}\in\mathcal{M}_{1}^{+}(\Theta) (j=1,...,Kj=1,...,K) such that for j=1,...,Kj=1,...,K

The proof is given in Section 6. This theorem provides the consistency of the Variational Bayes for mixture models as soon as (3) and (4) are satisfied. In , the authors use similar conditions ((3) and (4) in their Theorem 2.6), and show that they are strongly linked to the assumptions on the prior used by to derive concentration of the posterior. Thus they cannot be removed in general. Theorem 3.1 states that finding rn,Kr_{n,K} fulfilling (3) and (4) independently for the weights and for each component is sufficient to obtain the rate of convergence Krn,KKr_{n,K} of the VB estimator towards the true distribution.

Clearly, the theorem cannot be directly extended to the case α=1\alpha=1. As discussed above, the case α=1\alpha=1 is studied in : it requires a testing condition in addition to the prior mass condition given by (3) and (4). In the case of mixtures, such a testing condition was studied in .

Note that there always exists a distribution ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) such that the two quantities corresponding to the weights ∫K(p0,p)ρp,n(dp)\int\mathcal{K}(p^{0},p)\rho_{p,n}(dp) and K(ρp,n,πp)\mathcal{K}(\rho_{p,n},\pi_{p}) are bounded as required in Theorem 3.1 for rn,K=4log⁡(nK)nr_{n,K}=\frac{4\log(nK)}{n} when the chosen prior is a Dirichlet distribution πp=DK(α1,...,αK)\pi_{p}=\mathcal{D}_{K}(\alpha_{1},...,\alpha_{K}) under some minor restriction on α1,...,αK\alpha_{1},...,\alpha_{K}. This result summarized below for any K≥2K\geq 2 helps find explicit rates of convergence for the VB approximation.

For rn,K=4log⁡(nK)nr_{n,K}=\frac{4\log(nK)}{n} and a prior πp=DK(α1,...,αK)∈M1+(SK)\pi_{p}=\mathcal{D}_{K}(\alpha_{1},...,\alpha_{K})\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) with 2K≤αj≤1\frac{2}{K}\leq\alpha_{j}\leq 1 for j=1,...,Kj=1,...,K, we can find a distribution ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) such that

Thus, conditions (3) and (4) concerning the mixture components are always satisfied for guaranteeing consistency and obtaining convergence rates of the Variational Bayes procedure.

When K=1K=1, Lemma 3.2 does not apply as 2K>1\frac{2}{K}>1. Nevertheless, as there is only one component, then any p∈SKp\in\mathcal{S}_{K} is equal to 11 and the two conditions are immediately satisfied for any prior πp\pi_{p} and any rate rn,Kr_{n,K} with ρp,n=πp\rho_{p,n}=\pi_{p}.

The central idea of the proof of Lemma 3.2 (given in details in Section 6) is to consider the ball B\mathcal{B} centered at p0p^{0} of radius Krn,KKr_{n,K} defined as:

Hence, when considering the restriction ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) of πp\pi_{p} to B\mathcal{B}, condition (3) is trivially satisfied and condition (4) is restricted to

This is a very classical assumption stated in many papers to study the concentration of the posterior . However, the computation of such a prior mass πp(B)\pi_{p}(\mathcal{B}) is a major difficulty. Lemma 6.1 in treated the case of L1L_{1}-balls for Dirichlet priors. Since then, only a few papers in the literature addressed this issue. Our result extends the work in to KL-balls, which is of great interest in our study. Moreover, the range of Dirichlet priors for which Lemma 3.2 is applicable is the same as the one in .

We conclude Subsection 3.1 by a short discussion on the implementation of the VB approximation. Indeed, VB methods are meant to be practical objects, so there would be no point in proving the consistency of a VB approximation that would not be computable in practice. Many algorithms have been studied in the literature, with good performances – see and the references therein. In the case of mean-field approximation, the most popular method is to optimize iteratively with respect to all the independent components. Here this might seem difficult: it is indeed as difficult as maximizing the likelihood of a mixture. But a trick widely used in practice (see for example Section 7 in ) is to use the equality

This equality is once again a consequence of Lemma 2.1 (take E={1,...,K}\textbf{E}=\{1,...,K\}, λ=(1/K,...,1/K)\lambda=(1/K,...,1/K) and h(j)=log⁡(pjqθj(Xi))h(j)=\log(p_{j}q_{\theta_{j}}(X_{i}))). This leads to the program:

This version can be solved by coordinate descent, see Algorithm 1. Update formulas once again follow from Lemma 2.1 (for instance, line 7 can be obtained with E={1,...,K}\textbf{E}=\{1,...,K\}, λ=(1/K,...,1/K)\lambda=(1/K,...,1/K) and h(j)=∫log⁡(pj)ρp(dp)+∫log⁡(qθj(Xi))ρj(dθj)h(j)=\int\log(p_{j})\rho_{p}(dp)+\int\log(q_{\theta_{j}}(X_{i}))\rho_{j}(d\theta_{j}), more details are provided in Section 6). This algorithm is, in the case α=1\alpha=1, exactly equivalent to the popular CAVI algorithm , where the ωji\omega^{i}_{j}’s are interpreted as the posterior means of the latent variables ZjiZ^{i}_{j}’s. A very short numerical study is provided in the Supplementary Material but note that CAVI has already been extensively tested in practice .

2 Application to multinomial mixture models

The following corollary of Theorem 3.1 states that convergence of the VB approximation for the multinomial mixture model is achieved at rate KVlog⁡(nV)n\frac{KV\log(nV)}{n} as soon as VV≥KV^{V}\geq K, which is the case in many text mining models such as Latent Dirichlet Allocation for which the size of the vocabulary is very large:

The proof is in Section 6. We also specialize Algorithm 1 to the present setting (see Algorithm 2). Here ψ\psi denotes the Digamma function, ψ(x)=ddxlog⁡[Γ(x)]\psi(x)=\frac{{\rm d}}{{\rm d}x}\log[\Gamma(x)] where Γ\Gamma stands for the Gamma function Γ(x)=∫0∞exp⁡(−t)tx−1dt\Gamma(x)=\int_{0}^{\infty}\exp(-t)t^{x-1}{\rm d}t.

3 Application to Gaussian mixture models

Let us now address the case of the Gaussian mixture model. This is one of the most popular mixture models for many applications including model based clustering and VB approximations have been studied in depth for this model . First, we will give rates of convergence of the VB approximation of the tempered posterior when the variance is known, and then when the variance is unknown.

Let us define rn,K=4log⁡(nK)n⋁j=1K1n[12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12]r_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg]. Then, for any α∈(0,1)\alpha\in(0,1),

One can see that for nn large enough, the convergence rate is Klog⁡(nK)n\frac{K\log(nK)}{n}, which comes from the estimation of the weights of the mixture.

The Normal-Inverse-Gamma NIG(μ,θ2,a,b)\mathcal{NIG}(\mu,\theta^{2},a,b) is the distribution which density ww with respect to Lebesgue measure is defined by w(x,y)=g(x∣μ,yθ2)h(y∣a,b)w(x,y)=g(x|\mu,\frac{y}{\theta^{2}})h(y|a,b), where g(.∣μ,σ2)g(.|\mu,\sigma^{2}) is the density function of a Gaussian distribution of mean μ\mu and variance σ2\sigma^{2}, and h(.∣a,b)h(.|a,b) is the density distribution of an Inverse-Gamma of parameters aa and bb.

For a Normal-Inverse-Gamma prior πj=NIG(0,V−2,1,γ2)\pi_{j}=\mathcal{NIG}(0,\mathcal{V}^{-2},1,\gamma^{2}) for each j=1,...,Kj=1,...,K. With rn,K=4log⁡(nK)n⋁j=1K1n[2log⁡(nV)+12nV2+(μj0)22(σj0)2V2+log⁡((σj0)2γ2)+γ2(σj0)2−12log⁡(2π)]r_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg],

For the factorized prior πj=N(0,V2)⨂IG(1,γ2)\pi_{j}=\mathcal{N}(0,\mathcal{V}^{2})\bigotimes\mathcal{IG}(1,\gamma^{2}) for each j=1,...,Kj=1,...,K. With rn,K=4log⁡(nK)n⋁j=1K1n[2log⁡(nV)+(σj0)22nV2+(μj0)22V2+12log⁡((σj0)2γ4)+γ2(σj0)2−12log⁡(2π)]r_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}+\frac{1}{2}\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{4}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg],

One can see that even when the variance has to be estimated, the convergence rate still achieves Klog⁡(nK)n\frac{K\log(nK)}{n} for nn large enough, whatever the form of the prior - factorized or not.

We give in Algorithm 3 a version of Algorithm 1 for unit-variance Gaussian mixtures with priors πp=DK(α1,...,αK)\pi_{p}=\mathcal{D}_{K}(\alpha_{1},...,\alpha_{K}) and πj=N(0,V2)\pi_{j}=\mathcal{N}(0,\mathcal{V}^{2}) where 2K≤αj≤1\frac{2}{K}\leq\alpha_{j}\leq 1 for j=1,...,Kj=1,...,K and V2>0\mathcal{V}^{2}>0.

4 Extension to the misspecified case

From now we do not assume any longer that the true distribution P0P^{0} belongs to the KK-mixtures model. We still consider a prior π=πp⨂j=1Kπj\pi=\pi_{p}\bigotimes_{j=1}^{K}\pi_{j} on θ∈ΘK\theta\in\Theta_{K} for which πp∈M1+(SK)\pi_{p}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) and πj∈M1+(Θ)\pi_{j}\in\mathcal{M}_{1}^{+}(\Theta) for j=1,...,Kj=1,...,K.

For some value rn,Kr_{n,K}, we introduce the set ΘK(rn,K)\Theta_{K}(r_{n,K}) of parameters θ∗∈ΘK\theta^{*}\in\Theta_{K} such that:

there exists a set An,K⊂SK\mathcal{A}_{n,K}\subset\mathcal{S}_{K} satisfying:

for each p∈An,Kp\in\mathcal{A}_{n,K}, for each j=1,...,Kj=1,...,K, log⁡(pj∗pj)≤Krn,K\log\big(\frac{p_{j}^{*}}{p_{j}}\big)\leq Kr_{n,K},

πp(An,K)≥e−nKrn,K\pi_{p}(\mathcal{A}_{n,K})\geq e^{-nKr_{n,K}}.

there are distributions ρj,n∈M1+(Θ)\rho_{j,n}\in\mathcal{M}_{1}^{+}(\Theta) (j=1,...,Kj=1,...,K) such that for j=1,...,Kj=1,...,K:

Let us discuss this definition. To begin with, the first item of the definition of ΘK(rn,K)\Theta_{K}(r_{n,K}) can seem quite restrictive. It is even a much more stronger assumption than (3) and (4). Nevertheless, the way to find the required measures ρp,n\rho_{p,n} in Lemma 3.2 in the well-specified case implies constructing in the proof such sets An,K\mathcal{A}_{n,K} for the true weight parameter p0p^{0}. As a consequence, it might seem reasonable to replace conditions (3) and (4) by the first part of the definition of ΘK(rn,K)\Theta_{K}(r_{n,K}). On the other hand, the condition given by (5) looks like those of Theorem 2.7 in . Once again, the difference is that inequalities must be satisfied here for each component. A condition on both the true distribution P0P^{0} and the parameter θ∗\theta^{*} considered is required through the expectation term. Besides, condition (5) is equivalent to (3) and (4) when the model is well-specified.

If there is no rn,Kr_{n,K} such that ΘK(rn,K)\Theta_{K}(r_{n,K}) is not empty, then the right-hand side is equal to infinity (by convention) for any value of rn,Kr_{n,K} and the inequality is useless. Nevertheless, this is not the case in models used in practice. We show an example below.

It is worth mentioning that even if this is not exactly an oracle inequality as the risk function in the left-hand side (α\alpha-Renyi divergence) is lower than the right-hand side one (Kullback-Leibler divergence), but the theorem still remains of great interest. Indeed, when the minimizer of K(P0,Pθ)\mathcal{K}(P^{0},P_{\theta}) with respect to θ∈ΘK(rn,K)\theta\in\Theta_{K}(r_{n,K}) exists and is such that the corresponding Kullback-Leibler divergence is small, then our oracle inequality is informative as it gives a small bound on the expected risk of the Variational Bayes.

Variational Bayes model selection

with ΘK=SK×ΘK\Theta_{K}=\mathcal{S}_{K}\times\Theta^{K}, SK={pK=(p1,K,...,pK,K)∈K/∑j=1Kpj,K=1}\mathcal{S}_{K}=\{p_{K}=(p_{1,K},...,p_{K,K})\in^{K}/\sum_{j=1}^{K}p_{j,K}=1\} and the general notation θK=(pK,θ1,K,...,θK,K)\theta_{K}=(p_{K},\theta_{1,K},...,\theta_{K,K}). We would like to emphasize that the notations are slightly different as the size of each component parameter depends on the model complexity KK. The entire parameter space Ω\Omega is the union of all parameter spaces ΘK\Theta_{K} associated with each model index KK: Ω=∪K=1∞ΘK\Omega=\cup_{K=1}^{\infty}\Theta_{K}, and we can think of a whole statistical model M=∪K=1∞MK\mathcal{M}=\cup_{K=1}^{\infty}\mathcal{M}_{K} as the union of all collections MK\mathcal{M}_{K}. First, we can notice that different models MK\mathcal{M}_{K} never overlap as parameters in each one do not have the same length. Nonetheless, parameters in complex models (models MK\mathcal{M}_{K} with large KK) can be sparse and therefore contain the "same information" as parameters in less complex ones, i.e. can lead to the same distribution PθP_{\theta}.

The prior specification is a crucial point. As mentioned above, each parameter depends on the number of components. Then, we specify a prior weight πK\pi_{K} assigned to the model MK\mathcal{M}_{K} and a conditional prior ΠK(.)\Pi_{K}(.) on θK∈ΘK\theta_{K}\in\Theta_{K} given model MK\mathcal{M}_{K}. More precisely, we define our conditional prior on θK=(pK,θ1,K,...,θK,K)\theta_{K}=(p_{K},\theta_{1,K},...,\theta_{K,K}) as follows: given KK, the weight parameter pK=(p1,K,...,pK,K)p_{K}=(p_{1,K},...,p_{K,K}) is supposed to follow a distribution πp,K\pi_{p,K} on M1+(SK)\mathcal{M}_{1}^{+}(\mathcal{S}_{K}); finally, given KK, we set independent priors πj,K\pi_{j,K} for the component parameters θj,K\theta_{j,K} where each πj,K\pi_{j,K} is a probability distribution on M1+(Θ)\mathcal{M}_{1}^{+}(\Theta). In a nutshell:

We have to adapt the notations for the VB approximations. The tempered posteriors πn,αK(.∣X1n)\pi_{n,\alpha}^{K}(.|X_{1}^{n}) on parameter θK∈ΘK\theta_{K}\in\Theta_{K} given model MK\mathcal{M}_{K}, is defined again as

We recall that an alternative way to define the variational estimate is to use the Evidence Lower Bound via the optimization program (1):

where the function inside the argmax operator is the ELBO L(ρK)\mathcal{L}(\rho_{K}). For simplicity, we will just call ELBO L(K)\mathcal{L}(K) the closest approximation to the log-evidence, i.e. the value of the lower bound evaluated in its maximum:

which is a penalized version of the ELBO. Note that taking (πK)(\pi_{K}) as uniform on a finite set {1,2,…,Kmax⁡}\{1,2,\dots,K_{\max}\} leads to the procedure described in . We discuss below the choice πK=2−K\pi_{K}=2^{-K}.

This oracle inequality shows that our variational distribution adaptively satisfies the best possible balance between bias (misspecification error) and variance (estimation error). If we assume that there is actually a K0K_{0} and θ∗∈ΘK0\theta^{*}\in\Theta_{K_{0}} such that P0=Pθ∗P^{0}=P_{\theta^{*}} then the theorem will imply

The variance term is composed of two parts. The first one, Krn,KKr_{n,K} up to a multiplicative constant, corresponds to the rate obtained when approximating the true distribution with mixtures of model MK\mathcal{M}_{K}. The second part of the overall rate can be interpreted as a complexity term over the different models reflecting our prior belief. For instance, if we want to penalize more complex models, we can take πK=2−K\pi_{K}=2^{-K} and the corresponding term will be of order K/nK/n. In practice, as soon as 1n≲rn,K\frac{1}{n}\lesssim r_{n,K}, then this penalty term is negligible when compared to the approximating rate Krn,KKr_{n,K}: this means that this choice can be considered safe, as it does not interfere with the estimation rate.

Conclusion

Using variational inference, we studied consistency of variational approximations for estimation and model selection in mixtures. When considering tempered posteriors, we showed that Variational Bayes is consistent and we gave statistical guarantees to model selection based on the ELBO. For further investigation, it would be interesting to explore the case of Bayesian posteriors when α=1\alpha=1. The recent work of Zhang and Gao gives the tools for tackling such an issue, and allows one to consider risk functions different from α\alpha-Renyi divergence. But the conditions would be more stringent, and misspecification would be more problematic in this case.

Another point of interest is the study of the non-convex optimization program (2). Indeed, the proposed coordinate optimization can lead to a local extremum, and this implies that one needs to pay attention to initialization. The same problem also occurs in the Expectation-Maximization (EM) algorithm. In practice, users often run EM or CAVI several times with different initial distributions. Many practical ideas were proposed to target the global extrema more efficiently with EM and could be extended to CAVI. But the question of convergence remains open in theory.

Finally, note that our results are remarkable as there are almost no conditions on the mixtures considered. In this paper we have focused on estimating the true probability distribution P0P^{0}, even in the well-specified case. We have no results on the estimation of the parameters. In the case of mixtures, these results are extremely difficult to obtain even for Gaussian mixtures . They require restrictions on the parameters set and lead to different rates of convergence. The consistency of VB for the estimation of the parameters remains open.

Acknowledgements

We thank the Associate Editor and the anonymous Referee for their insightful comments on the paper.

References

Proofs

We provide in this section two useful lemmas required in many proofs below.

The lemma below was first stated by for mixtures of Gaussians, checked that the proof remains valid for general mixtures. It is a tool widely used in signal processing . We provide the proof for the sake of completeness.

Let p,p0∈SKp,p^{0}\in\mathcal{S}_{K} and θj,θj0∈Θ\theta_{j},\theta_{j}^{0}\in\Theta for j=1,...,Kj=1,...,K. Then,

For any nonnegative numbers α1,...,αK\alpha_{1},...,\alpha_{K} and positive β1,...,βK\beta_{1},...,\beta_{K}, we have:

(∑j=1Kαj)log⁡(∑j=1Kαj∑j=1Kβj)=(∑j=1Kβj)(∑j=1Kαj∑j=1Kβj)log⁡(∑j=1Kαj∑j=1Kβj)=(∑j=1Kβj)(∑j=1Kβj∑l=1Kβlαjβj)log⁡(∑j=1Kβj∑l=1Kβlαjβj)=(∑j=1Kβj)f(∑j=1Kβj∑l=1Kβlαjβj)\begin{aligned} \left(\sum_{j=1}^{K}\alpha_{j}\right)\log\left(\frac{\sum_{j=1}^{K}\alpha_{j}}{\sum_{j=1}^{K}\beta_{j}}\right)&=\left(\sum_{j=1}^{K}\beta_{j}\right)\left(\frac{\sum_{j=1}^{K}\alpha_{j}}{\sum_{j=1}^{K}\beta_{j}}\right)\log\left(\frac{\sum_{j=1}^{K}\alpha_{j}}{\sum_{j=1}^{K}\beta_{j}}\right)\\ &=\left(\sum_{j=1}^{K}\beta_{j}\right)\left(\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}\frac{\alpha_{j}}{\beta_{j}}\right)\log\left(\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}\frac{\alpha_{j}}{\beta_{j}}\right)\\ &=\left(\sum_{j=1}^{K}\beta_{j}\right)f\left(\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}\frac{\alpha_{j}}{\beta_{j}}\right)\end{aligned}

where ff is the convex function x⟼xlog⁡(x)x\longmapsto x\log(x). As ∑j=1Kβj∑l=1Kβl=1\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}=1, then using Jensen’s inequality:

(∑j=1Kαj)log⁡(∑j=1Kαj∑j=1Kβj)=(∑j=1Kβj)f(∑j=1Kβj∑l=1Kβlαjβj)≤(∑j=1Kβj)∑j=1Kβj∑l=1Kβlf(αjβj)=(∑j=1Kβj)∑j=1Kβj∑l=1Kβlαjβjlog⁡(αjβj)=∑j=1Kαjlog⁡(αjβj).\begin{aligned} \left(\sum_{j=1}^{K}\alpha_{j}\right)\log\left(\frac{\sum_{j=1}^{K}\alpha_{j}}{\sum_{j=1}^{K}\beta_{j}}\right)&=\left(\sum_{j=1}^{K}\beta_{j}\right)f\left(\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}\frac{\alpha_{j}}{\beta_{j}}\right)\\ &\leq\left(\sum_{j=1}^{K}\beta_{j}\right)\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}f\left(\frac{\alpha_{j}}{\beta_{j}}\right)\\ &=\left(\sum_{j=1}^{K}\beta_{j}\right)\sum_{j=1}^{K}\frac{\beta_{j}}{\sum_{l=1}^{K}\beta_{l}}\frac{\alpha_{j}}{\beta_{j}}\log\left(\frac{\alpha_{j}}{\beta_{j}}\right)\\ &=\sum_{j=1}^{K}\alpha_{j}\log\left(\frac{\alpha_{j}}{\beta_{j}}\right).\end{aligned}

The inequality remains valid when some or all βj\beta_{j}’s are zero. Indeed, assume that βj=0\beta_{j}=0. If αj≠0\alpha_{j}\neq 0, then the jthj^{th} term of the sum in the right-hand side is αjlog⁡(αj/βj)=+∞\alpha_{j}\log({\alpha_{j}}/{\beta_{j}})=+\infty, and the result is obvious. Otherwise, αj=0\alpha_{j}=0, hence the jthj^{th} term of each sum in the inequality is zero as αjlog⁡(αj/βj)=0\alpha_{j}\log({\alpha_{j}}/{\beta_{j}})=0, and the inequality can be obtained considering only the other numbers.

Thus, for p,p0∈SKp,p^{0}\in\mathcal{S}_{K} and θj,θj0∈Θ\theta_{j},\theta_{j}^{0}\in\Theta for j=1,...,Kj=1,...,K:

K(∑j=1Kpj0qθj0,∑j=1Kpjqθj)=∫(∑j=1Kpj0qθj0)log⁡(∑j=1Kpj0qθj0∑j=1Kpjqθj)≤∫∑j=1Kpj0qθj0log⁡(pj0qθj0pjqθj)=∫∑j=1Kpj0qθj0log⁡(pj0pj)+∫∑j=1Kpj0qθj0log⁡(qθj0qθj)=∑j=1Kpj0log⁡(pj0pj)(∫qθj0)+∑j=1Kpj0∫qθj0log⁡(qθj0qθj)=K(p0,p)+∑j=1Kpj0K(qθj0,qθj),\begin{aligned} \mathcal{K}\left(\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}},\sum_{j=1}^{K}p_{j}q_{\theta_{j}}\right)&=\int\left(\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}}\right)\log\left(\frac{\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}}}{\sum_{j=1}^{K}p_{j}q_{\theta_{j}}}\right)\\ &\leq\int\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}}\log\left(\frac{p_{j}^{0}q_{\theta_{j}^{0}}}{p_{j}q_{\theta_{j}}}\right)\\ &=\int\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}}\log\left(\frac{p_{j}^{0}}{p_{j}}\right)+\int\sum_{j=1}^{K}p_{j}^{0}q_{\theta_{j}^{0}}\log\left(\frac{q_{\theta_{j}^{0}}}{q_{\theta_{j}}}\right)\\ &=\sum_{j=1}^{K}p_{j}^{0}\log\left(\frac{p_{j}^{0}}{p_{j}}\right)\left(\int q_{\theta_{j}^{0}}\right)+\sum_{j=1}^{K}p_{j}^{0}\int q_{\theta_{j}^{0}}\log\left(\frac{q_{\theta_{j}^{0}}}{q_{\theta_{j}}}\right)\\ &=\mathcal{K}(p^{0},p)+\sum_{j=1}^{K}p_{j}^{0}\mathcal{K}(q_{\theta_{j}^{0}},q_{\theta_{j}}),\end{aligned}

1.2 KL-divergence between Gaussian distributions and between Normal-Inverse-Gamma distributions

We give in this section the Kullback-Leibler divergence between 1-dimensional Gaussian distributions and between Normal-Inverse-Gamma distributions.

We denote uu and vv the density functions of the respective Gaussian distributions N(μu,σu2)\mathcal{N}(\mu_{u},\sigma^{2}_{u}) and N(μv,σv2)\mathcal{N}(\mu_{v},\sigma^{2}_{v}). Similarly, we denote pp and qq the two densities of NIG(μ1,θ12,a1,b1)\mathcal{NIG}(\mu_{1},\theta_{1}^{2},a_{1},b_{1}) and NIG(μ2,θ22,a2,b2)\mathcal{NIG}(\mu_{2},\theta_{2}^{2},a_{2},b_{2}). Then:

K(p,q)=12log⁡(θ12θ22)+θ222θ12+θ22(μ2−μ1)22a1b1−12+(a1−a2)ψ(a1)+log⁡(Γ(a2)Γ(a1))+a2log⁡(b1b2)+a1b2−b1b1.\begin{aligned} \mathcal{K}(p,q)=\frac{1}{2}\log\bigg(\frac{\theta_{1}^{2}}{\theta_{2}^{2}}\bigg)&+\frac{\theta_{2}^{2}}{2\theta_{1}^{2}}+\frac{\theta_{2}^{2}(\mu_{2}-\mu_{1})^{2}}{2}\frac{a_{1}}{b_{1}}-\frac{1}{2}\\ &+(a_{1}-a_{2})\psi(a_{1})+\log\bigg(\frac{\Gamma(a_{2})}{\Gamma(a_{1})}\bigg)+a_{2}\log\bigg(\frac{b_{1}}{b_{2}}\bigg)+a_{1}\frac{b_{2}-b_{1}}{b_{1}}.\end{aligned}

The first equality is extremely classical so we don’t provide the proof. For the second one,

Using the KL-divergence between Gaussians:

and using the KL-divergence between Inverse-Gamma distributions

where Γ\Gamma and ψ\psi are respectively the Gamma and Digamma functions, we have:

K(p,q)=12log⁡(θ12θ22)+θ222θ12+θ22(μ2−μ1)22a1b1−12+(a1−a2)ψ(a1)+log⁡(Γ(a2)Γ(a1))+a2log⁡(b1b2)+a1b2−b1b1.\begin{aligned} \mathcal{K}(p,q)=\frac{1}{2}\log\bigg(\frac{\theta_{1}^{2}}{\theta_{2}^{2}}\bigg)&+\frac{\theta_{2}^{2}}{2\theta_{1}^{2}}+\frac{\theta_{2}^{2}(\mu_{2}-\mu_{1})^{2}}{2}\frac{a_{1}}{b_{1}}-\frac{1}{2}\\ &+(a_{1}-a_{2})\psi(a_{1})+\log\bigg(\frac{\Gamma(a_{2})}{\Gamma(a_{1})}\bigg)+a_{2}\log\bigg(\frac{b_{1}}{b_{2}}\bigg)+a_{1}\frac{b_{2}-b_{1}}{b_{1}}.\end{aligned}

2 Proof of Theorem 3.1

This result relies on an application of Theorem 2.6 in to mixture models. The proof of Theorem 2.6 in itself relies mostly on a deviation inequality from and on PAC-Bayesian theory .

Fix 0<α<10<\alpha<1. Theorem 2.6 from gives:

the last inequality being obtained thanks to Theorem 28 in . Gathering all the pieces together leads to

that is the result stated in Theorem 3.1. ∎

3 Proof of Lemma 3.2

Let us define ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) by the following formula ρp,n(dp)∝1(p∈B)πp(dp)\rho_{p,n}(dp)\propto\mathbf{1}(p\in\mathcal{B})\pi_{p}(dp) with

where A=2KA=\frac{2}{K} and Mp0=max⁡{pj0/j=1,...,K}M_{p}^{0}=\max\{p_{j}^{0}/j=1,...,K\}. We adopt the notation S=∑j=1KαjS=\sum_{j=1}^{K}\alpha_{j} in the following. Recall that by assumption K≥2K\geq 2 and hence A=2K≤1A=\frac{2}{K}\leq 1.

First, ∫K(p0,p)ρp,n(dp)≤Krn,K′\int\mathcal{K}(p^{0},p)\rho_{p,n}(dp)\leq Kr_{n,K}^{\prime}.

Then, let us show that K(ρp,n,πp)≤Knrn,K′\mathcal{K}(\rho_{p,n},\pi_{p})\leq Knr_{n,K}^{\prime}. For that, let us define

where KK is such that pK0=max⁡{pj0/j=1,...,K}p_{K}^{0}=\max\{p_{j}^{0}/j=1,...,K\} (this assumption can always be fulfilled by reordering and relabelling the vector components). Then, pK0≥1Kp_{K}^{0}\geq\frac{1}{K} (otherwise, the sum of the components of p0p^{0} would be strictly lower than 11 and the vector would not be included in SK\mathcal{S}_{K}). We will show that A⊂B\mathcal{A}\subset\mathcal{B} and that πp(A)≥e−Knrn,K′\pi_{p}(\mathcal{A})\geq e^{-Knr_{n,K}^{\prime}}. Then, we will conclude thanks to the following formula: K(ρp,n,πp)=−log⁡(πp(B))\mathcal{K}(\rho_{p,n},\pi_{p})=-\log(\pi_{p}(\mathcal{B})).

First, let us show that A⊂B\mathcal{A}\subset\mathcal{B}.

Let p∈Ap\in\mathcal{A}. As pK=1−∑j=1K−1pjp_{K}=1-\sum_{j=1}^{K-1}p_{j}, we just need to check that K(p0,p)≤Krn,K′\mathcal{K}(p^{0},p)\leq Kr_{n,K}^{\prime} and that pj≥0p_{j}\geq 0 for each j=1,...,Kj=1,...,K.

The first part can be proven using the definition of A\mathcal{A}. According to the K−1K-1 left-hand side inequalities in the definition of A\mathcal{A},

K(p0,p)=∑j=1K−1pj0log⁡(pj0pj)+pK0log⁡(pK0pK)≤∑j=1K−1pj0log⁡(eKrn,K′)+pK0log⁡(pK0pK)=∑j=1K−1pj0Krn,K′+pK0log⁡(pK0pK)=(1−pK0)Krn,K′+pK0log⁡(pK0pK).\begin{aligned} \mathcal{K}(p^{0},p)=\sum_{j=1}^{K-1}p_{j}^{0}\log\bigg(\frac{p_{j}^{0}}{p_{j}}\bigg)+p_{K}^{0}\log\bigg(\frac{p_{K}^{0}}{p_{K}}\bigg)&\leq\sum_{j=1}^{K-1}p_{j}^{0}\log(e^{Kr_{n,K}^{\prime}})+p_{K}^{0}\log\bigg(\frac{p_{K}^{0}}{p_{K}}\bigg)\\ &=\sum_{j=1}^{K-1}p_{j}^{0}Kr_{n,K}^{\prime}+p_{K}^{0}\log\left(\frac{p_{K}^{0}}{p_{K}}\right)\\ &=(1-p_{K}^{0})Kr_{n,K}^{\prime}+p_{K}^{0}\log\left(\frac{p_{K}^{0}}{p_{K}}\right).\end{aligned}

All we need to show now is that log⁡(pK0pK)≤Krn,K′\log\left(\frac{p_{K}^{0}}{p_{K}}\right)\leq Kr_{n,K}^{\prime}. This comes from the following inequalities:

log⁡(pK0pK)=log⁡(pK01−∑j=1K−1pj)≤log⁡(pK01−∑j=1K−1pj0e−Krn,K′−pK0n)=log⁡(pK01−(1−pK0)e−Krn,K′−pK0n)≤pK01−(1−pK0)e−Krn,K′−pK0n−1=pK0−1+(1−pK0)e−Krn,K′+pK0n1−(1−pK0)e−Krn,K′−pK0n\begin{aligned} \log\bigg(\frac{p_{K}^{0}}{p_{K}}\bigg)=\log\bigg(\frac{p_{K}^{0}}{1-\sum_{j=1}^{K-1}p_{j}}\bigg)&\leq\log\bigg(\frac{p_{K}^{0}}{1-\sum_{j=1}^{K-1}p_{j}^{0}e^{-Kr_{n,K}^{\prime}}-\frac{p_{K}^{0}}{n}}\bigg)\\ &=\log\bigg(\frac{p_{K}^{0}}{1-(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}-\frac{p_{K}^{0}}{n}}\bigg)\\ &\leq\frac{p_{K}^{0}}{1-(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}-\frac{p_{K}^{0}}{n}}-1\\ &=\frac{p_{K}^{0}-1+(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}+\frac{p_{K}^{0}}{n}}{1-(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}-\frac{p_{K}^{0}}{n}}\end{aligned}

log⁡(pK0pK)≤pK0−1+(1−pK0)e−Krn,K′+pK0n1−(1−pK0)e−Krn,K′−pK0n=pK0n−(1−pK0)(1−e−Krn,K′)pK0(1−1n)+(1−pK0)(1−e−Krn,K′)=1n−(1pK0−1)(1−e−Krn,K′)(1−1n)+(1pK0−1)(1−e−Krn,K′)≤1n1−1n=1n−1≤Krn,K′.\begin{aligned} \log\bigg(\frac{p_{K}^{0}}{p_{K}}\bigg)&\leq\frac{p_{K}^{0}-1+(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}+\frac{p_{K}^{0}}{n}}{1-(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}-\frac{p_{K}^{0}}{n}}&&\\ &=\frac{\frac{p_{K}^{0}}{n}-(1-p_{K}^{0})(1-e^{-Kr_{n,K}^{\prime}})}{p_{K}^{0}(1-\frac{1}{n})+(1-p_{K}^{0})(1-e^{-Kr_{n,K}^{\prime}})}&&\\ &=\frac{\frac{1}{n}-(\frac{1}{p_{K}^{0}}-1)(1-e^{-Kr_{n,K}^{\prime}})}{(1-\frac{1}{n})+(\frac{1}{p_{K}^{0}}-1)(1-e^{-Kr_{n,K}^{\prime}})}&&\\ &\leq\frac{\frac{1}{n}}{1-\frac{1}{n}}=\frac{1}{n-1}&&\\ &\leq Kr_{n,K}^{\prime}.&&\end{aligned}

Hence K(p0,p)≤(1−pK0)Krn,K′+pK0log⁡(pK0pK)≤(1−pK0)Krn,K′+pK0Krn,K′=Krn,K′\hskip 5.69046pt\mathcal{K}(p^{0},p)\leq(1-p_{K}^{0})Kr_{n,K}^{\prime}+p_{K}^{0}\log\left(\frac{p_{K}^{0}}{p_{K}}\right)\leq(1-p_{K}^{0})Kr_{n,K}^{\prime}+p_{K}^{0}Kr_{n,K}^{\prime}=Kr_{n,K}^{\prime}.

On the other hand, for j=1,...,K−1j=1,...,K-1, pj≥pj0e−Krn,K′≥0p_{j}\geq p_{j}^{0}e^{-Kr_{n,K}^{\prime}}\geq 0 and:

pK=1−∑j=1K−1pj≥1−∑j=1K−1(pj0e−Krn,K′+pK0n(K−1))=1−((1−pK0)e−Krn,K′+pK0n)≥1−(1−pK0)e−Krn,K′−pK0=(1−pK0)(1−e−Krn,K′)≥0.\begin{aligned} p_{K}=1-\sum_{j=1}^{K-1}p_{j}&\geq 1-\sum_{j=1}^{K-1}\big(p_{j}^{0}e^{-Kr_{n,K}^{\prime}}+\frac{p^{0}_{K}}{n(K-1)}\big)\\ &=1-\bigg((1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}+\frac{p_{K}^{0}}{n}\bigg)\\ &\geq 1-(1-p_{K}^{0})e^{-Kr_{n,K}^{\prime}}-p_{K}^{0}\\ &=(1-p_{K}^{0})(1-e^{-Kr_{n,K}^{\prime}})\\ &\geq 0.\end{aligned}

Then, p∈Bp\in\mathcal{B}, and finally A⊂B\mathcal{A}\subset\mathcal{B}.

Now, let us show that πp(A)≥e−Knrn,K′\pi_{p}(\mathcal{A})\geq e^{-Knr_{n,K}^{\prime}}.

Let us denote ff the density of the πp=DK(α1,...,αK)\pi_{p}=\mathcal{D}_{K}(\alpha_{1},...,\alpha_{K}) Dirichlet distribution:

Thus, we can lower bound πp(A)\pi_{p}(\mathcal{A}):

πp(A)=∫Af(p1,...,pK)dp=∫AΓ(S)∏j=1KΓ(αj)∏j=1Kpjαj−11(p∈SK)dp≥Γ(S)∏j=1KΓ(αj)∏j=1K−1∫pj0e−Krn,K′pj0e−Krn,K′+pK0n(K−1)pjαj−1dpj\begin{aligned} \pi_{p}(\mathcal{A})=\int_{\mathcal{A}}f(p_{1},...,p_{K})dp&=\int_{\mathcal{A}}\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\prod_{j=1}^{K}p_{j}^{\alpha_{j}-1}\hskip 2.84544pt\mathbf{1}(p\in\mathcal{S}_{K})dp\\ &\geq\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\prod_{j=1}^{K-1}\int_{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}}^{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}+\frac{p_{K}^{0}}{n(K-1)}}p_{j}^{\alpha_{j}-1}\hskip 2.84544ptdp_{j}\end{aligned}

as for p∈Ap\in\mathcal{A}, 0≤pj0e−Krn,K′≤pj≤pj0e−Krn,K′+pK0n(K−1)≤10\leq p_{j}^{0}e^{-Kr_{n,K}^{\prime}}\leq p_{j}\leq p_{j}^{0}e^{-Kr_{n,K}^{\prime}}+\frac{p_{K}^{0}}{n(K-1)}\leq 1 for each j=1,...,K−1j=1,...,K-1 (as A⊂B\mathcal{A}\subset\mathcal{B}), and then pjαj−1≥1p_{j}^{\alpha_{j}-1}\geq 1.

Then, by definition of rn,K′r_{n,K}^{\prime}, pK0n(K−1)≥Γ(A)KK−1e−nrn,K′\frac{p_{K}^{0}}{n(K-1)}\geq\Gamma(A)^{\frac{K}{K-1}}e^{-nr_{n,K}^{\prime}}, and using inequalities Γ(A)≥Γ(αj)\Gamma(A)\geq\Gamma(\alpha_{j}) as A≤αj≤1A\leq\alpha_{j}\leq 1 and Γ(S)≥1\Gamma(S)\geq 1 as S≥2S\geq 2,

πp(A)≥Γ(S)∏j=1KΓ(αj)∏j=1K−1∫pj0e−Krn,K′pj0e−Krn,K′+Γ(A)KK−1e−nrn,K′pjαj−1dpj≥Γ(S)∏j=1KΓ(αj)∏j=1K−1∫pj0e−Krn,K′pj0e−Krn,K′+Γ(A)KK−1e−nrn,K′dpj=Γ(S)∏j=1KΓ(αj)∏j=1K−1Γ(A)KK−1e−nrn,K′=Γ(S)∏j=1KΓ(αj)Γ(A)Ke−n(K−1)rn,K′≥e−nKrn,K′.\begin{aligned} \pi_{p}(\mathcal{A})&\geq\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\prod_{j=1}^{K-1}\int_{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}}^{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}+\Gamma(A)^{\frac{K}{K-1}}e^{-nr_{n,K}^{\prime}}}p_{j}^{\alpha_{j}-1}\hskip 2.84544ptdp_{j}\\ &\geq\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\prod_{j=1}^{K-1}\int_{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}}^{p_{j}^{0}e^{-Kr_{n,K}^{\prime}}+\Gamma(A)^{\frac{K}{K-1}}e^{-nr_{n,K}^{\prime}}}\hskip 2.84544ptdp_{j}\\ &=\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\prod_{j=1}^{K-1}\Gamma(A)^{\frac{K}{K-1}}e^{-nr_{n,K}^{\prime}}\\ &=\frac{\Gamma\big(S\big)}{\prod\limits_{j=1}^{K}\Gamma(\alpha_{j})}\Gamma(A)^{K}e^{-n(K-1)r_{n,K}^{\prime}}\\ &\geq e^{-nKr_{n,K}^{\prime}}.\end{aligned}

Hence, as A⊂B\mathcal{A}\subset\mathcal{B}, πp(B)≥πp(A)≥e−nKrn,K′\pi_{p}(\mathcal{B})\geq\pi_{p}(\mathcal{A})\geq e^{-nKr_{n,K}^{\prime}}, and finally, K(ρp,n,πp)=−log⁡(πp(B))≤Knrn,K′\mathcal{K}(\rho_{p,n},\pi_{p})=-\log(\pi_{p}(\mathcal{B}))\leq Knr_{n,K}^{\prime}.

We just proved the lemma but with the rate rn,K′r_{n,K}^{\prime} instead of the value rn,Kr_{n,K} used in the lemma. We can conlude by noticing that the result is valid for every rr such that rn,K′≤rr_{n,K}^{\prime}\leq r, and that in particular rn,K′≤rn,Kr_{n,K}^{\prime}\leq r_{n,K}. This last result comes from the inequality:

which is a direct application of the left-hand side of inequality (3.2) part 3 in with x=A2>0x=\frac{A}{2}>0 and λ=A2∈(0,1)\lambda=\frac{A}{2}\in(0,1). As, 1+A2∈1+\frac{A}{2}\in, then Γ(1+A2)≤1\Gamma(1+\frac{A}{2})\leq 1, and 1(A2)1−A2=K1−A2≤K\frac{1}{\left(\frac{A}{2}\right)^{1-\frac{A}{2}}}=K^{1-\frac{A}{2}}\leq K. Thus:

and as K≥2K\geq 2 and pK0≥1Kp^{0}_{K}\geq\frac{1}{K}, it follows that

i.e. rn,K′≤max⁡(1K(n−1),log⁡(nK4)n)≤max⁡(1K(n−1),4log⁡(nK)n)r_{n,K}^{\prime}\leq\max(\frac{1}{K(n-1)},\frac{\log(nK^{4})}{n})\leq\max(\frac{1}{K(n-1)},\frac{4\log(nK)}{n}). Besides, nn−1=1+1n−1≤2\frac{n}{n-1}=1+\frac{1}{n-1}\leq 2 implies 1K(n−1)≤12(n−1)≤1n≤4log⁡(2)n≤4log⁡(nK)n\frac{1}{K(n-1)}\leq\frac{1}{2(n-1)}\leq\frac{1}{n}\leq\frac{4\log(2)}{n}\leq\frac{4\log(nK)}{n}, and finally rn,K′≤4log⁡(nK)n=rn,Kr_{n,K}^{\prime}\leq\frac{4\log(nK)}{n}=r_{n,K}.

4 Proof of Corollary 3.3

According to Lemma 3.2, there exists a distribution ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) such that

Similarly, the same result states that there exists distributions ρj,n∈M1+(SV)\rho_{j,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{V}) for j=1,...,Kj=1,...,K such that

5 Proof of Corollary 3.4

For Rj,n=1n⋁1n[12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12]R_{j,n}=\frac{1}{n}\bigvee\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg] (for j=1,...,Kj=1,...,K), there exists distributions ρj,n∈M1+(SK)\rho_{j,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) for j=1,...,Kj=1,...,K such that

Indeed, let us define ρj,n\rho_{j,n} as a Gaussian distribution of mean μj0\mu_{j}^{0} and variance 2V2n\frac{2V^{2}}{n}. According to Lemma 6.2:

We can apply Lemma 6.2 again to conclude:

K(ρj,n,πj)=12log⁡(nV22V2)+V2nV2+(μj0)22V2−12=12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12=n×1n[12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12]≤nRj,n.\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})&=\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{2V^{2}}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\\ &=\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\\ &=n\times\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg]\\ &\leq nR_{j,n}.\end{aligned}

In addition, Lemma 3.2 tells us that there exists a distribution ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) such that

For rn,K=4log⁡(nK)n⋁j=1KRj,n=4log⁡(nK)n⋁1n⋁j=1K1n[12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12]r_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}R_{j,n}=\frac{4\log(nK)}{n}\bigvee\frac{1}{n}\bigvee_{j=1}^{K}\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg] i.e. rn,K=4log⁡(nK)n⋁j=1K1n[12log⁡(n2)+V2nV2+log⁡(VV)+(μj0)22V2−12]r_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{V^{2}}{n\mathcal{V}^{2}}+\log\bigg(\frac{\mathcal{V}}{V}\bigg)+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg], we finally obtain the required inequality using Theorem 3.1.

6 Proof of Corollary 3.5

First, let us focus on the first result, when the chosen prior is the Normal-Inverse-Gamma πj=NIG(0,V−2,1,γ2)\pi_{j}=\mathcal{NIG}(0,\mathcal{V}^{-2},1,\gamma^{2}) for each j=1,...,Kj=1,...,K. In order to obtain the required rate

we proceed as previously and find a variational density on both the mean and the variance such that the two different terms ∫K(q(μj0,(σj0)2),q(μj,σj2))ρj,n(dμj,dσj2)\int\mathcal{K}(q_{(\mu_{j}^{0},(\sigma_{j}^{0})^{2})},q_{(\mu_{j},\sigma_{j}^{2})})\rho_{j,n}(d\mu_{j},d\sigma_{j}^{2}) and K(ρj,n,πj)\mathcal{K}(\rho_{j,n},\pi_{j}) are upper bounded for j=1,...,Kj=1,...,K.

Let us define ρj,n\rho_{j,n} as a Normal-Inverse-Gamma distribution NIG(μj0,λn,an,bn)\mathcal{NIG}(\mu_{j}^{0},\lambda_{n},a_{n},b_{n}) where λn\lambda_{n}, ana_{n} and bnb_{n} are hyperparameters that we will make precise later. Using Lemma 6.2:

Now, we compute the term K(ρj,n,πj)\mathcal{K}(\rho_{j,n},\pi_{j}) using the fomula giving the Kullback-Leibler divergence between two Gaussian-Inverse-Gamma distributions. Using Lemma 6.2:

K(ρj,n,πj)=12log⁡(λnV−2)+V−22λn+V−2(μj0)22anbn−12+(an−1)ψ(an)+log⁡(1Γ(an))+log⁡(bnγ2)+anγ2−bnbn.\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})=\frac{1}{2}\log\bigg(\frac{\lambda_{n}}{\mathcal{V}^{-2}}\bigg)&+\frac{\mathcal{V}^{-2}}{2\lambda_{n}}+\frac{\mathcal{V}^{-2}(\mu_{j}^{0})^{2}}{2}\frac{a_{n}}{b_{n}}-\frac{1}{2}\\ &+(a_{n}-1)\psi(a_{n})+\log\bigg(\frac{1}{\Gamma(a_{n})}\bigg)+\log\bigg(\frac{b_{n}}{\gamma^{2}}\bigg)+a_{n}\frac{\gamma^{2}-b_{n}}{b_{n}}.\end{aligned}

Then, for λn=n\lambda_{n}=n, an=na_{n}=n and bn=n(σj0)2b_{n}=n(\sigma_{j}^{0})^{2}:

K(ρj,n,πj)=12log⁡(nV2)+12nV2+(μj0)22(σj0)2V2−12+log⁡((σj0)2γ2)+γ2−n(σj0)2(σj0)2+(n−1)ψ(n)+log⁡(n)−log⁡Γ(n)≤12log⁡(nV2)+12nV2+(μj0)22(σj0)2V2−12+log⁡((σj0)2γ2)+γ2(σj0)2−n+nψ(n)+log⁡(n)−log⁡(n−1)!≤12log⁡(nV2)+12nV2+(μj0)22(σj0)2V2−12+log⁡((σj0)2γ2)+γ2(σj0)2−n+(nlog⁡(n)−n2n−n12n2+n120n4)+log⁡(n)+(−12log⁡(2π)+n−1−nlog⁡(n−1)+12log⁡(n−1))≤12log⁡(nV2)+12nV2+(μj0)22(σj0)2V2−32+log⁡((σj0)2γ2)+γ2(σj0)2+nlog⁡(nn−1)−12+log⁡(n)−12log⁡(2π)+12log⁡(n−1)≤12nV2+(μj0)22(σj0)2V2−32+(log⁡((σj0)2γ2)+γ2(σj0)2−12log⁡(2π))+2−12+(12log⁡(nV2)+32log⁡(n))=12nV2+(μj0)22(σj0)2V2+(log⁡((σj0)2γ2)+γ2(σj0)2−12log⁡(2π))+2log⁡(nV)=n×1n[2log⁡(nV)+12nV2+(μj0)22(σj0)2V2+log⁡((σj0)2γ2)+γ2(σj0)2−12log⁡(2π)]≤nRj,n\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})&=\frac{1}{2}\log(n\mathcal{V}^{2})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}-n(\sigma_{j}^{0})^{2}}{(\sigma_{j}^{0})^{2}}\\ &\hskip 56.9055pt+(n-1)\psi(n)+\log(n)-\log\Gamma(n)\\ &\leq\frac{1}{2}\log(n\mathcal{V}^{2})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-n\\ &\hskip 56.9055pt+n\psi(n)+\log(n)-\log(n-1)!\\ &\leq\frac{1}{2}\log(n\mathcal{V}^{2})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-n\\ &\hskip 56.9055pt+\bigg(n\log(n)-\frac{n}{2n}-\frac{n}{12n^{2}}+\frac{n}{120n^{4}}\bigg)+\log(n)\\ &\hskip 56.9055pt+\bigg(-\frac{1}{2}\log(2\pi)+n-1-n\log(n-1)+\frac{1}{2}\log(n-1)\bigg)\\ &\leq\frac{1}{2}\log(n\mathcal{V}^{2})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}-\frac{3}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}\\ &\hskip 56.9055pt+n\log\bigg(\frac{n}{n-1}\bigg)-\frac{1}{2}+\log(n)-\frac{1}{2}\log(2\pi)+\frac{1}{2}\log(n-1)\\ &\leq\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}-\frac{3}{2}+\bigg(\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg)\\ &\hskip 56.9055pt+2-\frac{1}{2}+\bigg(\frac{1}{2}\log(n\mathcal{V}^{2})+\frac{3}{2}\log(n)\bigg)\\ &=\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}+\bigg(\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg)+2\log(n\sqrt{\mathcal{V}})\\ &=n\times\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg]\\ &\leq nR_{j,n}\end{aligned}

with Rj,n=1n⋁1n[2log⁡(nV)+12nV2+(μj0)22(σj0)2V2+log⁡((σj0)2γ2)+γ2(σj0)2−12log⁡(2π)]R_{j,n}=\frac{1}{n}\bigvee\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{1}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2(\sigma_{j}^{0})^{2}\mathcal{V}^{2}}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg] where we used Theorem 5 in and inequality (1.15) in :

Recall again that by Lemma 3.2, there exists a distribution ρp,n∈M1+(SK)\rho_{p,n}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}) such that

We can finally conclude using again Theorem 3.1 with rn,K=4log⁡(nK)n⋁j=1KRj,nr_{n,K}=\frac{4\log(nK)}{n}\bigvee_{j=1}^{K}R_{j,n} i.e.

6.2 Factorized prior

Let us focus now on the case of independant priors πj=N(0,V2)⨂IG(1,γ2)\pi_{j}=\mathcal{N}(0,\mathcal{V}^{2})\bigotimes\mathcal{IG}(1,\gamma^{2}) for j=1,...,Kj=1,...,K. The proof is almost the same as previously.

We define here ρj,n\rho_{j,n} as the product measure of Normal distribution N(μj0,θn2)\mathcal{N}(\mu_{j}^{0},\theta_{n}^{2}) and of an Inverse-Gamma distribution IG(an,bn)\mathcal{IG}(a_{n},b_{n}) where θn2\theta_{n}^{2}, ana_{n} and bnb_{n} are hyperparameters to be described later. Then, we have again:

Then we compute the term K(ρj,n,πj)\mathcal{K}(\rho_{j,n},\pi_{j}) as the sum of the Kullback-Leibler divergence between two Gaussian distributions and between two Inverse-Gamma distributions:

K(ρj,n,πj)=12log⁡(V2θn2)+θn22V2+(μj0)22V2−12+(an−1)ψ(an)+log⁡(1Γ(an))+log⁡(bnγ2)+anγ2−bnbn.\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})=\frac{1}{2}\log\bigg(\frac{\mathcal{V}^{2}}{\theta_{n}^{2}}\bigg)&+\frac{\theta_{n}^{2}}{2\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\\ &+(a_{n}-1)\psi(a_{n})+\log\bigg(\frac{1}{\Gamma(a_{n})}\bigg)+\log\bigg(\frac{b_{n}}{\gamma^{2}}\bigg)+a_{n}\frac{\gamma^{2}-b_{n}}{b_{n}}.\end{aligned}

Then, for θn2=(σj0)2n\theta_{n}^{2}=\frac{(\sigma_{j}^{0})^{2}}{n}, an=na_{n}=n and bn=n(σj0)2b_{n}=n(\sigma_{j}^{0})^{2}:

K(ρj,n,πj)=12log⁡(nV2(σj0)2)+(σj0)22nV2+(μj0)22V2−12+log⁡((σj0)2γ2)+γ2−n(σj0)2(σj0)2+(n−1)ψ(n)+log⁡(n)−log⁡Γ(n)≤12log⁡(nV2(σj0)2)+(σj0)22nV2+(μj0)22V2−12+log⁡((σj0)2γ2)+γ2(σj0)2−n+nψ(n)+log⁡(n)−log⁡(n−1)!≤12log⁡(nV2(σj0)2)+(σj0)22nV2+(μj0)22V2−12+log⁡((σj0)2γ2)+γ2(σj0)2−n+(nlog⁡(n)−n2n−n12n2+n120n4)+log⁡(n)+(−12log⁡(2π)+n−1−nlog⁡(n−1)+12log⁡(n−1))=12log⁡(nV2(σj0)2)+(σj0)22nV2+(μj0)22V2−32+log⁡((σj0)2γ2)+γ2(σj0)2+nlog⁡(nn−1)−12+log⁡(n)−12log⁡(2π)+12log⁡(n−1)≤(σj0)22nV2+(μj0)22V2−32+(12log⁡((σj0)2γ4)+γ2(σj0)2−12log⁡(2π))+2−12+(12log⁡(nV2)+32log⁡(n))=(σj0)22nV2+(μj0)22V2+(12log⁡((σj0)2γ4)+γ2(σj0)2−12log⁡(2π))+2log⁡(nV)=n×1n[2log⁡(nV)+(σj0)22nV2+(μj0)22V2+12log⁡((σj0)2γ4)+γ2(σj0)2−12log⁡(2π)]≤nRj,n\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})&=\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{(\sigma_{j}^{0})^{2}}\bigg)+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}-n(\sigma_{j}^{0})^{2}}{(\sigma_{j}^{0})^{2}}\\ &\hskip 56.9055pt+(n-1)\psi(n)+\log(n)-\log\Gamma(n)\\ &\leq\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{(\sigma_{j}^{0})^{2}}\bigg)+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-n\\ &\hskip 56.9055pt+n\psi(n)+\log(n)-\log(n-1)!\\ &\leq\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{(\sigma_{j}^{0})^{2}}\bigg)+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-n\\ &\hskip 56.9055pt+\bigg(n\log(n)-\frac{n}{2n}-\frac{n}{12n^{2}}+\frac{n}{120n^{4}}\bigg)+\log(n)\\ &\hskip 56.9055pt+\bigg(-\frac{1}{2}\log(2\pi)+n-1-n\log(n-1)+\frac{1}{2}\log(n-1)\bigg)\\ &=\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{(\sigma_{j}^{0})^{2}}\bigg)+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{3}{2}+\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{2}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}\\ &\hskip 56.9055pt+n\log(\frac{n}{n-1})-\frac{1}{2}+\log(n)-\frac{1}{2}\log(2\pi)+\frac{1}{2}\log(n-1)\\ &\leq\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}-\frac{3}{2}+\bigg(\frac{1}{2}\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{4}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg)\\ &\hskip 56.9055pt+2-\frac{1}{2}+\bigg(\frac{1}{2}\log\big(n\mathcal{V}^{2}\big)+\frac{3}{2}\log(n)\bigg)\\ &=\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}+\bigg(\frac{1}{2}\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{4}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg)+2\log(n\sqrt{\mathcal{V}})\\ &=n\times\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}+\frac{1}{2}\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{4}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg]\\ &\leq nR_{j,n}\end{aligned}

with Rj,n=1n⋁1n[2log⁡(nV)+(σj0)22nV2+(μj0)22V2+12log⁡((σj0)2γ4)+γ2(σj0)2−12log⁡(2π)].R_{j,n}=\frac{1}{n}\bigvee\frac{1}{n}\bigg[2\log(n\sqrt{\mathcal{V}})+\frac{(\sigma_{j}^{0})^{2}}{2n\mathcal{V}^{2}}+\frac{(\mu_{j}^{0})^{2}}{2\mathcal{V}^{2}}+\frac{1}{2}\log\bigg(\frac{(\sigma_{j}^{0})^{2}}{\gamma^{4}}\bigg)+\frac{\gamma^{2}}{(\sigma_{j}^{0})^{2}}-\frac{1}{2}\log(2\pi)\bigg].

The end of the proof is the same as the one used in the Normal-Inverse-Gamma case.

7 Proof of Theorem 3.6

We assume that ΘK(rn,K)\Theta_{K}(r_{n,K}) is not empty (otherwise, this is obvious). Applying Theorem 2.7 in for any α∈(0,1)\alpha\in(0,1), θ∗∈ΘK(rn,K)\theta^{*}\in\Theta_{K}(r_{n,K}):

Let us take ρj,n\rho_{j,n} and An,K\mathcal{A}_{n,K} from the definition of ΘK(rn,K)\Theta_{K}(r_{n,K}), and ρp,n(dp)∝1(p∈An,K)πp(dp)\rho_{p,n}(dp)\propto\mathbf{1}(p\in\mathcal{A}_{n,K})\pi_{p}(dp):

We have K(ρp,n,πp)=−log⁡(πp(An,K))≤nKrn,K\mathcal{K}(\rho_{p,n},\pi_{p})=-\log(\pi_{p}(\mathcal{A}_{n,K}))\leq nKr_{n,K} and K(ρj,n,πj)≤nrn,K\mathcal{K}(\rho_{j,n},\pi_{j})\leq nr_{n,K} for each jj by definition of ΘK(rn,K)\Theta_{K}(r_{n,K}). Moreover, using the same argument contained in the proof of Lemma 6.1:

log⁡Pθ∗(X)Pθ(X)=1Pθ∗(X)Pθ∗(X)log⁡Pθ∗(X)Pθ(X)≤1Pθ∗(X)∑j=1Kpj∗qθj∗(X)log⁡pj∗qθj∗(X)pjqθj(X)=∑j=1Kpj∗qθj∗(X)Pθ∗(X)log⁡pj∗pj+∑j=1Kpj∗qθj∗(X)Pθ∗(X)log⁡qθj∗(X)qθj(X)≤∑j=1Kpj∗qθj∗(X)Pθ∗(X)log⁡pj∗pj+∑j=1Klog⁡qθj∗(X)qθj(X)\begin{aligned} \log\frac{P_{\theta^{*}}(X)}{P_{\theta}(X)}&=\frac{1}{P_{\theta^{*}}(X)}P_{\theta^{*}}(X)\log\frac{P_{\theta^{*}}(X)}{P_{\theta}(X)}\\ &\leq\frac{1}{P_{\theta^{*}}(X)}\sum\limits_{j=1}^{K}p_{j}^{*}q_{\theta_{j}^{*}}(X)\log\frac{p_{j}^{*}q_{\theta_{j}^{*}}(X)}{p_{j}q_{\theta_{j}}(X)}\\ &=\sum\limits_{j=1}^{K}\frac{p_{j}^{*}q_{\theta_{j}^{*}}(X)}{P_{\theta^{*}}(X)}\log\frac{p_{j}^{*}}{p_{j}}+\sum\limits_{j=1}^{K}\frac{p_{j}^{*}q_{\theta_{j}^{*}}(X)}{P_{\theta^{*}}(X)}\log\frac{q_{\theta_{j}^{*}}(X)}{q_{\theta_{j}}(X)}\\ &\leq\sum\limits_{j=1}^{K}\frac{p_{j}^{*}q_{\theta_{j}^{*}}(X)}{P_{\theta^{*}}(X)}\log\frac{p_{j}^{*}}{p_{j}}+\sum\limits_{j=1}^{K}\log\frac{q_{\theta_{j}^{*}}(X)}{q_{\theta_{j}}(X)}\end{aligned}

and thus, as the support of ρp,n\rho_{p,n} is on An,K\mathcal{A}_{n,K} where log⁡pj∗pj≤Krn,K\log\frac{p_{j}^{*}}{p_{j}}\leq Kr_{n,K},

which ends the proof as it holds for any θ∗∈ΘK(rn,K)\theta^{*}\in\Theta_{K}(r_{n,K}).

8 Proof of Corollary 3.7

It is sufficient to show that SK×[−L,L]K⊂ΘK(rn,K)\mathcal{S}_{K}\times[-L,L]^{K}\subset\Theta_{K}(r_{n,K}) for

the stated oracle inequality is a direct corollary of Theorem 3.6. For that, let us take any θ∗∈SK×[−L,L]K\theta^{*}\in\mathcal{S}_{K}\times[-L,L]^{K} and show that it satisfies the conditions in the definition of ΘK(rn,K)\Theta_{K}(r_{n,K}).

The existence of a set An,K\mathcal{A}_{n,K} fulfilling the first condition has already been done in the proof of Lemma 3.2 as 4log⁡(nK)n≤rn,K\frac{4\log(nK)}{n}\leq r_{n,K}.

We define distributions ρj,n∈M1+(Θ)\rho_{j,n}\in\mathcal{M}_{1}^{+}(\Theta) by Gaussians of mean θj∗\theta_{j}^{*} and variance 2n\frac{2}{n} (j=1,...,Kj=1,...,K) and we show that for j=1,...,Kj=1,...,K:

and if we take the mean of this quantity with respect to P0P^{0}, we obtain:

and as θj−θj∗\theta_{j}-\theta_{j}^{*} is a zero-mean random variable, we have:

Then, we conclude according to Lemma 6.2:

K(ρj,n,πj)=12log⁡(nV22)+1nV2+(θj∗)22V2−12=12log⁡(n2)+1nV2+log⁡(V)+(θj∗)22V2−12≤n×1n[12log⁡(n2)+1nV2+log⁡(V)+L22V2−12]≤nrn,K.\begin{aligned} \mathcal{K}(\rho_{j,n},\pi_{j})&=\frac{1}{2}\log\bigg(\frac{n\mathcal{V}^{2}}{2}\bigg)+\frac{1}{n\mathcal{V}^{2}}+\frac{(\theta_{j}^{*})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\\ &=\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{1}{n\mathcal{V}^{2}}+\log\big({\mathcal{V}}\big)+\frac{(\theta_{j}^{*})^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\\ &\leq n\times\frac{1}{n}\bigg[\frac{1}{2}\log\bigg(\frac{n}{2}\bigg)+\frac{1}{n\mathcal{V}^{2}}+\log\big({\mathcal{V}}\big)+\frac{L^{2}}{2\mathcal{V}^{2}}-\frac{1}{2}\bigg]\\ &\leq nr_{n,K}.\end{aligned}

9 Proof of Theorem 4.1

Here, we cannot directly use the results from . So we prove this theorem from scratch, by following the main steps outlined in with some adaptation.

For any α∈(0,1)\alpha\in(0,1) and θ∈Ω\theta\in\Omega, by definition of the Renyi divergence and using Dα(P⊗n,R⊗n)=nDα(P,R)D_{\alpha}(P^{\otimes n},R^{\otimes n})=nD_{\alpha}(P,R) as data are i.i.d.:

Thus, integrating and using Fubini’s theorem,

Note that also used Lemma 2.1 in their proofs, this is inspired by the PAC-Bayesian theory . It is interesting to note that Lemma 2.1 is at the core of VB: it is used to provide approximation algorithms, and also to prove the consistency of VB. Thanks to Jensen’s inequality,

10 Algorithms

We now provide the derivations leading to the algorithms described in the paper.

We apply a coordinate descent on variables ω1∈SK\omega^{1}\in\mathcal{S}_{K},…, ωn∈SK\omega^{n}\in\mathcal{S}_{K}, ρp∈M1+(SK)\rho_{p}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}), ρ1∈M1+(Θ)\rho_{1}\in\mathcal{M}_{1}^{+}(\Theta),…, and ρK∈M1+(Θ)\rho_{K}\in\mathcal{M}_{1}^{+}(\Theta) in order to solve the optimization program:

Optimization with respect to ωi∈𝒮K\omega^{i}\in\mathcal{S}_{K}:

Put E={1,...,K}\textbf{E}=\{1,...,K\}, λ=(1K,...,1K)\lambda=\left(\frac{1}{K},...,\frac{1}{K}\right) and h(j)=∫log⁡(pj)ρp(dp)+∫log⁡(qθj(Xi))ρj(dθj)h(j)=\int\log(p_{j})\rho_{p}(dp)+\int\log(q_{\theta_{j}}(X_{i}))\rho_{j}(d\theta_{j}) and use Lemma 2.1 to obtain:

Optimization with respect to ρp∈ℳ1+​(𝒮K)\rho_{p}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}):

Now, we fix ωi∈SK\omega^{i}\in\mathcal{S}_{K} for i=1,...,ni=1,...,n, and ρj∈M1+(Θ)\rho_{j}\in\mathcal{M}_{1}^{+}(\Theta) for j=1,...,Kj=1,...,K, and we solve the program with respect to ρp∈M1+(SK)\rho_{p}\in\mathcal{M}_{1}^{+}(\mathcal{S}_{K}), which becomes:

Using Lemma 2.1 for E=SK\textbf{E}=\mathcal{S}_{K}, λ=πp\lambda=\pi_{p} and h(p)=α∑i=1n∑j=1Kωjilog⁡(pj)h(p)=\alpha\sum\limits_{i=1}^{n}\sum\limits_{j=1}^{K}\omega_{j}^{i}\log(p_{j}), we get directly the solution:

Optimization with respect to ρj∈ℳ1+​(Θ)\rho_{j}\in\mathcal{M}_{1}^{+}(\Theta):

Using Lemma 2.1 for E=Θ\textbf{E}=\Theta, λ=πj\lambda=\pi_{j} and h(θj)=α∑i=1nωjilog⁡(qθj(Xi))h(\theta_{j})=\alpha\sum\limits_{i=1}^{n}\omega_{j}^{i}\log(q_{\theta_{j}}(X_{i})), we get directly the solution:

10.2 Application to multinomial mixture models

10.3 Application to Gaussian mixture models

Supplementary material

We provide in this supplementary material a very short simulation study. Our objective is not to compare extensively EM to CAVI as this was already done in many papers (mentioned in the main body of the paper). We just show on a low-dimensional example that the properties of VB with α=1/2\alpha=1/2 and α=1\alpha=1 (CAVI) are very similar to each other, and also to EM.

We compare our algorithm for α=0.5\alpha=0.5 and α=1\alpha=1 (equivalent to CAVI) to EM algorithm for unit-variance Gaussian mixture parameters estimation. We consider 10 different unit-variance Gaussian mixtures, where the parameters (p0,θ10,θ20,θ30)(p^{0},\theta_{1}^{0},\theta_{2}^{0},\theta_{3}^{0}) are generated independently from a Dirichlet distribution p0∼DK(2/3,2/3,2/3)p^{0}\sim\mathcal{D}_{K}(2/3,2/3,2/3) and Gaussians θj0∼N(0,10)\theta_{j}^{0}\sim\mathcal{N}(0,10) for j=1,2,3j=1,2,3. From these mixtures, we create 10 different datasets which contain 1000 i.i.d. realizations of the corresponding mixtures. We compare our algorithms using the Mean Average Error (MAE) between the estimates and the true parameters. For each dataset, we run each algorithm 5 times and keep the one with the lowest MAE in order to avoid situations where the initialization leads to a local optimum. Then, we average the resulting MAEs over the different datasets to obtain the final values of the MAE. We also record the standard deviation of the MAE over the different datasets. The following table summarizes the results. Values in parenthesis represent the standard deviations of the computed MAEs, and the three components are ordered in ascending values. The three procedures are comparable both in terms of estimation precision and computational efficiency :

The notebook is available on the second author webpage: