scieee AI-readable full text Open interactive document viewer

Passive sampling in reproducing kernel Hilbert spaces using leverage scores

Giménez Febrer, Pedro Juan,Pagès Zamora, Alba Maria,Santamaria Caballero, Ignacio

Abstract

This paper deals with the selection of the training dataset in kernel-based methods for function reconstruction, with a focus on kernel ridge regression. A functional analysis is performed which, in the absence of noise, links the optimal sampling distribution to the one minimizing the difference between the kernel matrix and its low-rank Nyström approximation. From this standpoint, a statistical passive sampling approach is derived which uses the leverage scores of the columns of the kernel matrix to design a sampling distribution that minimizes an upper bound of the risk function. The proposed approach constitutes a passive method, able to select the optimal subset of training samples using only information provided by the input set and the kernel, but without needing to know the values of the function to be approximated. Furthermore, the proposed approach is backed up by numerical tests on real datasets.

Full text

1 Passive sampling in reproducing kernel Hilbert1 spaces using leverage scores2 Pere Giménez-Febrer1, Alba Pagès-Zamora1, and Ignacio Santamaria2 3 1SPCOM Group, Universitat Politècnica de Catalunya-Barcelona Tech, Spain4 2Dept. of Communications Engineering, Universidad de Cantabria, Spain5 Abstract6 This paper deals with the selection of the training dataset in kernel-based methods for function reconstruction,7 with a focus on kernel ridge regression. A functional analysis is performed which, in the absence of noise, links8 the optimal sampling distribution to the one minimizing the difference between the kernel matrix and its low-rank9 Nyström approximation. From this standpoint, a statistical passive sampling approach is derived which uses the10 leverage scores of the columns of the kernel matrix to design a sampling distribution that minimizes an upper bound11 of the risk function. The proposed approach constitutes a passive method, able to select the optimal subset of training12 samples using only information provided by the input set and the kernel, but without needing to know the values13 of the function to be approximated. Furthermore, the proposed approach is backed up by numerical tests on real14 datasets.15 Index Terms16 kernel ridge regression, leverage score, Nyström approximation, passive sampling, reproducing kernel Hilbert17 space18 I. INTRODUCTION19 Machine learning predicts labels by applying decision rules previously learned on a training dataset, which20 consists of a set of input samples and their labels. The training objective is to obtain a model that can generalize21 to previously unseen or unlabeled inputs. While in learning applications the focus is usually on achieving a small22 prediction error, which is heavily influenced by the choice of the training set, there is also the cost of label acquisition23 for training. This cost might be comparable or even superior to the prediction cost. For instance, in recommender24 systems, a request is sent to a user to rate an item; but this does not even guarantee a rating since the request might25 be ignored. In other areas such as sensor networks, medicine, or any scenario with human annotators, the time26 to label an input is also non-negligible. Hence, the design of optimal sample selection strategies is of paramount27 This work has been funded by the Ministerio de Ciencia e Innovación (MICINN) of the Spanish Government and by the Agencia Estatal de Investigación (AEI/10.13039/501100011033) and ERDF funds (PID 2019-104958RB-C41/C43, RED2018-102668-T); and by the Catalan Government (2017 SGR 578) . © 2022 Elsevier. This manuscript version is made available under the CC-BY-NC-ND 4.0 license http://creativecommons.org/licenses/by-nc-nd/4.0/ 2 importance to improve algorithm performance both in terms of accuracy and cost. The existing sample selection1 strategies may be divided into active and passive, with the difference between them requiring labeled inputs or not.2 Active sampling schemes allow to choose the most promising set of inputs to label. They implement an iterative3 scheme that, given the availability of a small starting training set, executes two steps repeatedly: first, the function4 is learned or updated using the current training set and, second, a criterion is evaluated to decide which should be5 the next input to be labeled and then added to the training set. There exist a variety of criteria for active sampling,6 the most common being based on prediction uncertainty. For instance, in Gaussian processes [1], [2], the predictive7 variance serves as an uncertainty measure.8 While active sampling schemes generally provide good results, their performance may be degraded when the9 samples are too noisy or when online operation is not possible [3]. There are also batch versions of active sampling10 which acquire the labels in groups, but the issue with noisy samples still remains. Moreover, most active learning11 methods are designed for classification tasks [4], [5], which often have built-in uncertainty measures, while the12 availability of methods for regression is more limited [6]–[8].13 An alternative to active sampling is provided by the passive sampling schemes. In passive sampling, the set14 of inputs to be labeled is selected by observing the geometry of the input space only. For instance, the greedy15 sampling approach in [3] iteratively adds new input samples to the training set by choosing the one with the largest16 distance to the set. By relying only on the input space, passive sampling avoids iteratively recomputing the learned17 function for every additional input. The selected set of inputs can be labeled all at once when it is deemed complete.18 Furthermore, the impact of noisy samples is diminished.19 This paper addresses passive sampling for function approximation in a reproducing kernel Hilbert space (RKHS),20 with a focus on kernel ridge regression (KRR) [9]–[11]. To do so, a functional analysis is conducted which connects21 the concept of optimal sampling to the Nyström approximation [12] - a low-rank approximation to the kernel matrix22 built from a subset of its columns. Building atop this finding, a sample selection approach is presented based on23 selecting the samples by means of the leverage scores [13] of the kernel matrix columns. The proposed method24 enables passive batch sampling, hence selecting the entire training set without needing any label; only the kernel25 is needed. Moreover, the use of kernels enables the direct application of passive sampling to any input space, e.g.,26 non-metric spaces, provided that a kernel function exists for it.27 The paper is organized as follows. Section II provides a theoretical analysis of the sampling procedure in RKHSs28 and proves that Nyström-based passive sampling is optimal, in the absolute error sense, for noiseless samples.29 Section III extends the analysis to KRR with noisy samples. Section IV introduces the passive sampling approach30 for KRR based on the leverage scores of the kernel matrix. Finally, Section V presents numerical tests and Section VI31 offers conclusions.32 Notation. Boldface lower-case fonts denote column vectors, boldface upper-case fonts denote matrices, and calli-33 graphic upper-case letters denote sets. The ith entry of a vector fis denoted by f(i), the ith column of a matrix K34 by K(i), and the entry at row icolumn jby Kij . The superscript Tdenotes the transpose, †the pseudo inverse,35 and the hat ˆis used for estimates. The symbol Istands for the identity matrix of appropriate size, specified by36 the context, and the trace operator is Tr(·).37 3 II. OPTIMAL SAMPLING AND RECONSTRUCTION IN RKHSS1 Let f:X → Rbe a function defined on an RKHS HN, and ¯ X={¯xi}s i=1 be a set of sampled points in X2 where |X| =N. Here, we focus on the problem of reconstructing fgiven a set of noiseless observations {¯yi}s i=1 3 such that ¯yi=f(¯xi)∀i= 1, . . . , s.4 The space HNis a Hilbert space of R-valued functions on a non-empty set Xwith inner product h·,·iHN:5 HN× HN→Rand induced norm kfkHN=hf, fiHN. A function κ:X × X → Ris a reproducing kernel of6 HN, and HNis a RKHS if7 •∀x∈ X, κ(·, x)∈ HN,8 •∀x∈ X,∀f∈ HN,hf(·), κ(·, x)iHN=f(x),9 where the latter is the reproducing property. In particular, the reproducing property implies that hκ(·, x), κ(·, x0)iHN=10 κ(x, x0). In view of the Moore-Aronszajn theorem, one can construct the RKHS HNas the completion of the space11 of functions spanned by the set {κ(·, xi)}N i=1, i.e.,12 HN:= {f:f(x) = N X i=1 αiκ(x, xi), αi∈R}(1) with an inner product given by hf, f0iHN=PN i=1 PN j=1 αiα0 jκ(xi, xj), where {αi}N i=1 and {α0 j}N i=1 are the13 coefficients of f, f0∈ HN, respectively. We refer to κas the kernel function that spans HN, and to Kas its14 kernel matrix with Kij =κ(xi, xj). Note that our RKHS definition (1) differs from the usual one with an infinite-15 dimensional RKHS since |X| =Nand, therefore, HNis a finite-dimensional space [9].16 In order to motivate the passive sampling approach introduced in Section IV, this section builds on the functional17 analysis approach to the signal reconstruction process from [14] and derives results valid for any algorithm operating18 in a RKHS.19 The recovery of ffrom the observation set can be thought of as the “inversion” of20 ¯ f=Af(2) where ¯ f= [f(¯x1), . . . , f(¯xs)]T, and A:HN→Rsis a sampling operator evaluating fat {¯xi}s i=1. Leveraging21 the reproducing property, the sampling operator is defined as22 Af= s X n=1 hf, κ(·,¯xn)iHNen(3) where enis the nth vector of the standard basis, i.e., the nth column of the s×sidentity matrix. Let Hs⊆ HN 23 be the subspace of dimension sspanned by {κ(·,¯xn)}s n=1. Then, f=fs+f⊥ s, where fsis the projection of24 fonto Hsand f⊥ sis the projection onto the subspace orthogonal to Hs, denoted by H⊥ s⊂ HN, such that25 hf⊥ s, κ(·,¯x)iHN= 0 ∀¯x∈¯ X. Thus, for ¯x∈¯ X,26 f(¯x) = fs(¯x) + f⊥ s(¯x) = hfs, κ(·,¯x)iHN+hf⊥ s, κ(·,¯x)iHN =hfs, κ(·,¯x)iHN=fs(¯x).(4) 4 Since fs∈ Hs, it can be written as Ps n=1 ¯αnκ(·,¯xn)for some real coefficients {¯αn}s n=1. In turn, f(¯x) =1 Ps n=1 ¯αnκ(¯x, ¯xn). Therefore, since ¯ f(i) := f(¯xi),Amaps finto a new RKHS Hs⊆Rsdefined as2 Hs:= {¯ f:¯ f(i) = s X n=1 ¯αnκ(¯xi,¯xn),¯αn∈R}(5) with kernel matrix ¯ K∈Rs×swhere ¯ Ki,j =κ(¯xi,¯xj)so that ¯ f=¯ K¯ α, where ¯ α= [¯α1,...,¯αs]T, and h¯ f,¯ f0iHs=3 ¯ fT¯ K−1¯ f0for ¯ f,¯ f0∈ Hsassuming that ¯ Kis invertible. With A:HN→ Hs, its adjoint operator is A∗:Hs→4 HN, and by definition it satisfies for any f00 ∈ HNand ¯ f0∈ Hsthat5 hAf00,¯ f0iHs=hf00,A∗¯ f0iHN.(6) Particularizing (6) for f00 =fand ¯ f0=¯ f, with ¯ fin (2), we obtain6 hAf, ¯ fiHs=h s X n=1 hf, κ(·,¯xn)iHNen,¯ fiHs = s X n=1 hf, κ(·,¯xn)iHNhen,¯ fiHs =hf, s X n=1 hen,¯ fiHsκ(·,¯xn)iHN.(7) This leads to the definition7 A∗¯ f= s X n=1 hen,¯ fiHsκ(·,¯xn) = s X n=1 ¯αnκ(·,¯xn)(8) where hen,¯ fiHs=¯ fT¯ K−1en= ¯αn. The operator A∗maps ¯ fback into HNusing only the basis functions in8 Hs, hence reversing the sampling in (2) and yielding an estimate for f. Moreover, the sampled values f(¯xi)s i=1 9 are not modified by A∗. Hence, since AA∗¯ f=¯ f, we have that AA∗=I; this can be seen by substituting (8)10 into (3).11 After the sampling operator and its adjoint have been defined, the reconstruction of a function in HNfrom its12 samples can be achieved through the consecutive application of each operator, i.e., ˆ f=A∗Af. Hence, P=A∗A13 is an orthogonal projector onto Hssince it is a self-adjoint operator, i.e., hPf, f0iHN=hf, Pf0iHN, and it satisfies14 PP =P. Then, using (8) the estimate ˆ fis15 ˆ f=Pf=A∗¯ f= s X n=1 ¯αnκ(·,¯xn) = fs.(9) Since an orthogonal projection onto a space yields an element with minimum distance to the original function, the16 reconstruction error at x∈ X is upper bounded by17 |f(x)− Pf(x)|=|hf, κ(·, x)iHN− hPf, κ(·, x)iHN| (a) =|hf, κ(·, x)iHN− hf, Pκ(·, x)iHN| =|hf, κ(·, x)− Pκ(·, x)iHN| (b) ≤ kfkHNkκ(·, x)− Pκ(·, x)kHN(10) 5 where (a) uses the self-adjoint property of P, and (b) uses the Cauchy-Schwarz inequality. It can be seen that the1 error upper bound at xdepends on the distance between the kernel function κ(·, x)and its projection onto Hs.2 Note that zero error is obtained at the sampled points since Pκ(·,¯x) = κ(·,¯x)∀¯x∈¯ X. For x /∈¯ X, the error can3 only be zero if κ(·, x)∈ Hs; this is the case when a kernel function is duplicated such that κ(·,¯xi) = κ(·, xj)4 where ¯xi∈¯ Xand xj/∈¯ X. This might happen, for instance, in a recommender system where two different users5 have identical tastes; the kernel function evaluated at each of the two users has identical value as well. Assuming6 no such duplicities exist,7 |f(x)− Pf(x)| ≤      0if x∈¯ X kfkHNkκ(·, x)− Pκ(·, x)kHNif x /∈¯ X (11) The absolute error over the function estimate is denoted by |f−ˆ f|=PN i=1 |f(xi)−ˆ f(xi)|, and (11) shows that8 it can only be zero when f∈ Hsso that Pf=f. Therefore, in order to have zero error for any f∈ HN, then9 HN=Hsmust be true.10 The second norm in the last inequality of (10) provides the distance in HNbetween a kernel function and its11 closest approximation built with the functions in Hs. Alternatively, this difference can be written in terms of Aas12 shown in the lemma below, which will be used later.13 Lemma 1. The distance between κ(·, x)and its projection onto Hs∀x∈ X is equal to the difference between the14 norm of κ(·, x)in HNand its sampled counterpart in Hs,15 kκ(·, x)− Pκ(·, x)k2 HN=kκ(·, x)kHN− kAκ(·, x)kHs(12) Proof. Let us expand the second term in (10) as16 kκ(·, x)− Pκ(·, x)k2 HN =hκ(·, x)− Pκ(·, x), κ(·, x)− Pκ(·, x)iHN =κ(x, x)−2hκ(·, x),Pκ(·, x)iHN+hPκ(·, x),Pκ(·, x)iHN (a) =κ(x, x)−2hκ(·, x),Pκ(·, x)iHN+hAκ(·, x),Aκ(·, x)iHs (b) =κ(x, x)−2hAκ(·, x),Aκ(·, x)iHs+hAκ(·, x),Aκ(·, x)iHs =κ(x, x)− hAκ(·, x),Aκ(·, x)iHs =kκ(·, x)kHN− kAκ(·, x)kHs(13) where, using hf, A∗¯ fiHN=hAf, ¯ fiHsand AA∗=I, the identity hA∗Af, A∗AfiHN=hAA∗Af, AfiHshas17 been applied in (a), and hf, A∗AfiHN=hAf, AfiHsin (b).18 Before continuing with the analysis, let us first introduce the following definition:19 6 Nyström approximation. Let B ⊆ Nbe a set indexing |B| =rNcolumns of K∈RN×N. Defining1 R= [K(i)]i∈B as the tall matrix formed by the indexed columns, its transpose RT, and Cas the submatrix2 indexed by {(i, j)}(i,j)∈B×B, the Nyström approximation to Kis3 N=RC†RT.(14) The Nyström approximation is a low-rank approximation that is used in place of the full-rank kernel matrix in4 kernel methods [15] to accelerate the inversion of the kernel matrix. While in this paper this matrix is not used for5 this purpose, it arises in the various analyses conducted from here on. Thus, although (10) addresses the per-sample6 error, Lemma 1 enables an upper bound formulated in terms of the Nyström approximation when considering the7 total reconstruction error across f. This bound constitutes the main statement in this section and is presented in the8 theorem below.9 Theorem 1. Let f= [f(x1), . . . , f(xN)]T, and Sbe an s×Nbinary sampling matrix with a non-zero element10 per row equal to 1 such that Sf := Af. Moreover, let Kbe the kernel matrix of HN, and T:= KST¯ K−1SK11 with ¯ K=SKST. Then, the absolute error across f, defined as |f−Pf|=PN m=1 |f(xm)−Pf(xm)|, is bounded12 as13 |f− Pf| ≤ kfkHNTr(K−T)(15) Proof. Using (10), (13), and k¯ fkHs=¯ fT¯ K−1¯ f, it holds that14 |f− Pf|= N X m=1 |f(xm)− Pf(xm)| ≤ kfkHN N X m=1 kκ(·, xm)− Pκ(·, xm)k2 HN =kfkHN N X m=1 kκ(·, xm)kHN− kAκ(·, xm)kHs =kfkHN N X m=1  κ(xm, xm)− s X i=1 s X j=1 κ(¯xi, xm)( ¯ K−1)i,jκ(¯xj, xm) (16) =kfkHNTr(K−KST¯ K−1SK) =kfkHNTr(K−T).(17) 15 Matrix Tconstitutes a Nyström approximation as defined in (14), with the specificity that its rank, given by s,16 and the selection of columns is tied to the sampling matrix S. Again, note that full-rank kernel matrix is not being17 replaced with an approximation, the Nyström approximation appears through the analysis conducted in Theorem 1.18 The result in (15) shows that the upper bound on the reconstruction error of fis proportional to the difference19 between Kand Ton its diagonal entries. Moreover, Tr(K−T)≥0since in (12) kκ(·, x)kHN≥ kAκ(·, x)kHs.20 Therefore, designing Ato maximize PN n=1 kAκ(·, xn)kHs=Tr(T)minimizes the upper bound in Theorem 1.21 7 III. FUNCTION SAMPLING AND RECONSTRUCTION IN KERNEL RIDGE REGRESSION1 In KRR, the function to be recovered is a vector f= [f(x1), . . . , f(xN)]T∈ HN⊆RN, where f=Kα,α=2 [α1, . . . , αN]T, and hf,f0iHN=fTK−1f0with f0∈ HN. Given the s-dimensional vector of noisy observations3 ¯ y=Sy, where Sis an s×Nbinary sampling matrix with a single non-zero element per row, y= [y1, . . . , yN]T,4 yi=f(xi) + wiand widenotes noise, the problem is formulated as solving5 ˆ f= arg min f∈HN k¯ y−Sfk2 2+µkfkHN(18) or, equivalently,6 ˆ α= arg min α∈RN k¯ y−SKαk2 2+µαTKα (19) where µ > 0is a regularization parameter. The solution to (18) is7 ˆ f=KST(SKST+µI)−1Sy.(20) As shown in Section II, the sampling operator in (2) takes the form A:= S, where Sis an s×Nbinary8 sampling matrix with a single non-zero element per row such that Sf =¯ f. Its adjoint, derived following (6), is9 A∗:= KST(SKST)−1, and the projection operator is P=KST(SKST)−1S. Thus, one observes that the10 solution (20) is not obtained by applying the projection operator Pto yunless µ= 0. However, since (20) lies on11 the column span of KST, the result is a non-orthogonal projection of yonto Hs=span{KST}, i.e., the space12 spanned by the kernel functions evaluated at the sampled inputs. Still, a direct application of Theorem 1 is not13 possible unless µ= 0 and yis noiseless.14 To evaluate the performance of a specific sampling pattern, the risk function [16], which is equal to the mean15 squared error (MSE) except that it takes Sas a parameter, will be used. Thus, the risk is16 Rµ(S) = Ew{kf−ˆ fk2 2} = (I−KST(SKST+µI)−1S)f  2 2 +Ewn KST(SKST+µI)−1Sw  2 2o(21) where w= [w1, . . . , wN]T. When µ= 0, the risk becomes17 R0(S) =  f−KST(SKST)−1Sf  2 2 +Ewn KST(SKST)−1Sw  2 2o =kf− Pfk2 2+EwnkPwk2 2o.(22) Hence, the first term in (22), i.e., the squared bias, takes a similar form as (15) in Theorem 1, whereas the second18 term or variance is the norm of the projection of the vectorized noise onto Hs.19 In a noiseless situation, the variance term in (22) would disappear and therefore the overall error would depend20 uniquely on the accuracy of the Nyström approximation. With noise, there needs to be a balance between bias21 and variance in order to make the risk small, i.e., sampling the most important points in fwhile acquiring the22 least amount of noise. However, since the distribution of the noise is usually unknown, this strategy is not feasible.23 8 Assuming zero-mean Gaussian noise with variance ν2, then EwnkPwk2 2o=ν2Tr(P) = ν2ssince Tr(P) =1 Tr((SKST)−1SKST) = s. Adapting the procedure in the proof of Theorem 1 to the 2-norm, we have that2 R0(S) = kf− Pfk2 2+ν2Tr(P)≤ kfk2 2Tr(K−T) + ν2s This expression shows that adding more samples reduces the approximation error to K, and hence the bias, but it3 also increases the variance.4 Since in KRR one typically uses µ > 0to reduce the impact of the noise and risk of overfitting, the passive5 sampling strategy is derived in the next section by analyzing Rµ(S)in (21).6 IV. PASSIVE SAMPLING FOR KERNEL RIDGE REGRESSION7 The previous sections have shown that the upper bound on the recovery error increases with the trace of the8 difference between the kernel matrix and its Nyström approximation. Since this approximation is built from a subset9 of columns of the kernel matrix, it is crucial to choose the columns that best approximate the spectrum of the full10 matrix to keep the approximation accurate. Indeed, this is known as the column subset selection problem [17], also11 related to matrix sketching [18]–[20]. In regards to the Nyström approximation, while there exist deterministic [21]12 methods which order the columns according to a metric and then choose the top performers, most implementations13 opt for statistical approaches. In these, a sampling probability is assigned to each column and the required number14 of columns is sampled according to the resulting distribution. One example of such a technique is in [13], [16],15 which measures column importance through the so-called leverage scores and provides theoretical guarantees on16 the approximation error. This section presents a passive sampling method based on kernel leverage scores, which17 is derived through an analysis of the estimation error in KRR.18 A. Risk function analysis19 Rewriting the risk function as shown in Appendix A, assuming Gaussian noise with variance ν2, and using that20 kAαk2≤ kAk2kαk2for any matrix Aof appropriate size, the risk is upper bounded as21 Rµ(S) =   (K−˜ T)α   2 2+Ew1 µ2  (K−˜ T)ST¯ w   2 2 ≤  K−˜ T   2 2kαk2 2+ν2s µ2(23) where ˜ T:= KST(SKST+µI)−1SK is a regularized Nyström approximation.22 Eq. (23) shows that the spectral norm of the difference between the kernel matrix and its regularized Nyström23 approximation, which depends on µ, also determines the risk bound for KRR. Therefore, it is well-grounded that24 one may pick the training inputs in Xby choosing the associated columns in Kthat best build the regularized25 Nyström approximation. This section frames the sampling of the entries in yas designing the sampling matrix S26 that minimizes the error K−˜ T. Through analyzing the risk function from a probabilistic standpoint, Sis cast27 as a weighted sampling matrix with weights set according to the leverage scores of the columns of K. Since this28 process only involves the kernel matrix, it is a passive sampling approach. Once Sis obtained, the corresponding29 samples are obtained as ¯ y=Sy and KRR can then be applied to recover f.30 9 Let us first introduce the following lemma proven in Appendix B:1 Lemma 2. The difference K−˜ Tcan be written as2 K−˜ T=µQΣ1 2(Σ+µI)−1 2(I−P)−1(Σ+µI)−1 2Σ1 2QT(24) where we have used the eigendecomposition K=QΣQTand3 P:= Σ(Σ+µI)−1−(Σ+µI)−1 2Σ1 2QTSTSQΣ1 2(Σ+µI)−1 2.(25) Defining4 V= (Σ+µI)−1 2Σ1 2QT(26) and knowing that the product of two diagonal matrices is commutative, substituting into (25) yields5 P=V V T−V STSV T(27) Therefore, Pis the difference between V V Tand an approximation built from a subset of the columns in V, and6 it is the only element in (24) depending on the sampling distribution through S. Thus, if Sis designed to minimize7 the norm of Pso that in (24) k(I−P)−1k2is approximately minimized, a reduction on the difference K−˜ T8 in (24) and also on the bound on Rµ(S)in (23) will be achieved.9 B. Sampling based on leverage scores10 Let θbe an ordered s-tuple containing indices drawn with replacement from {1, . . . , N}with the probability11 distribution Pr(i) = pi. Here, pidenotes the probability of sampling the ith column in K, and θcontains the indices12 of the sampled columns in non-descending order. Moreover, assume a weighted S∈Rs×Nwith entries13 Si,j =     1 √spjif θ(i) = j 0otherwise (28) for i= 1, . . . , s and j= 1, . . . , N. Note that, since the indices in θare drawn with replacement, there might14 be repeated rows in Ssampling the same item. Moreover, a weighted Sis necessary in order to satisfy certain15 theoretical guarantees.16 In [22] it is shown that the optimal probability distribution to minimize E{kPk2 F}in (27) is17 pi=kvik2 2 kVk2 F (29) with videnoting the ith column of Vin (26), and18 kvik2 2= N X j=1 σj σj+µq2 j(i)(30) where σi= (Σ)ii, and qjis the jth column of Q. Thus, the distribution obtained with (29) for i= 1, . . . , N can19 be expected to reduce kK−˜ Tkin the risk upper bound (23). Still, note that this distribution is obtained for a20 specific value of µsince pidepends on µthrough V.21 16 0 50 100 150 200 250 100.72 100.73 100.74 100.75 100.76 100.77 s RMSE UKRR LKRR GKRR UGP LGP GGP Figure 7: RMSE vs. sfor the Wine data. 0 100 200 300 400 500 0.025 0.050 0.075 0.100 s seconds d N= 1 d N= 0.8d N= 0.5d N= 0.2 Figure 8: Runtime for different values of d Non the Mushroom data. finding the best possible Nyström approximation and labeling the inputs corresponding to the chosen columns. This1 sampling approach is passive since it only involves knowledge of the input space and kernel matrix, which presents2 benefits over active sampling schemes which require online operation and are more vulnerable to noise. Given the3 theoretical background, the Nyström-based sampling approach has been applied to KRR and GP regression for4 the picking of the training set. In this, the weighted sampling matrix is designed according to the leverage scores5 of the kernel matrix, which measure the importance of each column in achieving a good Nyström approximation.6 Numerical tests have shown that the proposed approaches work well for the recovery of sampled vectors when7 compared to uniform sampling.8 ACKNOWLEDGEMENTS9 The authors would like to thank Prof. Daniel Romero from University of Adger, and Prof. Antonio G. Marqués10 from Universidad Rey Juan Carlos for their valuable insights.11 REFERENCES12 [1] C. E. Rasmussen, “Gaussian processes in machine learning,” in Summer school on machine learning. Springer, 2003, pp. 63–71.13 [2] F. Pérez-Cruz, S. Van Vaerenbergh, J. Murillo-Fuentes, M. Lázaro-Gredilla, and I. Santamaria, “Gaussian processes for nonlinear signal14 processing: an overview of recent advances,” IEEE Signal Processing Magazine, vol. 30, no. 4, pp. 40–50, 2013.15 17 0.01 0.02 i pi d N= 1 d N= 0.8d N= 0.5d N= 0.2 0.01 0.02 i 0.01 0.02 i 0 25 50 75 100 0.01 0.02 i Figure 9: Sampling probabilities of the first 100 points in the Mushroom data for different d N. 0 100 200 300 400 10−6 10−5 10−4 10−3 10−2 10−1 100 s RMSE LKRR GKRR Approx. LKRR Approx. GKRR Figure 10: RMSE vs. sfor the Mushroom data using exact leverage scores, and approximate leverage scores with d N= 0.8. [3] H. Yu and S. Kim, “Passive Sampling for Regression,” in 2010 IEEE International Conference on Data Mining, Dec. 2010, pp. 1151–1156.1 [4] Q. Gu and J. Han, “Towards active learning on graphs: An error bound minimization approach,” in IEEE 12th International Conference2 on Data Mining. IEEE, Dec. 2012, pp. 882–887.3 [5] C. Orhan and Ö. Ta¸stan, “Alevs: active learning by statistical leverage sampling,” arXiv preprint arXiv:1507.04155, 2015.4 [6] J. Goetz, A. Tewari, and P. Zimmerman, “Active learning for non-parametric regression using purely random trees.” Advances in Neural5 Information Processing Systems, vol. 31, Dec. 2018.6 [7] D. Wu, “Pool-based sequential active learning for regression,” IEEE Transactions on Neural Networks and Learning Systems, vol. 30,7 no. 5, pp. 1348–1359, May 2019.8 [8] D. Wu, C. T. Lin, and J. Huang, “Active learning for regression using greedy sampling,” Information Sciences, vol. 474, pp. 90–105, Feb.9 2019.10 [9] D. Romero, M. Ma, and G. B. Giannakis, “Kernel-based reconstruction of graph signals,” IEEE Transactions on Signal Processing, vol. 65,11 no. 3, pp. 764–778, Feb. 2017.12 [10] P. Giménez-Febrer, A. Pagès-Zamora, and G. B. Giannakis, “Matrix Completion and Extrapolation via Kernel Regression,” IEEE13 Transactions on Signal Processing, vol. 67, no. 19, pp. 5004–5017, Oct 2019.14 18 [11] P. Giménez-Febrer and A. Pagès-Zamora and G. B. Giannakis, “Generalization error bounds for kernel matrix completion and extrapolation,”1 IEEE Signal Processing Letters, vol. 27, pp. 326–330, Jan. 2020.2 [12] P. Drineas and M. W. Mahoney, “On the Nyström method for approximating a Gram matrix for improved kernel-based learning,” Journal3 of Machine Learning Research, vol. 6, pp. 2153–2175, Dec. 2005.4 [13] A. Alaoui and M. W. Mahoney, “Fast randomized kernel ridge regression with statistical guarantees,” in Advances in Neural Information5 Processing Systems, vol. 28, Montreal, Canada, Dec. 2015, pp. 775–783.6 [14] A. Tanaka, H. Imai, and M. Miyakoshi, “Kernel-induced sampling theorem,” IEEE Transactions on Signal Processing, vol. 58, no. 7, pp.7 3569–3577, March 2010.8 [15] C. Williams and M. Seeger, “Using the Nyström Method to Speed Up Kernel Machines,” in Advances in Neural Information Processing9 Systems 13. MIT Press, 2001, pp. 682–688.10 [16] C. Musco and C. Musco, “Recursive sampling for the Nyström method,” in Advances in Neural Information Processing Systems, vol. 30,11 Dec. 2017, pp. 3833–3845.12 [17] A. Deshpande and L. Rademacher, “Efficient volume sampling for row/column subset selection,” in 2010 IEEE 51st Annual Symposium13 on Foundations of Computer Science. IEEE, 2010, pp. 329–338.14 [18] D. P. Woodruff, “Sketching as a tool for numerical linear algebra,” Theoretical Computer Science, vol. 10, no. 1-2, pp. 1–157, Oct. 2014.15 [19] F. Gama, A. G. Marques, G. Mateos, and A. Ribeiro, “Rethinking sketching as sampling: A graph signal processing approach,” Signal16 Processing, vol. 169, p. 107404, April 2020.17 [20] S. Wang, A. Gittens, and M. W. Mahoney, “Sketched ridge regression: Optimization perspective, statistical perspective, and model18 averaging,” in International Conference on Machine Learning. PMLR, Jan. 2017, pp. 3608–3616.19 [21] R. Patel, T. Goldstein, E. Dyer, A. Mirhoseini, and R. Baraniuk, “Deterministic column sampling for low-rank matrix approximation:20 Nyström vs. incomplete Cholesky decomposition,” in Proceedings of the 2016 SIAM international conference on data mining. SIAM,21 July 2016, pp. 594–602.22 [22] P. Drineas, R. Kannan, and M. W. Mahoney, “Fast Monte Carlo algorithms for matrices I: Approximating matrix multiplication,” SIAM23 Journal on Computing, vol. 36, no. 1, pp. 132–157, July 2006.24 [23] A. Rudi, R. Camoriano, and L. Rosasco, “Less is More: Nyström Computational Regularization,” Mar. 2016.25 [24] H. Avron, M. Kapralov, C. Musco, C. Musco, A. Velingker, and A. Zandieh, “Random Fourier Features for Kernel Ridge Regression:26 Approximation Bounds and Statistical Guarantees,” arXiv:1804.09893 [cs, math, stat], May 2018.27 19 APPENDIX A1 RISK FUNCTION FOR KRR2 For KRR, the MSE is3 MSE := Ewnkf−ˆ fk2 2o=Ewnkf−Kˆ αk2 2o.(40) Plugging the estimator from (20) into (40) yields4 MSE =Ewn f−KST(SKST+µI)−1(Sf +¯ w)  2 2o = (I−KST(SKST+µI)−1S)f  2 2 +Ewn KST(SKST+µI)−1¯ w  2 2o(41) where ¯ w=Sw, and we have used that E{w}=0. Further, the first and second terms in (41) are the squared bias5 and variance of the KRR estimator, respectively. If we substitute f=Kα into the first term of (41), we obtain6 the squared bias as7 b2= (I−KST(SKST+µI)−1S)Kα  2 2 = (K−KST(SKST+µI)−1SK)α  2 2 =  (K−˜ T)α   2 2(42) where ˜ T:= KST(SKST+µI)−1S)Kis the regularized Nyström approximation of K. On the other hand, the8 variance term is9 var =Ewn KST(SKST+µI)−1¯ w  2 2o =Ew1 µ2 KST(SKST+µI)−1(µI+SKST−SKST)¯ w 2 2o =Ew1 µ2 KST−KST(SKST+µI)−1SKST¯ w  2 2 =Ew1 µ2 (K−KST(SKST+µI)−1SK)ST¯ w  2 2 =Ew1 µ2  (K−˜ T)ST¯ w   2 2.(43) Adding the two terms in (42) and (43), and assuming a fixed S, we obtain the risk in (23).10 APPENDIX B11 PROOF OF LEMMA 212 With the eigendecomposition K=QΣQT, we can write13 K−˜ T=K−KST(SKST+µI)−1SK =QΣ1 2hI−Σ1 2QTST(SQΣ1 2Σ1 2QTST+µI)−1SQΣ1 2i Σ1 2QT.(44) 20 Applying the Matrix Inversion Lemma to the matrix inside the square brackets of (44), we arrive at1 I−Σ1 2QTSTSQΣ1 2Σ1 2QTST+µI−1 SQΣ1 2 =I+1 µΣ1 2QTSTSQΣ1 2−1 .(45) That in turn implies2 K−˜ T=µQΣ1 2µI+Σ1 2QTSTSQΣ1 2−1 Σ1 2QT =µQΣ1 2Σ+µI−Σ+Σ1 2QTSTSQΣ1 2−1 Σ1 2QT =µQΣ1 2h(Σ+µI)1 2I−(Σ+µI)−1 2Σ(Σ+µI)−1 2 +(Σ+µI)−1 2Σ1 2QTSTSQΣ1 2(Σ+µI)−1 2) (Σ+µI)1 2i−1 Σ1 2QT =µQΣ1 2(Σ+µI)−1 2(I−P)−1(Σ+µI)−1 2Σ1 2QT(46) with Pgiven in (25).3 APPENDIX C4 PROOF OF THEOREM 35 Let us first introduce the following lemma:6 Lemma 3. Let ˇ K=K(K+µI)−1K. Then,7 K−ˇ K=µK(K+µI)(47) Proof. Let8 K−ˇ K=K(I−1 µ(1 µK+I)−1K).(48) Using the Matrix Inversion Lemma,9 A−1+A−1B(D−CA−1B)CA = (A−BD−1C)−1(49) with A=B=D=Iand C=−1 µK, we have that10 K(I−1 µ(1 µK+I)−1K) = K(1 µK+I)−1=µK(K+µI)−1.(50) 11 Knowing that Rµ(S) = Rµ(I)+(Rµ(S)−Rµ(I)), we first write the bias in terms of the one for the full12 problem, namely bI, as13 b2=k(K−˜ T)αk2 2≤ k(K−ˇ K)αk2 2+k(ˇ K−˜ T)αk2 2 =b2 I+k(ˇ K−˜ T)αk2 2(51) 21 Provided that s≥(2deff t2+2 3t) log N δ, from (35) we know that K−˜ Tµ 1−tK(K+µI)−1with probability 1−δ.1 Hereafter assume that any equation involving tis satisfied with probability 1−δ. Thus, to bound the last term in2 (51) we use Lemma 3 to show that3 ˇ K−˜ T= (K−˜ T)−(K−ˇ K) µ 1−tK(K+µI)−1−µK(K+µI)−1 =µt 1−tK(K+µI)−1≤µt 1−t(52) Applying the identity k(ˇ K−˜ T)αk2 2≤λmax(ˇ K−˜ T)kαk2 2yields4 b2=b2 I+µt 1−tkαk2 2.(53) Next, we proceed to calculate an upper bound to the difference between the variance of the sampled problem5 and that of the full problem, which is denoted as varK. Assuming Gaussian noise with variance ν2in (43), let6 var =ν2 µ2Tr((K−˜ T)2STS)and varI=ν2 µ2Tr((K−˜ T)2). Then,7 var −varI=ν2 µ2Tr((K−˜ T)2STS)−ν2 µ2Tr((K−˜ T)2) =ν2 µ2Tr((K−˜ T)2(STS−I)) (54) Applying the property K−˜ Tµ 1−tfrom (35), this difference can be upper bounded as8 ν2 µ2Tr((K−˜ T)2(STS−I)) ≤ν2 (1 −t)2Tr(STS−I)(55) Thus,9 var ≤varI+ν2 (1 −t)2Tr(STS−I).(56) Adding together (53) and (56) yields the upper bound in the theorem.10