Convergence guarantees for kernel-based quadrature rules in misspecified settings
Motonobu Kanagawa, Bharath K. Sriperumbudur, Kenji Fukumizu
Introduction
Numerical integration, or quadrature, is a fundamental task in the construction of various statistical and machine learning algorithms. For instance, in Bayesian learning, numerical integration is generally required for the computation of marginal likelihood in model selection, and for the marginalization of parameters in fully Bayesian prediction, etc . It also offers flexibility to probabilistic modeling, since, e.g., it enables us to use a prior that is not conjugate with a likelihood function.
For example, the simplest Monte Carlo method generates the points as an i.i.d. sample from and uses equal weights . Convergence rates of such Monte Carlo methods are of the form , which can be slow for practical purposes. For instance, in situations where the evaluation of the integrand requires heavy computations, should be small and Monte Carlo would perform poorly; such situations typically appear in modern scientific and engineering applications, and thus quadratures with faster convergence rates are desirable .
One way of achieving faster rates is to exploit one’s prior knowledge or assumption about the integrand (e.g. the degree of smoothness) in the construction of a weighted point set . Reproducing kernel Hilbert spaces (RKHS) have been successfully used for this purpose, with examples being Quasi Monte Carlo (QMC) methods based on RKHSs and Bayesian quadratures ; see e.g. and references therein. We will refer to such methods as kernel-based quadrature rules or simply kernel quadratures in this paper. A kernel quadrature assumes that the integrand belongs to an RKHS consisting of smooth functions (such as Sobolev spaces), and constructs the weighted points so that the worst case error in that RKHS is small. Then the error rate of the form , which is much faster than the rates of Monte Carlo methods, will be guaranteed with being a constant representing the degree of smoothness of the RKHS (e.g., the order of differentiability). Because of this nice property, kernel quadratures have been studied extensively in recent years and have started to find applications in machine learning and statistics .
However, if the integrand does not belong to the assumed RKHS (i.e. if is less smooth than assumed), there is no known theoretical guarantee for fast convergence rate or even the consistency of kernel quadratures. Such misspecification is likely to happen if one does not have the full knowledge of the integrand—such situations typically occur when the integrand is a black box function. As an illustrative example, let us consider the problem of illumination integration in computer graphics (see e.g. Sec. 5.2.4 of ). The task is to compute the total amount of light arriving at a camera in a virtual environment. This is solved by numerical integration with integrand being the intensity of light arriving at the camera from a direction (angle). The value is only given by simulation of the environment for each , so is a black box function. In such a situation, one’s assumption on the integrand can be misspecified. Establishing convergence guarantees for such misspecified settings has been recognized as an important open problem in the literature [6, Section 6].
The main contribution of this paper is in providing general convergence guarantees for kernel-based quadrature rules in misspecified settings. Specifically, we make the following contributions:
In Section 4, we prove that consistency can be guaranteed even when the integrand does not belong to the assumed RKHS. Specifically, we derive a convergence rate of the form , where is a constant characterizing the (relative) smoothness of the integrand. In other words, the integration error decays at a speed depending on the (unknown) smoothness of the integrand. This guarantee is applicable to kernel quadratures that employ random points.
We apply this result to QMC methods called lattice rules (with randomized points) and the quadrature rule by Bach , for the setting where the RKHS is a Korobov space. We show that even when the integrand is less smooth than assumed, the error rate becomes the same as for the case when the (unknown) smoothness is known; namely, we show that these methods are adaptive to the unknown smoothness of the integrand.
As an important consequence, we show that if weighted points achieve the optimal rate in , then they also achieve the optimal rate in . In other words, to achieve the optimal rate for the integrand belonging to , one does not need to know the smoothness of the integrand; one only needs to know its upper-bound .
This paper is organized as follows. In Section 2, we describe kernel-based quadrature rules, and formally state the goal and setting of theoretical analysis in Section 3. We present our contributions in Sections 4 and 5. Proofs are collected in the supplementary material.
Our work is close to in spirit, which discusses situations where the true integrand is smoother than assumed (which is complementary to ours) and proposes a control functional approach to make kernel quadratures adaptive to the (unknown) greater smoothness. We also note that there are certain quadratures which are adaptive to less smooth integrands . On the other hand, our aim here is to provide general theoretical guarantees that are applicable to a wide class of kernel-based quadrature rules.
Kernel-based quadrature rules
Suppose that one has prior knowledge on certain properties of the integrand (e.g. its order of differentiability). A kernel quadrature exploits this knowledge by expressing it as that belongs to a certain RKHS that possesses those properties, and then constructing weighted points so that the error of integration is small for every function in the RKHS. More precisely, it pursues the minimax strategy that aims to minimize the worst case error defined by
where denotes the norm of . The use of RKHS is beneficial (compared to other function spaces), because it results in an analytic expression of the worst case error (2) in terms of the reproducing kernel. Namely, one can explicitly compute (2) in the construction of as a criterion to be minimized. Below we describe this as well as examples of kernel quadratures.
Therefore, the worst case error (2) can be written as the difference between and :
where denotes the norm of defined by for . From (3), it is easy to see that for every , the integration error is bounded by the worst case error:
We refer the reader to for details of these derivations. Using the reproducing property of , the r.h.s. of (3) can be alternately written as:
The integrals in (4) are known in closed form for many pairs of and ; see e.g. Table 1 of . For instance, if is the uniform distribution on , and is the Korobov kernel described below, then for all . To pursue the aforementioned minimax strategy, one can explicitly use the formula (4) to minimize the worst case error (2). Often is chosen as an RKHS consisting of smooth functions, and the degree of smoothness is what a user specifies; we describe this in the example below.
2 Examples of RKHSs: Korobov spaces
The setting is standard in the literature on numerical integration; see e.g. . In this setting, Korobov spaces and Sobolev spaces have been widely used as RKHSs.Korobov spaces are also known as periodic Sobolev spaces in the literature [4, p.318]. We describe the former here; for the latter, see Section 5.
where denotes the -th Bernoulli polynomial. consists of periodic functions on $(\alpha-1)\alphaL_{2}()\alphaW_{\rm Kor}^{\alpha}()$.
For , the kernel of the Korobov space is given as the product of one-dimensional kernels (5):
The induced Korobov space on is then the tensor product of one-dimensional Korobov spaces: . Therefore it consists of functions having square-integrable mixed partial derivatives up to the order in each variable. This means that by using the kernel (6) in the computation of (4), one can make an assumption that the integrand has smoothness of degree in each variable. In other words, one can incorporate one’s knowledge or belief on into the construction of weighted points via the choice of .
3 Examples of kernel-based quadrature rules
We briefly describe examples of kernel-based quadrature rules.
These methods typically focus on the setting where with being the uniform distribution on , and employ equal weights . Popular examples are lattice rules and digital nets/sequences. Points are selected in a deterministic way so that the worst case error (4) is as small as possible. Then such deterministic points are often randomized to obtain unbiased integral estimators, as we will explain in Section 4.2. For a review of these methods, see .
For instance, lattice rules generate in the following way (for simplicity assume is prime). Let be a generator vector. Then the points are defined as for . Here is selected so that the resulting worst case error (2) becomes as small as possible. The CBC (Component-By-Component) construction is a fast method that makes use of the formula (4) to achieve this; see Section 5 of and references therein. Lattice rules applied to the Korobov space can achieve the rate for the worst case error with arbitrarily small [11, Theorem 5.12].
These methods are applicable to general and , and employ non-uniform weights. Points are selected either deterministically or randomly. Given the points being fixed, weights are obtained by minimizing (4), which can be done by solving a linear system of size . Such methods are called Bayesian quadratures, since the resulting estimate in this case is exactly the posterior mean of the integral given “observations” , with the prior on the integrand being Gaussian Process with the covariance kernel . We refer to for these methods.
For instance, the algorithm by Bach proceeds as follows, for the case of being a Korobov space and being the uniform distribution on : (i) Generate points independently from the uniform distribution on ; (ii) Compute weights by minimizing (4), with the constraint . Bach proved that this procedure gives the error rate for > 0 arbitrarily small.Note that in , the degree of smoothness is expressed in terms of .
Setting and objective of theoretical analysis
where is some constant. Here we do not specify the quadrature algorithm explicitly, to establish results applicable to a wide class of kernel quadratures simultaneously.
Let be an integrand that is not included in the RKHS: . Namely, we consider a misspecified setting. Our aim is to derive convergence rates for the integration error
Analysis 1: General RKHS with random points
We first focus on kernel quadratures with random points. To this end, we need to introduce certain assumptions on (i) the construction of weighted points and on (ii) the smoothness of the integrand ; we discuss them in Sections 4.1 and 4.2, respectively. In particular, we introduce the notion of powers of RKHSs in Section 4.2, which enables us to characterize the (relative) smoothness of the integrand. We then state our main result in Section 4.3, and illustrate it with QMC lattice rules (with randomization) and the Bayesian quadrature by Bach in Korobov RKHSs.
There exists a probability distribution on satisfying the following properties: (i) has a bounded density function w.r.t. ; (ii) there is a constant independent of , such that
Assumption 1 is fairly general, as it does not specify any distribution of points , but just requires that the expectations over these points satisfy (8) for some distribution (also note that it allows the points to be dependent). For instance, let us consider the case where are independently generated from a user-specified distribution ; in this case, serves as a proposal distribution. Then (8) holds for with equality. Examples in this case include the Bayesian quadratures by Bach and Briol et al. with random points.
2 Assumption on the integrand via powers of RKHSs
To state our assumption on the integrand , we need to introduce powers of RKHSs [28, Section 4]. Let be a constant. First, with the distribution in Assumption 1, we require that the kernel satisfies
For example, this is always satisfied if the kernel is bounded. We also assume that the support of is entire and that is continuous. These conditions imply Mercer’s theorem [28, Theorem 3.1 and Lemma 2.3], which guarantees the following expansion of the kernel :
This is again a reproducing kernel [28, Proposition 4.2], and defines an RKHS called the -th power of the RKHS :
This is an intermediate space between and , and the constant determines how close is to . For instance, if we have , and approaches as . Indeed, is nesting w.r.t. :
In other words, gets larger as decreases. If is an RKHS consisting of smooth functions, then contains less smooth functions than those in ; we will show this in the example below.
The integrand lies in for some .
We note that Assumption 2 is equivalent to assuming that belongs to the interpolation space , or lies in the range of a power of certain integral operator [28, Theorem 4.6].
Let us mention the important case where RKHS is given as the tensor product of individual RKHSs on the spaces , i.e., and . In this case, if the distribution is the product of individual distributions on , it can be easily shown that the power RKHS is the tensor product of individual power RKHSs :
Let us consider the Korobov space with being the uniform distribution on . The Korobov kernel (5) has a Mercer representation
where and . Note that and constitute an orthonormal basis of . From (10) and (13), the -th power of the Korobov kernel is given by
3 Result: Convergence rates for general RKHSs with random points
The following result guarantees the consistency of kernel quadratures for integrands satisfying Assumption 2, i.e., .
(c) Let . Then the rate in (14) becomes , which shows that the integral estimator is consistent, even when the integrand does not belong to (recall for ; see also (11)). The resulting rate is determined by of the assumption , which characterizes the closeness of to .
Let us illustrate Theorem 1 in the following setting described earlier. Let , , and be the uniform distribution on . Then , as discussed in Section 4.2. Let us consider the two methods discussed in Section 2.3: (i) the QMC lattice rules with randomization and (ii) the algorithm by Bach . For both the methods, we have , and the distribution in Assumption 1 is uniform on in this setting. As mentioned before, these methods achieve the rate for arbitrarily small in the well-specified setting: in our notation.
Then the assumption reads for . For such an integrand , we obtain the rate in (14) with arbitrarily small . This is the same rate as for a well-specified case where was assumed for the construction of weighted points. Namely, we have shown that these methods are adaptive to the unknown smoothness of the integrand.
For the algorithm by Bach , we conducted simulation experiments to support this observation, by using code available from http://www.di.ens.fr/~fbach/quadrature.html. The setting is what we have described with , and weights are obtained without regularization as in . The result is shown in Figure 1, where denotes the assumed smoothness, and is the (unknown) smoothness of an integrand. The straight lines are (asymptotic) upper-bounds in Theorem 1 (slope and intercept fitted for ), and the corresponding solid lines are numerical results (both in log-log scales). Averages over 100 runs are shown. The result indeed shows the adaptability of the quadrature rule by Bach for the less smooth functions (i.e. ). We observed similar results for the QMC lattice rules (reported in Appendix D in the supplement).
Analysis 2: Sobolev RKHS with deterministic points
In Section 4, we have provided guarantees for methods that employ random points. However, the result does not apply to those with deterministic points, such as (a) QMC methods without randomization, (b) Bayesian quadratures with deterministic points, and (c) kernel herding .
where with is a multi-index with , and is the -th (weak) derivative of . Its norm is defined by . For , this is an RKHS with the reproducing kernel being the Matèrn kernel; see Section 4.2.1. of for the definition.
Our assumption on the integrand is that it belongs to a Sobolev space of a lower order . Note that the order represents the smoothness of (the order of differentiability). Therefore the situation means that is less smooth than assumed; we consider the setting where was assumed for the construction of weighted points.
The first result in this section is based on the same assumption on weights as in Theorem 1.
Let be such that for some and for some , as . Then for any with , we have
(a) Let . Then the rate in (15) is rewritten as , which matches the rate of Theorem 1. In other words, Theorem 2 provides a deterministic version of Theorem 1 for the special case of Sobolev spaces.
(b) Theorem 2 can be applied to quadrature rules with equally-weighted deterministic points, such as QMC methods and kernel herding . For these methods, we have and so we obtain the rate in (15). The minimax optimal rate in this setting (i.e., ) is given by with . For these choices of and , we obtain a rate of in (15), which is exactly the optimal rate in . This leads to an important consequence that the optimal rate can be achieved for an integrand without knowing the degree of smoothness ; one just needs to know its upper-bound . Namely, any methods of optimal rates in Sobolev spaces are adaptive to lesser smoothness.
Theorems 1 and 2 require the assumption . However, for some algorithms, the value of may not be available. For instance, this is the case for Bayesian quadratures that compute the weights without any constraints ; see Section 2.3. Here we present a preliminary result that does not rely on the assumption on the weights. To this end, we introduce a quantity called separation radius:
In the result below, we assume that does not decrease very quickly as increases. Let denote the diameter of the points.
Let be such that for some as , for some , and . Then for any with , we have
Conclusions
Kernel quadratures are powerful tools for numerical integration. However, their convergence guarantees had not been established in situations where integrands are less smooth than assumed, which can happen in various situations in practice. In this paper, we have provided the first known theoretical guarantees for kernel quadratures in such misspecified settings.
We wish to thank the anonymous reviewers for valuable comments. We also thank Chris Oates for fruitful discussions. This work has been supported in part by MEXT Grant-in-Aid for Scientific Research on Innovative Areas (25120012).
References
Appendix A Proof of Theorem 1
First we define the following integral operator :
From Lemmas 2.2 and 2.3 of , the condition guarantees that is compact, positive, and self-adjoint. Therefore allows an eigen decomposition where are eigenvalues of and is an eigenfunction associated with . Based on this decomposition, define an operator by . Let denote the range of . From Lemma 6.4 of , we have . Therefore the assumption is equivalent to .
For each , define a constant . Define a function by , where denotes the identity. From Lemma 3 of (see also Theorem 4 and Eq. (7.10) of ) and , satisfies
Below we separately bound terms , and .
To bound , let denote the (bounded) density function of with respect to : .
Note that decays faster than since , and so the rate is dominated by and . The proof is completed by substituting these terms in (19). ∎
Appendix B Proof of Theorem 2
If is radial and satisfies (20), Calderón’s formula [12, Theorem 1.2] guarantees that any can be written as
where . This equality should be interpreted in the following sense: if and , then as and .
Following Section 3.2 of , we now take from Lemma 1 and consider the following approximation of :
We will need the following lemma (which is not given in ).
Let and be constants. If , the function defined in (21) satisfies
The Fourier transform of can be written as
In other words, . Also note that for , we have from (20). Therefore,
B.2 Proof of Theorem 2
For each , define a constant . Let be an approximation of defined in (21) with . Then from Proposition 3.7 of , it satisfies
where is a constant depending only on and . From Lemma 2 in Appendix B.1, also satisfies
Below we separately bound terms , and .
Since , note that decays faster than and so the rate is dominated by and . The proof is completed by inserting these terms in (24).
Appendix C Proof of Theorem 3
Define a constant , where with being the Gamma function, so that . Then from Theorem 3.5 and Theorem 3.10 of , there exists a function satisfying the following properties:
where is a constant only depending on and .
Moreover, from the discussion in p. 298 of , this function also satisfies
where is a constant only depending on , , and the kernel .
We separately bound terms , and .
The proof is completed by inserting these bounds in (28)
Appendix D Experimental results for QMC lattice rules
We conducted simulation experiments with QMC lattice rules to show their adaptability to integrands less smooth than assumed. The RKHS is the Korobov space of dimension . For the construction of generator vectors, we employed a fast method for component-by-component (CBC) construction by , using the code provided at https://people.cs.kuleuven.be/~dirk.nuyens/fast-cbc/. This method constructs a generator vector for lattice points whose number is prime. Here we did not apply randomization to the generated points, so they were deterministic. We would like to note that this situation is not covered by our current theoretical guarantees; the results in Section 4 only apply to random points, and those in Section 5 apply to deterministic points with Sobolev spaces.
The results are shown in Figure 2, where denotes the assumed smoothness, and is the (unknown) smoothness of an integrand. The straight lines are (asymptotic) upper-bounds in Theorem 1 (slope and intercept fitted for ), and the corresponding solid lines are numerical results (both in log-log scales). For with large sample sizes, underflow occurred with our computational environment as the errors were quite small, so we do not report these results. The results indicate the adaptability of the QMC lattice rules for the less smooth functions (i.e. ).