Statistical Inference in Mean-Field Variational Bayes

Wei Han, Yun Yang

Key words:

Bootstrap; Mean-field approximation; Sampling algorithm; Uncertainty quantification; Variational inference.

Introduction

Variational inference is a popular computational approach for approximating complicated probability densities that often involve intractable integrals and many latent variables arising in complex Bayesian hierarchical models. In variational inference, the complicated target is approximated by a closest member relative to the Kullback-Leibler (KL) divergence in a pre-specified family of tractable densities. In many large-scale machine learning applications including clustering problems , image classification and topic models , variational inference can be orders of magnitude faster than the traditional sampling based approaches such as Markov Chain Monte Carlo (MCMC). In particular, by turning the integration, or sampling, problem into an optimization problem, variational inference can take advantage of modern optimization tools such as stochastic optimization techniques and distributed optimization architecture for further improving its efficiency.

Among various approximating schemes, mean-field approximation is the most common type of variational inference that is conceptually simple, implementation-wise easy and particularly suitable for problems involving large numbers of latent variables. The word “mean-field” is originated from the mean-field theory in physics where despite complex interactions among many particles in a many (infinite) body system, all interactions to any one particle can be approximated by a single averaged effect from a “mean-field”. In variational inference, by restricting the approximating family of the mean-field to be all density functions that are fully factorized over (blocks of) unknown variables, the associated optimization problem of finding a closest density can be efficiently solved via the (block) coordinate ascent algorithm . However, the ease of computation comes at a price of poor approximation as these fully factorized densities in the mean-field family fail to capture any dependence structure among the variables. As noticed in earlier studies , this disregard of dependence structure may lead to undesirable consequences such as under-estimating the uncertainties if the resulting mean-field densities are blindly used for constructing credible intervals for the parameters. Therefore, variational inference, including the mean-field approximation, are primarily used for rapidly obtaining point estimates in complex Bayesian hierarchical models where traditional methods such as EM algorithms and MCMC are either mathematically intractable (E\rm E-step in the EM) or computationally inefficient (slow mixing in the MCMC).

Despite the great empirical success achieved by variational inference over the past decades, researchers have not developed much general theory explaining why variational approximation, in particular the mean-field approximation, works so well until recently. Some earlier threads of research characterize their statistical properties in specific problems such as Bayesian linear models , Poisson mixed effect models , stochastic block models and normal mixture models , among others. Many of these studies prove estimation consistency and derive convergence rate of a point estimator based on the variational proxy by explicitly analyzing the fixed point equation of the variational optimization problem, or directly analyzing the iterative algorithm for solving the optimization problem. In addition, these analyses require the strong conjugacy assumption on the priors of their models.

More recently, Wang and Blei prove that the KL minimizer in variational Bayes asymptotically approaches a normal limit in regular parametric models. Their proof uses the Γ\Gamma convergence technique, and is based on a crucial local asymptotic normality (LAN) assumption on the variational objective. This LAN assumption implicitly assumes the estimation consistency and may require a case-by-case verification. Three groups provide general conditions for deriving the contraction rate of variational approximation as a probability distribution towards the δ\delta-measure at the true parameter of the data generating model, which includes both regular parametric models and infinite-dimensional nonparametric models and implies estimation consistency. Specifically, focus on models that contain no latent variables, while the theory in can be applied to latent variable models such as normal mixture models. All these results justify the use of variational inference as a valid approach for rapidly obtaining rate-optimal point estimators in complex Bayesian models. However, it remains unclear how good the variational point estimator is when compared to some benchmark, such as the maximum likelihood estimator (MLE) and the posterior mean in regular parametric models—at least theoretically, since the MLE (posterior mean) may be computationally expensive to calculate when the E\rm E-step (full conditional distributions) does not admit a closed form expression when applying the EM algorithm (Gibbs sampler). In addition, there is little work on how to conduct statistical inference, such as creating credible intervals and performing hypothesis testing in variational procedures.

In this work, we develop a new framework for studying theoretical properties of the mean-field variational approximation and for conducting statistical inference on the model parameters based on the mean-field estimator in parametric models involving latent variables. First, we prove a non-asymptotic result that provides an explicit upper bound on the KL divergence between the mean-field approximation to the marginal posterior of the model parameter and its normal approximation, where the center of the normal is precisely the MLE and the covariance matrix is the diagonal of the inverse of the observed data information matrix (which is the asymptotic covariance of the MLE) plus an extra latent variable information matrix (c.f. Section 2.3). The covaraince structure of the approximating normal limit implies that due to the neglect of the dependence between model parameters and latent variables in the mean-field approximation, the uncertainty under-estimation phenomenon is more severe in models with latent variables than models without (latent variable information is zero). As a direct consequence of the normal approximation, we show that the mean-field variational estimator, defined as the expectation of the model parameter under the mean-field approximation to the posterior distribution, matches the MLE (or posterior mean) up to a higher-order term relative to the root-nn convergence rate. In other words, there is no loss of efficiency (at least asymptotically) in terms of the mean squared error criterion in using the mean-field inference for point estimation. Second, we propose a new class of variational weighted likelihood Bootstrap (VWLB) methods for conducting statistical inference on the model parameter via perturbing with random weights the (joint) likelihood function in the mean-field inference in the same spirit as bootstrapping. Interestingly, the VWLB can also be viewed as a new sampling scheme that produces independent samples approximating the marginal posterior of the model parameter. In terms of methodology, VWLB extends the classical ideas of weighted likelihood bootstrap and Bayesian bootstrap to complex Bayesian latent variable models. In terms of computation, the VWLB does not suffer from the slowing mixing issue in MCMC due to the independence of the generated samples and is free of tuning. In addition, unlike the sequential nature of MCMC, sampling via VWLB can be conducted in an embarrassingly parallel manner that has the same time complexity as solving a single variational optimization problem via any distributed learning architecture.

A key ingredient in our proof is a relaxed “triangle inequality” around the projection of the limiting normal approximation to the posterior for the KL divergence when restricted to the mean-field family (c.f. Lemma 5). In particular, the mean-field family is not a convex family of distributions, and a strict triangle inequality around the projection of a distribution onto this family with leading factor one (e.g. Theorem 11.6.1 in ) is no longer true. In addition, previous results only show a slow polynomial decay on the tail probability of the variational approximation to the posterior (when away from the true parameter), while in order to control the KL-divergence between the variational approximation and its normal approximation, we prove a stronger sub-Gaussian type tail bound (square exponential decay) that uses essential structures of the mean-field family via a variational type analysis (c.f. Proof of Lemma 2 in Section 6.1).

Overall, our results reveal that despite uncertainty under-estimation, point estimators from the mean-field variational inference have essentially no loss of efficiency as the maximum likelihood estimator and also attains the Cramér-Rao lower bound in parametric models involving latent variables. In addition, by combining variational inference with bootstrap, the resulting VWLB has the potential of providing a principled and more efficient algorithm for sampling from the posterior in complicated Bayesian hierarchical models.

The rest of the paper is organized as follows. In Section 2, we briefly review the mean-field variational inference for approximating the posterior in a general class of Bayesian latent variable models, and present our theoretical results on the non-asymptotic properties of the mean-field approximation. Motivated by these theoretical developments, we propose in Section 3 a new class of variational weighted likelihood Bootstrap methods for statistical inference via the mean-field approximation, and show in Section 4 the estimation consistency in terms of approximating the target posterior of the model parameter. In Section 5, we provide two simulations studies, one with latent variable and one without for validating the theory and illustrating the method. Proofs of some selected results are provided in Section 6. Further details about the simulation and other proofs are deferred to appendices in the supplement material.

Non-asymptotic analysis of mean-field variational approximation

In this section, we begin with a brief review on the mean-field variational inference for a class of Bayesian latent variable models. Then we provide two perspectives for explaining the mechanism behind the mean-field approximation. After that, we state our main results in this section providing non-asymptotic analysis of the mean-field variational procedure. Our results imply the estimation consistency, and characterize the center and shape of the variational approximation to the exact posterior. In particular, our results reveal that although the mean-field approximation fails to capture the uncertainty, a point estimator obtained as the expectation with respect to the variational distribution matches that of the exact posterior up to high-order terms. This favorable property on the variational mean provides the basis of our inference procedure proposed in the next section.

where p(Xn∣ θ, Sn)p(X^{n}|\,\theta,\,S^{n}) is the conditional density function of XnX^{n} given SnS^{n}, and the joint density p(Xn ∣ θ)p(X^{n}\,|\,\theta) of SnS^{n} is also parametrized by (a subset of) θ\theta under PθnP_{\theta}^{n}. In other cases, a complex probability model, including the latent Dirichlet allocation and Bayesian hierarchical models, may itself be defined in a hierarchical fashion by first specifying the distribution of the data given latent variables and parameters, and then the latent variable distribution given parameters, as formulated in (1). Due to the negative result on the inconsistency of mean-field variatioanl approximation for general state-space models with non-independent observations with non-independent latent variables, we assume the observation latent variable pair (Xi,Si)(X_{i},S_{i}) to be mutually independent, that is,

where p(Si∣ θ)p(S_{i}|\,\theta) denotes the marginal density function of SiS_{i} parametrized by parameter θ\theta under PθnP_{\theta}^{n}.

In the Bayesian paradigm, we impose a prior distribution, denoted by Π(⋅)\Pi(\cdot), on the model parameter θ\theta over Θ\Theta, whose density function is denoted by π(⋅)\pi(\cdot). Figure 1 provides a graphical representation of this Bayesian latent variable model considered in the paper. In this framework, all inference is based on the posterior probability p(Zn∣ Xn)p(Z^{n}|\,X^{n}) of the collection of latent variables Zn=(θ, Sn)Z^{n}=(\theta,\,S^{n}) given visible variables XnX^{n}. According to Bayes’ theorem, this posterior probability has the following form:

In particular, we are interested in the marginal posterior distribution Πn\Pi_{n} of the parameter θ\theta by integrating out SnS^{n} in the joint posterior,

where the marginal likelihood L(θ; Xn)L(\theta;\,X^{n}), as a function of θ\theta, is

Unfortunately, in most cases p(Sn,θ ∣ Xn)p(S^{n},\theta\,|\,X^{n}) and Πn(⋅)\Pi_{n}(\cdot) in equations (3) and (4) can be inconvenient to use for direct analysis due to the intractable normalization constant p(Xn)p(X^{n}) involving multi-dimensional integration. Sampling based procedures such as MCMC algorithms could be computationally inefficient due to the high computational cost and slow mixing. Alternatively, variational inference turns the integration problem into an optimization problem by approximating the target distribution p(Zn∣ Xn)p(Z^{n}|\,X^{n}) with a closest member q^Zn\widehat{q}_{Z^{n}} in a pre-specified family Γ\Gamma. Formally, the variational approximation q^Zn\widehat{q}_{Z^{n}} to p(Zn∣ Xn)p(Z^{n}|\,X^{n}) is obtained by solving the following optimization problem,

In particular, we focus on the mean-field approximation where the variational family Γ\Gamma is composed of all fully factorized distributions as

Alternatively, one can apply a block mean-field approximation that preserves dependence structures within some multidimensional components, such as the dd-dim θ=(θ1,…,θd)\theta=(\theta_{1},\ldots,\theta_{d}) block, in ZnZ^{n}, and our results can be readily applied to this less stringent scheme.

2 Two perspectives of the mean-field approximation

The following decomposition of the KL divergence in (6) reveals the interplay between the parameter θ\theta and latent variables SnS^{n} pertaining to the mean-field approximation,

where pθ,Sn(⋅ ∣Xn)p_{\theta,S^{n}}(\cdot\,|X^{n}) stands for the joint posterior density of (θ, Sn)(\theta,\,S^{n}), πn\pi_{n} the density function induced from the marginal posterior distribution Πn\Pi_{n} of θ\theta as in (4), and pSn(⋅ ∣ θ, Xn)p_{S^{n}}(\cdot\,|\,\theta,\,X^{n}) the conditional posterior density of SnS^{n} given θ\theta. Therefore, jointly minimizing the KL-divergence over (qθ,qSn)(q_{\theta},q_{S^{n}}) is equivalent to first profiling out the nuisance part qSnq_{S^{n}} by minimizing the second term for a fixed qθq_{\theta}, and then finding the primary quantity of interest qθq_{\theta} that minimizes the resulting “profile divergence”. In particular, this semiparametric profiling perspective plays a crucial role in identifying the limiting center and shape of the variational approximation q^θ\widehat{q}_{\theta} in its normal approximation presented in the following subsection. The lemma below provides an explicit expression for this profile divergence, whose proof is provided in Section B.1. Recall that πn\pi_{n} is the marginal posterior density of θ\theta.

For each fixed density qθq_{\theta} over Θ\Theta, the profile divergence takes the following form:

where ri(s)=∫Θlog⁡p(s ∣ θ, Xi) qθ(θ) \differentialθr_{i}(s)=\int_{\Theta}\log p(s\,|\,\theta,\,X_{i})\,q_{\theta}(\theta)\,\differential\theta for all s∈Ss\in\mathcal{S}.

Roughly speaking, as qθq_{\theta} approaches the δ\delta-measure at θ∗\theta^{\ast}, ri(s)r_{i}(s) tends to log⁡p(s ∣ θ∗,Xi)\log p(s\,|\,\theta^{\ast},X_{i}) and the second term in the preceding display vanishes. Consequently, minimizing the KL-divergence between the joint distributions over (θ,Sn)(\theta,S^{n}) boils down to minimizing D(qθ ∥ πn)D(q_{\theta}\,\|\,\pi_{n}). However, the second term still contributes to the limiting shape of q^θ\widehat{q}_{\theta} as we will see in the next subsection.

The original derivation of the variance inference provides an alternative interpretation via Jensen’s inequality. Precisely, using the concavity of log⁡(x)\log(x), we can obtain an manageable lower bound to the log normalization constant (called evidence) as,

where L(qZn)L(q_{Z^{n}}) is called the evidence lower bound (ELBO, ). In particular, the KL divergence

quantifies the discrepancy between the evidence log⁡p(Xn)\log p(X^{n}) and its lower bound approximation L(qZn)L(q_{Z^{n}}). Consequently, minimizing the KL divergence in optimization problem (6) is equivalent to finding a best qZnq_{Z^{n}} to maximize the ELBO. The KL minimization formulation (6) is convenient for our theoretical analysis, while the ELBO formulation leads to various computational algorithms for implementing the variational inference.

In this paper, our attention toward the model is inference on θ\theta, the model parameter, where our theory and methodology is centered on. Towards this goal, it is helpful to inspect a finer decomposition of the ELBO from ,

which consists of three terms: an integrated (relative to the variational distribution of θ\theta) log-marginal likelihood, the Jensen gap ΔJ\Delta_{J} due to the mean-field decomposition on latent variables {Si}i=1n\{S_{i}\}_{i=1}^{n} in approximating the marginal likelihood p(Xn∣ θ)p(X^{n}|\,\theta) with p(Xn∣ θ)^\widehat{p(X^{n}|\,\theta)}, and the KL divergence between the variational distribution qθq_{\theta} and the prior π(θ)\pi(\theta). When there is no likelihood approximation with latent variables, the Jensen gap ΔJ\Delta_{J} term vanishes, and maximizing of the ELBO value in decomposition (10) resembles a regularized MM-estimation problem of minimizing an objective function composed of a goodness of fit term ∫Θ−log⁡p(Xn∣ θ) Qθ(\differentialθ)\int_{\Theta}-\log p(X^{n}|\,\theta)\,Q_{\theta}(\differential\theta) plus a regularizing term D(qθ ∣∣ πθ)D(q_{\theta}\,||\,\pi_{\theta}) over all distributions in the variational family Γ\Gamma. This perspective is useful in proving the consistency and characterizing the contraction rate of the variational approximation q^θ\widehat{q}_{\theta} towards the true parameter θ∗\theta^{\ast}, as describe in the next subsection.

3 Contraction of mean-field variational approximation and normal approximation

Assumption A1 (Prior continuity and growth): The prior density satisfies π(θ∗)>0\pi(\theta^{\ast})>0. In addition, log⁡π(θ)\log\pi(\theta) is differentiable in a neighborhood of θ∗\theta^{\ast}, and satisfies

We define the following quantity of Hellinger bracketing entropy that provides a measure on the model space complexity.

Definition (Hellinger bracketing entropy): For a set F\mathcal{F} of functions over X\mathcal{X} and any ε>0\varepsilon>0, we call a set (of pairs of functions) {(fjL,fjU,j=1,…,N)}\{(f_{j}^{L},f_{j}^{U},j=1,\ldots,N)\} a (Hellinger) ε\varepsilon-bracketing of F\mathcal{F}, if ∫X[(fjL)1/2(x)−(fjU)1/2(x)]2\differentialx≤ε2\int_{\mathcal{X}}\big[(f_{j}^{L})^{1/2}(x)-(f_{j}^{U})^{1/2}(x)\big]^{2}\differential x\leq\varepsilon^{2} for j=1,2,…,Nj=1,2,\ldots,N and for any f∈Ff\in\mathcal{F}, there is a jj such that fjL≤f≤fjUf_{j}^{L}\leq f\leq f_{j}^{U}. The (Hellinger) ε\varepsilon-bracketing metric entropy, denote by HB(ε,F)H_{B}(\varepsilon,\mathcal{F}), is defined as the logarithm of the smallest cardinality of such an ε\varepsilon-bracketing of F\mathcal{F}.

Assumption A2 (Marginal likelihood regularity):

(Smoothness) The log-marginal likelihood function l(θ;x)=log⁡p(x ∣ θ)l(\theta;x)=\log p(x\,|\,\theta) is thrice continuously differentiable with respect to θ\theta.

(Information matrix non-degeneracy) In addition, the order of taking expectation with respect to Pθ∗P_{\theta^{\ast}} and differentiation at θ∗\theta^{\ast} is valid so that

The d×dd\times d Fisher information matrix in this display, denoted by I(θ∗)I(\theta^{\ast}), is positive definite.

(Euclidean metric equivalence) The squared Hellinger distance satisfies that for some constants (c1,c2)(c_{1},c_{2}),

(Local metric entropy growth) There exists a constant c3c_{3}, such that the Hellinger entropy satisfies

The first three assumptions in A2 are standard regularity conditions for parametric models (c.f. Chapter 1.4 in ). The Euclidean metric equivalence assumption is also made in Theorem 5.1 in as one of their sufficient conditions for proving posterior contraction in parametric models. The last assumption on the local metric entropy assumption is adopted from , and often holds for parametric models (c.f. for examples).

In addition, the d×dd\times d latent (variable) information matrix Is(θ)=Eθ∗[∇2ls(θ;S,X)]I_{s}(\theta)=E_{\theta^{\ast}}[\nabla^{2}l_{s}(\theta;S,X)] is locally Lipschitz in the neighborhood B(θ∗;δ)\mathcal{B}(\theta^{\ast};\delta) of θ∗\theta^{\ast}, that is,

Assumption A3 includes regularity conditions on the conditional distribution of latent variables. In particular, by viewing the latent variable SS as missing data, and interpreting Is(θ∗)I_{s}(\theta^{\ast}) as the missing data information matrix and I(θ∗)I(\theta^{\ast}) as the observed data information matrix , we can define the complete data information matrix as Ic(θ∗)=I(θ∗)+Is(θ∗)I_{c}(\theta^{\ast})=I(\theta^{\ast})+I_{s}(\theta^{\ast}). As we will see, the inverse of diag(Ic(θ∗)){\rm diag}(I_{c}(\theta^{\ast})) characterizes the limiting shape of the variational approximation q^θ\widehat{q}_{\theta}, where the second term Is(θ∗)I_{s}(\theta^{\ast}) causes the extra variance reduction due to the neglect of the posterior dependence between θ\theta and SnS^{n}.

The following lemma shows that with high probability, the marginal distribution Q^θ\widehat{Q}_{\theta} obtained from the mean-field variational approximation (6) has a sub-Gaussian tail probability outside an ε\varepsilon-ball centered at the truth θ∗\theta^{\ast}, for all ε≥log⁡n/n\varepsilon\geq\sqrt{\log n/n}. This exponentially decaying tail behavior is essential for controlling the tail integrals in the proof of our next result that approximates Q^θ\widehat{Q}_{\theta} with a normal distribution. A proof is provided in Section 6.1.

Under Assumptions A1, A2 and A3, there exist constants (C0,C1,C2,C3)(C_{0},C_{1},C_{2},C_{3}) such that for any M≥1M\geq 1 and εn=C0log⁡nn\varepsilon_{n}=C_{0}\sqrt{\frac{\log n}{n}} it holds with probability at least 1−C1M−21-C_{1}M^{-2} that the mean-field approximation Q^θ\widehat{Q}_{\theta} satisfies

Although we focus on the finite-dimensional parametric model PθP_{\theta}, the proof of this lemma is based on a general treatment under a similar setting as . Therefore, this result can also be extended to mean-field approximations for infinite-dimensional models, for which the same sub-Gaussian tail bound holds for all ε\varepsilon greater than a benchmark contraction rate εn\varepsilon_{n} slower than the parametric root-nn rate pertaining to the model by making certain assumptions (c.f. conditions (2.2)–(2.4) in ) on the prior thickness and the complexity of model space. In comparison, earlier results on the consistency and convergence rates of variational approximations, such as , only show a polynomially decay C3εn2/ε2C_{3}\varepsilon_{n}^{2}/\varepsilon^{2} on the tail probability Q^θ(∥θ−θ∗∥≥C2ε)\widehat{Q}_{\theta}\big(\|\theta-\theta^{\ast}\|\geq C_{2}\varepsilon\big). The proof of our exponentially decaying bound utilizes the factorization structure (7) of the mean-field approximation, and it is still an interesting open problem whether similar sub-Gaussian type tail bounds hold for a broader class of variational approximations beyond the mean-field.

Let θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} denote the maximum likelihood estimator of θ\theta,

The classical Bernstein von-Mises (BvM) theorem states that the marginal posterior distribution Πn\Pi_{n} of θ\theta approaches in the total variation metric to N(θ^\mboxMLE, [nI(θ∗)]−1)N\big(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI(\theta^{\ast})]^{-1}\big) as n→∞n\to\infty (our Lemma 7 with Qθ=ΠnQ_{\theta}=\Pi_{n} gives a stronger KL divergence version of the BvM theorem). Our next theorem shows that the marginal variational distribution Q^θ\widehat{Q}_{\theta} can also be approximated by a normal distribution with the same center as θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}}, but a different variance-covariance matrix, under the stronger KL-divergence. A proof is deferred to Section 6.2. Recall that Ic(θ∗)=I(θ∗)+Is(θ∗)I_{c}(\theta^{\ast})=I(\theta^{\ast})+I_{s}(\theta^{\ast}) is the complete data information matrix.

Under Assumptions A1, A2 and A3, there exist constants (C4,C5)(C_{4},C_{5}) such that for any M≥1M\geq 1 it holds with probability at least 1−C4M−21-C_{4}M^{-2} that

where QVB∗=N(θ^\mboxMLE, [nIVB]−1)Q^{\ast}_{VB}=N\big(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{VB}]^{-1}\big), and IVB=\mboxDiag(Ic(θ∗))I_{VB}=\mbox{Diag}\big(I_{c}(\theta^{\ast})\big).

Theorem 1 is a non-asymptotic result that applies to any sample size n≥1n\geq 1. The complementary probability C4M−2C_{4}M^{-2} decays polynomially in MM because we simply apply the Markov inequality with the second order moment assumption on the derivatives of the log-likelihood function. If we instead make a sub-Gaussian type assumption as in , then this remainder probability will be exponentially small in M2M^{2} as exp⁡{−C4M2}\exp\{-C_{4}M^{2}\}. As a special when there is no latent variables (Is(θ∗)=0I_{s}(\theta^{\ast})=0), Theorem 1 shows that the mean-field approximation Q^θ\widehat{Q}_{\theta} tends to the normal distribution N(θ^\mboxMLE, [nIVB(θ∗)]−1)N\big(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{VB}(\theta^{\ast})]^{-1}\big) whose covariance matrix simply removes all off-diagonal components in I(θ∗)I(\theta^{\ast}), which is consistent with earlier results such as and explains the overly small variances exhibited by the mean-field approximation due to the neglect of the dependence among components of θ\theta. In the general case of Bayesian latent variable models, Theorem 1 shows that the overly small variances phenomenon is even more severe due to the neglect of the dependence between θ\theta and SnS^{n}.

In practice, although this mismatch on the covariance structures between the variational approximation and the exact posterior is not a serious issue when doing point estimation, erroneous characterization of uncertainty can be produced. As a consequence, variational inference is widely used for rapidly obtaining a point estimator for the model parameter θ\theta. Let θ^VB\widehat{\theta}_{VB} to denote the variational posterior mean θ^VB=∫Θθ q^θ(θ) \differentialθ\widehat{\theta}_{VB}=\int_{\Theta}\theta\,\widehat{q}_{\theta}(\theta)\,\differential\theta. The following corollary, as a direct consequence of the normal approximation in Theorem 1, shows that although the shape of the exact posterior Πn\Pi_{n} is not properly captured by Q^θ\widehat{Q}_{\theta}, their centers θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} and θ^VB\widehat{\theta}_{VB} match up to O(n−3/4)\mathcal{O}(n^{-3/4}).

Under the conditions and the high-probability event of Theorem 1, there exists a constant C6C_{6} such that

This corollary implies that there is essentially no loss of efficiency in using the mean-field approximation as a fast approach for obtaining a point estimator in low-dimensional parametric models. Moreover, this interesting finding suggests that we can also conduct statistical inference in mean-field approximation by Bootstrapping the point estimator θ^VB\widehat{\theta}_{VB}.

Statistical inference in mean-field approximation

Motivated by results in the previous section, we propose an inferential framework for mean-field variational Bayes in Bayesian models with latent variables by borrowing the classical idea of weighted likelihood Bootstrap (WLB, ) for approximate Bayesian computation. We begin this section with a brief review on the original WLB as a way to simulate approximately from a posterior distribution when there is no latent variables. After that, we extend the WLB to incorporate latent variables, which further leads to our variational weighted likelihood Bootstrap (VWLB) for approximating the marginal posterior distribution of θ\theta in the mean-field variational Bayes.

WLB is an extension of the Bayesian Bootstrap from nonparametric models to parametric and semiparametric models by approximating the exact posterior via a random sample of parameter values, each maximizing a weighted likelihood function with random weights. The original WLB proposed in directly operates on the marginal density function p(⋅ ∣ θ)p(\cdot\,|\,\theta) of the i.i.d. observations {Xi}i=1n\{X_{i}\}_{i=1}^{n} without introducing the latent variables {Si}i=1n\{S_{i}\}_{i=1}^{n}. More specifically, in WLB the bbth random sample θ~(b)\widetilde{\theta}^{(b)} of the parameter θ\theta, for b=1,2,…,Bb=1,2,\ldots,B, is produced by maximizing the following weighted likelihood function obtained from tilting the likelihood function L(θ; Xn)L(\theta;\,X^{n}):

where the weights Wn,(b)=(W1(b),W2(b)…,Wn(b))W^{n,(b)}=(W_{1}^{(b)},W_{2}^{(b)}\ldots,W_{n}^{(b)}) satisfy the following assumption.

Assumption W (Weight randomness): The weights {Wi(b): i=1,2,…,n, b=1,2,…,B}\{W_{i}^{(b)}:\,i=1,2,\ldots,n,\,b=1,2,\ldots,B\} are i.i.d. copies of a nonnegative random variable WW with E[W]=\mboxVar(W)=1E[W]=\mbox{Var}(W)=1. In addition, WW is sub-exponential, that is, there exist some constants (c0,c1)(c_{0},c_{1}) such that E[eλ(W−1)]≤ec0λ2/2E[e^{\lambda(W-1)}]\leq e^{c_{0}\lambda^{2}/2} holds for all ∣λ∣≤c1|\lambda|\leq c_{1}.

Unlike other commonly used sampling schemes such as MCMC, the random samples {θ~(b)}b=1B\{\widetilde{\theta}^{(b)}\}_{b=1}^{B} from WLB are conditionally independent given the data XnX^{n}, where the extra randomness in θ~(b)\widetilde{\theta}^{(b)} is induced by the distribution of the random weights. Under some mild conditions on the model, one can show that the conditional distribution of θ~(b)\widetilde{\theta}^{(b)} given data XnX^{n} approaches the exact posterior distribution p(θ ∣ Xn)p(\theta\,|\,X^{n}) of θ\theta as n→∞n\to\infty (readers may refer to for more details on the WLB and its accompanied theory). To accommodate this WLB idea to variational inference, it is helpful to also associate the weighted likelihood function L~(b)(θ; Xn)\widetilde{L}^{(b)}(\theta;\,X^{n}) with a weighted posterior distribution

This weighted posterior can be viewed as a generalization of the fractional posterior by raising the probability density p(Xi ∣ θ)p(X_{i}\,|\,\theta) of XiX_{i} in the likelihood to a sample specific power Wi(b)W_{i}^{(b)}. Similar to the classical BvM theorem, the following proposition shows that the mean θ~B(b)\widetilde{\theta}^{(b)}_{B} of the weighted posterior distribution Π~n(b)\widetilde{\Pi}^{(b)}_{n} based on the marginal likelihood matches the maximum weighted likelihood estimator θ~(b)\widetilde{\theta}^{(b)} up to a higher-order remainder term.

Under Assumptions A1, A2 and W, there exist constants (C7,C8)(C_{7},C_{8}), such that for any M≥1M\geq 1, it holds with probability at least 1−C7M−21-C_{7}M^{-2} that

2 Variational weighted likelihood Bootstrap

In this subsection, we propose variational weighed likelihood Bootstrap (VWLB) as a variational approximation method for simulating random samples from the marginal posterior distribution Πn\Pi_{n} of θ\theta in the Bayesian latent variable model (2), thereby facilitating statistical inference on parameter θ\theta. Motivated by the MLB method described in the previous subsection, we define the weighted joint likelihood function p~(Xn,Sn∣ θ)\widetilde{p}(X^{n},S^{n}|\,\theta) and weighted joint posterior density p~(Sn,θ ∣ Xn)\widetilde{p}(S^{n},\theta\,|\,X^{n}) that incorporate latent variables SnS^{n} as,

where recall that L~(b)(θ; Xn)\widetilde{L}^{(b)}(\theta;\,X^{n}) is the weighted (marginal) likelihood function defined in (11). Note that the “marginalization” of SiS^{i} in the denominator of (14) is before raising to the power Wi(b)W^{(b)}_{i}. Therefore, the weighted joint posterior density is not properly normalized and strictly speaking, not a real density function. Similar to the optimization problem (6) of variational approximation, we define the weighted variational approximation q~Zn(b)=q~θ(b)⊗⨂i=1nq~Si(b)∈Γ\widetilde{q}^{(b)}_{Z^{n}}=\widetilde{q}_{\theta}^{(b)}\otimes\bigotimes_{i=1}^{n}\widetilde{q}^{(b)}_{S_{i}}\in\Gamma to p~(b)(Zn∣ Xn)\widetilde{p}^{(b)}(Z^{n}|\,X^{n}) as

where D~(b)(qZn(⋅) ∣∣ p~(b)(⋅ ∣ Xn))\widetilde{D}^{(b)}\big(q_{Z^{n}}(\cdot)\,||\,\widetilde{p}^{(b)}(\cdot\,|\,X^{n})\big) calculates the expectation with respect to qZnq_{Z^{n}} of the log-ratio between the tilted qZnq_{Z^{n}} and p~(b)(Zn ∣ Xn)\widetilde{p}^{(b)}(Z^{n}\,|\,X^{n}). It is worthy noticing that in practical implementations, the denominator p~(b)(zn∣Xn)\widetilde{p}^{(b)}(z^{n}|X^{n}) in the preceding display simply contributes a constant independent of qZnq_{Z^{n}} in above objective function, and there is no need to explicitly compute this quantity. We include this term mainly for theoretical purposes—the D~(b)(⋅ ∣∣ ⋅)\widetilde{D}^{(b)}(\cdot\,||\,\cdot) with this term reduces to the usual KL divergence when Wi(b)≡1W_{i}^{(b)}\equiv 1. In addition, the weighted variational approximation leads to the following decomposition that generalizes the unweighted KL decomposition formula (8) and plays an essential role in our theoretical analysis,

This identity implies the weighted variational objective function to be nonnegative. Accordingly, this decomposition formula enables us to divide the joint minimization problem (15) into two steps—first profiling out the nuisance part qSnq_{S^{n}} by minimizing the second term for a fixed qθq_{\theta}, and then minimizing the resulting “weighted profile divergence” as a function of qθq_{\theta}. In particular, the first step of minimizing over qSnq_{S^{n}} admits a convenient closed form expression for the theoretical analysis, as summarized in the following lemma.

For each fixed density qθq_{\theta} over Θ\Theta, the weighted profile divergence takes the form as:

where functions {ri(⋅)}i=1n\{r_{i}(\cdot)\}_{i=1}^{n} are defined in Lemma 1.

The same remark after Lemma 1 regarding the limiting behavior of rir_{i} and its implications as qθq_{\theta} approaches to the δ\delta-measure at θ∗\theta^{\ast} applies to the weighted case. Note that the decomposition formula in the lemma is convenient for deriving a normal approximation to q~θ(b)\widetilde{q}^{(b)}_{\theta} and cannot be directly used for practical computation since the weighted marginal posterior π~n(b)\widetilde{\pi}^{(b)}_{n}in the first term is computationally intractable. In addition, it is worthy mentioning that a similar weighted ELBO decomposition generalizing (10) holds by replacing the first goodness of fit term and the second Jensen gap term with their weighted counterparts. This weighed ELBO decomposition would be useful for deriving the contraction rate of the weighted variational approximation q~θ(b)\widetilde{q}^{(b)}_{\theta} beyond parametric models by adapting the proof techniques in .

Having obtained the weighted variational approximation q~θ(b)\widetilde{q}^{(b)}_{\theta} to the weighted posterior π~n\widetilde{\pi}_{n} of θ\theta with the bbth random weights Wn,(b)W^{n,(b)}, we can then proceed as in the usual variational inference by using the variational mean θ~VB(b)=∫Θθ q~θ(b)(θ) \differentialθ\widetilde{\theta}^{(b)}_{VB}=\int_{\Theta}\theta\,\widetilde{q}^{(b)}_{\theta}(\theta)\,\differential\theta as the bbth random sample approximately drawn from the marginal posterior πn\pi_{n}, for b=1,2,…,Bb=1,2,\ldots,B. Unlike MCMC sampling algorithms, the random samples {θ~VB(b)}b=1B\{\widetilde{\theta}^{(b)}_{VB}\}_{b=1}^{B} from the variational WLB are i.i.d. draws approximately from πn\pi_{n} given data XnX^{n}. These random samples can be used for statistical inference, such as constructing credible sets and conducting hypothesis testing. Algorithm 1 below summarizes the pseudo-code for implementing the variational WLB.

3 Coordinate ascent algorithm for computation

In this subsection, we discuss computational aspects of the optimization problem (15) in the inner loop of Algorithm 1 via a weighted variant of the coordinate ascent. Coordinate ascent variational inference (CAVI, ) is a popular optimization algorithm tailored for solving (6) in the usual mean-field approximation that is scalable to large datasets. CAVI, as an optimization counterpart of Gibbs sampling, utilizes the special structure of the mean-field solution q^Zn\widehat{q}_{Z^{n}} to (6) that based upon the optimality, each factor in the decomposition (7) should be proportional to the exponential of the expected log of the joint posterior with respect to the rest factors, which under our notation, simplifies to

where the notation Eq^−θjE_{\widehat{q}_{-\theta_{j}}} stands for taking expectation with respect to all factors in (7) except for q^θj\widehat{q}_{\theta_{j}} (similar notation convention applies to the weighted case below). CAVI iteratively updates each factor qθjq_{\theta_{j}} or qZiq_{Z_{i}} until convergence. Since the ELBO value is non-decreasing along the iterations, CAVI is guaranteed to converge to a local minimum. In practice, the convergence of the CAVI can be assessed by monitoring the ELBO value, and multiple random initializations can be deployed for finding the global minimum by picking one that yields the highest ELBO value.

Now we generalize the CAVI to its weighted counterpart for solving optimization (15). More specifically, the optimality condition of the optimization problem (15) with random weights Wn,(b)=(Wi(b))W^{n,(b)}=(W^{(b)}_{i}) is

which only differs from the optimality condition (17) of the usual mean-field optimization in replacing the joint likelihood function p(Xn,Sn∣ θ)p(X^{n},S^{n}|\,\theta) with its weighted version p~(Xn,Sn∣ θ)\widetilde{p}(X^{n},S^{n}|\,\theta). Similarly to the CAVI, we can repeatedly update each qθjq_{\theta_{j}} and qSiq_{S_{i}} until convergence, and a stopping criterion can be based on the change in the weighted ELBO. Again, the weighted CAVI reduces the the CAVI when are weights are identically one. Due to the similarity between (17) and the preceding display, only minor changes are needed in order to implement the weighted CAVI based on existing statistical softwares for the CAVI. Algorithm 2 below summarizes the pseudo-code for the weighted CAVI.

Non-asymptotic analysis of variational weighted likelihood Bootstrap

In this section, we develop theoretical justifications for the statistical inference procedure developed in Section 3. Our results show that unlike the mean-field variational approximation q^θ\widehat{q}_{\theta} to the marginal posterior πn\pi_{n} of θ\theta that generally underestimates the variance (c.f. Theorem 1), the variational weighted likelihood Bootstrap generates independent random samples of θ\theta given the data whose distribution approaches πn\pi_{n} as n→∞n\to\infty. As a consequence, credible intervals constructed from these random samples of θ\theta has frequentist coverage approaching to their nominal levels as n→∞n\to\infty. Our analysis is non-asymptotic and leads to explicit high probability error bounds on the discrepancies.

In this subsection, we investigate the theoretical properties of the weighted variational approximation q~θ(b)\widetilde{q}^{(b)}_{\theta} as the optimum of the weighted variational optimization (15). Similar to the study of the mean-field approximation q^θ\widehat{q}_{\theta} in Section 2.3, we begin with he contraction property of the weighted posterior distribution π~n(b)\widetilde{\pi}_{n}^{(b)} defined in (12) that leads to the contraction of q~θ(b)\widetilde{q}^{(b)}_{\theta} with a sub-Gaussian type tail bound. It proof is provided in Section B.4.

Under Assumptions A1, A2 and W, there exist constants (C0′,C1′,C2′,C3′)(C^{\prime}_{0},C^{\prime}_{1},C^{\prime}_{2},C^{\prime}_{3}) such that for any M≥1M\geq 1 and ε~n=C0′log⁡nn\widetilde{\varepsilon}_{n}=C^{\prime}_{0}\frac{\log n}{\sqrt{n}} it holds with probability at least 1−C1′M−21-C^{\prime}_{1}M^{-2} that the weighted posterior Π~n(b)\widetilde{\Pi}^{(b)}_{n} satisfies

In addition, if Assumption A3 is also true, then there exist some constants (C2′′,C3′′)(C^{\prime\prime}_{2},C^{\prime\prime}_{3}) such that under the same high probability event, the mean-field approximation Q^θ\widehat{Q}_{\theta} satisfies

The proof of (20) involves a uniform control on the weighted likelihood ratio via the bracket entropy, and uses the proof technique of Theorem 2 in . Similar to Lemma 2, the proof of Theorem 2 is not specific to parametric models where ε~n≍log⁡n/n\widetilde{\varepsilon}_{n}\asymp\sqrt{\log n/n} and can be extended to general cases such as infinite-dimensional models as long as the bracket entropy of the model space is properly controlled.

Recall that θ~(b)\widetilde{\theta}^{(b)} is the maximizer of the weighted likelihood function,

Let Q~∗(b)\widetilde{Q}^{\ast(b)} denote the normal distribution N(θ~(b), [nI(θ∗)]−1)N\big(\widetilde{\theta}^{(b)},\,[nI(\theta^{\ast})]^{-1}\big). The next theorem extends the classical BvM theorem to the normal approximation Q~∗(b)\widetilde{Q}^{\ast(b)} of the weighted posterior distribution Π~n(b)\widetilde{\Pi}_{n}^{(b)} of θ\theta.

Under Assumptions A1, A2 and W, there exist constants (C4′,C5′)(C^{\prime}_{4},C^{\prime}_{5}) such that for any M≥1M\geq 1, it holds with probability at least 1−C4′M−21-C^{\prime}_{4}M^{-2} that

Theorem 3 is a non-asymptotic result providing an explicit upper bound to certain discrepancy measures between Π~n(b)\widetilde{\Pi}_{n}^{(b)} and its normal approximation Q~∗(b)\widetilde{Q}^{\ast(b)}. This theorem also extends the classical BvM type results from the total variational metric to the stronger KL-divergence, due to the strong sub-Gaussian tail bound (20) for controlling the expectation of the log-density ratio log⁡(\wtπn(b)/\wtq∗(b))\log(\wt\pi_n^{(b)}/\wt q^{\ast(b)}) relative to Π~n(b)\widetilde{\Pi}_{n}^{(b)} outside a log⁡n/n\sqrt{\log n/n}-neighborhood of θ~(b)\widetilde{\theta}^{(b)}.

2 Consistency of variational weighted likelihood Bootstrap

In this subsection, we discuss the consistency of variational weighted likelihood Bootstrap summarized in Algorithm 1 as a new sampling scheme for approximating the marginal posterior distribution Πn\Pi_{n} of θ\theta. First, we present a result on the normal approximation of the weighted mean-field approximation Q~θ(b)\widetilde{Q}^{(b)}_{\theta}.

Under Assumptions A1, A2, A3 and W, there exist constants (C6′,C7′)(C^{\prime}_{6},C^{\prime}_{7}) such that for any M≥1M\geq 1, it holds with probability at least 1−C6′M−21-C^{\prime}_{6}M^{-2} that

This result shows that the weighted version Q~VB∗(b)\widetilde{Q}^{\ast{(b)}}_{VB} shares the same covariance structure as Q~VB∗\widetilde{Q}^{\ast}_{VB} in Theorem 1, but the center changes from the MLE θ^\widehat{\theta} to the weighted MLE θ~(b)\widetilde{\theta}^{(b)}. Since the diagonal matrix IVBI_{VB} not only ignores all off-diagonal entries in the information matrix I(θ∗)I(\theta^{\ast}) but also inflates the diagonals by an extra additive term Is(θ∗)I_{s}(\theta^{\ast}) due to the mean-field approximation on the latent variables, statistical inference based on Q~θ(b)\widetilde{Q}^{(b)}_{\theta} will be erroneous. Fortunately, as the center of Q~θ(b)\widetilde{Q}^{(b)}_{\theta} approximates the weighted MLE θ~(b)\widetilde{\theta}^{(b)}, we may instead conduct inference based on this quantity. Formally, recall that θ~VB(b)=∫Θθ q~θ(b)(θ) \differentialθ\widetilde{\theta}^{(b)}_{VB}=\int_{\Theta}\theta\,\widetilde{q}_{\theta}^{(b)}(\theta)\,\differential\theta is the weighted variational mean of Qθ(b)Q_{\theta}^{(b)} in the bbth replicate of Algorithm 1.

Under the conditions and the high-probability event of Theorem 4, there exists a constant C8′C^{\prime}_{8} such that

This corollary is the weighted version of Corollary 1 that indicates the closeness between the weighted variational mean of Qθ(b)Q_{\theta}^{(b)} and the weighted MLE θ~(b)\widetilde{\theta}^{(b)}, whose conditional distribution given XnX^{n} approximates the sampling distribution of the MLE θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}}.

Under the assumptions of Theorem 4, there exist constants (C9′,C10′,C11′)(C^{\prime}_{9},C^{\prime}_{10},C^{\prime}_{11}) such that for any M≥1M\geq 1, it holds with probability at least 1−C9′M−21-C^{\prime}_{9}M^{-2} that

where Z∼N(0,Id)Z\sim N(0,I_{d}) is the dd-variate standard normal distribution, and the randomness of conditional probability P(⋅ ∣ Xn)P(\cdot\,|\,X^{n}) is on the random weights (W1(b),W2(b),…,Wn(b))(W^{(b)}_{1},W^{(b)}_{2},\ldots,W^{(b)}_{n}).

The first display in Theorem 5 implies that the conditional cdf of n [I(θ∗)]1/2(θ~VB(b)−θ^\mboxMLE )\sqrt{n}\,[I(\theta^{\ast})]^{1/2}\big(\widetilde{\theta}^{(b)}_{VB}-\widehat{\theta}_{\mbox{\tiny MLE}}\,\big) given XnX^{n} uniformly converges to that of N(0,Id)N(0,I_{d}) as n→∞n\to\infty, and the second display implies the uniform convergence of the conditional cdf of θ~VB(b)\widetilde{\theta}^{(b)}_{VB} to that of the marginal posterior distribution Π(⋅ ∣ Xn)\Pi(\cdot\,|\,X^{n}) of θ\theta. As a direct consequence of Theorem 5 and the classical BvM result on the posterior Π(⋅ ∣ Xn)\Pi(\cdot\,|\,X^{n}), we may use sample quantiles of {θ~VB(b)}b=1B\{\widetilde{\theta}^{(b)}_{VB}\}_{b=1}^{B} to construct a credible interval, whose frequentist coverage is at most O(log⁡n/n1/4)\mathcal{O}(\sqrt{\log n}/{n^{1/4}}) away from its nominal level for sufficiently large BB.

Numerical study

In this section, we provide two numerical examples, the Gaussian mixture model and the Bayesian linear regression, to evaluate the performance of the variational weighted likelihood Bootstrap for credible interval constructions. We will compare four types of credible intervals with level α=95%\alpha=95\%. The first interval is based on the sample quantiles of the draws from the Gibbs sampler for sampling from the posterior Πn\Pi_{n}. The second interval is based on the quantile of the mean-field variational approximation Q^θ\widehat{Q}_{\theta}. The third interval is based on the sample quantile of the draws {θ~VB(b)}b=1B\{\widetilde{\theta}_{VB}^{(b)}\}_{b=1}^{B} from our VWLB procedure (Algorithm 1). The last interval is the usual bootstrap interval based on the sample quantile of {2θ~VB(b)−θ^VB}b=1B\{2\widetilde{\theta}_{VB}^{(b)}-\widehat{\theta}_{VB}\}_{b=1}^{B}, since by Corollary 1 and Theorem 5, the conditional distribution of n(θ~VB(b)−θ^VB)\sqrt{n}(\widetilde{\theta}_{VB}^{(b)}-\widehat{\theta}_{VB}) given XnX^{n} provides a good approximation to the sampling distribution of n(θ^VB−θ∗)\sqrt{n}(\widehat{\theta}_{VB}-\theta^{\ast}). Note that the last two types of intervals are asymptotically equivalent since the limiting distribution of n(θ^VB−θ∗)\sqrt{n}(\widehat{\theta}_{VB}-\theta^{\ast}) is symmetric.

Gaussian Mixture Model(GMM) is a classical example of latent variable models. We consider the following one-dimensional GMM in this simulation. Assume (X1,X2,…,Xn)(X_{1},X_{2},\ldots,X_{n}) as i.i.d. sample from the data generating model Pθ=∑k=1K1KN(μk,1)P_{\theta}=\sum_{k=1}^{K}\frac{1}{K}N(\mu_{k},1), with K=3K=3, where the parameter is the centers θ=μ=(μ1,…,μK)\theta=\mu=(\mu_{1},\ldots,\mu_{K}). This model has a latent variable representation by associating each XiX_{i} with a latent assignment (variable) cic_{i} that follows the categorical distribution: ci∼Categorical(1/K,…,1/K)c_{i}\sim\text{Categorical}(1/K,\ldots,1/K). Conditioning on cic_{i} and μ\mu, the observation XiX_{i} follows the normal distribution N(ciTμ,1)N(c_{i}^{T}\mu,1). We specify the prior distribution of the parameter μ=(μ1,μ2,μ3)\mu=(\mu_{1},\mu_{2},\mu_{3}) as i.i.d. μk∼N(0,σ2)\mu_{k}\sim N(0,\sigma^{2}) with σ=5\sigma=5. The true parameter μ∗=(−Δ,0,Δ)\mu^{\ast}=(-\Delta,0,\Delta), with Δ\Delta ranging from 00 to 88.

We apply the mean-field approximation that approximates the joint posterior distribution p({ci}i=1n,μ ∣ Xn)p(\{c_{i}\}_{i=1}^{n},\mu\,|\,X^{n}) with a fully factorized distribution qZn=⨂k=1Kqμk⊗⨂i=1nqciq_{Z^{n}}=\bigotimes_{k=1}^{K}q_{\mu_{k}}\otimes\bigotimes_{i=1}^{n}q_{c_{i}}. It turns out that the normal prior of μ\mu is “conjugate” in the sense that the KL minimizer q^Zn=⨂k=1Kq^μk⊗⨂i=1nq^ci\widehat{q}_{Z^{n}}=\bigotimes_{k=1}^{K}\widehat{q}_{\mu_{k}}\otimes\bigotimes_{i=1}^{n}\widehat{q}_{c_{i}} as in the optimization problem (6) must be from the same distribution family: each q^μk\widehat{q}_{\mu_{k}} is a normal distribution, and each q^ci\widehat{q}_{c_{i}} is a categorical distribution. Therefore, we can parametrize them by

for k=1,2,3k=1,2,3 and i=1,…,ni=1,\ldots,n. Solving the infinite-dimensional optimization problem (6) boils down to optimizing the objective function over these parameters {mk,sk}k=13\{m_{k},s_{k}\}_{k=1}^{3} and {(ϕi1,…,ϕiK)}i=1n\{(\phi_{i1},\ldots,\phi_{iK})\}_{i=1}^{n}. Implementation details of the algorithm is provided in Appendix A.1.

We compare the numeric performance of the four credible intervals. In the Gibbs sampler, we take out the first 10,00010,000 iterations as the burn-in, and fetch 500500 samples every 2020 iterations to reduce the auto-correlation. In our VWLB, we set the number of draws to be B=500B=500. Figure 2 reports the averaged coverage probability over three parameters (μ1,μ2,μ3}(\mu_{1},\mu_{2},\mu_{3}\} in each type of intervals, under sample size n=100n=100, 200200, 500500 and 10001000 respectively, and Table 1 reports the credible interval lengths under Δ∈{0,1,3,5}\Delta\in\{0,1,3,5\} and n=500n=500 (clusters 11 and 33 are symmetric, so we only report clusters 11 and 22). In Appendix A.1, we provide more details about the individual coverage probability for each of the three normal centers, and the respectively estimated posterior density curves. Interestingly, when Δ\Delta is near 00, all methods except for the VWLB have degeneracy problem, as the three clusters are no longer distinguishable (our regularity Assumptions A2 and A3 are violated). As we can see, the degeneracy window width decreases as the sample size grows. In the good region where the cluster gap Δ\Delta is sufficiently large so that the normal components are statistically distinguishable and our theory applies, the two credible intervals based on VWLB tends to attain the nominal 95%95\% level as the Gibbs sampler. Moreover, the lengths of the credible intervals based on Gibbs and VWLB are similar. In contrast, the credible intervals directly constructed from the mean-field approximation Q^θ\widehat{Q}_{\theta} are shorter than those from the Gibbs sampling, and tend to under-estimate the uncertainty until the gap Δ\Delta exceeds 5 where the three normal components become nearly disjoint across all sample sizes.

2 Bayesian Linear Regression

In this example we consider the Bayesian linear regression of the following form:

where δa\delta_{a} denotes the point mass measure at point aa. The prior for γj\gamma_{j}’s is specified as i.i.d. Bernoulli(ξ)(\xi), where ξ\xi follows the Beta prior distribution as Beta(a0,b0)(a_{0},b_{0}), and the prior for the noise variance σ2\sigma^{2} is the inverse Gamma distribution as IG(ν/2,νλ/2)(\nu/2,\nu\lambda/2). In our simulation, we take v1=2v_{1}=2, a0=1a_{0}=1, b0=1b_{0}=1, ν=0.002\nu=0.002 and λ=1\lambda=1 for the hyperparameters. In this example, there is no latent variable and the parameter is θ=({(γj,βj)}j=1p,σ2)\theta=(\{(\gamma_{j},\beta_{j})\}_{j=1}^{p},\sigma^{2}).

We apply the following block mean-field approximation for approximating the joint posterior distribution p({(γj,βj)}j=1p,σ2 ∣ Yn)p(\{(\gamma_{j},\beta_{j})\}_{j=1}^{p},\sigma^{2}\,|\,Y^{n}) using the blockwise-factorized family qθ=⨂j=1pqγj,βj⊗qσ2q_{\theta}=\bigotimes_{j=1}^{p}q_{\gamma_{j},\beta_{j}}\otimes q_{\sigma^{2}}. It again turns out that the point mass mixture priors on β\beta and inverse gamma prior on σ\sigma is the “conjugate” prior in the sense that in the KL minimizer q^θ=⨂j=1pq^γj,βj⊗q^σ2\widehat{q}_{\theta}=\bigotimes_{j=1}^{p}\widehat{q}_{\gamma_{j},\beta_{j}}\otimes\widehat{q}_{\sigma^{2}}, each q^γj,βj\widehat{q}_{\gamma_{j},\beta_{j}} is a point mass mixture and q^σ2\widehat{q}_{\sigma^{2}} is an inverse Gamma. Therefore, we can parametrize them by

for j=1,…,pj=1,\ldots,p. Therefore, finding Q^θ\widehat{Q}_{\theta} amounts to optimizing the objective function (6) over these parameters {ϕj,μj,σj2)}j=1p\{\phi_{j},\mu_{j},\sigma_{j}^{2})\}_{j=1}^{p} and {c,d}\{c,d\} via the coordinate descent algorithm. Implementation details of the algorithm is provided in Appendix A.2, where we have adopted a slightly different but more efficient algorithm .

We generate the data in our simulation as follows. The number of observations is n=1,000n=1,000 and number of covariates p=10p=10, with ground truth parameter β∗=(2,3,2,4,1,2,1,0,0,2)T\beta^{\ast}=(2,3,2,4,1,2,1,0,0,2)^{T}. We generate XX conforming to an AR(1) process associated with a unit variance white noise process as below: for each i=1,…,ni=1,\ldots,n,

where ρ∈[0,1)\rho\in[0,1) is the auto-correlation, and each XijX_{ij} has the same marginal distribution as N(0,(1−ρ2)−1)N(0,(1-\rho^{2})^{-1}). In the simulation, we consider different settings of the auto-correlation as ρ=0,0.05,…,0.95\rho=0,0.05,\ldots,0.95. We draw B=1000B=1000 samples from the Gibbs sampler and the VWLB sampler (Algorithm 1). When evaluating four credible intervals, we compute the coverage probability based on 1,0001,000 replicates for each setting. Figure 4 reports the trends of coverage probabilities for two coefficients β1\beta_{1} and β4\beta_{4} using the four aforementioned types of credible intervals.

As we can expect, the coverage probabilities of the credible intervals based on the mean-field approximation Q^θ\widehat{Q}_{\theta} rapidly fall below the nominal level 95%95\% when the auto-correlation is large, as Q^θ\widehat{Q}_{\theta} completely ignores the (high) correlations among {βj}j=1p\{\beta_{j}\}_{j=1}^{p} in the joint posterior distribution Πn\Pi_{n}. In comparison, the rest three methods exhibit similar patterns and nearly attain the nominal level (horizontal dotted line) across all ρ\rho values. We also report the lengths of the intervals reflecting the estimated uncertainty magnitudes in Table 2.

As we can infer from this table, the degree of uncertainty underestimation in the mean-field approximation Q^θ\widehat{Q}_{\theta} increases as the correlation among {βj}j=1p\{\beta_{j}\}_{j=1}^{p} in their joint posterior increases, as the posterior covariance matrix of the regression coefficient vector β\beta is approximately proportional to the auto-covariance matrix of the AR(1) process with auto-correlation ρ\rho. For example, when ρ=0\rho=0, there is no visible uncertainty underestimation, while when ρ=0.95\rho=0.95, the variational standard deviation of β4\beta_{4} reduces to roughly one quarter of the true (marginal) posterior standard deviation. In comparison, the lengths from Gibbs sampler and our VWLB sampler are always close.

Proofs of the main results

In this section, we provide a selective proofs of the main results in the paper, and leave the rest and some technique results to the supplement. To simplify the presentation, we use letter CC to denote a generic constant whose value may change from one line to another throughout the proof.

Before showing that the variational approximation Q^θ\widehat{Q}_{\theta} has the desired sub-Gaussian type tail bound, we first show that the marginal posterior distribution Πn\Pi_{n} of θ\theta has a similar type bound. In fact, Assumption A2 implies Eθ∗log⁡p(X ∣ θ∗)p(X ∣ θ)≤C∥θ−θ∗∥2E_{\theta^{\ast}}\log\frac{p(X\,|\,\theta^{\ast})}{p(X\,|\,\theta)}\leq C\|\theta-\theta^{\ast}\|^{2} and Eθ∗[log⁡p(X ∣ θ∗)p(X ∣ θ)]2≤C∥θ−θ∗∥2E_{\theta^{\ast}}\big[\log\frac{p(X\,|\,\theta^{\ast})}{p(X\,|\,\theta)}\big]^{2}\leq C\|\theta-\theta^{\ast}\|^{2}. Therefore, we can apply Theorem 5.1 in to obtain that for any M≥1M\geq 1, it holds with probability at least 1−CM−21-CM^{-2} that the posterior Πn\Pi_{n} of θ\theta satisfies

where we slightly strengthen their result by providing the explicit posterior tail bound and by extending it from a single ε=Mεn\varepsilon=M\varepsilon_{n} to all ε≥Mεn\varepsilon\geq M\varepsilon_{n} simultaneously, due to the same argument as the proof of equation (6.10) in .

We will use the optimality of Q^=Q^Zn=Q^θ⊗Q^Sn\widehat{Q}=\widehat{Q}_{Z^{n}}=\widehat{Q}_{\theta}\otimes\widehat{Q}_{S^{n}} for optimization problem (6) to prove the desired result. Let Q∣AQ|_{A} denote the restriction of a probability measure QQ onto a set A⊂Θ×SnA\subset\Theta\times\mathcal{S}^{n}, that is, Q∣A(B)=Q(A∩B)/Q(A)Q|_{A}(B)=Q(A\cap B)/Q(A) for all B⊂Θ×SnB\subset\Theta\times\mathcal{S}^{n}. For a fixed ε≥Mεn\varepsilon\geq M\varepsilon_{n} and each j=1,2,…,dj=1,2,\ldots,d, we construct a sequence Q={Qλ†: λ∈}\mathcal{Q}=\{Q^{\dagger}_{\lambda}:\,\lambda\in\} of distributions as

where An,j={θ: ∣θj−θj∗∣≥Dε}×SnA_{n,j}=\{\theta:\,|\theta_{j}-\theta^{\ast}_{j}|\geq D\varepsilon\}\times\mathcal{S}^{n} for some sufficiently large constant D≥CD\geq C. It is easy to verify that Qλ†Q^{\dagger}_{\lambda} is a valid distribution belonging to the mean-field family Γ\Gamma for any λ∈\lambda\in. Let λ^=Q^(An,j)\widehat{\lambda}=\widehat{Q}(A_{n,j}), so that Q^=Qλ^†\widehat{Q}=Q^{\dagger}_{\widehat{\lambda}}. Due to the optimality of Q^\widehat{Q} for minimizing D(Q ∣∣ P(⋅ ∣ Xn))D\big(Q\,||\,P(\cdot\,|\,X^{n})\big) when restricting to the smaller family Q\mathcal{Q}, we obtain λ^=argmin λ∈D(Qλ† ∣∣ P(⋅ ∣ Xn))\widehat{\lambda}=\mathop{\rm argmin~}_{\lambda\in}D\big(Q^{\dagger}_{\lambda}\,||\,P(\cdot\,|\,X^{n})\big), where we can express

where the second equality is due to mutual orthogonality of Q^∣An,j\widehat{Q}|_{A_{n,j}} and Q^∣An,jc\widehat{Q}|_{A_{n,j}^{c}}. Due to a similar decomposition P(\differentialZn ∣ Xn)=P∣An,j(\differentialZn ∣ Xn) P(An,j ∣ Xn)+P∣An,jc(\differentialZn ∣ Xn) P(An,jc ∣ Xn)P(\differential Z^{n}\,|\,X^{n})=P|_{A_{n,j}}(\differential Z^{n}\,|\,X^{n})\,P(A_{n,j}\,|\,X^{n})+P|_{A_{n,j}^{c}}(\differential Z^{n}\,|\,X^{n})\,P(A_{n,j}^{c}\,|\,X^{n}) for P(\differentialZ ∣ Xn)P(\differential Z\,|\,X^{n}), the preceding display can be further decomposed into

where βn=P(An,j ∣ Xn)=Πn(∣θj−θj∗∣≥Dε)\beta_{n}=P(A_{n,j}\,|\,X^{n})=\Pi_{n}(|\theta_{j}-\theta^{\ast}_{j}|\geq D\varepsilon), Ber(λ)\text{Ber}(\lambda) denotes a Bernoulli distribution with success probability λ\lambda, and two constants (dn1,dn2)(d_{n1},d_{n2}) independent of λ\lambda are

Since λ^\widehat{\lambda} minimizes D(Qλ† ∥ P(⋅ ∣ Xn))D\big(Q_{\lambda}^{\dagger}\,\|\,P(\cdot\,|\,X^{n})\big), by setting the derivative of (24) as a function of λ\lambda to be zero, we obtain

where we have used the fact that dn1≥0d_{n1}\geq 0 in the last step. On the other hand, from the fact that (24) is equal to D(Qλ† ∥ P(⋅ ∣ Xn))D\big(Q_{\lambda}^{\dagger}\,\|\,P(\cdot\,|\,X^{n})\big) at λ=λ^\lambda=\widehat{\lambda} and the non-negativeness of the three terms therein, we obtain D(Q^ ∣∣ P(⋅ ∣ Xn))≥(1−λ^) dn2+D(Ber(λ^) ∥ Ber(βn))D\big(\widehat{Q}\,||\,P(\cdot\,|\,X^{n})\big)\geq(1-\widehat{\lambda})\,d_{n2}+D\big(\text{Ber}(\widehat{\lambda})\,\|\,\text{Ber}(\beta_{n})\big). Combining this with the preceding display, we can reach

where we have used inequality (23) so that βn≤Πn(∥θ−θ∗∥≥Dε)≤e−CD2nε2≤n−CD2≤1/2\beta_{n}\leq\Pi_{n}(\|\theta-\theta^{\ast}\|\geq D\varepsilon)\leq e^{-CD^{2}n\varepsilon^{2}}\leq n^{-CD^{2}}\leq 1/2 for a sufficiently large DD.

Now we invoke the following lemma for bounding D(Q^ ∥ Πn)D\big(\widehat{Q}\,\|\,\Pi_{n}) from above. Its proof is deferred to Appendix B.9 in the supplement.

Under Assumptions A1, A2 and A3, it holds with probability at least 1−CM−21-CM^{-2} that

Using this lemma, the second display in inequality (25), the bound in inequality (23) on βn\beta_{n}, and the fact that λlog⁡λ+(1−λ)log⁡(1−λ)≥−log⁡2\lambda\log\lambda+(1-\lambda)\log(1-\lambda)\geq-\log 2 for any λ∈\lambda\in, we can obtain that λ^≤C/D2≤1/2\widehat{\lambda}\leq C/D^{2}\leq 1/2 by choosing a sufficiently large DD. Then a combination of the same Lemma 4, the inequality (23) on βn\beta_{n}, and the first display in inequality (25) on λ^\widehat{\lambda} implies

for a sufficiently large constant DD, which yields the claimed result on the tail probability of Q^θ\widehat{Q}_{\theta} via a union bound over j=1,…,dj=1,\ldots,d (since d−1/2∥θ−θ∗∥≤max⁡j∣θj−θj∗∣d^{-1/2}\|\theta-\theta^{\ast}\|\leq\max_{j}|\theta_{j}-\theta_{j}^{\ast}|).

2 Proof of Theorem 1

We focus on illustrating the key proof idea of Theorem 1 in this subsection, and leave the proofs of technical lemmas to the appendix. In addition, the proof of Theorem 4 (weighted version of Theorem 1) will follow the same strategy, and details are also deferred to Appendix B.6.

One main difficulty of the proof lies in the fact that the KL divergence does not satisfy the triangle inequality (unless the approximate family is convex, which is not true in the mean-field case), when specialized to our problem, taking the form as

where recall that QVB∗Q^{\ast}_{VB} shares the same center θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} as N(θ^\mboxMLE, [nIc(θ∗)]−1)N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1}), but the precision matrix (inverse of covariance matrix) of the former is the diagonal part of the latter. This triangle inequality, if true, would imply the desired bound on D(Q^θ ∣∣ QVB∗)D(\widehat{Q}_{\theta}\,||\,Q^{\ast}_{VB}). In fact, according to Lemma 5 below, QVB∗Q^{\ast}_{VB} minimizes D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1)D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1}\big) over all QθQ_{\theta} within the mean-field family (QθQ_{\theta} factorizes into ⨂j=1dQθj\bigotimes_{j=1}^{d}Q_{\theta_{j}}). Moreover, the variational optimum Q^θ\widehat{Q}_{\theta} also approximately minimizes this divergence since according to Lemma 6, the KL divergence D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1))D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1})\big) is, for all QθQ_{\theta} with a similar sub-Gaussian tail as in Lemma 2, close to the “profile divergence” defined in Lemma 1, for which Q^θ\widehat{Q}_{\theta} is the minimizer since by definition (Q^θ,Q^Sn)(\widehat{Q}_{\theta},\widehat{Q}_{S^{n}}) jointly minimizes the variational objective function (7). In other words, the preceding triangle inequality reveals the local strongly convexity structure of the profile variational objective function (after profiling out QSnQ_{S^{n}}) around the populational level minimizer QVB∗Q^{\ast}_{VB}. Unfortunately, such a triangle inequality for KL divergence is not true in general. Therefore, our first step of the proof is to establish a similar “triangle inequality” restricted on the mean-field family with respect to the KL-divergence around the populational level minimizer QVB∗Q^{\ast}_{VB}. After that, we will formalize the above intuition that Q^θ\widehat{Q}_{\theta} effectively minimizes D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1))D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1})\big).

Step one: In this step, we build a “triangle inequality” for the KL-divergence restricting to the mean-field family. We will repeatedly use the following decomposition of the KL-divergence D(Q ∣∣ P)D(Q\,||\,P) when the first probability measure QQ belongs to the mean-field family and the second probability measure PP is a normal distribution. Here we use the notation μQθ\mu_{Q_{\theta}} to denote the expectation of any probability measure QQ over a space Θ\Theta, and for any vector u∈Θu\in\Theta, use QuQ_{u} to denote the translation of QQ whose expectation is uu, that is, Q(A+μQθ)=Q(u)(A+u)Q(A+\mu_{Q_{\theta}})=Q_{(u)}(A+u) for any measurable set A⊂ΘA\subset\Theta. Let λmin⁡(Γ)\lambda_{\min}(\Gamma) denote the smallest eigenvalue of a positive definite matrix Γ\Gamma.

Our proof based on direct calculation is provided in Appendix B.10. As a direct consequence, the first identity in the lemma implies that Q∗Q^{\ast} minimizes D(Q ∣∣ N(μ, Γ−1))D\big(Q\,||\,N(\mu,\,\Gamma^{-1})\big) over all QQ within the mean-field family. When the covariance matrix Γ\Gamma is a multiple of the identity matrix, the second inequality in the lemma has leading factor 11 and becomes the triangle inequality for the KL divergence at Q∗Q^{\ast}. We will apply this result with Q∗Q^{\ast} as QVB∗Q^{\ast}_{VB} and N(μ,Γ−1)=N(θ^\mboxMLE,[nIc(θ∗)]−1)N(\mu,\Gamma^{-1})=N\big(\widehat{\theta}_{\mbox{\tiny MLE}},[nI_{c}(\theta^{\ast})]^{-1}\big) below in the proof.

Step two: In this step, we study the profile divergence defined in Lemma 1. Specifically, let Fn(Qθ)=min⁡QSn=⨂i=1nQSiD(Qθ⊗QSn ∥ P(⋅ ∣ Xn))F_{n}(Q_{\theta})=\min_{Q_{S^{n}}=\bigotimes_{i=1}^{n}Q_{S_{i}}}D\big(Q_{\theta}\otimes Q_{S^{n}}\,\|\,P(\cdot\,|\,X^{n})\big) be the profile divergence. The following lemma provides an approximation formula for Fn(Qθ)F_{n}(Q_{\theta}) for all QθQ_{\theta} with a suitable tail decay property. Here, for any probability measure QQ, we use ΣQ\Sigma_{Q} to denote the dd-by-dd covariance matrix of QQ. In particular, ΣQ\Sigma_{Q} becomes diagonal when QQ belongs to the mean-field family.

Suppose Assumption A3 holds. Then for any M≥1M\geq 1, it holds with probability at least 1−CM−21-CM^{-2} that for any probability measure Q=⨂j=1dQjQ=\bigotimes_{j=1}^{d}Q_{j} satisfying the same sub-Gaussian tail decay as in Lemma 2, we have

where Is(θ∗)I_{s}(\theta^{\ast}) is defined in Assumption A3.

The proof is deferred to Appendix B.11 based on Taylor expansions. When there is no latent variable, Fn(Qθ)F_{n}(Q_{\theta}) is exactly D(Qθ ∣∣ Πn)D\big(Q_{\theta}\,||\,\Pi_{n}\big). This means that the third extra term n2 tr(ΣQθ Is(θ∗))\frac{n}{2}\,\text{tr}\big(\Sigma_{Q_{\theta}}\,I_{s}(\theta^{\ast})\big) is due to the mean-field approximation between the parameter θ\theta and latent variables SnS^{n}. This third term is not negligible since it will contribute to the precision matrix nIVBnI_{VB} of the normal approximation QVB∗Q^{\ast}_{VB} to Q^θ\widehat{Q}_{\theta}, as we will show in the following steps.

Step three: The marginal posterior distribution Πn\Pi_{n} of θ\theta in the approximation of Fn(Qθ)F_{n}(Q_{\theta}) in Lemma 6 is not convenient for our analysis. However, from the classical Bernstein von-Mises theorem, Πn\Pi_{n} should be well approximated by a normal distribution N(θ^\mboxMLE, [nI(θ∗)]−1)N\big(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI(\theta^{\ast})]^{-1}\big). The following lemma shows that for any QθQ_{\theta} with a suitable tail decay property, D(Qθ ∣∣ N(θ^\mboxMLE, [nI(θ∗)]−1))D\big(Q_{\theta}\,||\,N\big(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI(\theta^{\ast})]^{-1}\big)\big) provides a good approximation to D(Qθ ∣∣ Πn)D\big(Q_{\theta}\,||\,\Pi_{n}\big). Note that this lemma only assumes a sub-Gaussian type tail but not the mean-field structure (therefore it implies a KL divergence version of the BvM theorem). Then we may apply the first identity in Lemma 5 to analyze this KL divergence term.

Suppose Assumptions A1 and A2 hold. Then for any M≥1M\geq 1, it holds with probability at least 1−CM−21-CM^{-2} that for any probability measure QθQ_{\theta} satisfying the same sub-Gaussian tail decay as in Lemma 2, we have

where I(θ∗)I(\theta^{\ast}) is the information matrix defined in Assumption A2.

The proof of this lemma is provided in Appendix B.12. In particular, we will apply this lemma with QθQ_{\theta} as Q^θ\widehat{Q}_{\theta} and QVB∗Q^{\ast}_{VB} that both satisfy the sub-Gaussian tail decay property in Lemma 2.

Step four: Let αn=CM3(log⁡n)d+3n\alpha_{n}=\frac{CM^{3}(\log n)^{d+3}}{\sqrt{n}} denote the error upper bound in Lemmas 6 and 7. In this step, we will formalize the intuition that Q^θ\widehat{Q}_{\theta} effectively minimizes D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1))D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1})\big). For any Q=⨂j=1dQjQ=\bigotimes_{j=1}^{d}Q_{j} satisfying the same sub-Gaussian tail decay as in Lemma 2, we have by Lemmas 6 and 7 that

This inequality indicates that Q^θ\widehat{Q}_{\theta} is effectively minimizing the (negative) sum of the second and third terms in it, since Q^θ\widehat{Q}_{\theta} minimizes Fn(Qθ)F_{n}(Q_{\theta}). Next we will relate this approximate objective function with D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1))D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1})\big).

Using equation (44) twice in the proof of Lemma 5 in Appendix B.10 with (μ,Γ)=(θ^\mboxMLE,nIc(θ∗))(\mu,\Gamma)=(\widehat{\theta}_{\mbox{\tiny MLE}},nI_{c}(\theta^{\ast})) and with (μ,Γ)=(θ^\mboxMLE,nI(θ∗))(\mu,\Gamma)=(\widehat{\theta}_{\mbox{\tiny MLE}},nI(\theta^{\ast})), respectively, we obtain

where we have used the fact that ΣQθ\Sigma_{Q_{\theta}} is a diagonal matrix, so that we can express the sum as the trace. Taking the difference between two and using the fact that Ic(θ∗)=I(θ∗)+Is(θ∗)I_{c}(\theta^{\ast})=I(\theta^{\ast})+I_{s}(\theta^{\ast}), we can further obtain by rearranging the terms that

where Rc=12log⁡(∣Ic(θ∗)∣⋅∣I(θ∗)∣−1)R_{c}=\frac{1}{2}\log\big( |I_c(\theta^\ast)|\cdot|I(\theta^\ast)|^{-1}\big) is a constant independent of QθQ_{\theta}. A combination of this identity with inequality (26) indicates that up to a translation, Q^θ\widehat{Q}_{\theta} minimizes D(Qθ ∣∣ N(θ^\mboxMLE, [nIc(θ∗)]−1))D\big(Q_{\theta}\,||\,N(\widehat{\theta}_{\mbox{\tiny MLE}},\,[nI_{c}(\theta^{\ast})]^{-1})\big). Moreover, the first identity in Lemma 5 indicates that the KL-divergence also contains a translation related term (second term) that strictly dominates −n2(μQθ−θ^\mboxMLE)TIs(θ∗) (μQθ−θ^\mboxMLE)-\frac{n}{2}(\mu_{Q_{\theta}}-\widehat{\theta}_{\mbox{\tiny MLE}})^{T}I_{s}(\theta^{\ast})\,(\mu_{Q_{\theta}}-\widehat{\theta}_{\mbox{\tiny MLE}}), so that the center can still be captured by minimizing Fn(Qθ)F_{n}(Q_{\theta}), as we will show in the next step below.

Step five: This is the last step where we will use the optimality of Q^\widehat{Q} to prove the claimed bound. More specifically, by the optimaility of Q^θ\widehat{Q}_{\theta} and the feasibility of QVB∗Q^{\ast}_{VB} for the optimization problem min⁡Qθ=⨂QθjFn(Qθ)\min_{Q_{\theta}=\bigotimes Q_{\theta_{j}}}F_{n}(Q_{\theta}), we obtain

Combining this inequality with (26) and (27) and using the fact that both Q^θ\widehat{Q}_{\theta} (by Lemma 2) and QVB∗Q^{\ast}_{VB} satisfy the sub-Gaussian tail condition therein, we can reach

where we have used the fact that the mean of QVB∗Q^{\ast}_{VB} is θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}}. Now we combine the above with the first identity in Lemma 5 with (μ,Γ)=(θ^\mboxMLE,nIc(θ∗))(\mu,\Gamma)=(\widehat{\theta}_{\mbox{\tiny MLE}},nI_{c}(\theta^{\ast})) so that Q∗=QVB∗Q^{\ast}=Q^{\ast}_{VB} to obtain,

where we have used the nonnegativeness of KL divergence. Since I(θ∗)I(\theta^{\ast}) is positive definite by Assumption A2, we have from the above that for some constant C>0C>0,

Finally, by combining the preceding display, inequality (29) and the second inequality in Lemma 5, we obtain

3 Proof of Corollary 1

The claimed bound is a direct consequence of inequality (30) in the proof of Theorem 1.

References

Appendix A Computational details in the numerical study

Computation details: Using the notation in Section 5.1, the evidence lower bound (ELBO, equation (21)(21) of paper ) has the following explicit form,

where in the second line we have omitted a constant term independent of the variational posterior qZnq_{Z^{n}}. Since QZnQ_{Z^{n}} is parametrized by {(mk,sk2}k=1K\{(m_{k},s_{k}^{2}\}_{k=1}^{K} and {(ϕi1,…,ϕiK)}i=1n\{(\phi_{i1},\ldots,\phi_{iK})\}_{i=1}^{n}, the tt-th step inside the while loop in Algorithm 2 (with unit weights) can be summarized as follows,

where iteration proceeds until L(qZn)L(q_{Z^{n}}) stabilizes. In our VWLB methods, the weighted CAVI algorithm can be updated in a similar fashion, where in the tt-th step, we use the following updates:

Detailed simulation results: We provide more detailed analysis on GMM when n=500n=500, and explain different behaviors between the two credible interval construction schemes based on our VWLB methods. Firgure 5 displays the individual coverage probabilities for each cluster center μk\mu_{k}, k=1,2,3k=1,2,3, of four credible intervals versus the separation gap Δ\Delta. From these results, it appears that the credible intervals based on samplers {θ~VB(b)}b=1B\{\widetilde{\theta}^{(b)}_{VB}\}_{b=1}^{B} directly drawn from VWLB achieve the nominal level even when the model becomes degenerate (Δ→0+\Delta\to 0_{+}), while those based on Gibbs sampler (or true posterior) go from under-covering, to over-covering, and finally become stabilized at the nominal level. In contrast, then other two methods exhibit more drastic under-covering issues at small Δ\Delta values. Figure 6 shows the empirical distributions of the credible intervals centers for μ1\mu_{1} at Δ∈{0,1,3,5}\Delta\in\{0,1,3,5\}, which explains the discrepancy between the two methods based on the VWLB. From this plot, we can see that the second one (VWLB CI2) based on the reverting idea in bootstrap of using quantiles of {2θ~VB(b)−θ^VB}b=1B\{2\widetilde{\theta}_{VB}^{(b)}-\widehat{\theta}_{VB}\}_{b=1}^{B} further suffers from the extra variability due to the variational posterior mean θ^VB\widehat{\theta}_{VB} that causes the bimodal distribution for the interval centers at small Δ\Delta values. In contrast, the first one (VWLB CI) does not use θ^VB\widehat{\theta}_{VB} for correcting the center, and therefore is able to avoid introducing the extra systematic bias in θ^VB\widehat{\theta}_{VB} due to the model degeneracy. Finally, we provide the approximated posterior distribution corresponding to the four types of credible intervals in Figure 7. As we can expect, the mean-field approximation (VB) always underestimates the dispersion of the posterior distribution (which is well-approximated by the Gibbs sampler), especially at small Δ\Delta values. In contrast, the posterior approximations from the two VWLB samplers become close to the true posterior as Δ\Delta exceeds value 11.

A.2 Bayesian linear regression

Computation details: Recall that X=(X1,…,Xp)X=(X_{1},\ldots,X_{p}) is the n×pn\times p design matrix. For each j=1,…,pj=1,\ldots,p, let Rj=Yn−∑j′≠jXj′βj′R_{j}=Y^{n}-\sum_{j^{\prime}\neq j}X_{j^{\prime}}\beta_{j^{\prime}} denote the vector of residuals without the jj-th covariate XjX_{j}. The Gibbs sampler based on the point mass mixture prior for β\beta consists of cycling through sampling from the following full conditionals (⋅ ∣ −\cdot\,|\,- stands for conditioning on the rest parameters): for j=1,2,…,pj=1,2,\ldots,p,

Since β\beta and γ={γj}j=1p\gamma=\{\gamma_{j}\}_{j=1}^{p} are our primary parameters of interest, we adopt the same strategy as in by estimating σ2\sigma^{2} and ξ\xi by their respective maximum a posterior (MAP) estimators, while still using the block mean-field approximation as in (22) on (γ,β)={(γj,βj)}j=1p(\gamma,\beta)=\{(\gamma_{j},\beta_{j})\}_{j=1}^{p} to facilitate fast computation. According to the derivation in , under this setup the evidence lower bound takes the form as

The detailed steps of the coordinate ascent algorithm for optimizing L(qZn)L(q_{Z^{n}}) jointly over qZnq_{Z^{n}} and (σ2,ξ)(\sigma^{2},\xi) can be found in paper . The weighted CAVI Algorithm 2 in our VWLB sampler can proceed in a similar way, where the only difference is in replacing the sum of square (Yn−Xβ)T(Yn−Xβ)(Y^{n}-X\beta)^{T}(Y^{n}-X\beta) by its weighted version (Yn−Xβ)TWn(Yn−Xβ)(Y^{n}-X\beta)^{T}W^{n}(Y^{n}-X\beta) in the above ELBO L(qZn)L(q_{Z^{n}}), where WnW^{n} is the n×nn\times n diagonal matrix whose ii-th diagonal component is Wi(b)W_{i}^{(b)}.

Appendix B Proofs of results in the main paper

In this section, we provide the remaining proofs of the results in the paper.

By explicitly writing out the integral in the KL-divergence, we obtain that for any qZn=qθ⊗qSnq_{Z^{n}}=q_{\theta}\otimes q_{S^{n}},

where recall that Πn\Pi_{n} is the marginal posterior distribution of θ\theta given XnX^{n}. By the definition of the ri(s)r_{i}(s) function in the lemma, we have

By substituting the above into the second term of equation (34), we obtain

A combination of the above with equation (34) leads to the claimed identity.

B.2 Proof of Proposition 1

The proof of this proposition is similar to the proof of Lemma 10 in Appendix C.1 for the unweighted posterior. We just need to point out the difference.

In fact, the approximation bound (47) of Lemma 10 can be rewritten as

An almost same line-by-line derivation can be used to prove

by instead analyzing the integration of the difference between

Return to the current weighted posterior scenario. Similarly, the claimed bound is implied by a weighted version of (35) and (36) as

for k=0,1k=0,1, where θ~(b)\widetilde{\theta}^{(b)} maximizes the log-weighted likelihood l~(b)(θ;Xn)=log⁡[L~(b)(θ; Xn)]\widetilde{l}^{(b)}(\theta;X^{n})=\log[\widetilde{L}^{(b)}(\theta;\,X^{n})\big], and plays the role of the MLE θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} in the unweighted case. The integral over A1A_{1} can be handled by the same way of a local Taylor expansion at θ~(n)\widetilde{\theta}^{(n)}, and the integral over A2A_{2} by using the sub-Gaussian tail bound of Π~n(b)\widetilde{\Pi}_{n}^{(b)} guaranteed by inequality (20) of Theorem 2 for the weighted posterior distribution.

B.3 Proof of Lemma 3

The proof is almost the same as that of Lemma 1 by explicitly writing out the integral in the KL divergence decomposition (16), where the only difference is in keeping track of the weights.

B.4 Proof of Theorem 2

For the first inequality (20), we generalize the contraction result (23) to the weighted posterior via the adapting the proof strategy (for the usual posterior) in . In particular, a key ingredient of our proof is based on an extension of the probability inequality developed in from controlling the likelihood ratio empirical process to controlling the weighted likelihood ratio process, as in Lemma 12. Following the notation of , we let m~n(A)=∫AL~(b)(θ; Xn)/L~(b)(θ0; Xn) \differentialΠ(θ)\widetilde{m}_{n}(A)=\int_{A}\widetilde{L}^{(b)}(\theta;\,X^{n})/\widetilde{L}^{(b)}(\theta_{0};\,X^{n})\,\differential\Pi(\theta) for any measurable set A⊂ΘA\subset\Theta. Then the weighted likelihood posterior (12) can be rewritten as:

where we have used the fact that L~(b)(θ0; Xn)\widetilde{L}^{(b)}(\theta_{0};\,X^{n}) is free of θ\theta. Let An:={θ∈Θ:∥θ−θ∗∥≤C2′ε}A_{n}:=\{\theta\in\Theta:\|\theta-\theta^{\ast}\|\leq C_{2}^{\prime}\varepsilon\}. Then the desired inequality (20) is equivalent to m~n(Anc)m~n(Θ)≤e−C3′nε2\frac{\widetilde{m}_{n}(A_{n}^{c})}{\widetilde{m}_{n}(\Theta)}\leq e^{-C_{3}^{\prime}n\varepsilon^{2}}. We analyze the denominator and numerator separately by using the following two lemmas, whose proofs are deferred to Appendix C.2 and C.3 respectively.

Under Assumptions A2, W, for every δ>0\delta>0 and any C>0C>0, it holds with probability at least 1−2C2nδ21-\frac{2}{C^{2}n\delta^{2}} that

Under Assumptions A2 and W, for any M≥1M\geq 1, it holds with probability at least 1−CM−21-CM^{-2} that

The uniform bound (38) on the weight likelihood ratio immediately implies m~n(Anc)≤exp⁡(−nε2/24)\widetilde{m}_{n}(A_{n}^{c})\leq\exp(-n\varepsilon^2/24). By combining this with the denominator bound (37)(with C=1C=1, and δ=ε/16\delta=\varepsilon/16), we obtain

The second part concerning the sub-Gaussian tail of Q~θ(b)=Q~θ(b)⊗Q~Sn(b)\widetilde{Q}^{(b)}_{\theta}=\widetilde{Q}_{\theta}^{(b)}\otimes\widetilde{Q}_{S^{n}}^{(b)} follows a similar argument as the proof of Lemma 2 in Section 4 by considering for each coordinate index j=1,…,dj=1,\ldots,d the same distribution family indexed by λ∈\lambda\in as

where An,j={θ: ∣θj−θj∗∣≥Dε}×SnA_{n,j}=\{\theta:\,|\theta_{j}-\theta^{\ast}_{j}|\geq D\varepsilon\}\times\mathcal{S}^{n}. In particular, by the optimality, λ~=Q~(b)(An,j)=Q~θ(b)(∣θj−θj∗∣≥Dε)\widetilde{\lambda}=\widetilde{Q}^{(b)}(A_{n,j})=\widetilde{Q}^{(b)}_{\theta}(|\theta_{j}-\theta^{\ast}_{j}|\geq D\varepsilon) minimizes the weighted variational objective function D~(b)(Q~λ† ∣∣ P~(b)(⋅ ∣ Xn))\widetilde{D}^{(b)}\big(\widetilde{Q}_{\lambda}^{\dagger}\,||\,\widetilde{P}^{(b)}(\cdot\,|\,X^{n})\big) defined in (15) as a function of λ\lambda. In addition, we have a similar decomposition as

where β~n=P~(b)(An,j ∣ Xn)≤Π~n(b)(∥θ−θ∗∥≥Dε)\widetilde{\beta}_{n}=\widetilde{P}^{(b)}(A_{n,j}\,|\,X^{n})\leq\widetilde{\Pi}_{n}^{(b)}(\|\theta-\theta^{\ast}\|\geq D\varepsilon), Ber(λ~)\text{Ber}(\widetilde{\lambda}) denotes a Bernoulli distribution with success probability λ~\widetilde{\lambda}, and two constants (dn1,dn2)(d_{n1},d_{n2}) independent of λ~\widetilde{\lambda} are

where for any set A⊂Θ×SnA\subset\Theta\times\mathcal{S}^{n}, p~(b)∣A\widetilde{p}^{(b)}|_{A} (not a valid density function) is defined as

Due to the decomposition (16), each term in the decomposition remains nonnegative. Consequently, the rest steps in the proof of Lemma 2 still apply and it remains to prove a weighted version of Lemma 2 as D~(b)(Q~(b) ∣∣ P~(b)(⋅ ∣ Xn))≤CnMε~n2\widetilde{D}^{(b)}\big(\widetilde{Q}^{(b)}\,||\,\widetilde{P}^{(b)}(\cdot\,|\,X^{n})\big)\leq CnM\widetilde{\varepsilon}_{n}^{2} holds with probability at least 1−CM−21-CM^{-2}. A proof for this again is almost the same as that of Lemma 2 by utilizing Lemma 3, the first inequality (20) Theorem 2 and the fact that the random weights Wi(b)W_{i}^{(b)} has unit mean (when bounding the expectation as in (43)).

B.5 Proof of Theorem 3

We just sketch the proof about the bound on the KL divergence D(Π~n(b) ∣∣ Q~∗(b))D(\widetilde{\Pi}_{n}^{(b)}\,||\,\widetilde{Q}^{\ast(b)}), and the bound on the total variational distance can be proceeded in a similar way (for a proof on the total variational distance in the unweighted case, which is the classical BvM theorem, c.f. Chapter 1.4 of ). In fact, the proof is simply a weighted extension of the proof of Lemma 7 with QθQ_{\theta} chosen as the Π~n(b)\widetilde{\Pi}_{n}^{(b)} (by Theorem 2 it satisfies the sub-Gaussian tail condition therein) and Πn\Pi_{n} being replaced with the weighted posterior Π~n(b)\widetilde{\Pi}_{n}^{(b)}. The only difference in the proof is the Taylor expansion as (51) and (48), which in the weighted case they should be expanded at the weighed MLE θ~(b)\widetilde{\theta}^{(b)} rather than the MLE θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}}, as now θ~(b)\widetilde{\theta}^{(b)} maximizes the log-weighted likelihood function l~(b)(θ; Xn)=log⁡L~(b)(θ; Xn)\widetilde{l}^{(b)}(\theta;\,X^{n})=\log\widetilde{L}^{(b)}(\theta;\,X^{n}), whose gradient vanishes at θ~(b)\widetilde{\theta}^{(b)}, and the rest of the proofs are the same.

B.6 Proof of Theorem 4

With Theorem 2, the proof of this theorem is again similar to that of Theorem 1 by adapting to the weighted case. We just need to point out the difference. Lemma 5 in step one remains unchanged. In step two, based on almost same lines of the proof (using the fact that the random weights have unit expectation in the last step of applying Markov inequality), the conclusion of Lemma 6 becomes

where F~n(b)(Qθ)\widetilde{F}_{n}^{(b)}(Q_{\theta}) denotes the weighted “profile divergence” defined as as the right hand side of the identity in Lemma 3, and the exponent 33 of the log⁡n\log n term is due to the fact that ε~n\widetilde{\varepsilon}_{n} in Theorem 2 is up to a constant log⁡n\sqrt{\log n} times larger than εn\varepsilon_{n} in Lemma 2. In step three, the approximation result in Lemma 7 becomes

since now θ~(b)\widetilde{\theta}^{(b)} plays the role of the MLE θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} in the unweighted posterior case. Its proof is also almost the same as the proof of Lemma 7 plus the proof of Lemma 10 (a similar situation as the proof of Lemma B.5). Steps four and five remain valid for the weighted case as well, and we omit the details.

B.7 Proof of Corollary 2

The claimed bound is due to Theorem 4 and the last identity in the proof of Lemma 5.

B.8 Proof of Theorem 5

We only need to prove the first inequality, since the second can be obtained by combining the first with the classical BvM theorem under the total variation metric (c.f. Chapter 1.4 of ). An asymptotic version of the first inequality was proved in (Theorem 2), we provide a proof for our non-asymptotic version, which proceeds as follows.

Let s(θ;Xn):=∇l(θ; Xn)=∑i=1n∇log⁡p(Xi ∣ θ)s(\theta;X^{n}):=\nabla l(\theta;\,X^{n})=\sum_{i=1}^{n}\nabla\log p(X_{i}\,|\,\theta) be the (unweighted) score function. By the optimality of the MLE θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}}, we have s(θ^\mboxMLE;Xn)=0s(\widehat{\theta}_{\mbox{\tiny MLE}};X^{n})=0. The classical analysis of the MLE (for example, Chapter 1.4 of ) implies that under Assumption A2

where the remainder term RnR_{n} satisfies P(∣Rn∣≥C0M(log⁡n)3/2/n)≤1−CM−2P(|R_{n}|\geq C_{0}M(\log n)^{3/2}/\sqrt{n})\leq 1-CM^{-2} for any M≥1M\geq 1. A similar argument based on Taylor expansion can be applied to the weighted MLE, yielding that under Assumptions A2 and W,

where s~(θ;Xn):=∇l~(b)(θ; Xn)=∑i=1nWi(b)∇log⁡p(Xi ∣ θ)\widetilde{s}(\theta;X^{n}):=\nabla\widetilde{l}^{(b)}(\theta;\,X^{n})=\sum_{i=1}^{n}W_{i}^{(b)}\nabla\log p(X_{i}\,|\,\theta) is the weighted score function and R~n\widetilde{R}_{n} is a remainder term also satisfies P(∣R~n∣≥C0M(log⁡n)3/2/n)≤1−CM−2P(|\widetilde{R}_{n}|\geq C_{0}M(\log n)^{3/2}/\sqrt{n})\leq 1-CM^{-2} for any M≥1M\geq 1. By taking the difference between these two, we reach

By combining this with Corollary 2, we can get

where \mboxCovW[ζn ∣ Xn]\mbox{Cov}_{W}[\zeta_{n}\,|\,X^{n}] denotes the conditional covariance matrix of ζn\zeta_{n} given XnX^{n}, and we have used the fact that the matrix Frobenius norm is at most d\sqrt{d} times larger than the matrix operator norm (the constant CC may depend on the dimension dd). Therefore, under this high probability event, \mboxCovW[ζn ∣ Xn]\mbox{Cov}_{W}[\zeta_{n}\,|\,X^{n}] is non-singular. In the rest of the proof we always work under this event. By combining (41), (42), Assumption A2 and a Markov inequality for the sum ζn\zeta_{n}, we can get that

holds with probability at least 1−CM−21-CM^{-2}. This inequality can also be written as (recall that the notation a≤ba\leq b for two vectors aa and bb means element-wise less than or equal to)

where Z∼N(0,Id)Z\sim N(0,I_{d}). Note that by applying Markov inequality and Assumption A2, the right hand side is upper bounded by CM/nCM/\sqrt{n} with probability at least 1−CM−21-CM^{-2}. Since the pdf of Z∼N(0,Id)Z\sim N(0,I_{d}) is uniformly bounded from above, we have

Finally, by combining the last three displays and the fact that P(Z≤u+ted)P(Z\leq u+te_{d}) is monotonically increasing in t>0t>0, we obtain that

holds with probability at least 1−CM−21-CM^{-2}, which completes the proof.

B.9 Proof of Lemma 4

To provide the claimed bound, we will use the optimality of Q^θ\widehat{Q}_{\theta} for minimzing the profile divergence Fn(Qθ)F_{n}(Q_{\theta}) defined in step two in the proof of Theorem 1 in Section 6.2, and compare it with \macc@depth\macc@set@skewchar\macc@nested@a111Qθ\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}, the minimizer of the KL-divergence to the marginal posterior Πn\Pi_{n} in the mean-field family, or

More specifically, by the definition of FnF_{n} and the optimality of Q^θ\widehat{Q}_{\theta}, we have

Step one: First, we show that \macc@depth\macc@set@skewchar\macc@nested@a111Qθ\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta} satisfies the sub-Gaussian tail decay as in Lemma 2, so that we can apply Lemma 6 to bound Fn(\macc@depth\macc@set@skewchar\macc@nested@a111Qθ)F_{n}(\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}) in step two below. In fact, the same variational argument as in the proof of Lemma 2 in Section 6.1 leads to (by using the optimality of Qˉθ\bar{Q}_{\theta} as the minimizer of D(Qθ ∣∣ Πn)D\big(Q_{\theta}\,||\,\Pi_{n}\big))

where recall that βn=Πn(∥θ−θ∗∥≥Dε)≤e−CD2nε2≤1/2\beta_{n}=\Pi_{n}(\|\theta-\theta^{\ast}\|\geq D\varepsilon)\leq e^{-CD^{2}n\varepsilon^{2}}\leq 1/2. Similar to the argument in the last paragraph in Section 6.1, in order to prove the sub-Gaussian tail bound as \macc@depth\macc@set@skewchar\macc@nested@a111Qθ(∥θ−θ∗∥≥Dε)≤exp⁡(−CD2nε2/2)\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}(\|\theta-\theta^{\ast}\|\geq D\varepsilon)\leq\exp\big(-CD^2n\varepsilon^2/2\big), it suffices to show that D(\macc@depth\macc@set@skewchar\macc@nested@a111Qθ ∥ Πn)≤CnM2εn2D\big(\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}\,\|\,\Pi_{n})\leq CnM^{2}\varepsilon_{n}^{2}. The rest of step one devotes to the proof of this bound. We make use of the following identity for any QθQ_{\theta} from ,

It is straightforward to see that Qθ⋄Q^{\diamond}_{\theta} belongs to the mean-field family. Due to the continuity of log⁡π(θ)\log\pi(\theta) around θ∗\theta^{\ast} by Assumption A1, we have

By Assumption A2 on the derivatives of log-likelihood function, we have

where we have used the conditional independence of {Xi}i=1n\{X_{i}\}_{i=1}^{n} given θ\theta and the last step is due to the inequality ∥θ−θ∗∥≤d ∥θ−θ∗∥∞\|\theta-\theta^{\ast}\|\leq\sqrt{d}\,\|\theta-\theta^{\ast}\|_{\infty}. Putting pieces together, we can reach

Finally, an application of the Markov inequality implies the following to hold with probability at least 1−CM−21-CM^{-2},

which finished the proof of the sub-Gaussian tail bound for \macc@depth\macc@set@skewchar\macc@nested@a111Qθ\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}.

Step two: Due to the sub-Gaussian tail bound of \macc@depth\macc@set@skewchar\macc@nested@a111Qθ\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta} and the preceding display, we may apply Lemma 6 to conclude that

where the last step is due to the bound as E\macc@depth\macc@set@skewchar\macc@nested@a111Qθ[∥θ−θ∗∥2]≤CM2εn2E_{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{Q}_{\theta}}\big[\|\theta-\theta^{\ast}\|^{2}\big]\leq CM^{2}\varepsilon_{n}^{2} (due to the sub-Gaussian tail, c.f. inequality (45) with k=2k=2 for a proof) for the middle term.

B.10 Proof of Lemma 5

Without loss of generality, we may assume QQ to admit a density function, denoted by qq, with respect to the dd-dim Lebesgue measure (otherwise both sides are equal to infinity and the claimed results hold). By direct calculation and using the pdf of a multivariate normal distribution, we have

By substituting QQ with Q∗=N(μ,(diag(Γ))−1)Q^{\ast}=N\big(\mu,(\text{diag}(\Gamma))^{-1}\big) in this display, we obtain

Taking the difference between the two preceding displays and using the translation invariance of ∫qj(θ)log⁡qj(θj) \differentialθj\int q_{j}(\theta)\log q_{j}(\theta_{j})\,\differential\theta_{j} for each jj, we can reach

where the last step is due to an application of (44) to each D(Q(μj),j ∣∣ N(μj,Γjj−1))D\big(Q_{(\mu_{j}),j}\,||\,N(\mu_{j},\Gamma_{jj}^{-1})\big) (they have the same expectation μj\mu_{j}). This completes the proof of the first identity.

Now we apply the first identity in the lemma with Γ\Gamma being diag(Γ)\text{diag}(\Gamma) and Q∗=N(μ,diag(Γ))Q^{\ast}=N(\mu,\text{diag}(\Gamma)) so that the second KL-divergence term becomes zero,

The second desired inequality follows by comparing this identity with the first identity in the lemma and using the fact that KL divergence is nonnegative.

B.11 Proof of Lemma 6

For any fixed QθQ_{\theta}, due to the sub-Gaussian tail bound Qθ(∥θ−θ∗∥≥Cε)≤e−Cnε2Q_{\theta}(\|\theta-\theta^{\ast}\|\geq C\varepsilon)\leq e^{-Cn\varepsilon^{2}} for all ε≥Mεn\varepsilon\geq M\varepsilon_{n}, we can apply the identity ∫0∞x P(\differentialx)=∫0∞P(X≥x)\differentialx\int_{0}^{\infty}x\,P(\differential x)=\int_{0}^{\infty}P(X\geq x)\differential x for any probability measure over [0,∞)[0,\infty) to bound the kkth (k≥1k\geq 1) order moment of ∥θ−θ∗∥\|\theta-\theta^{\ast}\| as

by choosing a sufficiently large constant DD. We will repeatedly use this moment bound for k=1,2,3k=1,2,3 throughout the proof.

The proof of this result is based on tedious calculations via Taylor expansions. To simplify the presentation of the proof, we assume SiS_{i} to be discrete so that all integrals over S\mathcal{S} reduce to summations, and θ\theta is one-dimensional. According to the definition of ri(s)r_{i}(s), we can rewrite

where recall that μQθ\mu_{Q_{\theta}} denotes the expectation of a probability measure QQ. In the following we consider d=1d=1 case for ease of notation, while the proof can be generalized to other fixed dimensions trivially. We use the shorthand pis(θ)p_{is}(\theta) to denote p(si=s ∣ Xi,θ)p(s_{i}=s\,|\,X_{i},\theta) for i∈[n]i\in[n] and s∈Ss\in\mathcal{S}, lis(θ)l_{is}(\theta) to denote log⁡pis(θ)\log p_{is}(\theta), and (lis′(θ),lis′′(θ),lis(3)(θ))\big(l^{\prime}_{is}(\theta),l^{\prime\prime}_{is}(\theta),l^{(3)}_{is}(\theta)\big) to denote its derivatives up to order three.

By definition −∑s∈Spis(θ∗) lis′′(θ∗)-\sum_{s\in\mathcal{S}}p_{is}(\theta^{\ast})\,l^{\prime\prime}_{is}(\theta^{\ast}) has expectation Is(θ∗)I_{s}(\theta^{\ast}). Therefore, by using the Taylor expansion, Assumption A3, the moment bound (45) with k=2,3k=2,3 and a Markov inequality for sum of i.i.d. random variables, we obtain that with probability at least 1−CM−21-CM^{-2} that

Therefore, it remains to show ∣Rsn∣≤CM3(log⁡n)3/2n|R_{sn}|\leq\frac{CM^{3}(\log n)^{3/2}}{\sqrt{n}}.

We apply the Taylor expansion up to the third order to lis(θ)l_{is}(\theta) at θ=μQθ\theta=\mu_{Q_{\theta}} in the preceding display,

where θ†\theta^{\dagger} is some point between θ\theta and μQθ\mu_{Q_{\theta}}, RiR_{i} is a remainder term, and recall that mQθ,3=EQθ∥θ−θ∗∥3m_{Q_{\theta},3}=E_{Q_{\theta}}\|\theta-\theta^{\ast}\|^{3}. Here, the last step is due to the fact that μQθ\mu_{Q_{\theta}} is the expectation of QθQ_{\theta} so that the integral of the first linear term in the second line vanishes. Due to Assumption A3, the remainder term satisfies ∣Ri∣≤M(s,Xi)/6|R_{i}|\leq M(s,X_{i})/6. As a consequence, we obtain

Now we apply inequalities ∣log⁡(1+δ)∣≤∣δ∣+2δ2|\log(1 + \delta)|\leq|\delta|+2\delta^{2}, ∣eδ−1∣≤∣δ∣+2δ2|e^{\delta}-1|\leq|\delta|+2\delta^{2} for ∣δ∣∈[0,1/2]|\delta|\in[0,1/2], and the identity ∑s∈Spis(s)=1\sum_{s\in\mathcal{S}}p_{is}(s)=1 for any i∈[n]i\in[n] to obtain

Using the last bound, we can now invoke the moment bound (45) with k=2,3k=2,3 again and a Markov inequality on ∑i∣Ri∣≤∑M(s,Xi)/6\sum_{i}|R_{i}|\leq\sum M(s,X_{i})/6 to obtain that with probability at least 1−CM−21-CM^{-2}, ∣Rsn∣≤CM3(log⁡n)3/2n|R_{sn}|\leq\frac{CM^{3}(\log n)^{3/2}}{\sqrt{n}}. This completes the proof.

B.12 Proof of Lemma 7

In the proof we omit the ∥θ−θ∗∥L\|\theta-\theta^{\ast}\|^{L} terms in Assumption A1 and A2 for ease of read, but the proof can be generalized trivially. Use l(θ: Xn)=p(Xn ∣ θ)l(\theta:\,X^{n})=p(X^{n}\,|\,\theta) to denote the log-likelihood function, and ϕn\phi_{n} to denote the density function of N(θ^\mboxMLE,[nI(θ∗)]−1)N\big(\widehat{\theta}_{\mbox{\tiny MLE}},[nI(\theta^{\ast})]^{-1}\big). Then the posterior density function of θ\theta can be expressed as

where we have divided both the numerator and denominator by exp⁡{l(θ^\mboxMLE;Xn)}\exp\{l(\widehat{\theta}_{\mbox{\tiny MLE}};X^{n})\big\} for technical convenience. We invoke the following lemma that provides an approximation to the integral in the denominator. A proof is provided in Appendix C.1.

Under Assumption A1 and A2, for any M≥1M\geq 1, the denominator in equation (46) satisfies

Denote the quantity on the right hand side of (47) by αn∈(0,1/2]\alpha_{n}\in(0,1/2]. Now we can express the log ratio between πn\pi_{n} and ϕn\phi_{n} as

holds with probability at least 1−CM−21-CM^{-2}.

For the region KncK_{n}^{c}, we have by Assumption A1 and A2, and the expression of log⁡(πn/ϕn)(θ)\log\big(\pi_n/\phi_n\big)(\theta) that

Now since by the condition of the lemma, QθQ_{\theta} satisfies Qθ(∥θ−θ∗∥≥Cε)≤e−Cnε2Q_{\theta}(\|\theta-\theta^{\ast}\|\geq C\varepsilon)\leq e^{-Cn\varepsilon^{2}} for all ε≥Mεn\varepsilon\geq M\varepsilon_{n}, we can bound the preceding display as

holds with probability at least 1−CM−21-CM^{-2}, which completes the proof.

Appendix C Proofs of technical lemmas

In this appendix, we collect proofs of all technical lemmas.

Denoting n(θ−θ^\mboxMLE)\sqrt{n}(\theta-\widehat{\theta}_{\mbox{\tiny MLE}}) by sns_{n}, we will approximate the integration of

by i2(θ)=π(θ∗)exp⁡(−12 snTI(θ∗) sn)i_{2}(\theta)=\pi(\theta^{\ast})\exp(-\frac{1}{2}\,s_n^TI(\theta^\ast)\,s_n), where

for some sufficiently large constant c1c_{1}.

where the volume Vol(A1)\text{Vol}(A_{1}) is C(c1log⁡nn)dC\big(\frac{c_{1}\log n}{\sqrt{n}}\big)^{d}. Applying the Taylor expansion to l(θ;Xn)l(\theta;X^{n}) at θ=θ^\mboxMLE\theta=\widehat{\theta}_{\mbox{\tiny MLE}}, we obtain

where we have used the fact that θ^\mboxMLE\widehat{\theta}_{\mbox{\tiny MLE}} maximizes l(θ;Xn)l(\theta;X^{n}) so that ∇l(θ^\mboxMLE;Xn)=0\nabla l(\widehat{\theta}_{\mbox{\tiny MLE}};X^{n})=0, and the remainder term RnR_{n} satisfies

with probability at least 1−CM−21-CM^{-2} by using Assumption A2 and the Markov inequality to the sum ∑i=1n∣M(Xi)∣\sum_{i=1}^{n}|M(X_{i})| of i.i.d. random variables. As a consequence, we can bound the difference

By the definition of I(θ∗)=n−1Eθ∗[∇2l(θ∗; Xn)]I(\theta^{\ast})=n^{-1}E_{\theta^{\ast}}[\nabla^{2}l(\theta^{\ast};\,X^{n})] in Assumption A2, the fact that ∥θ^\mboxMLE−θ∗∥≤CM(log⁡n)1/2n\|\widehat{\theta}_{\mbox{\tiny MLE}}-\theta^{\ast}\|\leq\frac{CM(\log n)^{1/2}}{\sqrt{n}} with probability at least 1−CM−21-CM^{-2}, and the inequality ∣ex−1∣≤2x|e^{x}-1|\leq 2x for x∈[0,1/2]x\in[0,1/2], we can bound the above by using the Markov inequality on the i.i.d. sum ∇2l(θ∗; Xn)\nabla^{2}l(\theta^{\ast};\,X^{n}) to obtain that

holds with probability at least 1−CM−21-CM^{-2}. Using Assumption A1, we have ∣π(θ)−π(θ∗)∣≤Cc1log⁡nn|\pi(\theta)-\pi(\theta^{\ast})|\leq Cc_{1}\frac{\log n}{\sqrt{n}} under the aforementioned high probability event. Finally, by putting pieces together and using the triangle inequality, we have that with probability at least 1−CM−21-CM^{-2},

Integral over A2A_{2}: We use the inequality

and bound the two terms separately. For the second term, we have

where we choose c1c_{1} large enough so that the last step is true.

For the first term, use inequality (52) and ∫A2i2(θ) \differentialθ≥Cn−d/2\int_{A_{2}}i_{2}(\theta)\,\differential\theta\geq Cn^{-d/2}, we have by the triangle inequality that

From the form (46) of the posterior density πn\pi_{n},the inequality ∥θ^\mboxMLE−θ∗∥≤CM(log⁡n)1/2n\|\widehat{\theta}_{\mbox{\tiny MLE}}-\theta^{\ast}\|\leq\frac{CM(\log n)^{1/2}}{\sqrt{n}} and the posterior tail probability bound (23), we have that for sufficiently large constant c1c_{1},

holds with probability at least 1−CM−21-CM^{-2}. The last two displays together imply

Now, we can combine the above and inequality (54) to obtain

Finally, the desired bound (50) follows by combining inequalities (52) and (54).

C.2 Proof of Lemma 8

The proof of this lemma follows almost same lines as Lemma 8.1 in that generalizes from the usual posterior to the weighted posterior. Recall the definition of m~n(A)\widetilde{m}_{n}(A) as:

where recall that Π∣A\Pi|_{A} denotes the restriction of Π\Pi on AA. By Jensen’s inequality, we have further:

where l~(b)(θ; Xn)\widetilde{l}^{(b)}(\theta;\,X^{n}) denotes the logarithm of the weighted likelihood. Therefore, it remains to prove

Since the weights {Wi(b)}i=1n\{W_{i}^{(b)}\}_{i=1}^{n} have unit mean and variance, we have

C.3 Proof of Lemma 9

By the sub-exponential condition in Assumption W, the distribution of the random weight has tail probability bounded by P(W>t)≤C0e−C1tP(W>t)\leq C_{0}e^{-C_{1}t}, for any t>C2t>C_{2}. This implies by a simple union bound argument that

by choosing a sufficiently large constant CC. Thus, in the rest of the proof we may simply assume without loss of generality that the weights are uniformly bounded by MW:=Clog⁡nM_{W}:=C\log n.

The rest of the proof follows closely the steps in the proof of Theorem 1 in . Many intermediate lemmas therein can be reused for our proof except for two that need to be adapted to the weight posterior. First recall Bernstein’s inequality for sum of i.i.d. sub-exponential random variables: let Z1,…,ZnZ_{1},\ldots,Z_{n} be i.i.d. r.v.’s satisfying:

Let νn\nu_{n} be the empirical process functional, i.e. νn(Z)=∑i=1n(Zi−E[Z])/n\nu_{n}(Z)=\sum_{i=1}^{n}(Z_{i}-E[Z])/\sqrt{n}, then

A key ingredient of the proof is a modification of Lemma 6 in to the weighted likelihood ratio process. Following their notation, for any density function we define the following lower-truncated log-likelihood ratio at some level τ\tau to be determined later:

where p∗p^{\ast} is the true density function pθ∗p_{\theta^{\ast}} in our case, and the truncation is needed since the log-likelihood ratio can be ill-behaved in the lower end. The truncated one can be uniformly controlled with exponentially decay tail probability. In our case, we introduce a version of the likelihood ratio empirical process as ν~n(Zf)=∑i=1n(Wi(b)Zf(Xi)−E[Wi(b)Zf(Xi)])\widetilde{\nu}_{n}(Z_{f})=\sum_{i=1}^{n}(W_{i}^{(b)}Z_{f}(X_{i})-E[W_{i}^{(b)}Z_{f}(X_{i})]) as analogous to νn\nu_{n} in .

Under Assumption W, for any fixed density function ff with a finite Hellinger distance to p∗p^{\ast}, we have

The proof is deferred to Section C.4. The next lemma is a weighted version of Lemma 7 in that provides a uniform control on the weighted likelihood ratio empirical process ν~n(Z)\widetilde{\nu}_{n}(Z) via the chaining technique.

Suppose Assumption W holds. Consider any t>0t>0, 0<k<10<k<1 and R>0R>0 such that R≤knt2/4R\leq k\sqrt{n}t^{2}/4 and

where c0=(exp⁡(τ/2)−1−τ/2)/(1−exp⁡(−τ/2))2c_{0}=(\exp(\tau/2)-1-\tau/2)/(1-\exp(-\tau/2))^{2} is a constant. Then

A proof of this lemma is provided in Section C.5 below. Now we can continue the proof of the lemma, which resemble the proof of Theorem 1 in . We first verify the condition of Lemma 12 with s=C2′c2−1/2ε≥C2′Mε~n2s=C_{2}^{\prime}c_{2}{-1/2}\varepsilon\geq C_{2}^{\prime}M\widetilde{\varepsilon}_{n}^{2}, t=2st=\sqrt{2}s, 1/2<k<11/2<k<1, exp⁡(−τ/2)=1/5\exp(-\tau/2)=1/5 and R=kns22R=\frac{k\sqrt{n}s^{2}}{2} under Assumption A2 (where c2c_{2} is the constant in Assumption A2). Specifically, for a sufficiently large constant C2′C_{2}^{\prime}, we have

Moreover, for the above inequality, since the left hand side has a linear growth in ss while the right hand side has a quadratic growth, it also holds for all s≥C2′c2−1/2εs\geq C_{2}^{\prime}c_{2}^{-1/2}\varepsilon.

The remaining of the proof is almost identical to the proof of Theorem 1 in . As a consequence of Lemma 12 and the above argument, we have:

As a consequence, by choosing exp⁡(−τ/2)=1/5\exp(-\tau/2)=1/5 and k=2/3k=2/3, and using the fact that nε2/log⁡n≥C′M2n\varepsilon^{2}/\log n\geq C^{\prime}M^{2} for some constant C′C^{\prime} and any ε≥Mε~=MC0′log⁡n/n\varepsilon\geq M\widetilde{\varepsilon}=MC_{0}^{\prime}\log n/\sqrt{n}, we obtain that by choosing a sufficiently large C2′C_{2}^{\prime}, the following holds with probability at least 1−e−C′′M2≥1−CM−21-e^{-C^{\prime\prime}M^{2}}\geq 1-CM^{-2},

C.4 Proof of Lemma 11

The proof is a direct application of Bernstein’s inequality. We only need to verify the Bernstein condition for the random variable Z~f\widetilde{Z}_{f}. In particular, similar to Lemma 5 of , it is easy to verify that

with c0=exp⁡(τ/2)−1−τ2(1−exp⁡(−τ/2))2c_{0}=\frac{\exp(\tau/2)-1-\frac{\tau}{2}}{(1-\exp(-\tau/2))^{2}}. Since the weights Wi(b)W_{i}^{(b)}’s are uniformly bounded by MW=Clog⁡nM_{W}=C\log n and have second moment E[Wi(b)]2=2E[W_{i}^{(b)}]^{2}=2, we obtain E[∣wZf∣j]≤(j!)2j+1MWj−2c0H2(f,pθ∗)E[|wZ_{f}|^{j}]\leq(j!)2^{j+1}M_{W}^{j-2}c_{0}H^{2}(f,p_{\theta^{\ast}}) for any j≥2j\geq 2. Therefore, we can then directly apply Bernstein’s inequality with b=2MWb=2M_{W}, and v=8c0H2(f,pθ∗)v=8c_{0}H^{2}(f,p_{\theta^{\ast}}) to obtain the claimed inequality.

C.5 Proof of Lemma 12

which will be repeatedly used throughout the proof.

The two bracketing sequence {Zj}j≤N\{\mathscr{Z}_{j}\}_{j\leq N} is constructed in the same way as in Section 2.1 of , whose members have pairwise L2L_{2} distance upper bounded by a sequence {2exp⁡(τ/2)δj}j≤N\{2\exp(\tau/2)\delta_{j}\}_{j\leq N} defined as:

If kR8n≤t\frac{kR}{8\sqrt{n}}\leq t, then similar to the proof of Theorem 3 in the probability on the left hand side of the desired inequality can be decomposed into four terms,

where PiP_{i}, i=1,2,3,4i=1,2,3,4, is (the definition of uju_{j} below is on page 601 of )

with the following changed definitions for aja_{j} and ηj\eta_{j}:

and the same BjB_{j} on page 602 of except for the underlying family of function to be ZfZ_{f}. Following the steps in their proof, it can be verified that

Now it remains to bound P1P_{1}–P4P_{4} respectively. First, by applying the inequality in our Lemma 11 to replace their unweighted version and using the same argument, we have

Similarly, by applying a one-sided Bernstein’s inequality with their argument, we have

where the only difference is in replacing the L2L_{2} bracketing entropy with the Hellinger bracketing entropy (they are equivalent up to a constant). Similarly to their argument on page 605-606, we also have P3=P4=0P_{3}=P_{4}=0 when kR8n≤t\frac{kR}{8\sqrt{n}}\leq t.

The case of kR8n>t\frac{kR}{8\sqrt{n}}>t can be similarly proceeded as in and we omit the details.