Generalized Multiple Importance Sampling

Víctor Elvira, Luca Martino, David Luengo, Mónica F. Bugallo

Introduction

Importance sampling (IS) is a well-known Monte Carlo technique that can be applied to compute integrals involving target probability density functions (pdfs) [Robert and Casella 2004; Liu 2004]. The standard IS technique draws samples from a single proposal pdf and assigns them weights based on the ratio between the target and the proposal pdfs, both evaluated at the sample value. The choice of a suitable proposal pdf is crucial for obtaining a good approximation of the target pdf using the IS method. Indeed, although the validity of this approach is guaranteed under mild assumptions, the variance of the estimator depends on the discrepancy between the shape of the proposal and the target [Robert and Casella 2004; Liu 2004].

Several advanced strategies have been proposed in the literature to design more robust IS schemes [Liu 2004, Chapter 2], [Owen 2013, Chapter 9], [Liang 2002]. A powerful approach is based on using a population of different proposal pdfs. This approach is often referred to as multiple importance sampling (MIS) and several possible implementations have been proposed depending on the specific assumptions of the problem, e.g. the knowledge of the normalizing constants, prior information of the proposals, etc [Veach and Guibas 1995; Hesterberg 1995; Owen and Zhou 2000; Tan 2004; He and Owen 2014; Elvira et al. 2015a]. In general, MIS strategies provide more robust algorithms, since they avoid entrusting the performance of the method to a single proposal. Moreover, many algorithms have been proposed in order to conveniently adapt the set of proposals in MIS [Cappé et al. 2004; Martino et al. 2017; Elvira et al. 2017].

When a set of proposal pdfs is available, the way in which the samples can be drawn and weighted is not unique, unlike the case of using a single proposal. Indeed, different MIS algorithms in the literature (both adaptive and non-adaptive) have implicitly and independently interpreted the sampling and weighting procedures in different ways [Owen and Zhou 2000; Cappé et al. 2004; Cappé et al. 2008; Elvira et al. 2015a; Martino et al. 2015; Cornuet et al. 2012; Bugallo et al. 2017]. Namely, there are several possible combinations of sampling and weighting schemes, when a set of proposal pdfs is available, which lead to valid MIS approximations of the target pdf. However, these different possibilities can largely differ in terms of performance of the corresponding estimators.

In this paper, we introduce a unified framework for MIS schemes, providing a general theoretical description of the possible sampling and weighting procedures when a set of proposal pdfs is used to produce an IS approximation. Within this unified context, it is possible to interpret that all the MIS algorithms draw samples from an equally-weighted mixture distribution obtained from the set of available proposal pdfs. Three different sampling approaches and five different functions to calculate the weights of the generated samples are proposed and discussed. Moreover, we state two basic rules for possibly devising new valid sampling and weighting strategies within the proposed framework. All the analyzed combinations of sampling/weighting provide consistent estimates of the parameters of interest.

The proposed generalized framework includes all of the existing MIS methodologies that we are aware of (applied within different algorithms, e.g. in [Elvira et al. 2015a; Cappé et al. 2004; Cornuet et al. 2012; Martino et al. 2015; Martino et al. 2017; Elvira et al. 2017]) and allows the design of novel techniques (here we propose three new schemes, but more can be introduced). An exhaustive theoretical analysis is provided by introducing general expressions for sampling and weighting in this generalized MIS context, and by proving that they yield consistent estimators. Furthermore, we compare the performance of the different MIS schemes (the proposed and existing ones) in terms of the variance of the estimators.

The rest of this paper is organized as follows. In Section 2, we describe the problem and we revisit the standard IS methodology. In Section 3, we discuss the sampling procedure in MIS, propose three new sampling strategies, and analyze some distributions of interest. In Section 4, we propose five different weighting functions, some of them completely new, and show their validity. The different combinations of sampling/weighting strategies are analyzed in Section 5, establishing the connections with existent MIS schemes, and describing three novel MIS schemes. In Section 6, we analyze the performance of the different MIS schemes in terms of the variance of the estimators. Then, Section 7 discusses some relevant aspects about the application of the proposed MIS schemes, including their use in adaptive settings. Finally, Section 8 presents some descriptive numerical examples where the different MIS schemes are simulated, and Section 9 contains some concluding remarks. A running example is introduced in Section 3 and continued in Section 4, Section 5, Section 6 and Section 8 in order to clarify the flow of the paper. In addition, we perform numerical simulations on the running example, where the proposal pdfs are intentionally well chosen, to evidence the significant effects produced by the different interpretations of the sampling and weighting schemes.

Problem Statement and Background

IS is a general Monte Carlo technique for the approximation of a pdf of interest by a random measure composed of samples and weights [Robert and Casella 2004]. In its original formulation, a set of NN samples, {xn}n=1N\{{\bf x}_{n}\}_{n=1}^{N}, is drawn from a single proposal pdf, q(x)q({\bf x}), with heavier tails than those of the target pdf, π(x)\pi({\bf x}). A particular sample, xn{{\bf x}_{n}}, is assigned an importance weight given by

which represents the ratio between the target pdf, π\pi, and the proposal pdf, qq, both evaluated at xn{\bf x}_{n}. The samples and weights form the random measure χ={xn,wn}n=1N\chi=\{{\bf x}_{n},w_{n}\}_{n=1}^{N} that approximates the measure of the target pdf as

where δxn(x)\delta_{{\bf x}_{n}}({\bf x}) is the unit delta measure concentrated at xn{\bf x}_{n} and Z^=1N∑j=1Nwj\hat{Z}=\frac{1}{N}\sum_{j=1}^{N}w_{j} is an unbiased estimator of Z=∫π(x)dxZ=\int\pi({\bf x})d{\bf x} [Robert and Casella 2004]. Fig. 1 (a) displays an example of a target pdf and a proposal pdf, as well as the samples and weights that form a random measure approximating the posterior. Note that, unlike Markov Chain Monte Carlo (MCMC) methods, all the generated samples are used to build the estimators, e.g., there is no burn-in period.

2 Estimators in importance sampling

Otherwise, if the target distribution is only known up to the normalizing constant, ZZ, one can use the self-normalized estimator

where ZZ is approximated by the estimate

Sampling in Multiple Importance Sampling

MIS schemes consider a set of NN proposal pdfs, {qn(x)}n=1N≡{q1(x),…,qN(x)}\{q_{{n}}({\bf x})\}_{n=1}^{N}\equiv\{q_{1}({\bf x}),\ldots,q_{N}({\bf x})\}, and proceed by drawing MM samples, {xm}m=1M\{{\bf x}_{m}\}_{m=1}^{M} (where M≠NM\neq N, in general) and properly weighting them. As a visual example, Fig. 1 (b) displays a target pdf and two proposal pdfs, as well as the samples and weights that form a random measure approximating the posterior.

Unequal weights could also be considered in the mixture. In [He and Owen 2014], the weights can be optimized to minimize the variance for a certain integrand.

Let us consider a generic mechanism for the simulation of NN samples from the set of NN proposals. Starting with n=1n=1:

Choose an index jn∈{1,…,N}j_{n}\in\{1,\ldots,N\}, which corresponds to the selection of the proposal pdf qjnq_{j_{n}}.

Generate a sample xn{\bf x}_{n} from the selected proposal pdf, i.e., xn∼qjn(xn){\bf x}_{n}\sim q_{j_{n}}({\bf x}_{n}).

Note that, in step 1, the probabilities associated to each possible value of jnj_{n} are not specified yet. The graphical model corresponding to this sampling scheme is shown in Fig. 2.

Therefore, obtaining the set of samples {xn}n=1N≡{x1,...,xN}\{{\bf x}_{n}\}_{n=1}^{N}\equiv\{{\bf x}_{1},...,{\bf x}_{N}\} is in general a two step sequential procedure. First, the nn-th index jnj_{n} is drawn according to some conditional pdf, P(jn∣j1:n−1)P(j_{n}|j_{1:n-1}), where j1:n−1≡{j1,…,jn−1}j_{1:n-1}\equiv\{j_{1},\ldots,j_{n-1}\} is the sequence of the previously generated indexes. We use a simplified argument-wise notation, where p(xn)p({\bf x}_{n}) denotes the pdf of the continuous random variable (r.v.) Xn{\bf X}_{n}, while P(jn)P(j_{n}) denotes the probability mass function (pmf) of the discrete r.v. JnJ_{n}. Also, p(xn,jn)p({\bf x}_{n},j_{n}) denotes the joint pdf and p(xn∣jn)p({\bf x}_{n}|j_{n}) is the conditional pdf of Xn{\bf X}_{n} given Jn=jnJ_{n}=j_{n}. If the argument of p(⋅)p(\cdot) is different from xn{\bf x}_{n}, then it denotes the evaluation of the pdf as a function, e.g., p(z∣jn)p({\bf z}|j_{n}) denotes the pdf p(xn∣jn)p({\bf x}_{n}|j_{n}) evaluated at xn=z{\bf x}_{n}={\bf z}. Then, the nn-th sample is drawn from the selected proposal pdf as xn∼p(xn∣jn){\bf x}_{n}\sim p({\bf x}_{n}|j_{n}). The joint probability distribution of the current sample and all the indexes used to generate the samples from 11 to nn is

where p(xn∣jn)=qjn(xn)p({\bf x}_{n}|j_{n})=q_{j_{n}}({\bf x}_{n}) is the nn-th selected proposal pdf, qjn(xn)q_{j_{n}}({\bf x}_{n}).

2 Selection of the proposal pdfs

In the sequel, we describe three mechanisms for obtaining the sequence of indexes, j1:Nj_{1:N}. All the mechanisms share the property that

i.e., all the indexes have the same (marginal) probability of being selected.

Random index selection with replacement: The NN indexes are independently drawn from the set {1,…,N}\{1,\ldots,N\} with equal probability. Thus, we have

With this type of index sampling, there may be more than one sample drawn from some proposal, and there may be proposal pdfs that are not used at all.

Random index selection without replacement: The indexes are uniformly and sequentially drawn from different sets as j1∈I1={1,…,N}j_{1}\in\mathcal{I}_{1}=\{1,\ldots,N\}, … , jn∈In={1,…,N}∖{j1:n−1}j_{n}\in\mathcal{I}_{n}=\{1,\ldots,N\}\setminus\{j_{1:n-1}\}, i.e., removing the proposals previously used. Hence, the conditional probability mass function (pmf) of the nn-th index given the previous ones is now

where ∣In∣=N−n+1|\mathcal{I}_{n}|=N-n+1. Note that the marginal pmf of the jj-th index is still given by (3.4). There are N!N! equiprobable configurations (permutations) of the sequence {j1,…,jN}\{j_{1},\ldots,j_{N}\}, and in (N−1)!(N-1)! the kk-th index is drawn at the nn-th position ∀k,n=1,…,N\forall k,n=1,\ldots,N. Therefore, P(Jn=k)=(N−1)!N!=1NP(J_{n}=k)=\frac{(N-1)!}{N!}=\frac{1}{N} ∀k,n=1,…,N\forall k,n=1,\ldots,N. However, exactly one sample is drawn from each of the proposal pdfs by following this strategy.

Deterministic index selection without replacement: This sampling is a particular case of sampling S2\mathcal{S}_{2}, where a fixed deterministic sequence of indexes is drawn. For instance, and without loss of generality: j1=1,j2=2,…,jn=n,…,jN=Nj_{1}=1,j_{2}=2,\ldots,j_{n}=n,\ldots,j_{N}=N. Therefore, xn∼qjn(xn)=qn(xn){\bf x}_{n}\sim q_{j_{n}}({{\bf x}_{n}})=q_{n}({\bf x}_{n}), and the conditional pmf of the nn-th index given the n−1n-1 previous ones becomes

The connexions of the sampling mechanisms with some resampling schemes are discussed in Appendix B.

3 Running example

Let us consider N=3N=3 Gaussian proposal pdfs q1(x)=N(x;μ1,σ12)q_{1}(x)=\mathcal{N}(x;\mu_{1},\sigma_{1}^{2}), q2(x)=N(x;μ2,σ22)q_{2}(x)=\mathcal{N}(x;\mu_{2},\sigma_{2}^{2}) and q3(x)=N(x;μ3,σ32)q_{3}(x)=\mathcal{N}(x;\mu_{3},\sigma_{3}^{2}) with predefined means and variances. In S1\mathcal{S}_{1}, a possible realization of the indexes is the sequence {j1,j2,j3}={3,3,1}\{j_{1},j_{2},j_{3}\}=\{3,3,1\}. Therefore, in this situation, x1∼q3{\bf x}_{1}\sim q_{3}, x2∼q3{\bf x}_{2}\sim q_{3}, and x3∼q1{\bf x}_{3}\sim q_{1}. In S2\mathcal{S}_{2}, the realization could result from the permutation {j1,j2,j3}={3,1,2}\{j_{1},j_{2},j_{3}\}=\{3,1,2\}. In S3\mathcal{S}_{3}, the sequence is deterministically obtained as {j1,j2,j3}={1,2,3}\{j_{1},j_{2},j_{3}\}=\{1,2,3\}.

4 Distributions of interest of the nn-th sample, 𝐱n{\bf x}_{n}

In the following, we discuss some important distributions related to the set of samples drawn. These distributions are of utmost importance to understand the different methods for weighting the samples discussed in the following section.

Note that the distribution of the nn-th sample given all the knowledge of the process up to that point is p(xn∣j1:n−1,x1:n−1)=p(xn∣j1:n−1)p({\bf x}_{n}|j_{1:n-1},{\bf x}_{1:n-1})=p({\bf x}_{n}|j_{1:n-1}). In S1\mathcal{S}_{1}, this distribution corresponds to p(xn∣j1:n−1)=ψ(xn)p({\bf x}_{n}|j_{1:n-1})=\psi({{\bf x}_{n}}). We recall that ψ\psi is the mixture of proposals defined in Eq. (3.1). In S2\mathcal{S}_{2}, we have p(xn∣j1:n−1)=1∣In∣∑∀k∈Inqk(x)p({\bf x}_{n}|j_{1:n-1})=\frac{1}{|\mathcal{I}_{n}|}\sum_{\forall k\in\mathcal{I}_{n}}q_{k}({\bf x}). Finally, under S3\mathcal{S}_{3}, p(xn∣j1:n−1)=qn(xn)p({\bf x}_{n}|j_{1:n-1})=q_{n}({\bf x}_{n}). Once the nn-th index jnj_{n} has been selected, the nn-th sample, xn{\bf x}_{n}, is distributed as p(xn∣jn)=qjn(xn)p({\bf x}_{n}|j_{n})=q_{j_{n}}({\bf x}_{n}) in any sampling method within the proposed framework. The marginal distribution of this nn-th sample, xn{\bf x}_{n}, is then given by

5 Distributions of interest beyond 𝐱n{\bf x}_{n}

The traditional IS approach focuses just on the distribution of the r.v. Xn{\bf X}_{n}. In MIS, we are also interested in the statistical properties of the set of samples, regardless of their index nn, since the NN samples are used jointly in the estimators, regardless their order of appearance. Hence, we introduce a generic r.v.,

where U{1,2,…,N}\mathcal{U}\{1,2,\ldots,N\} is the discrete uniform distribution on the set {1,2,…,N}\{1,2,\ldots,N\}. The density of X{\bf X} is then given by

where pxn(x)p_{{\bf x}_{n}}({\bf x}) denotes the marginal pdf of Xn{\bf X}_{n}, given by Eq. (3.7), evaluated at x{\bf x}, and ψ(x)\psi({\bf x}) is the mixture pdf. For the sake of clarity, in Eq. (3.9) we have used the notation pxn(x)p_{{\bf x}_{n}}({\bf x}), instead of p(x)p({\bf x}) as in Eq. (3.7) and the rest of the paper, to denote the marginal pdf of Xn{\bf X}_{n} evaluated at x{\bf x}. Moreover, one can also obtain the conditional pdf of X{\bf X} given the sequence of indexes as

Note that, in this case, f(x∣j1:N)=ψ(x)f({\bf x}|j_{1:N})=\psi({\bf x}) for the schemes without replacement at the index selection (S2\mathcal{S}_{2} and S3\mathcal{S}_{3}), but f(x∣j1:N)=1N∑n=1Nqjn(x)f({\bf x}|j_{1:N})=\frac{1}{N}\sum_{n=1}^{N}q_{j_{n}}({\bf x}) for the case with replacement (S1\mathcal{S}_{1}), i.e., some proposal pdfs may not appear while others may appear repeated.

(Sampling): In the proposed framework, we consider valid, any sequential sampling scheme for generating the set {X1,…,XN}\{{\bf X}_{1},\ldots,{\bf X}_{N}\} such that the pdf of the r.v. X{\bf X} defined in Eq. (3.8) is given by ψ(x)\psi({\bf x}). Further considerations about the r.v. X{\bf X} and connections with variance reduction methods [Robert and Casella 2004; Owen 2013] are given in Appendix A.

Table 5 summarizes all the distributions of interest. Note that, the pdf of the r.v. X{\bf X} is always the mixture ψ(x)\psi({\bf x}), but different sampling procedures yield different conditional and marginal distributions that will be exploited to justify different strategies for calculation of the importance weights in the next section. Finally, the last row of the table shows the joint distribution p(x1:N)p({\bf x}_{1:N}) of the variables X1,…,XN{\bf X}_{1},\ldots,{\bf X}_{N}, i.e., p(x1:N)=∏n=1Nψ(xn)p({\bf x}_{1:N})=\prod_{n=1}^{N}\psi({{\bf x}_{n}}) and p(x1:N)=∏n=1Nqn(xn)p({\bf x}_{1:N})=\prod_{n=1}^{N}q_{n}({{\bf x}_{n}}) for S1\mathcal{S}_{1} and S3\mathcal{S}_{3}, respectively. For S2\mathcal{S}_{2},

with In={1,…,N}∖{j1:n−1}\mathcal{I}_{n}=\{1,\ldots,N\}\setminus\{j_{1:n-1}\}.

Weighting in Multiple Importance Sampling

Our approach is based on analyzing which weighting functions yield proper MIS estimators. We consider that the set of weighting functions {wn}n=1N\{w_{n}\}_{n=1}^{N} is proper if

This is equivalent to imposing the restriction

where we use the joint distribution of indexes and samples from Eq. (3.2).

Here we present several possible functions φPn\varphi_{\mathcal{P}_{n}}, that yield an unbiased estimator of I{I} according to Eq. (4.3). The different choices for φPn\varphi_{\mathcal{P}_{n}}, used in the denominator of the weight wn=π(xn)φPn(xn)w_{n}=\frac{\pi({\bf x}_{n})}{\varphi_{\mathcal{P}_{n}}({\bf x}_{n})}, come naturally from the sampling densities discussed in Section 3. More precisely, they correspond to the five different functions in Table 5 related to the distributions of the generated samples. From now on, p(⋅)p(\cdot) and f(⋅)f(\cdot), which correspond to the pdfs of Xn{\bf X}_{n} and X{\bf X} respectively, are used as functions and the argument represents a functional evaluation.

φPn(xn)=φj1:n−1(xn)=p(xn∣j1:n−1)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{j_{1:n-1}}({\bf x}_{n})=p({\bf x}_{n}|j_{1:n-1})

Since the sampling process is sequential, this option is of particular interest. It interprets the proposal pdf as the conditional density of xn{\bf x}_{n} given all the previous proposal indexes of the sampling process.

φPn(xn)=φjn(xn)=p(xn∣jn)=qjn(xn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{j_{n}}({\bf x}_{n})=p({\bf x}_{n}|j_{n})=q_{j_{n}}({\bf x}_{n})

It interprets that if the index jnj_{n} is known, φPn\varphi_{\mathcal{P}_{n}} is the proposal qjnq_{j_{n}}.

φPn(xn)=p(xn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=p({\bf x}_{n})

It interprets that xn{\bf x}_{n} is a realization of the marginal p(xn)p({\bf x}_{n}). This is probably the most “natural” option (as it does not assume any further knowledge in the generation of xn{\bf x}_{n}) and is a usual choice for the calculation of the weights in some of the existing MIS schemes (see Section 5).

φPn(xn)=φj1:N(xn)=f(xn∣j1:N)=1N∑k=1Nqjk(xn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{j_{1:N}}({\bf x}_{n})=f({\bf x}_{n}|j_{1:N})=\frac{1}{N}\sum_{k=1}^{N}q_{j_{k}}({\bf x}_{n})

This interpretation makes use of the distribution of the r.v. X{\bf X} conditioned on the whole set of indexes (defined in Section 3.5).

φPn(xn)=φ(xn)=f(xn)=1N∑k=1Nqk(xn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi({\bf x}_{n})=f({\bf x}_{n})=\frac{1}{N}\sum_{k=1}^{N}q_{k}({\bf x}_{n})

This option considers that all the xn{\bf x}_{n} are realizations of the r.v. X{\bf X} defined in Section 3.5 (see Appendix A for a thorough discussion of this interpretation).

Table 1 summarizes the discussed functions φPn\varphi_{\mathcal{P}_{n}}. Although some of the selected functions φPn\varphi_{\mathcal{P}_{n}} may seem more natural than others, all of them yield valid estimators. The proofs can be found in Appendix C. Other proper weighting functions are described in Section 7.2.

2 Connection with Liu-properness of single IS

We consider the definition of properness by Liu [Liu 2004, Section 2.5] and we extend (or relax) it to the MIS scenario. Namely, Liu-properness in standard IS states that a weighted sample {xn,wn}\{{\bf x}_{n},w_{n}\} drawn from a single proposal qq is proper if, for any square integrable function gg,

i.e., ww can be in any form as long as the condition of Eq. (4.4) is fulfilled. Note that, for a deterministic weight assignment, the only proper weights are the ones considered by the standard IS approach. Note also that the MIS properness is a relaxation of the one proposed by Liu, i.e., any Liu-proper weighting scheme is also proper a according to our definition, but not vice versa.

3 Running example

Here we follow the running example of Section 3.3. For instance, let us consider the sampling method S1\mathcal{S}_{1} and let the realization of the indexes be the sequence {j1,j2,j3}={3,3,1}\{j_{1},j_{2},j_{3}\}=\{3,3,1\}. Under the weighting scheme W2\mathcal{W}_{2}, the weights would be computed as w1=π(x1)q3(x1)w_{1}=\frac{\pi({\bf x}_{1})}{q_{3}({\bf x}_{1})}, w2=π(x2)q3(x2)w_{2}=\frac{\pi({\bf x}_{2})}{q_{3}({\bf x}_{2})}, and w3=π(x3)q1(x3)w_{3}=\frac{\pi({\bf x}_{3})}{q_{1}({\bf x}_{3})}. However, under W4\mathcal{W}_{4}, w1=π(x1)13(q1(x1)+2q3(x1))w_{1}=\frac{\pi({\bf x}_{1})}{\frac{1}{3}\left(q_{1}({\bf x}_{1})+2q_{3}({\bf x}_{1})\right)}, w2=π(x2)13(q1(x2)+2q3(x2)w_{2}=\frac{\pi({\bf x}_{2})}{\frac{1}{3}\left(q_{1}({\bf x}_{2})+2q_{3}({\bf x}_{2}\right)}, and w3=π(x3)13(q1(x3)+2q3(x3))w_{3}=\frac{\pi({\bf x}_{3})}{\frac{1}{3}\left(q_{1}({\bf x}_{3})+2q_{3}({\bf x}_{3})\right)}. Note that all weighing schemes require the same number of target evaluations (which are usually more expensive) but different numbers of proposal evaluations.

Multiple Importance Sampling Schemes

In this section, we describe the different possible combinations of the three sampling strategies considered in Section 3 and the five weighting functions devised in Section 4. Once combined, the fifteen possibilities only lead to six unique MIS methods. Three of the methods are associated to the sampling scheme with replacement (S1\mathcal{S}_{1}), while the other three methods correspond to the sampling schemes without replacement (S2\mathcal{S}_{2} and S3\mathcal{S}_{3}). Table 6 summarizes the possible combinations of sampling/weighting and indicates the resulting MIS method within brackets. The six MIS methods are labeled either by an R (sampling with replacement) or with an N (sampling with no replacement). We remark that these schemes are examples of proper MIS techniques fulfilling Remarks 3.1 and 4.1.

In all R schemes, the nn-th sample is drawn with replacement (i.e., S1\mathcal{S}_{1}) from the whole mixture ψ\psi:

Sampling with replacement, S1\mathcal{S}_{1}, and weight denominator W2\mathcal{W}_{2}: For the weight calculation of the nn-th sample, only the proposal selected for generating the sample is evaluated in the denominator.

Sampling with replacement, S1\mathcal{S}_{1}, and weight denominator W4\mathcal{W}_{4}: With the NN selected indexes jnj_{n}, for n=1,...,Nn=1,...,N, one forms a mixture comprising all the corresponding proposal pdfs. The weight calculation of the nn-th sample considers this a posteriori mixture evaluated at the nn-th sample in the denominator, i.e., some proposals might be used more than once while other proposals might not be used.

Sampling with replacement, S1\mathcal{S}_{1}, and weight denominator W1\mathcal{W}_{1}, W3\mathcal{W}_{3}, or W5\mathcal{W}_{5}: For the weight calculation of the nn-th sample, the denominator applies the value of the nn-th sample to the whole mixture ψ\psi composed of the set of initial proposal pdfs (i.e., the function in the denominator of the weight does not depend on the sampling process). This is the approach followed by the so called mixture PMC method [Cappé et al. 2008].

2 MIS schemes without replacement

In all N schemes, exactly one sample is generated from each proposal pdf. This corresponds to having a sampling strategy without replacement.

Sampling without replacement (random or deterministic), S2\mathcal{S}_{2} or S3\mathcal{S}_{3}, and weight denominator W2\mathcal{W}_{2} (for S2\mathcal{S}_{2}) or W1\mathcal{W}_{1}, W2\mathcal{W}_{2}, or W3\mathcal{W}_{3} (for S3\mathcal{S}_{3}): For calculating the denominator of the nn-th weight, the specific proposal used for the generation of the sample is used. This is the approach frequently used in particle filtering [Gordon et al. 1993] and in the standard PMC method [Cappé et al. 2004].

Sampling without replacement (random), S2\mathcal{S}_{2}, and weight denominator W1\mathcal{W}_{1}: This MIS implementation draws one sample from each proposal, but the order matters (it must be random) since the calculation of the nn-th weight uses for the evaluation of the denominator the mixture pdf formed by the proposal pdfs that were still available at the generation of the nn-th sample.

Sampling without replacement (random or deterministic), S2\mathcal{S}_{2} or S3\mathcal{S}_{3}, and weight denominator W3\mathcal{W}_{3}, W4\mathcal{W}_{4}, or W5\mathcal{W}_{5} (for S2\mathcal{S}_{2}), or W4\mathcal{W}_{4} or W5\mathcal{W}_{5} (for S3\mathcal{S}_{3}): In the calculation of the nn-th weight, one uses for the denominator the whole mixture. This is the approach, for instance, of [Martino et al. 2015; Cornuet et al. 2012]. As shown in Section 6, this scheme has several benefits over the others.

Table 2 summarizes the six resulting MIS schemes and their references in literature, indicating the sampling procedure and weighting function that are applied to obtain the nn-th weighted sample xn{\bf x}_{n}. We consider N1 and N3 associated to S3\mathcal{S}_{3} (they can also be obtained with S2\mathcal{S}_{2}) since it is simpler than S2\mathcal{S}_{2}. All the different algorithms in the literature (as far as we know) correspond to one of the MIS schemes described above (see Section 7.3). Moreover, several new valid schemes have also appeared naturally (R1, R2, and N2), and new ones can be proposed within this framework.

3 Running example

Let us consider the example from Section 3.3 where the realizations of the sequence of indexes for the sampling schemes S1\mathcal{S}_{1}, S2\mathcal{S}_{2}, and S3\mathcal{S}_{3} are respectively {j1,j2,j3}={3,3,1}\{j_{1},j_{2},j_{3}\}=\{3,3,1\}, {j1,j2,j3}={3,1,2}\{j_{1},j_{2},j_{3}\}=\{3,1,2\}, and {j1,j2,j3}={1,2,3}\{j_{1},j_{2},j_{3}\}=\{1,2,3\}. Figure 3(a) shows the three first schemes of Table 2 related to the sampling with replacement, S1\mathcal{S}_{1}. The figure shows a possible realization of all MIS schemes with M=N=3M=N=3 samples and pdfs. For the nn-th sample, we show the set of available proposals, the index jnj_{n} of the proposal pdf that was actually selected to draw the sample, the function φn\varphi_{n}, and the importance weight. Similarly, Figs. 3(b)-(c) depict the three schemes of Table 2 related to the sampling without replacement, S2\mathcal{S}_{2} and S3\mathcal{S}_{3}, where exactly one sample is drawn from each available proposal.

Variance Analysis of the Schemes

Although the six different MIS schemes that appear in Section 5 yield the estimator I^\hat{I} of Eq. (2.4) unbiased (see Appendix C), the performance of each of the possible obtained estimators can be dramatically different. In this section, we provide an exhaustive variance analysis of the MIS schemes presented in the previous section. The details of the derivations are in Appendix D.2. The estimators of the three methods with replacement present the following variances:

On the other hand, the variances associated to the estimators of the three methods with no replacement are

One of the goals of this paper is to provide the practitioner with solid theoretical results about the superiority of some specific MIS schemes. In the following, we state two theorems that relate the variance of the estimator with these six methods, establishing a hierarchy among them. Note that obtaining an IS estimator with finite variance essentially amounts to having a proposal with heavier tails than the target. See [Robert and Casella 2004; Geweke 1989] for sufficient conditions that guarantee this finite variance.

For any target distribution π(x)\pi({\bf x}), any square integrable function gg, and any set of proposal densities {qn(x)}n=1N\{q_{n}({\bf x})\}_{n=1}^{N} such that the variance of the corresponding MIS estimators is finite,

For any target distribution π(x)\pi({\bf x}), any square integrable function gg, and any set of proposal densities {qn(x)}n=12\{q_{n}({\bf x})\}_{n=1}^{2} such that the variance of the corresponding MIS estimators is finite,

First, let us note that the scheme N3 outperforms (in terms of the variance) any other MIS scheme in the literature that we are aware of. Moreover, for N=2N=2, it also outperforms the other novel schemes R2 and N2. While the MIS schemes R2 and N2 do not appear in Theorem 6.1, we hypothesize that the conclusions of Theorem 6.2 might be extended to N>2N>2. The intuitive reason is that, regardless of NN, both methods partially reduce the variance of the estimators by placing more than one proposal at the denominator of some or all the weights. A possible interpretation of the superiority of N3 is that it uses the whole mixture at the denominator of each weight, thus providing an exchange of information between all the proposals. This exchange of information is essential in multimodal scenarios, where the whole set of proposals, seen as a mixture, should mimic the whole target, but each proposal should adapt locally to the target. Since the variance of the IS weight depends on the mismatch of the target (numerator) w.r.t. the proposal (denominator), the use of the whole mixture in the denominator reduces the variance of the weight in general, and therefore, also the variance of the estimator (see the variance analysis in Appendix D). The scheme N3 goes a step further w.r.t. R3, drawing deterministically one sample from each mixand of ψ(x)\psi({\bf x}), which can be seen as drawing NN samples from the mixture ψ(x)\psi({\bf x}) with a modified version of stratified sampling, a well-known variance reduction technique (see Appendix A and [Owen 2013, Section 9.12]), which is also related to the residual resampling.

Here we focus on computing the exact variances of estimators related to the running example. We simplify the case study to N=2N=2 proposals, for the sake for conciseness in the proofs. The proposal pdfs are then q1(x)=N(x;μ1,σ2)q_{1}(x)=\mathcal{N}(x;\mu_{1},\sigma^{2}) and q2(x)=N(x;μ,σ2)q_{2}(x)=\mathcal{N}(x;\mu,\sigma^{2}) with means μ1=−3\mu_{1}=-3 and μ2=3\mu_{2}=3, and variance σ2=1\sigma^{2}=1. We consider a normalized bimodal target pdf π(x)=12N(x;ν1,c12)+12N(x;ν2,c22)\pi(x)=\frac{1}{2}\mathcal{N}(x;\nu_{1},c_{1}^{2})+\frac{1}{2}\mathcal{N}(x;\nu_{2},c_{2}^{2}) and set ν1=μ1\nu_{1}=\mu_{1}, ν2=μ2\nu_{2}=\mu_{2}, and c12=c22=σ2c_{1}^{2}=c_{2}^{2}=\sigma^{2}. Then, both proposal pdfs can be seen as a whole mixture that exactly replicates the target, i.e., π(x)=12q1(x)+12q2(x)\pi(x)=\frac{1}{2}q_{1}(x)+\frac{1}{2}q_{2}(x). This is the desired situation pursued by an AIS algorithm: Each proposal is centered at each target mode, and the scale parameters perfectly match the scale of the modes. The goal consists in estimating the normalizing constant with the six schemes described in Section 5. We use the Z^\hat{Z} estimator of Eq. (2.6) and the estimator I^\hat{I} of (2.4) when g=xg=x, both with N=2N=2 samples. The closed-form variance expressions of the six schemes are presented in the following:

The variances of the estimators of the normalizing constant (true value Z=∫π(x)dx=1Z=\int\pi(x)dx=1) are given by

The variances of the estimators of the target mean (true value I=∫xπ(x)dx=0I=\int x\pi(x)dx=0) are given by

The derivations can be found in Appendix D.4. We observe that, for a very simple bimodal scenario where the proposals are perfectly placed in the target modes, the schemes R3 and N3 present a good performance while the other schemes do not work.

Applying the MIS Schemes

Table 3 compares the total number of target and proposal evaluations in each MIS scheme. First, note that the estimators of any MIS scheme within the proposed general framework perform NN target evaluations in total. However, depending on the function φPn\varphi_{\mathcal{P}_{n}} used by each specific scheme at the weight denominator, a different number of proposal evaluations is performed. We see that R3 and N3 always require the largest number of proposal evaluations. In R2, the number of proposal evaluations is variable: although each weight evaluates NN proposals, some proposals may be repeated, whereas others may not be used.

In many relevant scenarios, the cost of evaluating the proposal densities is negligible compared to the cost of evaluating the target function. In this scenario, the MIS scheme N3 should always be chosen, since it yields a lower variance with a negligible increase in computational cost. For instance, this is the case in the Big Data Bayesian framework, where the target function is a posterior distribution with a large amount of data in the likelihood function. However, in some other scenarios, e.g. when the number of proposals NN is too large and/or the target evaluations are not very expensive, limiting the number of proposal evaluations can result in a better cost-performance trade off.

Unlike most MCMC methods, several strategies of parallelization can be applied in IS-based techniques. In the adaptive context, the adaptation of all proposals usually depends on the performance of all previous proposals, and therefore the adaptivity is the bottleneck of the parallelization. The six schemes proposed in this paper can be parallelized to some extent. Once all the proposals are available, the schemes R1, N1, R3, and N3 can draw and weight the NN samples in parallel, which represents a large advantage w.r.t. MCMC methods. In the schemes R2 and N2, the samples can be drawn independently, but the denominator of the weight cannot be computed in a parallel way. However, since the target evaluation in the numerator of the weights is fully parallelizable, the drawback of these schemes can be considered negligible for a small/medium number of proposals.

2 A priori partition approach

The extra computational cost of some MIS schemes occurs because each sample must be evaluated in more than one proposal qnq_{n}, or even in all of the available proposals (e.g. the MIS scheme N3). In order to limit the number of proposal evaluations, let us first define a partition of the set of the indexes of all proposals, {1,…,N}\{1,\ldots,N\}, into PP disjoint subsets of LL elements (indexes), Jp\mathcal{J}_{p} with p=1,…,Pp=1,\ldots,P, s.t.

After this a priori partition, one could apply any MIS scheme in each (partial) subset of proposals, and then perform a suitable convex combination of the partial estimators. This general strategy is inspired by a specific scheme, partial deterministic mixture MIS (p-DM-MIS), which was recently proposed in [Elvira et al. 2015a]. That work applies the idea of the partitions just for the MIS scheme N3, denoted there as full deterministic mixture MIS (f-DM-MIS). The sampling procedure is then S3\mathcal{S}_{3}, i.e., exactly one sample is drawn from each proposal. The weight of each sample in p-DM-MIS, instead of evaluating the whole set of proposals (as in N3), evaluates only the proposals within the subset that the generating proposal belongs to. Mathematically, the weights of the samples corresponding to the pp-th mixture are computed as

Note that the number of proposal evaluations is N≤N2P≤N2N\leq\frac{N^{2}}{P}\leq N^{2}. Specifically, we have the particular cases P=1P=1 and P=NP=N corresponding to the MIS schemes N3 (best performance) and N1 (worst performance), respectively. In [Elvira et al. 2015a], it is proved that for a specific partition with PP subsets of proposals, merging any pair of subsets decreases the variance of the estimator I^\hat{I} of Eq. (2.4).

The previous idea can be applied to the other MIS schemes presented in Section 5 (not only N3). In particular, one can make an a priori partition of the proposals as in Eq. (7.1), and apply independently any different MIS scheme in each set. For instance, and based on some knowledge about the performance of the different proposals, one could make two disjoint sets of proposals, applying the MIS scheme N1 in the first set, and the MIS scheme N3 in the second set. Recently, a novel partition approach has been proposed in [Elvira et al. 2016]. In this case, the sets of proposals are performed a posteriori, once the samples have been drawn. The variance of the estimators is reduced at the price of introducing a bias.

3 Generalized Adaptive Multiple Importance Sampling

The MIS schemes considered in Section 5 can be directly applied to the adaptive context. Moreover, the a priori partition approach of Section 7.2 can be very useful to limit the computational cost of the different MIS schemes when the number of iterations grows (and therefore also the total number of proposals).

Let us assume that, at the tt-th iteration, one sample is drawn from each proposal qj,tq_{j,t} (sampling S3\mathcal{S}_{3}), i.e.,

j=1,…,Jj=1,\ldots,J and t=1,…,Tt=1,\ldots,T. Then, an importance weight wj,tw_{j,t} is assigned to each sample xj,t{\bf x}_{j,t}. As described exhaustively in Section 4, several strategies can be applied to build wj,tw_{j,t} considering the different MIS approaches. Figure 4 provides a graphical representation of this scenario, by showing both the spatial and temporal evolution of the J=NTJ=NT proposal pdfs. In a generic AIS algorithm, one weight

is associated to each sample xj,t{\bf x}_{j,t}. In the MIS scheme N1, the function employed in the denominator is

In the following, we focus on the MIS scheme N3 in the adaptive framework, considering several choices of the partitioning of the set of proposals, since this scheme attains the best performance, as shown in Section 6. In the full N3 scheme, the function φj,t\varphi_{j,t} is

where ψ(x)\psi({\bf x}) is now the mixture of all the spatial and temporal proposal pdfs. This case corresponds to the blue rectangle in Fig. 4. However, note that the computational complexity can become prohibitive as the product JT increases. Furthermore, two natural alternatives of partial N3 schemes appear in this scenario. The first one uses the following partial mixture

with j=1,…,Jj=1,\ldots,J, as mixture-proposal pdf in the IS weight denominator, i.e. using the temporal evolution of the jj-th single proposal qj,tq_{j,t} at the weight denominator. In this case, there are P=JP=J mixtures, each one formed by L=TL=T components (red rectangle in Fig. 4). Another possibility is considering the mixture of all the qj,tq_{j,t}’s at the tt-th iteration, i.e.,

with t=1,…,Tt=1,\ldots,T, so that we have P=TP=T mixtures, each one formed by L=JL=J components (green rectangle in Fig. 4). The function φj,t\varphi_{j,t} in Eq. (7.4) is used in the standard PMC scheme [Cappé et al. 2004]; Eq. (7.6), in the particular case of J=1J=1, has been considered in the adaptive multiple importance sampling (AMIS) algorithm [Cornuet et al. 2012]. Note that the schemes that consider at the denominator of the weight the temporal sequence of adapted proposals can introduce a bias in the IS estimators (see [Cornuet et al. 2012, Section 5] for more details). The choice in Eq. (7.7) has been applied in the adaptive population importance sampling (APIS) [Martino et al. 2015], the layered adaptive importance sampling (LAIS) [Martino et al. 2017], and the deterministic mixture population Monte Carlo (DM-PMC) [Elvira et al. 2017] algorithms. In other techniques, such as mixture PMC (M-PMC) [Douc et al. 2007a; Douc et al. 2007b; Cappé et al. 2008], a similar strategy is employed, but using sampling S1\mathcal{S}_{1} in the mixture ϕt(x)\phi_{t}({\bf x}), i.e., with the MIS scheme R3.

Note that using ψ(x)\psi({\bf x}) and ξj(x)\xi_{j}({\bf x}) the computational cost per iteration increases as the total number of iterations TT grows. Indeed, at the tt-th iteration all the previous proposals qj,1,…,qj,t−1q_{j,1},\ldots,q_{j,t-1} (for all jj) must be evaluated at all the new samples xj,t{\bf x}_{j,t}. Hence, algorithms based on these proposals quickly become unfeasible as the number of iterations grows. On the other hand, using ϕt(x)\phi_{t}({\bf x}) the computational cost per iteration is controlled by JJ, remaining constant regardless of the number of adaptive steps performed.

4 Guidelines for applying MIS

The superiority of N3 is theoretically proved for the unnormalized estimator in Theorems 6.1 and 6.2, and practically shown by means of several numerical simulations for the self-normalized estimator (see next section). However, the associated computational complexity is also increased w.r.t. the other MIS schemes in terms of proposal evaluations. If NN is small or the target evaluations are expensive (w.r.t. the cost of the proposal evaluations), N3 should be used. However, when the target evaluation is cheap and/or the number of proposals is large, the use of N3 increases notably the computational complexity. In this case, the novel schemes R2 or N2 seem to provide very good results, and their theoretical properties are superior to those of N1 and R1. However, future studies will be required to characterize these novel schemes and investigate efficient parallelization techniques. We also recommend to combine adaptive schemes with the partition approach proposed in [Elvira et al. 2015a] and [Elvira et al. 2016], and summarized in Section 7.2. Note that further investigation is also needed for efficiently constructing the partitions of the proposals that allow to reduce the computational complexity while retaining most of the variance reduction associated to the N3 scheme.

In the adaptive context, there is a big potential for the MIS schemes where all spatial and temporal proposals are used at the denominator of all weights (blue square in Fig. 4). However, the computational complexity for large number of proposals is prohibitive, and further theoretical analysis about the bias of the estimators is needed (see [Cornuet et al. 2012, Section 5]). The adaptivity of MIS algorithms is essential in challenging high-dimensional setups. The N3 scheme has exhibited a very good performance when used within adaptive MIS algorithms due to two main reasons. First, the variance of the estimators at each iteration is reduced as proved in Theorems 6.1 and 6.2, which explains part of the variance reduction attained in AMIS [Cornuet et al. 2012], LAIS [Martino et al. 2017], or GAPIS [Elvira et al. 2015b]. Second, when the IS weights are used for adaptive purposes (e.g. in APIS [Martino et al. 2015] or DM-PMC [Elvira et al. 2017]), the use of the whole mixture of proposals in the denominator of the weights can be seen as a cooperative adaptive procedure (see [Elvira et al. 2017] for further details).

Finally, one of the strengths of the N3 scheme is its performance in multimodal scenarios, where N1 should always be avoided. If NN is comparable to the number of modes, an adaptive N3 scheme should be employed; the aforementioned cooperation in the proposals adaptation has an implicit repulsive behavior that promotes the adaptation to different modes. However, if NN is much larger, the adaptive algorithm may use R2 or N2 with potentially similar performance but less computational complexity.

Numerical Examples

In the previous sections, we have provided several theoretical results for comparing different MIS schemes according to different quality measures, e.g., ranking them in terms of the variance of the corresponding estimators. In this section, we provide different numerical results in order to quantify numerically the gap among these methods. In the following, we show that even in the case where the different proposals are well tuned (in the sense of a small or no mismatch with a multimodal target), the choices of the sampling and weighting procedures dramatically affect the performance of the MIS estimator.

Let us consider again the target pdf of the running example

with means ν1=−3\nu_{1}=-3, ν2=0\nu_{2}=0, and ν3=3\nu_{3}=3, and variances c12=c22=c32=1c_{1}^{2}=c_{2}^{2}=c_{3}^{2}=1. As proposal functions we use qi(x)=N(x;μi,σ)q_{i}(x)=\mathcal{N}(x;\mu_{i},\sigma), with μi=νi\mu_{i}=\nu_{i} and i=1,2,3i=1,2,3 and σ2=1\sigma^{2}=1, i.e., the proposal pdfs can be seen as a whole mixture that exactly replicates the target, i.e., π(x)=ψ(x)=13q1(x)+13q2(x)+13q3(x)\pi(x)=\psi(x)=\frac{1}{3}q_{1}(x)+\frac{1}{3}q_{2}(x)+\frac{1}{3}q_{3}(x).

The goal is to estimate the mean of the target pdf with the six MIS schemes. Fig. 5(a) shows the MSE of the estimator I^\hat{I} for all the methods w.r.t. the number of total samples (note that some schemes require that the total number of samples is multiple of M=3M=3). The results have been averaged over 5⋅1065\cdot 10^{6} runs. The solid black line shows the variance of the natural estimator, i.e. sampling directly from the target pdf (since this is possible in this easy example). Note that the method I^R3\hat{I}_{\texttt{R3}} exactly replicates the performance of Iˉ\bar{I}: this method samples from the mixture of Gaussians in the traditional way and the weights, due to the perfect match, are always w=1w=1, i.e., I^R3\hat{I}_{\texttt{R3}} and Iˉ\bar{I} are equivalent. We can see that I^N3\hat{I}_{\texttt{N3}} is the best estimator in terms of variance, while I^R1\hat{I}_{\texttt{R1}} and I^N1\hat{I}_{\texttt{N1}} present a high variance. Note that, surprisingly, I^N3\hat{I}_{\texttt{N3}} has better performance than sampling from the target, i.e., estimator Iˉ\bar{I}. This is because the sampling S3\mathcal{S}_{3} can be seen as a sampling from the mixture of proposals ψ(x)\psi({\bf x}) (which coincides with the target in this example) with a variance reduction technique, as we discuss in Appendix A. Note also that the inequality proved in Theorem 6.1 holds since all methods are unbiased and therefore the MSE is due only to the variance. We can see that I^R2\hat{I}_{\texttt{R2}} and I^N2\hat{I}_{\texttt{N2}} also behave badly in terms of variance.

2 Applying the MIS schemes in adaptive IS (AIS)

We apply the different MIS schemes within an AIS context. In particular, we focus on the LAIS algorithm, recently proposed in [Martino et al. 2017]. The method consists of an upper layer with a MCMC that draws samples from the target, while a lower layer uses those samples as location parameters (means) of some proposal pdfs for applying IS. In its basic version, JJ Metropolis-Hastings chains independently run at the upper layer, and hence MIS is applied in the lower layer with JJ proposals at each iteration. In the following, we implement the six adaptive MIS schemes in a spatial manner for two different target pdfs. For instance, the N3 scheme is implemented by sampling exactly one sample from each of the JJ proposals at the tt-th iteration, and applying at the denominator of the IS weight the whole mixture of JJ proposals as in Eq. (7.7) (see the green square of Fig. 4).

Let us first consider a mixture of five bivariate Gaussians,

2.2 Multidimensional banana-shaped distribution.

We consider the banana shape target example used in [Haario et al. 1999; Haario et al. 2001] which “can be be calibrated to become extremely challenging” [Cornuet et al. 2012]. The target is based on a dxd_{x}-dimensional multivariate Gaussian x∼N(x;0dx,Σ){\bf x}\sim\mathcal{N}({\bf x};\textbf{0}_{d_{x}},{\bf\Sigma}) with Σ=diag(σ2,1,...,1)\Sigma=\text{diag}(\sigma^{2},1,...,1), where the second variable is nonlinearly transformed from x2x_{2} to x2−b(x12−σ2)x_{2}-b(x_{1}^{2}-\sigma^{2}). This transformation leads to a banana-shaped distribution with zero mean and uncorrelated components (note that the target dimension dx≥2d_{x}\geq 2).

3 Discussion on the experimental results

The numerical experiments confirm that N3 provides the best performance. The scheme R3 also presents a good performance in most cases. The performance of R1 and N1 is, in general, much worse than the performance of the other schemes. Both schemes account at the weight denominator only for the proposal from which the sample is drawn, which in a multimodal scenario can be problematic. While R1 is a novel scheme that has naturally arisen in this work, and it probably has little interest from a practical point of view, N1 has been applied in different adaptive MIS algorithms, such as the original version of PMC [Cappé et al. 2004].

The novel schemes R2 and N2 have appeared in this new framework and deserve a further analysis. The hierarchy theoretically proved for N=2N=2 proposals in Theorem 6.2 still holds in the numerical examples for N>2N>2, e.g. in Figs. 5(a) and 5(b). In some scenarios, for instance where there is a big number of proposals compared to the modes of the target, these schemes can attain most of the variance reduction of N1 and N3 while reducing the number of proposal evaluations w.r.t. N3. In the example with AIS methods, both R2 and N2 present a very competitive performance w.r.t. to N3.

Finally, observe that in Fig. 5, when a small number of samples MM is employed, the schemes N1, N2 and N3, i.e., those with index selection without replacement (S2\mathcal{S}_{2} and S3\mathcal{S}_{3}), behave better. This occurs because the variance associated to the index selection is reduced by guaranteeing that all proposal pdfs are always used.

Conclusions

In this work, we have introduced a unified framework for sampling and weighting in the context of multiple importance sampling (MIS). This approach extends the concept of a proper weighted sample, enabling the design of a wide range of sampling/weighting combinations. In particular, we have considered three specific sampling procedures and we have proposed five types of generic weighting functions (related to different conditional and marginal distributions which depend on the sampling scheme). As a result of the combinations of sampling and weighting procedures, we have analyzed the six unique resulting schemes (three of them are not present in the literature to the best of our knowledge). We have provided a theoretical comparison of these schemes in terms of variance, establishing a ranking of the different methods in terms of performance and computational complexity. Moreover, we have discussed the application of the MIS schemes within adaptive procedures. In addition, we have provided the practitioner with several useful and easy-to-follow guidelines for applying the MIS schemes in different scenarios. We have analyzed the behavior of the MIS schemes in three different numerical examples which corroborate the previous theoretical analysis.

ACKNOWLEDGMENTS

We thank the Editor, Associate Editor, and referees for their constructive comments that helped to improve the paper. V.E. acknowledges support from the Agence Nationale de la Recherche of France under PISCES project (ANR-17-CE40-0031-01). M.F.B. thanks the support of the National Science Foundation (NSF) under Award CCF-1617986.

References

A Further observations about the sampling 𝒮3\mathcal{S}_{3}

In the sampling procedure S3\mathcal{S}_{3}, Xn∼qn(x){\bf X}_{n}\sim q_{n}({\bf x}) for n=1,…,Nn=1,\dots,N, i.e., the selection of the index is deterministic. Note that the set of samples {xn}n=1N\{{\bf x}_{n}\}_{n=1}^{N} is used in the IS estimators regardless of the order they are drawn. It can be interpreted that the NN samples are drawn from the mixture ψ(x)=1N∑n=1Nqn(x)\psi({\bf x})=\frac{1}{N}\sum_{n=1}^{N}q_{n}({\bf x}) via Rao-Blackwellization (see [Owen 2013, Section 9.12] for more details). More formally, if we define the r.v. X=Xn\mboxwithn∼U{1,2,…,N}{\bf X}={\bf X}_{n}\quad\mbox{ with }\quad n\sim\mathcal{U}\{1,2,\ldots,N\}, then X∼ψ(x){\bf X}\sim\psi({\bf x}). The procedure S3\mathcal{S}_{3} follows a similar principle as a well-known variance reduction method, known as the stratified sampling [Robert and Casella 2004; Liu 2004], where the domain of X{\bf X} is divided into different regions that, in the case of sampling S3\mathcal{S}_{3}, are unbounded and overlapped [Owen 2013, Section 9.12]. Finally, note that the approach S3\mathcal{S}_{3} can also be seen as the application of a quasi-Monte Carlo technique [Niederreiter 1992] for generating the deterministic sequence of indexes j1=1,j2=2,…,jN=Nj_{1}=1,j_{2}=2,\ldots,j_{N}=N (uniform, in the sense of low-discrepancy sequence) and then drawing xn∼qjn(x)=qn(x){\bf x}_{n}\sim q_{j_{n}}({\bf x})=q_{n}({\bf x}) for n=1,…,Nn=1,\ldots,N. Note also, that S3\mathcal{S}_{3} can be seen as a residual resampling step of the indexes of the proposals. Since all weights of the proposals are the same, the resampling is fully deterministic, which explains part the variance reduction of the MIS schemes with sampling S3\mathcal{S}_{3}.

B Connections with resampling methods

Resampling methods are used in PFs to replace a set of weighted particles with another set of equally weighted particles. The way we address the sampling process in MIS has clear connections with the resampling step in PFs (e.g., see [Douc and Cappé 2005]). An important difference of the proposed framework is that the MIS proposals are equally weighted in the mixture. The sampling method S1\mathcal{S}_{1} is then equivalent to the multinomial resampling, whereas the sampling methods S2\mathcal{S}_{2} and S3\mathcal{S}_{3} correspond to residual resampling (note that, since M=NM=N and all the proposals are equally weighted, exactly one sample per proposal is drawn). In future works, it would be interesting to analyze sampling schemes related to residual, stratified and systematic resamplings, which can be incorporated quite naturally in MIS schemes, when the weights of the proposals are different (see for instance [He and Owen 2014]).

C Proofs of unbiasedness of the MIS estimators

In this appendix we prove the unbiasedness of the estimator I^\hat{I} of Eq. (2.4) for the five weighting options described in Section 4. We recall that the general expression for the expectation of I^\hat{I} within the proposed framework is

Option 1 (W1\mathcal{W}_{1}): φPn(xn)=φj1:n−1(xn)=p(xn∣j1:n−1)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{j_{1:n-1}}({\bf x}_{n})=p({\bf x}_{n}|j_{1:n-1}). We first marginalize in Eq. (C.1) over all indexes that do not affect the nn-th weight (jn:Nj_{n:N}):

Then, substituting φj1:n−1(xn)=p(xn∣j1:n−1)\varphi_{j_{1:n-1}}({\bf x}_{n})=p({\bf x}_{n}|j_{1:n-1}) into Eq. (C.2), canceling terms and marginalizing j1:n−1j_{1:n-1}, we have:

Option 2 (W2\mathcal{W}_{2}): φPn(xn)=φjn(xn)=p(xn∣jn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{j_{n}}({\bf x}_{n})=p({\bf x}_{n}|j_{n}). We substitute φjn(xn)=p(xn∣jn)\varphi_{j_{n}}({\bf x}_{n})=p({\bf x}_{n}|j_{n}) into Eq. (C.1), which cancels the denominator:

Option 3 (W3\mathcal{W}_{3}): φPn(xn)=φn(xn)=p(xn)\varphi_{\mathcal{P}_{n}}({\bf x}_{n})=\varphi_{n}({\bf x}_{n})=p({\bf x}_{n}). Since φn\varphi_{n} does not depend on any index, we can first marginalize over the whole set of indexes j1:Nj_{1:N} in Eq. (C.1):

Then, substituting φn=p(xn)\varphi_{n}=p({\bf x}_{n}) in Eq. (C.3):

Option 4 (W4\mathcal{W}_{4}): φPn(x)=φj1:N(x)=f(x∣j1:N)=1N∑n=1Nqjn(x)\varphi_{\mathcal{P}_{n}}({\bf x})=\varphi_{j_{1:N}}({\bf x})=f({\bf x}|j_{1:N})=\frac{1}{N}\sum_{n=1}^{N}q_{j_{n}}({\bf x}). In this case, the expectation of I^\hat{I} can be expressed as:

Substituting φj1:N(x)=f(x∣j1:N)=1N∑n=1Nqjn(x)\varphi_{j_{1:N}}({\bf x})=f({\bf x}|j_{1:N})=\frac{1}{N}\sum_{n=1}^{N}q_{j_{n}}({\bf x}) in Eq. (C.4), and cancelling the denominator:

Option 5 (W5\mathcal{W}_{5}): φPn(x)=φ(x)=f(x)=1N∑n=1Nqn(x)=ψ(x)\varphi_{\mathcal{P}_{n}}({\bf x})=\varphi({\bf x})=f({\bf x})=\frac{1}{N}\sum_{n=1}^{N}q_{n}({\bf x})=\psi({\bf x}). Now, the expectation of I^\hat{I} becomes

where, in the last step, we have used the identity

for any valid sampling procedure within this framework (see Remark 3.1 and Section 3.5 for more details). Substituting φ(x)=ψ(x)\varphi({\bf x})=\psi({\bf x}) in Eq. (C.5)

D Variance analysis of the MIS estimators

that approximates II. The variance of I^\hat{I} can be expressed in the general form as

In the general case of Eq. (D.2), the NN terms of the sum of the estimator in I^{\hat{I}} are dependent. However, in the specific cases where they are independent, the variance of a sum of r.v.’s can be simplified as the sum of the variances, i.e.,

In some MIS schemes, the NN terms are dependent (due to a sampling without replacement or because the nn-th weight depends on several indexes jkj_{k}, with at least one k≠nk\neq n). However, conditioned to the whole set of indexes j1:Nj_{1:N}, the terms of the sum in Eq. (D.1) are always conditionally independent, so we can apply

In the following, we analyze the variance of the six MIS schemes discussed through this paper under the assumptions described in Theorem 6.1 (see Section 6 for more details). Since some schemes arise under more than one sampling/weighting combination (see Table 6), here we always use the combination that facilitates the analysis.

1. [R1] Sampling 1 / Weighting 2: In this scheme, all the terms of the sum in Eq. (D.1) are independent, so we can use Eq. () for computing the variance of I^{\hat{I}}. Substituting φjn(xn)=p(xn∣jn)=qjn(xn)\varphi_{j_{n}}({\bf x}_{n})=p({\bf x}_{n}|j_{n})=q_{j_{n}}({\bf x}_{n}) in ,

were we have used that P(jn)=1NP(j_{n})=\frac{1}{N}, ∀jn∈{1,...,N}\forall j_{n}\in\{1,...,N\}.

2. [R2] Sampling 1 / Weighting 4: The expression for the conditional independence of Eq. () is used substituting φj1:N(xn)=f(xn∣j1:N)=1N∑k=1Nqjk(xn)\varphi_{j_{1:N}}({\bf x}_{n})=f({\bf x}_{n}|j_{1:N})=\frac{1}{N}\sum_{k=1}^{N}q_{j_{k}}({\bf x}_{n}) and averaging it over the NNN^{N} equiprobable sequences of indexes j1:Nj_{1:N}:

where we have used the identity f(x∣j1:N)=1N∑n=1Nqjn(xn)f({\bf x}|j_{1:N})=\frac{1}{N}\sum_{n=1}^{N}q_{j_{n}}({\bf x}_{n}). This expression for the variance resembles that of scheme [N3], averaged over the NNN^{N} possible mixtures (combinations) that can arise with sampling S1\mathcal{S}_{1}.

3. [R3] Sampling 1 / Weighting 3: All the elements are independent in the sum, and the weights do not depend on any index of the set j1:Nj_{1:N}. Therefore, we can start with Eq. (), marginalize over the indexes, and substitute φn(xn)=p(xn)=ψ(xn)\varphi_{n}({\bf x}_{n})=p({\bf x}_{n})=\psi({\bf x}_{n}),

4. [N1] Sampling 3 / Weighting 3: The methods that use sampling without replacement introduce correlation at the selection of the proposals. However, under the perspective of the deterministic sampling (S3\mathcal{S}_{3}), the nn-th sample xn{\bf x}_{n} is a realization of the r.v. Xn∼qnX_{n}\sim q_{n} and is independent of the other samples. Marginalizing first Eq. () over the indexes, and substituting φn(xn)=p(xn)=qn(xn)\varphi_{n}({\bf x}_{n})=p({\bf x}_{n})=q_{n}({\bf x}_{n}):

5. [N2] Sampling 2 / Weighting 1: In this scheme, we use again the expression for conditional independence of Eq. (). Substituting φj1:n−1=p(xn∣j1:n−1)\varphi_{j_{1:n-1}}=p({\bf x}_{n}|j_{1:n-1}),

Since the the integrals only depend on the set of indexes j1:nj_{1:n}, each term of the sum has been first marginalized over jn+1:Nj_{n+1:N}. The first term in the sum can then be further marginalized over jnj_{n} to obtain the final expression. Note that the variance is the average of the variance of all the N!N! possible sequences of indexes in the sampling without replacement.

6. [N3] Sampling 3 / Weighting 5: We have followed the same arguments of scheme N1. Marginalizing Eq. () over all the set of indexes j1:Nj_{1:N}, and substituting φn(xn)=f(xn)=ψ(xn)\varphi_{n}({\bf x}_{n})=f({\bf x}_{n})=\psi({\bf x}_{n}):

where we have used the identity ψ(x)=1N∑n=1Nqn(x)dx\psi({\bf x})=\frac{1}{N}\sum_{n=1}^{N}q_{n}({\bf x})d{\bf x}.

D.2 Proof of Theorem 6.1

The proof of Theorem 6.1 is split in the next three propositions.

Proof: See that Eqs. (D.5) and (D.8) are equivalent. ∎

Proof: Subtracting Eqs. (D.7) and (D.8), we get

Now, let us note that the left-hand side of Eq. (D.11) is the inverse of the arithmetic mean of q1(x), …, qN(x)q_{1}({\bf x}),\ \ldots,\ q_{N}({\bf x}),

whereas the right hand side of Eq. (D.11) is the inverse of the harmonic mean of q1(x), …, qN(x)q_{1}({\bf x}),\ \ldots,\ q_{N}({\bf x}),

Therefore, the inequality in Eq. (D.11) is equivalent to stating that 1AN≤1HN\frac{1}{A_{N}}\leq\frac{1}{H_{N}}, or equivalently AN≥HNA_{N}\geq H_{N}, which is the well-known arithmetic mean–harmonic mean inequality for positive real numbers [Hardy et al. 1952; Abramowitz and Stegun 1972; Gwanyama 2004]. ∎

Proof: Subtracting (D.7) and (D.10), we get

with an=∫π(x)g(x)ψ(x)qn(x)dxa_{n}=\int\frac{{\pi}({\bf x})g({\bf x})}{\psi({\bf x})}q_{n}({\bf x})d{\bf x}. The inequality of Eq. (D.12) holds, since it is the definition of the Cauchy-Schwarz inequality [Hardy et al. 1952],

with bn=1b_{n}=1 for n=1,...,Nn=1,...,N. \hfill□\hfill\Box

Proof of Theorem 6.1. The proof is obtained by applying Propositions D.1, D.2, and D.3. ∎

D.3 Proof of Theorem 6.2

Let us first particularize the variance expression for N=2N=2. From Eq. (D.8),

Proof: See that Eqs. (D.17) and (D.18) are equivalent. ∎

Proof: Analyzing Eqs. () and (), we see that Eq. (D.17) can be rewritten as

Proof of Theorem 6.2. The proof is obtained by applying Propositions D.4 and D.5. ∎

We hypothesize that Theorem 6.2 might also hold for N>2N>2. The MIS schemes R2 and N2 seem to average estimators with variance reduction (related to N3) with estimators with worse variance (related to N1).

Note that the scheme R3 does not appear in Theorem 6.2. Eq. (D.17) can be rewritten as

D.4 Example with closed-form variances

Let us derive the expressions of the example of Section 6.1 by considering the targeted distribution

We consider N=2N=2 proposal densities, q1(x)=N(x∣−μ,σ2)q_{1}({\bf x})=\mathcal{N}({\bf x}|-\mu,\sigma^{2}) and q2(x)=N(x∣μ,σ2)q_{2}({\bf x})=\mathcal{N}({\bf x}|\mu,\sigma^{2}). Note that the mixture of proposals is exactly the targeted distribution, i.e. ψ(x)=π(x)\psi({\bf x})=\pi({\bf x}). We address the case where we want to estimate a specific moment gg of π\pi with the M=2M=2 samples. In the following, we provide explicit variances of the unnormalized estimator of Eq. (2.4) for the six MIS schemes. From Eq. (D.5),

Moreover, from Proposition D.4, I^N2=I^R2\hat{I}_{\texttt{N2}}=\hat{I}_{\texttt{R2}}.

E Multidimensional mixture of generalized Gaussian distributions

Let us consider a mixture of multivariate generalized Gaussian distributions (GGD) as a target pdf. In particular

where μk=[μk,1,...,μk,dx]⊤{\bm{\mu}}_{k}=[\mu_{k,1},...,\mu_{k,d_{x}}]^{\top}, αk=[αk,1,...,αk,dx]⊤{\bm{\alpha}}_{k}=[\alpha_{k,1},...,\alpha_{k,d_{x}}]^{\top}, and βk=[βk,1,...,βk,dx]⊤{\bm{\beta}}_{k}=[\beta_{k,1},...,\beta_{k,d_{x}}]^{\top} are respectively the mean, scale, and shape parameters of each component of the mixture. Each component of the mixture factorizes in all dimensions, i.e., the multivariate GGD pdf is the product of NN unidimensional GGD pdfs. Namely,

where κk,d=βk,d2αk,dΓ(1βk,d)\kappa_{k,d}=\frac{\beta_{k,d}}{2\alpha_{k,d}\Gamma\left(\frac{1}{\beta_{k,d}}\right)}, Γ(⋅)\Gamma(\cdot) is the gamma function, and xdx_{d} is the dd-th dimension of x{\bf x}. This family of distributions includes both Gaussian and Laplace distributions with β=2\beta=2 and β=1\beta=1, respectively. In this example, μ1,d=−3\mu_{1,d}=-3, μ2,d=1\mu_{2,d}=1, μ3,d=5\mu_{3,d}=5, β1,d=1.1\beta_{1,d}=1.1, β2,d=1.8\beta_{2,d}=1.8, β3,d=5\beta_{3,d}=5, α1,d=α2,d=α3,d=1\alpha_{1,d}=\alpha_{2,d}=\alpha_{3,d}=1 for all d=1,...,dxd=1,...,d_{x}. The expected value of the target π(x){\pi}({\bf x}) is then Eπ[Xd]=1E_{\pi}[{X_{d}}]=1 for d=1,...,dxd=1,...,d_{x}. In order to study the performance of the different MIS schemes, we vary the dimension of the state space in Eq. (E.1) testing different values of dxd_{x} (with 2≤dx≤102\leq d_{x}\leq 10). We consider the problem of approximating via Monte Carlo the expected value of the target density, and we compare the performance of all MIS schemes. In this example, we use N=500N=500 non-standardized t-student densities as proposal functions, where each location parameter has been selected uniformly within the dx^{d_{x}} square, and the scale parameters and the degree of freedom parameters have been selected as σn,d=5\sigma_{n,d}=5 and νn,d=5\nu_{n,d}=5, respectively, for n=1,...,Nn=1,...,N and d=1,...,dxd=1,...,d_{x}. For each method, we draw M=kNM=kN samples, with k=32k=32, and we average all the results over 200200 runs.

Fig. 7 shows the MSE in the estimation of the mean of the target (averaged over all dimensions) when we increase the dimension dxd_{x}. Note that the hierarchy established in Section 6 also holds in this example regardless the dimension. In this case, methods R1 and N1 behave poorly even at lower dimensions, while the other MIS schemes have a similar behavior. When we increase the dimension, all the methods degrade, and, at certain point (dx≥6d_{x}\geq 6), the performance of all of them is similar. Note that the proposal pdfs are fixed in random locations of the space, which is well covered at low dimensions (since we are using N=500N=500 pdfs), but this coverage becomes worse as the dimension increases. This can probably explain the similar performance of all the methods in higher dimensions.