Subsampling for supervised learning in reproducing kernel Hilbert spaces
Abstract
In the era of big data, subsampling became a common practice in statistical learning. By selecting a subgroup of individuals based on which the learner is trained, subsampling aims at reducing the computational cost and time of the estimation step, and ideally leads to a decrease of its energy consumption and carbon footprint. This work focuses on a nonparametric setting, in which the hypotheses set lies in a reproducing kernel Hilbert space, and the estimator is a minimizer of an empirical risk reweighted à la Horvitz-Thompson. By studying the asymptotic properties of this estimator, we reveal an optimal subsampling scheme (regarding the trace of the covariance operator) and show that it can be used via plug-in. A numerical study on synthetic and real-world datasets shows the practicability and the benefit of the proposed approach.
1 Introduction
As of the last couple decades, the overwhelming data accumulation in various domains such as medical research, road safety, bioinformatics, physics, genetics and social media, led scientists to rethink standard statistical learning methods. Beyond the computational barrier (in time and memory) induced by the data deluge and the economic cost of training models on large datasets, the overconsumption of energy resources also became a concerning topic for the scientific community. With this in mind, it is of interest to reduce the computational cost of learning methods, particularly regarding their training phase, which often involves minimizing an objective function and is more demanding than inference.
A first thought to limit the computational burden of training procedures, is to leverage more efficient optimization algorithms, such as active set strategies (24), stochastic gradient methods (3; 7) and random coordinate descents (39; 14), to cite only a few. However, these approaches still work on the whole training set, which may include either redundant or quite uninformative observations. Data set reduction methods can then be used in order to reduce the effective size of the dataset, while producing only informative datapoints. Sketching, for instance, is a way to reduce the dataset by generating new individuals, which are linear combinations of the original ones (30; 32; 47). Another approach is the coreset technique, which randomly pick points from de dataset in order to uniformly approximate the objective function (22; 29; 25; 35; 5). Nonuniform subsampling of points can also be implemented thanks to their leverage scores (28; 9; 49; 27), which are based on the covariates but not on the target values. Stepping back, subsampling can also be analyzed for general inclusion probabilities, from the excess risk point of view (8; 18) and the estimator asymptotic distribution side (44; 46; 19). In the latter case, it is even possible to exhibit an optimal subsampling scheme, which minimizes the trace of the limit covariance matrix. Several other approaches exist, such as sampling with influence functions (41) and leveraging minimum enclosing ball from computational geometry (42).
At this step, we remark that many methods, such as stochastic optimization and sketching, are task-agnostic, which leaves an area of improvement. Moreover, if coreset techniques propose data-dependent sampling procedures, these ones are aimed at uniform approximation the objective function and consequently often leverage intractable probabilities (29; 5). On the contrary, optimal subsampling proposes an easy-to-implement way to extract informative individuals from the original dataset, such that the trace of the asymptotic covariance matrix is minimal (46).
In this work, we focus on nonparametric supervised learning, and in particular on kernel methods, where the hypotheses lie in a reproducing kernel Hilbert space (RKHS) (2). In this case, few of the methods described above can be used (they have been mainly designed for parametric inference), the most notable being sketching (50; 12; 11) and specific approaches tailored for support vector machines, such as minimum enclosing balls (42) and stochastic subgradient algorithm (38). However, kernel learning can rely on kernel approximation techniques to lighten the numerical training cost, which consists in replacing either the Gram matrix by a low-rank approximation (for instance, thanks to the Nyström method (48; 10; 33)), or the feature map by a finite-dimensional mapping (thanks to random Fourier features (RFF) (31; 4; 34; 26)). Since the computational cost of a kernel method is mainly function of the size of the optimization problem to solve (which is basically represented by the spatial complexity of the design or Gram matrix of the effective dataset), the appeal of the Nyström method, RFF and sketching is to cut down the computational burden from (for an initial dataset of size ) to , where an approximation parameter (the dimension of the subspace for the Nyström method, the number of random projections for RFF, the number of linear combinations for the sketching approach). If this is a big gain, we remark that the computational cost still depends on the size of the original dataset, which may be very large in practice. On the contrary, subsampling datapoints would lead to a cost, which is largely less.
We thus aim at designing a data-dependent subsampling procedure for nonparametric supervised learning in RKHSs. From the methodological side, we follow the line of research initiated by 44 (then followed by numerous papers including (45; 46; 19; 40)), which determines the subsampling scheme minimizing the trace of the asymptotic covariance matrix of a M-estimator of an empirical risk reweighted à la Horvitz-Thompson. From the theoretical side, we study asymptotics in RKHSs with tools coming from functional random probability spaces (6; 21) with pieces of elements from martingale theory (17). These two aspects distinguish our work from that by 46 since we place ourself in a particular nonparametric setting and employ different techniques of proof. The latter are also different from the empirical process techniques used by 16; 36 for analyzing usual empirical risk minimizers (ERMs).
In Section 2, we first revisit asymptotic normality of the ERM in RKHSs, based on the asymptotically finite-dimensional property (21; 43). This result corroborates the ones presented in (16; 36) and comes with a complementary technique of proof. Then, in Section 3, the subsampled risk minimizer (SRM) is presented as well as its convergence and asymptotic distribution. Section 4 exhibits the optimal subsampling scheme and Section 5 presents a way to implement it in practice. Le latter strategy is numerically evaluated on synthetic and real-world datasets in Section 6, and favorably compared to state-of-the-art approximation techniques for kernel methods.11 1 The Python source code for reproducing the numerical experiments is provided at https://gitlab.com/Yaloude/rkhs-subsampling. All proofs are gathered in Appendix A.
2 Background
Let be the random variable of interest with unknown distribution. We focus here on supervised learning and assume that has a canonical decomposition: where is the vector of covariates and is the response. Denote the loss function associated to the learning task of interest, and assume that is non-negative, convex and twice-differentiable in its first argument. The setting defined this way suits both binary classification: and for instance for logistic regression (where is a prediction compared to ); as well as regression: and for example for regression.
The working set of predictors is , the RKHS induced by some kernel (i.e. a symmetric and positive definite function). In other words, is the closure of the span of the map by of elements of , i.e.
where for all .
Given the previous elements, the population risk function of the learning task considered is:
| (1) |
which could be minimized so as to obtain an optimal predictor. However two problems arise: first, the distribution of is assumed unknown (such that the expectation in (1) cannot be computed); second, the current assumptions do not ensure existence of a minimizer of in . To solve those problems, we turn towards the empirical version of (1):
| (2) |
based on a dataset made of independent and identically distributed (i.i.d.) random variables sharing the same distribution as , and add a ridge penalization tuned by some parameter for the true risk and by (a possibly random parameter) for the empirical one. The objective functions, namely the true and empirical regularized risks now read:
| (3) |
and
| (4) |
Let us remark that minimizing (respectively ) is equivalent to minimizing (respectively ) inside a ball of , the radius of which depending both on the penalization parameter (respectively ) and the data (see for example (36)). In addition, the framework above offers the chance to take , which makes sens in practice since penalizing is also a way to prevent overfitting, on the condition that the penalization parameter is tuned with respect to the sample size and the data (roughly speaking, the less the data, the stronger the penalization).
Now, by convexity of the loss (with respect to its first argument) and , the true regularized risk is lower semi-continuous and strongly convex, and admits a unique minimizer in , denoted (6, Lemma 2.15). The same holds true for the empirical regularized risk (since ), the minimizer of which is denoted .
2.1 Assumptions
Before introducing the proposed subsampling estimator, we aim at presenting the asymptotic distribution of as a stepping stone to our main result. This requires a few assumptions, which will be needed all along our analysis.
Assumption 1.
The kernel is continuous and bounded: there exists such that .
Assumption 1 is standard in the analysis of estimators lying in RKHSs (see for instance (1)). In particular, the continuity of (jointly with being separable) leads the RKHS to be separable (6, Lemma 4.33). This means that there exists a complete orthonormal system of (i.e. and for all , ), which will enable to define the trace of a linear operator in in Section 3. The bound , as for it, leads to bounded predictors (, for all ) (6, Lemma 4.28), which helps in obtaining convergence of empirical quantities (see Appendix A).
Henceforth, let and be respectively the first and second partial derivatives of with respect to its first variable.
Assumption 2.
For all and , the loss and its derivatives, and , are -Lipschitz in their first variable on , i.e. for :
for all .
Assumption 3.
For all and , and exists and are finite.
Assumption 2 asks for and its derivatives to be locally Lipschitz continuous in their first argument. For simplicity, we consider the same Lipschitz coefficient for all derivatives. In particular, if is thrice-differentiable, then one may choose, for all and , . Assumption 3 as for it, is a common moment assumption in asymptotic analyses, except that it is required up to the degree in order to handle the Horvitz-Thompson reweighting introduced in Section 3. In addition, Assumptions 2 and 3 (with Assumption 1) yields that and have a finite fourth order moment.
At last, Assumption 4 asks for the convergence of the regularization parameter towards at a rate greater than , which is basically that of towards , for any .
Assumption 4.
The (random) regularization parameter sequence verifies that almost surely for all and
2.2 Asymptotic normality of ERM
With the assumptions stated above, our first step is to derive gradients of the regularized risks. Indeed, since , the empirical regularized risk is twice-differentiable and its minimizer verifies the following stationarity condition:
| (5) |
with
| (6) |
for all . In addition, letting “” being the outer product in (i.e. for all , is a linear operator from to such that, for all , ) one may also compute the Hessian operators of the empirical risks:
| (7) |
where is the identity operator in .
The same applies to the true regularized risk : according to Lemma A.1, under Assumptions 1, 2 and 3, is twice differentiable at , with:
where
Let us remark that is continuous at and that is invertible (16, Lemma A.5).
We are now ready to state asymptotic normality of . For this purpose, let us recall that we say that is a Gaussian process in with mean and covariance operator , denoted , if for any positive integer and , .
Theorem 2.1 (Asymptotic normality of ).
The proof of Theorem 2.1 (see Section A.2) is close to that in a parametric model, thanks to a Cramér-Wold-type result. The latter holds for, given assumptions on the considered RKHS , random sequences are asymptotically finite-dimensional in the sense of (43, Chapter 1.8) or (21, Theorem 7.7.5).
Asymptotic properties of the ERM in the non-parametric framework of RKHSs are known. Main results include consistency (6), outlining of a limit Gaussian process (16), and asymptotic normality in a ball of (36). Theorem 2.1 is similar to a result by 16; 15, but the proofs differ since 16; 15 make use of a functional delta method on the empirical process. Theorem 2.1 is nonetheless of interest for it and its proof serve as stepping stones to our main result.
3 Asymptotics of subsampling
We now introduce, in this section, the two considered subsampling strategies (with and without replacement), along with the corresponding estimators, nicknamed SRM in both cases. We then prove asymptotic normality of both estimators with general subsampling schemes, and discuss in the next section the choice of the latter.
Let be the set of probability vectors of size , and consider a subsampling probability (SSP) vector, which may ultimately depend on the dataset . A subsampling scheme of size consists in randomly picking points in the dataset with inclusion probabilities . More formally, we consider, in the context of this paper, the two following subsampling strategies: one with replacement and another without.
Subsampling with replacement
In subsampling with replacement (also called Multinomial subsampling), one draws independently point indices:
where is the Dirac measure at . Since the choice is with replacement, each point appears times in the subsampled dataset, with being referred to as the multiplicity or the number of occurrences of (which may be null if is not picked). In this situation
| (8) |
(Multinomial distribution with parameters and ) and the subsample size (counting multiplicities) is equal to : almost surely.
Subsampling without replacement
In subsampling without replacement (or Poisson subsampling), ones draws independently for each point :
| (9) |
(Bernoulli distribution with parameter ) and decides that it should enter the subsampled dataset when the multiplicity (or inclusion indicator) verifies . This is possible assuming that for all and , and in this situation, the subsample size is in average equal to : .
In both situation, the subsampling schemes can be summarized as incorporating the -th observation , times to the subsampled dataset, where is a random variable such that . The subsamples are then the s such that , for , and we define the subsampled and regularized risks as follows:
| (10) | |||
| (11) |
where is a (possibly random) regularization parameter. Let also be the minimizer of . By Fermat’s rule, one has:
| (12) |
The inverse probability weighting à la Horvitz-Thompson of Equation 10 is a mean to produce unbiased estimations of the empirical and true risks (Equations 2 and 1): and . This is a critical point in order to get limit results, such as consistency and asymptotic normality. However, this is not enough. First, the regularization parameter has to converge to (for consistency), and with a rate at least , for asymptotic normality. This is formalized by ’ ‣ Section 3 below.
Assumption 4’.
The (random) regularization parameter sequence verifies that almost surely for all and
Next, the SSPs should not converge too quickly to , in order for the subsampled risk (10) not to explode. This is described in Assumption 5, which states that SSPs have to be asymptotically of the order .
Assumption 5.
The probability vector sequence satisfies
Remark.
The intuition that SSPs cannot converge to faster than is not surprising, and can also be read in previous works. As an example, 19 leverage an assumption in expectation similar to Assumption 5 but with averaged inverse SSPs instead of their maximum. Remark that considering such type of assumption with our sketch of proof would require to go up to the order 8.
Similarly, 46 require , which can be obtained from Assumption 5 by Markov’s inequality: for all ,
hence, and more generally for all positive integer .
The next result states SRM consistency (which can actually be obtained without a rate of convergence for ) in both subsampling schemes, as and .
Theorem 3.1 (Consistency of ).
Under Assumptions 1, 2, 3 and 5, and (or ’ ‣ Section 3), one has
whether is the Multinomial (Equation 8) or the Poisson (Equation 9) subsampling estimator.
We will show in the next theorems that the SRM is asymptotically normal to the target . Obviously, it is expected that the rate of convergence of as well as its asymptotic covariance operator are different from that of the ERM . In order to reveal the alteration of the asymptotic covariance operator, we consider inclusion probabilities, which depend on the observation of interest as , where is a positive absolute interest (or importance) function. More formally, let be a deterministic map independent from . Then, for all , the SSP vector reads
| (13) |
If this writing seems restrictive (since, except for the normalization, each SSP depends only on ), we shall remark that it is consistent with optimal SSPs found by 46 for parametric models, without considering beforehand a particular form for the vector . It is however required in order to understand how the asymptotic covariance operator is affected by the subsampling procedure. Now, Assumption 6 provides a condition on for the asymptotic covariance operator not to explode. Equipped with it, Theorems 3.2 and 3.3 state asymptotic normality of the SRM .
Assumption 6.
The interest function is such that
Theorem 3.2 (Asymptotic normality of Multinomial subsampling (Equation 8)).
Theorem 3.3 (Asymptotic normality of Poisson subsampling (Equation 9)).
Remark.
If , Equations 14 and 15 can be written:
showing that the SRM has the same -rate of convergence to than the ERM , but increased covariance operators. In this situation, as expected, the less data is used (), the greater the covariance operator.
As a byproduct, Theorems 3.2 and 3.3 also give the asymptotic normality of the SRM, denoted below, when subsampling with uniform SSPs: for all and all , . Let us remark that, in this case, Assumptions 5 and 6 are directly granted.
Corollary 3.4 (Asymptotic normality of uniform Multinomial subsampling (Equation 8)).
Under Assumptions 1, 2, 3 and ’ ‣ 3, if one furthermore assumes that , then the uniform SRM verifies:
Corollary 3.5 (Asymptotic normality of uniform Poisson subsampling (Equation 9)).
Under Assumptions 1, 2, 3 and ’ ‣ 3, if one furthermore assumes that , then the uniform SRM verifies:
where .
Remark.
For Poisson subsampling, choosing implies that, asymptotically, all observations are part of the subsample. In this case, has convergence rate (see the preceding remark) and asymptotic covariance operator . In other words, the SRM has the same performance as the ERM.
4 Variance reduction
Since the role of subsampling is to reduce the dataset size by randomly picking points, it is of interest to choose these few points in order to maximize the SRM estimator precision. Once the limit ratio has been chosen (see Theorems 3.2 and 3.3), it is about minimizing the asymptotic covariance operator. The most common way to do it is to reduce the covariance information to a scalar, and to minimize the latter. Several manners of reducing the covariance information exist and are well documented in the literature of optimal design (see for instance (23)). In this study, we follow the work by 46 and focus on L-optimality, which consists in computing the trace of the covariance, preconditioned by a well-chosen operator (here , which exists according to (16, Lemma A.5)). This choice is consistent with the dependence of the covariance operator to and is computationally advantageous.
In our infinite dimensional framework based on RKHSs, the trace of a self-adjoint bounded linear map does not differ much from the finite dimensional case. For such an operator , it can be defined as , and, in the particular case where is the outer product of two vectors, i.e. (with ), then (see (21) for more details).
Going back to Theorems 3.3 and 3.2, let be either or , depending on the subsampling strategy. In both cases, L-optimality boils down to minimizing
with respect to , where is a constant term. Proposition 4.1 gives a closed-form expression of such an L-optimal absolute interest map .
Remark.
Since the two subsampling strategies considered here lead to the same convergence rate of the estimator (depending on the value of the limit ratio ), they can be compared to each other based on L-optimality. For this purpose, consider a fixed absolute interest function and let
Whenever (i.e. ), one has , hence Multinomial subsampling surpasses Poisson subsampling. On the contrary, when , one has , thus Poisson subsampling is superior to Multinomial subsampling.
It results that the choice between the two strategies depends on the limit ratio , which is a quantity defined by the practitioner: if is small, Multinomial subsampling is preferable to Poisson subsampling, while the converse holds when is close to . Let us remark that this conclusion is slightly different from the parametric case studied in (46), which concludes that both subsampling schemes have the same asymptotically estimation efficiency when . This is due to the presence of a quadratic regularization in our setting, which does not exist in the parametric framework.
Proposition 4.1 (L-optimal map ).
The minimization problem
| () |
has a unique solution (up to a multiplicative factor and an equivalence w.r.t. the law of ), being , defined for all , by
| (16) |
If it is clear that, given our technical Assumptions 1, 2 and 3, the L-optimal absolute interest function verifies Assumption 6, it is not true neither for Assumption 5, nor for the basic requirement of Poisson subsampling (i.e. that all SSPs are bounded by ). This is discussed in the two forthcoming remarks.
Remark.
As one may notice, Proposition 4.1 does not take into account that has to verify Assumption 5 in order to be used in application of Theorems 3.2 and 3.3. Indeed, incorporating Assumption 5 as a constraint into Problem ( P ψ ) would lead to an intractable problem. It results that may not satisfy Assumption 5. However, in practice, the optimal SSPs computed thanks to are then adjusted such that Assumption 5 is granted (see Section 5).
Remark.
Poisson subsampling (Equation 9) also requires that, for all ,
| (17) |
which, again, may not be true for . If one would like to consider these inequalities as part of Problem ( P ψ ), it would mean handling an infinite amount of constraints (inequalities have to hold true for all ). Moreover, even for a fixed value of (keeping in mind the practical use of the proposed procedure), the latter constraints would lead to inconsistent (even lack of) solutions, since a candidate may always be smoothly altered so as to satisfy pointwise conditions. As a result, Conditions (17) are not considered when determining an optimal absolute interest function , yet, as explained in Section 5, optimal SSPs computed with are then post-processed in order to be valid inclusion probabilities for Poisson subsampling.
Let us remark that, in the parametric case, 46 follow the same path but minimizing (for a fixed value of ) the trace of an empirical version of subject to Conditions (17). They then exhibit optimal SSPs proportional to , where is a data-dependent threshold. This workaround does not fit our framework, since the absolute interest map is thought deterministic and independent from .
Let us now investigate some examples of supervised learning settings, which illustrate the shape of the L-optimal absolute interest function , revealed in Proposition 4.1. For this purpose and for simplicity, we consider a radial basis function kernel , implying that for all , is constant.
Example 1 (Logistic regression).
In the classification setting of penalized kernel logistic regression, one has, for and :
where is the sigmoid function. The optimal SSPs are then proportional to
Hence a datapoint has a high probability of being picked if , i.e. if is wrongly classified by the true function ( and have different signs) and with a high confidence ( is large).
Example 2 ( regression).
In the (with ) kernel ridge regression setting, one has, for :
The optimal SSPs are thus proportional to
Hence a datapoint has a high probability of being picked if is poorly predicted by the true function (). This is for instance the case for noisy observations.
In addition, let us remark that for high values of , the SSPs (through ) are squashed to when , thus imitating an -insensitive loss (37), with the nice property of being infinitely differentiable, and producing SSPs of different magnitudes.
Example 3 (Quartic-quadratic Huber).
As stated above, the loss with a high value of produces SSPs of different magnitudes, attributing near zero inclusion probabilities to well predicted datapoints. On the converse, it assigns high SSPs to datapoints, the outputs of which are far from the predictions . As a result, and as it may be expected by using an loss, the SSPs are not robust to outliers.
To keep the benefit of an almost -insensitive loss (i.e. SSPs with different magnitudes) while being more robust to outliers, one may defined a “Huberized” loss (see (20, Section 10.6)), which is quartic around and quadratic elsewhere. For this purpose, let be a given threshold, and consider
which is twice-differentiable, with
In the same manner as for regression, the optimal SSPs are as large as the output is wrongly predicted by , nevertherless, there is a regime shift whether the prediction is at least (or at most) far away from the output . This leads to SSPs of different magnitudes, which are more robust to outliers than those obtained with an loss.
5 Piloted subsampling estimator
We address in this section the practical side of subsampling with the L-optimal absolute interest function , exhibited in Proposition 4.1. First, as it can be noticed, makes use of the unknown regularized risk minimizer . Nevertheless, the latter can be estimated by plug-in as soon as we are provided with prior information on , which is assumed to be true in the form of a naive estimator of (called a pilot estimator, and computed with points). Based on it, L-optimal SSPs can be estimated as for all . Second, as explained in the previous section, there is no guarantee that the map leads to SSPs which verify Assumption 5. For this reason, it is proposed to smooth estimated SSPs as:
for all , where is a hyperparameter. As a last point, since SSPs should be less than for Poisson subsampling, one may apply a post hoc truncation, such as . Everything together provides data driven SSPs satisfying all requirements and usable to build an SRM , called an -piloted subsampling estimator.
Theorems 5.1 and 5.2 below state that the latter estimator is consistent to and asymptotically normal. In particular, it exhibits a covariance operator (which is well-defined and finite by the very definition of and Assumptions 1, 2 and 3), which, compared to that of Theorems 3.2 and 3.3, is slightly impacted by smoothing the SSPs (tuned by the hyperparameter ) but not by the use of a plug-in estimation of .
Theorem 5.1 (Asymptotic normality of -piloted Multinomial subsampling (Equation 8)).
Under Assumptions 1, 2, 3 and ’ ‣ 3, let be a consistent estimator of , and define the probability vectors and such that
for all and . Let be the SRM of the subsampled regularized risk with SSP vector . If one furthermore assumes that , then
where
with .
Theorem 5.2 (Asymptotic normality of -piloted Poisson subsampling (Equation 9)).
Under Assumptions 1, 2, 3 and ’ ‣ 3, let be a consistent estimator of , and define the probability vectors and such that
for all and . Let be the SRM of the subsampled regularized risk with SSP vector . If one furthermore assumes that , then
where
A particularity of -piloted Poisson subsampling (Theorem 5.2) is the use of a post hoc truncation of SSPs: , in order to get valid Bernoulli distribution parameters. It has two direct consequences. First, the subsampled dataset size is in expectation less than or equal to rather than equal to . Second, a thresholdind based on appears in the denominator of the asymptotic covariance operator of .
In practice, the pilot estimator can be easily obtained by picking uniformly a small number of datapoints and by minimizing an empirical regularized risk. In this situation, Theorem 3.1 ensures consistency of . The proposed workable procedure for computing an -piloted subsampling estimator is summarized Algorithm 1.
Require (desired subsampled dataset size), (pilot dataset size), (smoothing hyperparameter).
- 1.
Consider a random permutation on and build a pilot estimator
- 2.
Estimate optimal SSPs by plug-in:
for all .
- 3.
Smooth the estimated SSPs:
for all .
- 4.
Subsample datapoints either with replacement (with SSP vector ) or without replacement (with SSP vector ) and get multiplicities .
- 5.
Build the -piloted SRM:
6 Numerical experiments
6.1 Setting
In this section, we empirically assess the performance of the proposed -piloted subsampling method (Algorithm 1) compared to a naive approach (uniform subsampling) and three state-of-the-art kernel approximation and dataset reduction techniques: the Nyström method (48; 10), Random Fourier Features (31) and kernel sketching (50; 12).22 2 The Python source code for reproducing the numerical experiments is provided at https://gitlab.com/Yaloude/rkhs-subsampling. By performance, it is meant first the generalization error of the methods (Figure 3), second their computational effort, that is the curve mapping the generalization error to the training CPU time (Figures 4, 5 and 6). Let us now describe the competitive methods.
-piloted subsampling (SRM)
This is the method proposed in Algorithm 1 with and . The subsampling budget is here , where a quarter is used for computing the pilot estimator and the remaining for the final subsampling estimator .
Uniform subsampling
This corresponds to Multinomial or Poisson subsampling with uniform SSPs: (see Corollaries 3.4 and 3.5), and constitutes a naive, dataset unrelated and problem agnostic subsampling strategy used as a baseline. The subsampling budget is here .
Nyström
The Nyström method is a kernel approximation technique, where the Gram matrix is replaced by a low rank approximation computed on randomly chosen observations from as basis vectors. From the memory footprint point of view, it results in an data matrix instead of the Gram matrix for ERM.
Random Fourier features (RFF)
The canonical feature map is approximated by a -valued function, where is the number of random cosine basis functions chosen. This method yields a data matrix of size compared to for ERM.
Sketching (SKT)
Sketching is a dataset reduction method, basically working on random linear combinations of the observations.
We chose, for the comparison, the -sparsified Rademacher sketch, as introduced by 12, with probability of non-empty entry in the sketch matrix.
Let us remark that, if the memory footprint for the optimization procedure is , the method requires first to compute the Gram matrix before getting the sketched one.
The methods above are all compared based on a Gaussian radial basis kernel: for all , with parameter set to the inverse of the empirical variance of the observations (rounded to two significant digits), unless said otherwise. For this comparison, two synthetic datasets (corresponding to a classification and a regression task) and a real-world dataset coming from the UCI repository (Covertype) are employed and described below.
Synthetic classification
The dataset is represented in Figure 1(a): the input vector is such that and three random centers are drawn from the same uniform distribution. Denoting the minimum distance between a spatial observation and the latter centers, the binary classification labels are such that , where is the Rademarcher distribution with parameter , and is the sigmoid function.
For this task, a million observations (independent from the training data) are used for computing the test errors, and the logistic loss is used with regularization parameters .
Synthetic regression
The dataset is represented in Figure 1(b): the function to estimate is (i.e. ), where , to are random centers independently drawn according to a standard Gaussian distribution, and factors to are sampled from the same distribution. Observations are s, where for all ,
with .
For this task, a -sample independent from the training data is used for computing test errors, and the previously defined quartic-quadratic Huber loss (with ) is used with regularization parameters . The latter loss has the benefit of being almost insensitive to small residues, while not less robust to outliers than the least squares loss. Let us remark that, since , the true regularized risk minimizer is different from .
UCI Covertype
The CovType dataset is a real-world repository of biological attributes on seven different forest cover types. It contains 581,012 records of 54 features each, with 10 of which being quantitative and the rest being binary. We aim at separating the last class from the others, which results in an imbalanced binary classification problem, handled with the logistic loss (meeting Assumption 2).
The dataset is split into two parts: 100,000 points are used for training and the rest for testing. Quantitative covariates are standardized and hyperparameters are set to and .
6.2 Results
Methods are compared in three different settings, described below.
Varying smoothing hyperparameter
As a first numerical experiment, we study the impact of the smoothing hyperparameter on the generalization error. Figure 3 depicts classification and regression errors (computed on the test set) for SRM with Multinomial (SRM (M)) and Poisson (SRM (P)) subsampling, with respect to . Both methods have the same subsampling budget when , and when . In both synthetic and real-world situations, it appears that the higher (the closer to uniform subsampling), the higher the generalization error (and both subsampling methods perform roughly the same). In particular, for , the SRM error stays roughly constant and is less than that for uniform subsampling (). As an exception, L-optimal subsampling without smoothing () for the synthetic classification task is as bad as uniform subsampling. This may be so because the optimal map does not verify assumptions of Theorems 3.2 and 3.3. As a result of this first lesson, we fix for the forthcoming experiments.
Moreover, as our framework is based on the consistency of , Figures B.2 and B.1 in Appendix B provide , or -distances between and . The results are similar than those of Figure 3 and show that a value of between and leads to a better SRM estimator than uniform subsampling. This means that, in this setting, statistical and learning performances are in line with each other.
Varying dataset size , fixed subsampling budget ratio
In this second experiment, uniform subsampling is compared to -piloted SRM on both synthetic tasks when the dataset size increases (from to ) but the subsampling budget ratio is fixed. Figure 4 represents the computational effort of each method, i.e. the CPU training time with respect to the generalization error, here as a curve parameterized by (in particular, the points from left to right on each curve correspond to the same values of ). It appears that for small datasets (right part of the graphs), SRM is generally less efficient than uniform subsampling: for a given generalization error, SRM is more (time) consuming than uniform subsampling, and conversely, for a given training time, SRM is less accurate. This may be explained by a spurious information given by the pilot estimator, which is computed on too few data. However, the exact converse is true for large dataset sizes (left part of the graphs). To sum up, for small datasets, uniform subsampling is preferable, while for large datasets, SRM (which is based on asymptotic results) is more advantageous. This holds true for both subsampling techniques, which perform similarly.
Surprisingly, for a given dataset size , uniform subsampling is longer to train than -piloted SRM, while it includes computing a pilot estimator. This can actually be explained by the fact that the computational cost is mainly due to computing , that is solving an optimization problem of size for SRM and for uniform subsampling. The forthcoming experiment improves on this interpretation bias.
Varying space budget, fixed dataset size
This last numerical experiment is closer to a real situation (and thus also includes the real-world case of cover type classification), where the dataset is given (so is fixed), and methods are compared thanks to the computational effort parameterized by the (memory) space budget. This one corresponds to the size of the optimization problems to solve, that is for uniform subsampling and for -piloted SRM. On that occasion, it is also possible to fairly include state-of-the-art competitors, i.e. Nyström, RFF and SKT, for which the space budget is , where is the approximation parameter of the method: the dimension of the subspace for the Nyström approach, the number of random projections for RFF and the number of linear combinations for the SKT. As evidenced by Figure 5, since is large, SRM is always favorable compared to uniform subsampling. It is also more efficient than Nyström, RFF and SKT on the CovType dataset (see Figure 5(c)).
Moreover, for a given space budget (a given point on the curves), -piloted SRM and uniform subsampling are roughly as long to train than each other but the former is more accurate than the latter. This means that, for a prescribed memory budget, SRM is preferable to uniform subsampling (for large datasets), but also that estimating the L-optimal SSPs has a negligible computational time.
Regarding the synthetic tasks (Figures 5(a) and 5(b)), Nyström, RFF and SKT appear more computationally efficient (curves are at the bottom and on the left). This may be explained by the low dimension of the input data. Nevertheless, subsampling and kernel approximations methods can be considered as complementary techniques for reducing the computational cost of kernel approaches. Thus, Figure 6 presents numerical results when uniform subsampling and SRM estimators are computed with the Nyström approximation method. It results in increased performances for subsampling techniques, making -piloted SRM more appealing than Nyström, RFF and SKT alone regarding the computational effort.
7 Conclusion and discussion
This paper addresses the design of a reduced dataset by subsampling a large one, with the aim of computing a kernel-based estimator for classification or regression. Based on asymptotic results, it is possible to randomly choose observations leading to a minimal trace for the limit covariance operator of the subsampling estimator. This L-optimal subsampling scheme can then be estimated by plug-in, based on a pilot estimator, and smoothed in order to provide a robust practical method. The latter is compatible with state-of-the-art kernel approximation techniques and can, for instance, be coupled with the Nyström method, leading to a very computationally efficient framework for learning in RKHSs. Numerical experiments demonstrate the appeal of the method compared to uniform subsampling and kernel approximations, in particular for large initial datasets.
The work presented here opens several directions of research. First, the theory is based on a regularized population risk and could, at the price of a substantial work, be extended to a non-regularized risk minimizer. Second, the proposed approach is basically a two-step algorithm, learning first a pilot estimator (as well as estimating the subsampling probabilities and building the subsampled dataset) and then learning the final subsampling estimator. One may conceive a multistage (or online) procedure, where the pilot estimator and the subsampling probabilities are sequentially adjusted in order to leverage more the random choice of consistent individuals.
Acknowledgments
This project was partially funded by the alliance AI4IDF. The authors are grateful to Jeffrey Näf for insightful discussions on asymptotics in RKHSs.
References
- Rademacher and Gaussian Complexities: Risk Bounds and Structural Results. Journal of Machine Learning Research 3 (Nov), pp. 463–482. Cited by: §2.1.
- Reproducing Kernel Hilbert Spaces in Probability and Statistics. Springer US, Boston, MA. Cited by: §1.
- Optimization Methods for Large-Scale Machine Learning. SIAM Review 60 (2), pp. 223–311. Cited by: §1.
- Random Fourier Features For Operator-Valued Kernels. In Proceedings of The 8th Asian Conference on Machine Learning, pp. 110–125. Cited by: §1.
- Efficient Coreset Constructions via Sensitivity Sampling. In Proceedings of The 13th Asian Conference on Machine Learning, pp. 948–963. Cited by: §1, §1.
- Support Vector Machines. Information Science and Statistics, Springer, New York, NY. Cited by: §A.2, §1, §2.1, §2.2, §2.
- Optimal Survey schemes for stochastic gradient descent with applications to M-estimation. ESAIM: Probability and Statistics 23, pp. 310–337. Cited by: §1.
- Learning from Survey Training Samples: Rate Bounds for Horvitz-Thompson Risk Minimizers. In Proceedings of The 8th Asian Conference on Machine Learning, pp. 142–157. Cited by: §1.
- Faster least squares approximation. Numerische Mathematik 117 (2), pp. 219–249. Cited by: §1.
- On the Nyström Method for Approximating a Gram Matrix for Improved Kernel-Based Learning. J. Mach. Learn. Res. 6, pp. 2153–2175. Cited by: §1, §6.1.
- Sketch In, Sketch Out: Accelerating both Learning and Inference for Structured Prediction with Kernels. In Proceedings of The 27th International Conference on Artificial Intelligence and Statistics, pp. 109–117. Cited by: §1.
- Fast Kernel Methods for Generic Lipschitz Losses via p-Sparsified Sketches. Transactions on Machine Learning Research. Cited by: §1, §6.1, §6.1.
- An Introduction to Probability Theory and Its Applications, Volume 2. John Wiley & Sons. Cited by: §A.3.
- A Coordinate-Descent Primal-Dual Algorithm with Large Step Size and Possibly Nonseparable Functions. SIAM Journal on Optimization 29 (1), pp. 100–134. Cited by: §1.
- Asymptotic Confidence Sets for General Nonparametric Regression and Classification by Regularized Kernel Methods. arXiv. External Links: 1203.4354 Cited by: §2.2.
- Asymptotic normality of support vector machine variants and other regularized kernel methods. Journal of Multivariate Analysis 106, pp. 92–117. Cited by: §1, §1, §2.2, §2.2, §4.
- P. Hall and C. C. Heyde (Eds.) Martingale Limit Theory and its Application. Probability and Mathematical Statistics: A Series of Monographs and Textbooks, Academic Press. Cited by: §A.3, §A.3, §1.
- Complex sampling designs: Uniform limit theorems and applications. The Annals of Statistics 49 (1), pp. 459–485. Cited by: §1.
- Leverage classifier: Another look at support vector machine. Statistica Sinica 35, pp. 1–21. Cited by: §1, §1, Remark.
- The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Springer Science & Business Media. Cited by: Example 3.
- Theoretical foundations of functional data analysis, with an introduction to linear operators. Wiley Series in Probability and Statistics, Wiley, Chichester, West Sussex, United Kingdom. External Links: LCCN QA278 Cited by: §A.2, §1, §1, §2.2, §4.
- Coresets for Scalable Bayesian Logistic Regression. In Advances in Neural Information Processing Systems, Vol. 29. Cited by: §1.
- Optimal subsampling designs. arXiv. Cited by: §4.
- Blitz: A Principled Meta-Algorithm for Scaling Sparse Optimization. In Proceedings of the 32nd International Conference on Machine Learning, pp. 1171–1179. Cited by: §1.
- Discrepancy, Coresets, and Sketches in Machine Learning. In Proceedings of the Thirty-Second Conference on Learning Theory, pp. 1975–1993. Cited by: §1.
- Towards a Unified Analysis of Random Fourier Features. Journal of Machine Learning Research 22 (108), pp. 1–51. Cited by: §1.
- A Statistical Perspective on Algorithmic Leveraging. Journal of Machine Learning Research 16 (27), pp. 861–911. Cited by: §1.
- Randomized Algorithms for Matrices and Data. Foundations and Trends in Machine Learning 3 (2), pp. 123–224. Cited by: §1.
- On coresets for logistic regression. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, Cited by: §1, §1.
- Randomized Sketches of Convex Programs With Sharp Guarantees. IEEE Transactions on Information Theory 61 (9), pp. 5096–5115. Cited by: §1.
- Random Features for Large-Scale Kernel Machines. In Advances in Neural Information Processing Systems, Vol. 20. Cited by: §1, §6.1.
- A Statistical Perspective on Randomized Sketching for Ordinary Least-Squares. Journal of Machine Learning Research 17 (213), pp. 1–31. Cited by: §1.
- Less is More: Nyström Computational Regularization. In Advances in Neural Information Processing Systems, Vol. 28. Cited by: §1.
- Generalization Properties of Learning with Random Features. In Advances in Neural Information Processing Systems, Vol. 30. Cited by: §1.
- Unconditional Coresets for Regularized Loss Minimization. In Proceedings of the Twenty Third International Conference on Artificial Intelligence and Statistics, Cited by: §1.
- Estimation in Reproducing Kernel Hilbert Spaces With Dependent Data. IEEE Transactions on Information Theory 67 (3), pp. 1782–1795. Cited by: §1, §1, §2.2, §2.
- Data sparse nonparametric regression with -insensitive losses. In Proceedings of the Ninth Asian Conference on Machine Learning, pp. 192–207. Cited by: Example 2.
- Pegasos: primal estimated sub-gradient solver for SVM. Mathematical Programming 127 (1), pp. 3–30. Cited by: §1.
- Stochastic Dual Coordinate Ascent Methods for Regularized Loss Minimization. Journal of Machine Learning Research 14 (16), pp. 567–599. Cited by: §1.
- Optimal subsampling for high-dimensional partially linear models via machine learning methods. Journal of Machine Learning Research 26 (198), pp. 1–70. Cited by: §1.
- Optimal Subsampling with Influence Functions. In Advances in Neural Information Processing Systems, Vol. 31. Cited by: §1.
- Core vector machines: Fast SVM training on very large data sets. Journal of Machine Learning Research 6 (13), pp. 363–392. Cited by: §1, §1.
- Weak Convergence and Empirical Processes: With Applications to Statistics. Springer Series in Statistics, Springer International Publishing, Cham. Cited by: §1, §2.2.
- Optimal Subsampling for Large Sample Logistic Regression. Journal of the American Statistical Association 113 (522), pp. 829–844. Cited by: §1, §1.
- More Efficient Estimation for Logistic Regression with Optimal Subsamples. Journal of Machine Learning Research 20 (132), pp. 1–59. Cited by: §1.
- Sampling With Replacement vs Poisson Sampling: A Comparative Study in Optimal Subsampling. IEEE Transactions on Information Theory 68 (10), pp. 6605–6630. Cited by: §1, §1, §1, §3, §4, Remark, Remark, Remark.
- Sketched Ridge Regression: Optimization Perspective, Statistical Perspective, and Model Averaging. Journal of Machine Learning Research 18 (218), pp. 1–50. Cited by: §1.
- Using the Nyström Method to Speed Up Kernel Machines. In Advances in Neural Information Processing Systems, Vol. 13. Cited by: §1, §6.1.
- Sketching as a Tool for Numerical Linear Algebra. Foundations and Trends® in Theoretical Computer Science 10 (1-2), pp. 1–157. Cited by: §1.
- Randomized sketches for kernels: Fast and optimal nonparametric regression. The Annals of Statistics 45 (3), pp. 991–1023. Cited by: §1, §6.1.
Appendix A Proofs
A.1 Derivatives of
Lemma A.1.
Under Assumptions 1, 2 and 3, is twice differentiable at , with:
Proof.
Let and . By Cauchy-Schwarz and Assumption 1, for all such that ,
Now, by the inequality for all , and Assumption 2:
Thus, by Assumption 3, is dominated in a neighborhood of by a four times integrable function. As the previous set of inequalities remains true for with , it yields, by the dominated convergence theorem and Leibniz integral rule, that is continuous and Fréchet differentiable at with:
In the same manner, it comes:
A.2 Proof of Theorem 2.1
Theorem A.2 (Consistency of ).
Under Assumptions 1, 2 and 3, if one furthermore assumes that , one has
Part of the following proof is adapted from Theorem 5.9 of (6).
Proof.
As is convex, one has for all ,
and
by summing under the empirical distribution. Moreover,
Hence,
since is the minimizer of . However, , thus,
Furthermore, by Cauchy-Schwarz,
as and . Finally, and , by the law of large numbers, which shows that . ∎
Lemma A.3.
Proof.
Let . Define the real-valued random variable , then,
where . is a sum of i.i.d real random variables with mean,
and variance,
where . Thus, by the one dimensional central limit theorem,
There is left to show that is asymptotically finite dimensional. Let . Since by Assumption 3, there exists such that . Hence by Markov’s inequality,
Moreover, considering that the random variables in are i.i.d. with mean one has,
Hence, by definition of ,
Thus, is asymptotically finite-dimensional, in the sense that for all , there exists such that,
Applying Theorem 7.7.5 of (21) yields
Lemma A.4.
Proof.
Firstly, in the proof of Theorem A.2 we showed that,
and from Lemma A.3 converges in distribution to a Gaussian process. Thus, , by the fact that converges to 0 in probability.
Then, let , and denote . By consistency of , one has that . On the one hand, by the expression of and triangle inequality,
| (A.1) |
Moreover, using Assumption 2 for all ,
as . By Cauchy-Schwarz and Assumption 1, one has
and . Thus, applying Lemma A.6 with the random variables being (A.1) and the events yields
| (A.2) |
since , and by Theorem A.2. On the other hand, since and are self-adjoint operators, one has
by Cauchy-Schwarz inequality. Furthermore
by the law of large numbers and that . Whence
| (A.3) |
Finally, combining (A.2) and (A.3) yields the wanted result
We can now prove the main theorem using the two above lemmas.
Proof of Theorem 2.1.
The fundamental theorem of calculus yields
with for . By Lemma A.4, one has
Notice that
However, by Assumption 4, hence
by Slutsky’s lemma and Lemma A.3, which concludes the proof. ∎
A.3 Subsampling intermediate results
The two following short lemma deal of general results for convergence in probability.
Lemma A.5.
Let be a sequence of real valued random variables. Suppose that for all , there exists a sequence such that for all ,
Then converges in probability to 0.
Proof.
Let and .
Lemma A.6.
Let be a sequence of non negative random variables and be a sequence of events such that . Then .
Proof.
Let ,
The hereby theorem and its following proof are a piece of Theorem 3.5 in (17) revised with the conditional Lindeberg-Feller assumption instead of the usual one.
Theorem A.7 (Conditional Lindeberg-Feller).
Let be a real martingale difference array adapted to a filtration array , i.e. for all and , is -measurable and . Let such that,
| (A.4) |
Moreover assume that for all ,
| (A.5) |
Then for all , on has,
| (A.6) |
Proof.
Define the functions and such that for all
And note that, from (13, Lemma 1, p.512), for all . Letting and , one has
Now define by
| (A.7) |
As by (A.4), it now suffices to show that , then that the second term of (A.7) tends to 0 in probability as well. Regarding the first point, denote for and , one has that
Moreover, for one has (17, p. 72)
thus
| (A.8) |
where . Let , for each
thus, with (A.5), one has
Therefore , by application of Lemma A.5. Thus, the first term of the right hand side of (A.8) tends to 0 in probability and the second term as well by Lemma A.6.
Lemma A.8.
Let and two asymptotically finite dimensional random variable sequences in and a real non-zero sequence that converges to . Then is asymptotically finite dimensional as well.
Proof.
By definition, for all , there exists such that
and
Denote . Using the inequality , one has
Moreover, there exists such that for all , . Therefore
As a consequence, by subadditivity of the ,
and is asymptotically finite dimensional. ∎
Let us consider the two following subsampling strategies, where refers to the multiplicity (or the number of occurrences) of each point in the subsampled dataset (which may be null if is not picked).
Subsampling with replacement
One draws independently point indices:
where is the Dirac measure at . Each point appears times in the subsampled dataset
Subsampling without replacement
Assuming that for all and , ones draws independently for each point
and decides that it should enter the subsampled dataset when the inclusion indicator verifies .
The following proposition is a weak law of large numbers for Multinomial and Poisson subsampling. It is written with an a general Hilbert space with the aim of applying it with either the reals and the regular product or the RKHS of study and its scalar product .
Proposition A.9 (Subsampling LLN).
Let be a Hilbert space and a function from to such that . Then, if verifies Assumption 5, one has,
whether , in the case of Multinomial subsampling, or , in the case of Poisson subsampling.
Moreover, if it is assumed that then,
By construction, in Poisson subsampling, hence . In the case of (Multinomial) subsampling, the goal is to reduce the effective dataset size. Hence one would largely want and the second point of the above proposition always holds in this context.
Proof.
To simplify the notation, first define
and recall that by the usual weak law of large numbers. By the tower property one has
so . Let us now show that for all ,
| (A.9) |
for Multinomial and Poisson subsampling. On the one hand,
On the other hand,
Hence
On the one hand, by Cauchy-Schwarz,
However,
and,
Hence,
On the other hand, by independence of the observations ,
Thus,
and
| (A.10) |
Finally, by Chebyshev’s inequality, for all ,
whence .
Assume now that . From (A.10) one has
Whence, there exists and such that for ,
Finally, by Chebyshev’s inequality, for all ,
and therefore . ∎
We hereby give the proof of Theorem 3.1 that is valid for Poisson and Multinomial subsampling via the law of large numbers proposition above. Also notice that as from Theorem A.2, triangle inequality implies that as well.
Proof of Theorem 3.1.
Following the same steps as for the proof of Theorem A.2 but replacing by and by , it comes that
with and
By Assumptions 1 and 3, has a fourth order moment. Therefore, by application of Proposition A.9, and eventually since by ’ ‣ Section 3. ∎
The following lemma is valid for Poisson and Multinomial subsampling via the law of large numbers proposition above.
Lemma A.10.
Under Assumptions 1, 2 and 3, ’ ‣ 3 and 5,
with for all , either in the framework of Multinomial or Poisson subsampling.
Proof.
Firstly, from Theorem 3.1 we showed that
By the second part of the subsampling law of large numbers Proposition A.9, one has
Moreover, . Therefore, .
Then, let , and denote . By consistency of , one has that . On the one hand, by the expression of and triangle inequality one has
| (A.11) |
Moreover, using Assumption 2 for all ,
since . By Cauchy-Schwarz one has
and . Furthermore, , , and by Assumption 3 has a fourth order moment hence
by application of Proposition A.9. Thus, applying Lemma A.6 with the random variables being (A.11) and the events one has
| (A.12) |
On the other hand, since and are self-adjoint operators, one has
by Cauchy-Schwarz inequality. Furthermore, has a fourth order moment by Assumptions 1 and 3 hence
by application of Proposition A.9. Moreover
Hence
since . Therefore
| (A.13) |
Finally combining (A.12) and (A.13) yields the wanted result
The following lemma can be applied for Multinomial or Poisson subsampling.
Lemma A.11.
Under Assumptions 1, 2, 3 and 5, the quantity is asymptotically finite dimensional, i.e. for all , there exists such that
whether considering Poisson or Multinomial subsampling.
Proof.
Let and . By Markov’s inequality
Expanding the right hand side together with the tower property yields the quantity
However, from (A.9), for all one has
Thus
However, hence
as the rest of a converging series. Furthermore, dominates the series and has a second order moment by Assumption 3 whence, by the dominated convergence theorem in , one has
Moreover, it is assumed from Assumption 5 that there exists and such that for all ,
Hence for large enough such that
one has
Thus is asymptotically finite dimensional. ∎
The following lemma is the main lemma for the proofs of Theorems 3.2, 3.3, 5.1 and 5.2.
Lemma A.12.
Let be a sequence of valued random variables and a sequence of -algebras. Assume that is asymptotically finite-dimensional, and for all ,
| (A.14) |
for some covariance operator . Then
Proof.
Let and define
Let and consider the convergence of the characteristic function, i.e.
First adding and subtracting and using the triangle inequality one gets that the previous display is upper bounded by
By Lemma A.3, and since , Slutsky’s theorem yields that . Thus
Moreover, is -measurable thus
However, . Thus, by (A.14) and the dominated convergence theorem
As a consequence,
Moreover, by Lemma A.3 is asymptotically finite dimensional and so is , by assumption. Then, by Lemma A.8 the sum of two asymptotically finite dimensional sequences of random variables in is itself asymptotically finite dimensional. Therefore
A.4 Proof of Theorem 3.2
Lemma A.13.
Proof.
The goal is to apply Theorem A.7. Recall that
Let and define a real-valued random variable and . Then
where
for all and . Moreover, define the filtrations such that is the -algebra generated by and for and . Notice that for all and the conditional distributions of with respect to and are the same. Remark as well that, conditionally to , is a sum of i.i.d. random variables such that since . Hence is a martingale difference array for the filtration . Moreover, its conditional variance reads
Since , the previous display reads
However, only one term of the sum in the right hand side of the previous display is non-zero. Thus
Hence, the conditional variance reads
If one writes , then by the law of large numbers
where .
Let us now show that the martingale difference array satisfies the conditional Lindeberg-Feller condition. Let ,
Furthermore expanding the forth order moment yields
However by Assumption 5, for all ,
Whence, and more specifically for any . Hence, using the fact that ,
Thus . Whence, from Theorem A.7,
Finally, and conditionally to , are independent hence
We can now prove the main theorem using the above intermediate results.
Proof of Theorem 3.2.
The fundamental theorem of calculus yields that
with . By Lemma A.10, one has
By definition of , the fact that and adding and retrieving and , one has
Whence
First, by ’ ‣ Section 3. Applying A.12 with and , together with Lemmas A.13 and A.11 yields
A.5 Proof of Theorem 3.3
Lemma A.14.
Under Assumptions 1, 2, 3 and 5, furthermore assume that and almost surely for all and . Then for all and ,
with
and
Proof.
The goal is to apply Theorem A.7. Recall that
Let and define a real-valued random variable and , then
where
for all and . Moreover, define the filtration array such that is the -algebra generated by and for and . Notice that for all and the conditional distributions of with respect to and are the same. Remark as well that, conditionally to , is a sum of independent random variables such that since . Hence is a martingale difference array for the filtration . Moreover, its conditional variance reads
Since, conditionally to , follows a Bernoulli distribution of parameter , the previous display reads
On the one hand
as it is assumed that . On the other hand, if one writes , by the law of large numbers
Therefore
where
Moreover, let us now show that the martingale difference array satisfies the conditional Lindeberg-Feller condition. Let ,
Furthermore
where , since and . Hence bounding the forth order moment yields
However, by Assumption 5 there exists and such that for all ,
hence for all ,
Therefore . Moreover, by Assumption 3
thus
and from Theorem A.7
Finally, and conditionally to , are independent hence
We can now prove the main theorem using the above intermediate results.
Proof of Theorem 3.3.
Following the same steps as in the proof of Theorem 3.2, one has
Applying A.12 with and , together with Lemmas A.14 and A.11 yields
A.6 Proof of Corollary 3.4 and Corollary 3.5
Proof.
First notice that taking a constant importance yields uniform probabilities and that both respectively verify Assumptions 5 and 6. Thus, apply Theorems 3.2 and 3.3 with constant . This yields
and
Which concludes the proof. ∎
A.7 Proof of Proposition 4.1
Proof.
Let . By Cauchy-Schwarz, one has
with equality if and only if or equivalently . Thus, is a minimizer of . ∎
A.8 Proof of Theorem 5.1
In this section, denote for all and ,
such that and
As for all then
hence the sequence of probability vectors verifies Assumption 5, thus we can deduce the consistency of by application of Theorem 3.1. Therefore
| (A.15) |
Moreover, the results of Lemmas A.10 and A.11 still apply, if replacing by and by , because verifies Assumption 5.
Lemma A.15.
Proof.
As per the proof of Lemma A.13, the goal is to apply Theorem A.7. The only differences lie in the sequence of filtration to handle a martingale difference array, the conditional variance and its limit. As the rest remains unchanged, this is what we will focus on in this proof. Let . Define a real-valued random variable and , then
where
for all and . Moreover, define the filtrations such that is the -algebra generated by , and for and . Notice that for all and the conditional distributions of with respect to and are the same. Remark as well that, conditionally to and , is a sum of i.i.d. random variables such that since . Hence is a martingale difference array for the filtration . Moreover, its conditional variance reads
Since , the previous display reads
However only one term in the sum is non-zero. Thus
Furthermore
hence
Denote and . Hence for all and ,
Therefore by the triangle inequality
and consequently
Moreover, for all , and ,
using Assumption 2. Thus, together with Assumption 3 and ’s consistency, the previous inequality yields
Whence applying Lemma A.6 with along with the previous display yields
Similarly , which implies that . Hence
However
which yields
Which concludes the proof. ∎
Proof of Theorem 5.1.
Since Assumption 5 is verified, by application of A.10 and following the proof of Theorem 3.2, one gets
Applying A.12 with and , together with Lemmas A.11 and A.15 yields
A.9 Proof of Theorem 5.2
In this section, as of the previous one, denote for all and ,
such that and
As for all then since and . Therefore
hence the sequence of vectors verifies Assumption 5, thus we can deduce the consistency of by application of Theorem 3.1. Therefore
| (A.16) |
Moreover, the results of Lemmas A.10 and A.11 still apply, if replacing by and by , because verifies Assumption 5.
Lemma A.16.
Proof.
As in the proof of Lemma A.14, the goal is to apply Theorem A.7. The only differences lie in the sequence of filtration to handle a martingale difference array, the conditional variance and its limit. As the rest remains unchanged, this is what we will focus on in this proof. Let . Define a real-valued random variable and , then
where
for all and , with . Moreover, define the filtrations such that is the -algebra generated by , and for and . Notice that for all and the conditional distributions of with respect to and are the same. Remark as well that, conditionally to and , is a sum of independent random variables such that since . Hence is a martingale difference array for the filtration . Moreover, its conditional variance reads
By the law of large number and the assumption that , the second term of the right hand side converges in probability to . For the first term, denote
and bound the following quantity
Using the inequality for . However, , and hence
and
Furthermore
We showed in the proof of Lemma A.15 that ,
by Assumptions 1, 2 and 3 and the assumption that is consistent. Hence
and
Therefore
Now define the functions
for with . Note that even though may be null here, the function is well defined as would simply be equal to . One has that the sequence of functions is dominated by the integrable function and converges pointwise towards . Thus
by the dominated convergence theorem. Therefore
and
Which finally yields
the wanted result. ∎
Proof of Theorem 5.2.
Since Assumption 5 is verified, by application of A.10 and following the proof of Theorem 3.2, one gets
Applying A.12 with and , together with Lemmas A.16 and A.11 yields
Appendix B Additional numerical results
In the first paragraph of Section 6.2, we present a study of the impact of the smoothing hyperparameter on the generalization error. Since our framework is based on the consistency of , it is also of interest to analyze , or -distances between and . These distances are represented (with respect to ) in Figures B.2 and B.1, respectively for the synthetic classification and regression tasks. Let us remark that, in practice, since is unreachable, it is approximated by the ERM computed on the full dataset () with a very good Nyström approximation. The results are similar than those depicted in Figure 3 and show that a value of between and leads to a better SRM estimator than uniform subsampling. This means that, in this setting, statistical and learning performances are in line with each other.
Comments
· 0