Learning Sets with Separating Kernels
Ernesto De Vito, Lorenzo Rosasco, Alessandro Toigo
Introduction
In this paper we study the problem of learning from data the set where the data probability distribution is concentrated. Our study is more broadly motivated by questions in unsupervised learning, such as the problem of inferring geometric properties of probability distributions from random samples.
In recent years, there has been great progress in the theory and algorithms for supervised learning, i.e. function approximation problems from random noisy data . On the other hand, while there are a number of methods and studies in unsupervised learning, e.g. algorithms for clustering, dimensionality reduction, dictionary learning (see Chapter 14 of ), many interesting problems remain largely unexplored.
Our analysis starts with the observation that many studies in unsupervised learning hinge on at least one of the following two assumptions. The first is that the data are distributed according to a probability distribution which is absolutely continuous with respect to a reference measure, such as the Lebesgue measure. In this case it is possible to define a density and the corresponding density level sets. Studies in this scenario include to name a few. Such an assumption prevents considering the case where the data are represented in a high dimensional Euclidean space but are concentrated on a Lebesgue negligible subset, as a lower dimensional submanifold. This motivates the second assumption – sometimes called manifold assumption – postulating that the data lie on a low dimensional Riemannian manifold embedded in an Euclidean space. This latter idea has triggered a large number of different algorithmic and theoretical studies (see for example ). Though the manifold assumption has proved useful in some applications, there are many practical scenarios where it might not be satisfied. This observation has motivated considering more general situations such as manifold plus noise models , and models where the data are described by combinations of more than one manifold .
Here we consider a different point of view and work in a setting where the data are described by an abstract probability space and a similarity function induced by a reproducing kernel . In this framework, we consider the basic problem of estimating the set where the data distribution is concentrated (see Section 1.2 for a detailed discussion of related works). A special class of reproducing kernels, that we call separating kernels, plays a special role in our study. First, it allows to define a suitable metric on the probability space and makes the support of the distribution well defined; second, it leads to a new analytical characterization of the support in terms of the null space of the integral operator associated to the reproducing kernel.
This last result is the key towards a new computational approach to learn the support from data, since the integral operator can be approximated with high probability from random samples . Estimation of the null space of the integral operator can be unstable, and regularization techniques can be used to obtain stable estimators. In this paper we study a class of regularization techniques proposed to solve ill-posed problems and already studied in the context of supervised learning . Regularization is achieved by filtering out the small eigenvalues of the sample empirical matrix defined by the kernel. Different algorithms are defined by different filter functions and have different computational properties. Consistency and stability properties for a large class of spectral filters and of the corresponding algorithms are established in a unified framework. Numerical experiments show that the proposed algorithms are competitive, and often better, than other state of the art techniques.
The paper is divided into two parts. The first part includes Section 2, where we establish several mathematical results relating reproducing kernel Hilbert spaces of functions on a set and the geometry of the set itself. In particular, in this section we introduce the concept of separating kernel, which we further explore in Section 3. These results are of interest in their own right, and are at the heart of our approach. In the second part of the paper we discuss the problem of learning the support from data. More precisely, in Section 4 we illustrate some algorithms for learning the support of a distribution from random samples. In Section 5 we establish universal consistency for the proposed methods and discuss stability to random sampling. We conclude in Section 6 and 7 with some further discussions and some numerical experiments, respectively. A conference version of this paper appeared in . We now start by describing in some more detail our results and discussing some related works.
In this section we briefly describe the main ideas and results in the paper.
The setting we consider is described by a probability space and a measurable reproducing kernel on the set . The data are independent and identically distributed (i.i.d.) samples , each one drawn from with probability . The reproducing kernel reflects some prior information on the problem and, as we discuss in the following, will also define the geometry of . The goal is to use the sample points to estimate the region where the probability measure is concentrated.
To fix some ideas, the space can be thought of as a high-dimensional Euclidean space and the distribution as being concentrated on a region , which is a smaller – and potentially lower dimensional – subset of (e.g. a linear subspace or a manifold). In this example, the goal is to build from data an estimator which is, with high probability, close to with respect to a suitable metric.
We first note that a precise definition of requires some care. If is assumed to have a continuous density with respect to some fixed reference measure (for example, the Lebesgue measure in the Euclidean space), then the region can be easily defined to be the closure of the set of points where the density function is non-zero. Nevertheless, this assumption would prevent considering the situation where the data are concentrated on a “small”, possibly lower dimensional, subset of . Note that, if the set were endowed with a topological structure and were defined on the corresponding Borel -algebra, it would be natural to define as the support of the measure , i.e. the smallest closed subset of having measure one. However, since the set is only assumed to be a measurable space, no a priori given topology is available. Here we also remark that the definition of is not the only point where some further structure on would be useful. Indeed, when defining a learning error, a notion of distance between the set and its estimator is also needed and hence some metric structure on is required.
The idea is to use the properties of the reproducing kernel to induce a metric structure – and consequently a topology – on . Indeed, under some mild technical assumptions on , the function
defines a metric on , thus making a topological space. Then, it is natural to define to be the support of with respect to such metric topology. Moreover, the Hausdorff distance induced by the metric provides a notion of distance between closed sets.
The problem we consider can now be restated as follows: we want to learn from data an estimator of , such that almost surely. While is now well defined, it is not clear how to build an estimator from data. A main result in the paper, given in Theorem 3, provides a new analytic characterization of , which immediately suggests a new computational solution for the corresponding learning problem. To derive and state this result, we introduce a new notion of reproducing kernels, called separating kernels, that, roughly speaking, captures the sense in which the reproducing kernel and the probability distribution need to be related. We say that a reproducing kernel Hilbert space (or equivalently its kernel) separates a subset , if, for any , there exists such that
If separates all possible closed subsets in , we say that it is completely separating. Figure 1 illustrates the notion of separating kernel in the simple example of the linear kernel in a Euclidean space.
Now, Theorem 3 states that, if either is completely separating, or at least separates , then is the level set of a suitable distribution dependent continuous function . More precisely, let be the reproducing kernel Hilbert space associated to , the integral operator with kernel , and denote by its pseudo-inverse. If we consider the function on , defined by
and separates , then we prove that
(where for simplicity we are assuming for all ).
The above result is crucial since the integral operator can be approximated with high probability from data (see and references therein). However, since the definition of involves the pseudo-inverse of , the support estimation problem can be unstable and regularization techniques are needed to ensure stability. With this in mind, we propose and study a family of spectral regularization techniques which are classical in inverse problems and have been considered in supervised learning in . We define an estimator by
where , with , is the column vector whose -th entry is , and is its transpose. Here is a matrix defined via spectral calculus by a spectral filter function that suppresses the contribution of the eigenvalues smaller than . Examples of spectral filters include Tikhonov regularization and truncated singular values decomposition , to name a few.
This class of methods can be studied within a unified framework, and the error analysis in the paper establishes strong universal consistency if is separated by . More precisely, under the latter assumption, we show in Theorem 6 that,
provided that is compact and the sequences are chosen so that,
where is the Lipschitz constant of the function . The above result is universal in the sense that consistency can be shown without assuming regularity condition on or .
The proof of the above result crucially depends on estimating the deviation between and . Indeed, for the above choice of the sequence we show that
Under suitable distribution dependent assumptions, the above result can be further developed to obtain finite sample bounds quantifying stability to random sampling. Indeed, if the couple is such that , with , and the eigenvalues of the (compact and positive) operator satisfy for some , then we prove in Theorem 7 that, for and , we have
with probability at least , for and a suitable constant which does not depend on .
2 State of the art
where is the ball of center and radius , and slowly goes to zero when tends to infinity. Consistency and minimax converges rates are studied in with respect to the distance
where and is a suitable known measure. If has a density with respect to some known measure , a traditional approach is based on a non-parametric estimator of , a so called plug-in estimator. A kernel based class of plug-in estimators is proposed in , namely
where is a regularization parameter and is a suitable threshold. Convergence rates with respect to are provided in . A related problem is level set estimation, where the goal is to detect the high density regions . Consistency and optimal convergence rates for different plug-in estimators
Kernels, Integral Operators and Geometry in Spaces of Probabilities
In this section we establish the results that provide the foundations of our approach. The basic framework in this paper is described by a triple , where
is a set (endowed with a -algebra );
is a probability measure defined on ;
is a (real) reproducing kernel on , i.e. a real function on of positive type.
We interpret as the data space and as the probability distribution generating the data. Roughly speaking, the kernel provides a natural similarity measure on and it defines its geometry.
We denote by the reproducing kernel Hilbert space associated with the reproducing kernel (we refer to for an exhaustive review on the theory of reproducing kernel Hilbert spaces). The scalar product and norm in are denoted by and , respectively. We recall that the elements of are real functions on , and the reproducing property holds true for all and , where is defined by .
In order to prove our results, we need some technical conditions on .
The kernel has the following properties:
for all with we have ;
the associated reproducing kernel Hilbert space is separable;
the real function is measurable with respect to the product -algebra ;
Assumptions 1.a), 1.b) and 1.c) are minimal requirements. In particular, Assumptions 1.a) and 1.b) are needed in order to define a separable metric structure on , while Assumption 1.c) ensures that such metric topology is compatible with the -algebra (see Proposition 1 below). In Proposition 2, the combination of 1.a), 1.b) and 1.c) will allow us to define the support of the probability measure , as anticipated in Section 1.1. Assumption 1.d), instead, is a normalization requirement, and could be replaced by a suitable boundedness condition (in fact, even weaker integrability conditions could also be considered). We choose the normalization since it makes equations more readable, and it is not restrictive in view of Proposition 13 in A.1.
We now show how the above assumptions allow us to define a metric on and to characterize the corresponding support of in terms of the integral operator with kernel .
Our first result makes a separable metric space isometrically embedded in . This point of view is developed in . The relation between metric spaces isometrically embedded in Hilbert spaces and kernels of positive type was studied by Schoenberg around 1940. A recent discussion on this topic can be found in Chapter 2 § 3 of .
Under Assumption 1.a), the map defined by
the map is an isometry from into ;
the kernel is a continuous function on , and each is a continuous function.
If also Assumption 1.b) is satisfied, then
the metric space is separable.
Finally, if also Assumption 1.c) holds true, then
the closed subsets of are measurable (with respect to );
if is a topological space endowed with its Borel -algebra and is continuous, then is measurable; in particular, the functions in are measurable.
Many of these properties are known in the literature, see for example and references therein. For the reader’s convenience, we give a self-contained short proof. Assumption 1.a) states that the map is injective. Since by definition, is the metric on making an isometry, as claimed in item i). About ii), the kernel is continuous since and the map is continuous by item i); furthermore, the elements of are continuous by the reproducing property . If also Assumption 1.b) holds true, then the set is separable in , and so is as the map is isometric from onto . Item iii) then follows. Suppose now that also Assumption 1.c) holds true. Then the map is a measurable map, so that the open balls of are measurable. Since is separable, any open set is a countable union of open balls, hence it is measurable. It follows that the closed subsets are measurable, too, hence item iv). Let and be as in item v). If is closed, then is closed in , hence measurable by item iv). It follows that is measurable for all Borel sets , i.e. is measurable. Since the elements of are continuous by ii), they are measurable, and item v) is proved. ∎
In the rest of the paper we will always consider as a topological metric space with metric . Note that is the metric induced on by the norm of through the embedding . The next result shows that under our assumptions we can define the set as the smallest closed subset of having measure one.
Under Assumptions 1.a), 1.b) and 1.c), there exists a unique closed subset with satisfying the following property: if is a closed subset of and , then .
Clearly, is closed and measurable by Proposition 1. Since is separable, there exists a sequence of closed subsets such that every closed subset , for some suitable subsequence. Hence, and, as a consequence, . ∎
We add one remark. The set is called the support of the measure and clearly depends both on the probability distribution and on the topology induced by the kernel through the metric on .
2 Separating Kernels
The following definition of separating kernel plays a central role in our approach.
We say that the reproducing kernel Hilbert space separates a subset , if, for all , there exists such that
In this case we also say that the corresponding reproducing kernel separates .
We add some comments. First, in (2) the function depends on and . Second, the reproducing property and (2) imply that and for all and (compare with Assumption 1.a)). Finally, we stress that a different notion of separating property is given in .
Next, we provide an equivalent characterization of the separating property, which will be the key to a computational approach to support estimation. For any set , let be the orthogonal projection onto the closed subspace
i.e. the closure of the linear space generated by the family . Note that , and
The Hilbert space is a closed subspace of the reproducing kernel Hilbert space , and it is itself a reproducing kernel Hilbert space of functions on with reproducing kernel . Note that for all by definition of . Clearly, the function corresponds to the value of on the diagonal.
For any subset , the following facts are equivalent:
for all , ;
;
.
Under Assumption , if is separated by , then is closed with respect to the metric .
We first prove that i) ii). Given , by assumption there is such that , i.e. , and for all , i.e. . It follows that , and then . We prove ii) iii). If , then by definition of , so that . Hence . If , then by assumption , i.e. . By the equality
this implies . Hence . We prove iii) i). If , define , so that for all . Furthermore, . Thus, separates the set . Finally, iv) is a restatement of ii) taking into account that for all by construction. Under Assumption , the map is continuous by Proposition 1. By item iii), is the -level set of this function, hence is closed. ∎
Proposition 13 in A.1 shows that the reproducing kernel can be normalized under the mild assumption that for all , so that Assumption 1.d) can be satisfied up to a rescaling of .
It may be the case that the set has its own metric , and the -algebra is the Borel -algebra associated with the topology induced by . The following proposition shows that the metrics and induce the same topology on , provided that separates all the -closed subsets and the corresponding kernel is continuous.
Let be a separable metric space with respect to a metric , and the corresponding Borel -algebra. Let be a reproducing kernel Hilbert space on with kernel . Assume that the kernel is a continuous function with respect to and that the space separates every subset of which is closed with respect to . Then
Assumptions , and hold true, and for all ;
a set is closed with respect to if and only if it is closed with respect to .
The kernel is measurable and the space is separable by Proposition and Corollary in . Since the points are closed sets for and the -closed sets are separated by , then (i.e. ) for all and if by the discussion following Definition 1. We show that and are equivalent metrics. Take a sequence such that for some it holds that . Since is continuous with respect to , we have . Hence, the -closed sets are -closed, too. Conversely, if the set is -closed, since separates , Theorem 1 implies that , which is a -closed set by -continuity of the map . ∎
Item ii) of the above proposition states that the metrics and are equivalent and implies that the set defined in Proposition 2 coincides with the support of with respect to the topology induced by .
3 The Integral Operator Defined by the Kernel
We denote by the Banach space of the trace class operators on , with trace class norm
where is any orthonormal basis of . Furthermore, we let be the separable Hilbert space of the Hilbert-Schmidt operators on , with Hilbert-Schmidt norm
Finally, if is any bounded operator on , we denote by its uniform operator norm. It is standard that . Moreover, for all functions , the rank-one operator on defined by
is trace class, and .
We recall a few facts on integral operators with kernel (see for proofs and further discussions). Under Assumption 1, the -valued map is Bochner-integrable with respect to , and its integral
defines a positive trace class operator with (a short proof is given in Proposition 14 of the Appendix). Using the reproducing property of , it is straightforward to see that is simply the integral operator with kernel acting on , i.e.
The following is a key result in our approach.
Under Assumption 1, the null space of is
where is the support of as defined in Proposition 2.
Note that , for all , the set
is closed since is continuous. We now prove Equation (5). Since is a positive operator, spectral theorem gives that if and only if . The definition of and the reproducing property gives that
hence the condition is equivalent to the fact that for -almost every . Hence if and only if , i.e. , or equivalently . Equation (5) then follows. ∎
In the following, we will use the abbreviated notation . Note that the space splits into the direct sum , where
The reproducing kernel Hilbert space (see Remark 2) has been considered before , and in particular in the context of semi-supervised manifold regularization , where is assumed to be an embedded manifold. The corresponding reproducing kernel is and . See also the discussion in Section 6.
Under Assumption 1, we also introduce the integral operator ,
which is a positive trace class operator, too. Note the difference between the operators and : although their definitions are formally the same, the respective domains and images change.
Since and are positive trace class operators, by the Hilbert-Schmidt theorem each of them admits an orthonormal family of eigenvectors in and , respectively, with a corresponding family of positive eigenvalues. The two spectral decompositions are strongly related, as we now briefly recall (see also Proposition 8 of and Theorem 2.11 of ).
Denote by the (finite or countable) family of strictly positive eigenvalues of , where each eigenvalue is repeated according to its (finite) multiplicity. For each select a corresponding eigenvector in such a way that the sequence is orthonormal in . Hilbert-Schmidt theorem provides that
where the series converges in trace norm. In general, each element is an equivalence class of functions defined -almost everywhere. In particular, the value of is not defined outside . However, in each equivalence class we can choose a unique continuous function, denoted again by , which is defined at every point of by means of the extension equation
With this choice, which will be implicitly assumed in the following, the family coincides with the family of strictly positive eigenvalues of (with the same multiplicities), is a orthonormal family in of eigenfunctions of , and
where the series converges in the Banach space (hence in ), see e.g. . As , the positive sequence is summable and sums up to . It is clear that the family is an orthonormal basis of the Hilbert space . Conversely, let be an orthonormal basis of of eigenvectors of with corresponding eigenvalues . Define
Then, it is not difficult to show that (6), (7) and (8) hold true.
4 An Analytic Characterization of the Support
Let Assumption 1 hold true. Collecting the previous results, if separates , then Theorem 1 gives that
The function is defined by (3) in terms of the projection , which, in light of Theorem 2, can be characterized using the operator . Indeed, from the definition of and (5) we have
where is the pseudo-inverse of and is the Heaviside function (note that with our definition . The above discussion is summarized in the following theorem.
If satisfies Assumption 1 and separates the support of the measure , then
As we discussed before, a natural question is whether there exist kernels capable to separate all possible closed subsets of . In a learning scenario, this can be translated into a universality property, in the sense that it allows to describe any probability distribution and learn consistently its support . Note that in a supervised learning framework a similar role is played by the so called universal kernels . The following section answers positively to the previous question, introducing and studying the concept of completely separating kernels. Interestingly, there are universal kernels in the sense of which do not separate all closed subsets of , as for example the Gaussian kernel.
Completely separating reproducing kernel Hilbert spaces
The property defining the class of kernels we are interested in is captured by the following definition.
A reproducing kernel Hilbert space satisfying Assumption is called completely separating if separates all the subsets which are closed with respect to the metric defined by (1). In this case, we also say that the corresponding reproducing kernel is completely separating.
We end this section with Proposition 6, which gives a simple way to build completely separating kernels in high dimensional spaces from completely separating kernels in one dimension, the latter usually being easier to characterize.
We now state a sufficient condition on ensuring that is completely separating.
for some . Then,
the translation invariant kernel is positive definite and continuous;
As an application, we show that the Abel kernel is completely separating.
with . Then is a positive definite kernel and the corresponding reproducing kernel Hilbert space is completely separating for all .
A standard Fourier transform computation gives
where is Euler gamma function (Theorem 1.14 in ). The claim then follows from Theorem 4. ∎
2 Building Separating Kernels
The following result gives a way to construct completely separating reproducing kernel Hilbert spaces on high dimensional spaces.
If , , are sets and are completely separating reproducing kernels on for all , then the product kernel
is completely separating on the set .
Each set and are endowed with the metric and induced by the corresponding kernels, and and denote the reproducing kernel Hilbert spaces with kernels and , respectively. A standard result gives that and for all . We claim that the -topology on is contained in the product topology of the -topologies on (actually, it is not difficult to show that the two topologies coincide). Indeed, if are sequences in such that for all , then
since . We now prove that is completely separating. If is -closed and , since is also closed in the product topology, for all there exists an open neighborhood of in such that . Since each is completely separating, for all there exists such that and for all . Then the product function is in , and satisfies and for all . ∎
is completely separating since each kernel in the product is positive definite and completely separating by Proposition 5.
A Spectral Approach to Learning the Support
In this section we study the set estimation problem in the context of learning theory. We fix a triple as in Section 2, and assume throughout that the reproducing kernel satisfies Assumption 1. We regard as a metric space with respect to , and continue to denote by the support of defined in Proposition 2.
If separates , Theorem 3 shows that the support is the -level set of a suitable function defined by the integral operator , and therefore depending on and . However, the probability distribution is unknown, as we only have a set of i.i.d. points sampled from at our disposal. Our task is now to use our sample in order to estimate the set .
The definition of given by (4) suggests that it can be estimated by the data dependent operator
The operator is positive and with finite rank; in particular, and . We denote by the strictly positive eigenvalues of (each one repeated according to its multiplicity) and by \big{(}\sqrt{\sigma^{(n)}_{j}}\phi^{(n)}_{j}\big{)}_{j\in J_{n}} the corresponding eigenvectors; note that in the present case the index set is finite. However, though converges to in all relevant topologies (see Lemma 1 and Remark 6 below), in general does not converge to since may be unbounded, or, equivalently, since may be an accumulation point of the spectrum of when . Hence, the problem of support estimation is ill-posed, and regularization techniques are needed to restore well-posedness and ensure a stable solution. In the following sections, we will show that spectral regularization can be used to learn the support efficiently from the data.
Note that, since the spectra of and are both contained in the interval $g_{\lambda}r_{\lambda}r_{\lambda}(T_{n})r_{\lambda}(T)0\leq r_{\lambda}(T_{n}),r_{\lambda}(T)\leq{I}T_{n}Tr_{\lambda}0\leq r_{\lambda}(\sigma)\leq 1\sigma$.
As a consequence of the above discussion, the characterization of filter functions giving rise to stable algorithms is captured by the following assumption.
The family of functions , with for all , has the following properties:
for all , we have ;
for all , there exists a positive constant such that
By Assumption 2.a, there exists a function such that . On the other hand, by Assumption 2.b) we have for all . Assumption 2.c) is of technical nature, and will become clear in Section 5.2; here we note that in particular it implies that is a continuous function for all .
A few examples of filter functions satisfying Assumption 2 and of corresponding functions are given in Table 1. It is easy to check that for each of them . See for further examples.
For a chosen filter, the corresponding regularized empirical estimator of is defined by
where we allow the regularization parameter to depend on the number of samples . Note that the functions and are continuous on by continuity of the mapping (see i) of Proposition 1). In Section 5 we will show that, for an appropriate choice of the sequence , the estimator converges almost surely to uniformly on compact subsets of . Unfortunately, this does not imply convergence of the -level sets of to the -level set of in any sense (as, for example, with respect to the Hausdorff distance). However, an estimator of can be obtained by setting
where is an off-set parameter that depends on the sample size (recall that takes values in $(\tau_{n})_{n\geq 1}X_{n}$ is indeed a consistent estimator of the support with respect to the Hausdorff distance.
In the following section we discuss some remarks about the computation of .
2 Algorithmic and Computational Aspects
We show that the computation of (hence of ) reduces to a finite dimensional problem involving the empirical kernel matrix defined by the data. To this purpose, it is useful to introduce the sampling operator
which can be interpreted as the restriction operator which evaluates functions in on the points of the training set. The transpose of is
and can be interpreted as the out-of-sample extension operator . A simple computation shows that
Hence, considering the filter given in the form , we have
where the second equality follows from spectral calculus. Using the definition of the sampling operator, we can consider the -dimensional vector defined by
where is the conjugate transpose of . More explicitly we have
The above equation shows that, while could be infinite dimensional, the computation of the estimator reduces to a finite dimensional problem. Further, though the mathematical definition of the filter is done through spectral calculus, the computations might not require performing an eigen-decomposition. As an example, for Tikhonov regularization , so that and the coefficient vector in (20) is given by
In the case of the Landweber filter, it is possible to prove that the coefficient vector can be evaluated iteratively by setting , and
for . We refer to for the corresponding algorithm in a supervised framework; see also the discussion in Section 6.3.
We thus see that the estimator corresponding to Tikhonov regularization can be computed via Cholesky decomposition and has complexity of order . For Landweber iteration the complexity is , where is the number of iterations. Finally, the spectral cut-off, or truncated SVD, requires operations to compute the eigen-decompostion of the kernel matrix. Further discussions can be found in and references therein. We end remarking that, in order to test whether points belong or not to the support, we simply have to repeat the above computation replacing by a matrix , in which each column is a vector corresponding to a point in the test set. Note that in this case the coefficients will also form a matrix.
Error Analysis: Convergence and Stability
In this section we develop an errror analysis for the proposed class of estimators. First, we discuss convergence (consistency) and then stability with respect to random sampling in terms of finite sample bounds. We continue to suppose throughout this section that Assumption 1 holds true, and consider as a metric space with metric .
We recall that the empirical data are a set of i.i.d. points , each one drawn from with probability . Since we need to study asymptotic properties when the sample size goes to infinity, we introduce the following probability space
for some measurable map . The number is the cardinality of the sampled data. We then have the following facts.
is a -valued estimator for ;
if is locally compact, then is a -valued estimator, where is the space of continuous functions on with the topology of uniform convergence on compact subsets.
The proof of the above proposition is rather technical, and we defer the interested reader to A.2 for more details.
In item ii) of Proposition 7, the assumption that is locally compact is needed to ensure that the topology of uniform convergence on compact subsets is a separable metric topology on , which in turn is essential to prove measurability of the random variable (see the proof of Proposition 16 in A.2). In many examples, the set has its own locally compact separable metric . In this case, in order for to be locally compact metric space also for the metric , it is enough that the kernel is a -continuous function separating every subset of which is closed with respect to , as the two topologies induced by and then coincide by item ii) of Proposition 3.
Concentration of measure results for random variables in Hilbert spaces can be used to prove that is an unbiased estimator of , as stated in the following lemma.
with probability at least . Furthermore
The result is known, but we report its short proof. For all define the random variables as
Note that (23) and Theorem 2.19 in imply that
2 Consistency
We now choose a family of filter functions and study the convergence of the associated estimators and introduced in Section 4.
which can be seen as the infinite sample analogue of . Clearly, is a continuous function. For all sets , we then have the following splitting of the error into two parts, the sample error and the approximation error
In order to prove consistency, we need to show that the left hand side goes to as the sequence of regularization parameters tends to . This will be done separately for the approximation and the sample errors in the next two propositions.
Under Assumption 2.b), if the sequence is such that , then, for any compact subset ,
Assumption 2.b) and imply that the sequence of non-negative functions is bounded by and converges pointwisely to the Heaviside function on the interval $x\in C$,
Given , by compactness of there exists a finite covering of by balls of radius , namely . By (25) there exists such that
where for all since , an, because , , . ∎
Convergence to zero of the sample error follows from (23) and the next proposition.
In particular, if Assumption 2.c) holds, then
which proves (26). Assumption 2.c) and Theorem 8.1 in (see also Lemma 7 in A.3 for a simple unpublished proof due to A. Maurer) imply that
The above results can be combined in the following theorem, showing that, if the sequence is suitably chosen, then converges almost surely to with respect to the topology of uniform convergence on compact subsets of .
Under Assumption 2, if the sequence is such that
then, for every compact subset ,
We show convergence to zero of both the two terms in the right hand side of inequality (24), thus implying (29). By (27), we have
where is finite by (28). Then (23) implies that the first term in the right hand side of inequality (24) converges to zero almost surely. Since the second term goes to zero by Proposition 8, the claim follows. ∎
As already remarked above, uniform convergence of to on compact subsets does not imply convergence of the level sets of to the corresponding level sets of in any sense (as, for example, with respect to the Hausdorff distance among compact subsets). For this reason, we introduce a family of threshold parameters and define the estimator of the set as in (17).
We define a data dependent parameter as the function on
where we wrote explicitely the dependence of on the training set . Since takes values in $\tau_{n}(\omega)\in$.
The following is the central result of this section. It shows that, assuming is compact and for the above choice of the sequence , the Hausdorff distance between and goes to zero with probability . Here we recall that the Hausdorff distance between two subsets is
where .
Suppose the metric space is compact. Under Assumption 2, if separates the set and the sequence satisfies (28), for the choice of the threshold parameters given in (30) we have
We devote the rest of this section to proof of the above theorem. For simplicity, we split it into a few lemmas.
Under the hypotheses of Theorem 6, we have
Since is compact, possibly passing to a subsequence we can assume that the sequence converges to a limit . We claim that . Indeed, if is sufficiently large, then we have
where is due to the fact that , so that
As goes to , we have by Theorem 5; moreover, since is continuous in and goes to zero, the above inequality for gives . Since separates , this implies . However, (32) implies that for all , which is the desired contradiction. ∎
The proof that goes to zero as requires a further technical lemma, see [36, Lemma 6.1]. In its statement, for all and , we denote by the nearest neighbour of in the training set , i.e.
Given , fix and, denoted by the closed ball with center and radius , set . By definition of the support and the fact that is a probability measure, . Furthermore
Since , the series converges, so that Borel-Cantelli lemma yields
Since this holds for all , we have
Under the hypotheses of Theorem 5, if the metric space is compact, then
Choose a denumerable dense family in . By the Lemma 3 there exists an event with probability such that
on . We claim that the limit (33) holds on . Observe that, by definition of , for all , and
so that it is enough to show that . Fix . Since is compact, there is a finite subset such that is a finite covering of . We claim that
Indeed, fixed , there exists an index such that . By definition of , clearly
so that by the triangular inequality we get
Taking the over we get the claim. Since is finite, by (34)
Since is arbitrary, we get , and this concludes the proof ∎
The proof of Theorem 6 follows easily combining the previous lemmas.
As , the theorem follows combining Lemmas 2 and 4. ∎
We conclude this section with some comments. First, if does not separate , then the statement of Theorem 6 continues to be true provided that the support is replaced by the level set . Note that, the Hausdorff distance has been defined with respect to the metric induced by the kernel, however, if the set has its own metric making it compact and the hypotheses of Proposition 3 are satisfied, then Theorem 6 implies convergence of to also with respect to the Hausdorff distance associated to . Finally, we remark that in Theorem 6 convergence of to does not depend on any a priori assumption on the probability .
3 Finite Sample Bounds and Stability of Random Sampling
In order to prove stability of our algorithms under random sampling and determine their convergence rates, we need to specify suitable a priori assumptions on the class of problems to be considered. In the present section, a detailed analysis of the convergence rates of to will be carried out for the case of the Tikhonov filter . The techniques in should allow to derive similar results for filters other than Tikhonov.
which is finite since is a trace class operator. The above quantity is related to the degrees of freedom of the estimator . Here, we recall that is a decreasing function of and , where is the dimension of the range of .
The a priori conditions we consider in the present paper are given by the following two assumptions, which involve both the reproducing kernel and the probability measure (compare with ).
there exist and such that
there exist and a constant such that for all , and
The above conditions are classical in the theory of inverse problems and have been recently considered in supervised learning. Before showing how they allow to derive a finite sample bound on the error , we add some comments. First, Assumption 3.a) is related to the level of ill-posedness of the problem and can be interpreted as a condition specifying the aspect ratio of the range of . Since , inequality (36) is always satisfied with the choice and , so that in this case we are not imposing any a priori assumption. If , the best choice is and ; otherwise, if , then necessarily . In the latter case, a sufficient condition to have is to assume a decay rate on the eigenvalues of (see Proposition 3 of ).
Coming to Assumption 3.b), first of all we remark that it is always satisfied when is finite with the choice and . In the general case, Assumption 3.b) can be expressed by the following equivalent condition
where are the eigenvectors and eigenvalues of , which were defined in Section 2.3 (see in particular (7) for the definition of the functions outside the set ). Clearly, the higher is , the stronger is the assumption.
Note that in particular inequality (38) holds true if there exists a constantAs as it happens for example for reproducing kernels on which are invariant under translations, when is the Lebesgue measure on . such that for all , and is chosen to make the series finite. In this case, it is quite easy to give conditions on the eigenvalues assuring that both Assumptions 3.a) and 3.b) are satisfied. For example, if for some , then (36) holds true with this choice of , and (37) is satisfied for any .
Setting , condition (38) is equivalent to the fact that for all the series
converges absolutely to a bounded reproducing kernel . Convergence of the series (39) was studied e.g. in , where it is proved that, if the sequence of powers is summable, there exists a -null set such that (39) converges absolutely on (see [70, Proposition 4.4]). We remark that this weaker fact is not sufficient in our setting: indeed, on the one hand it does not imply that the series (39) (or, equivalently, (38)) converges on all of , and on the other it does not guarantee that such series is uniformly bounded, two conditions which however are both needed in the proof of Theorem 7 below to get uniform estimates on the whole set . A direction of future work is to study the geometric nature of the above conditions when is a metric space or a Euclidean space and a Riemannian submanifold.
The following theorem provides the finite sample bound on the error .
Suppose . If Assumption 3 holds and we choose
then, for and , we have
with probability at least .
We postpone the proof to the end of the current section and add here some comments. The above finite sample bound quantifies the stability of the estimator with respect to random sampling. Equivalently, if we set the right hand term of the inequality to and solve for , we obtain the sample complexity of the problem, i.e. how many samples are needed in order to achieve the maximum error with confidence . As remarked before, Assumption 3.a) is verified for by any reproducing kernel. In this limit case our result gives a rate , comparable with the one that can be obtained inserting (27) and (41) below into inequality (24), with bounded by (22).
Note that, if , choosing , , and , the rate in (40) becomes .
The proof of Theorem 7 follows the ideas in and is based on refined estimates of the sample and approximation errors. The techniques in should allow to derive similar results for filters beyond the Tikhonov one.
If Assumption 3.a) holds true, then, for and , we have
with probability at least .
It is easy to see that , hence
Then, from Lemma 10 in the Appendix we have that
with probability at least , so that the result follows by (26). ∎
Since for all , we have
as . Since by assumption for some , spectral calculus and the bound give the inequality
We are now ready to prove the main result.
The choiche is the one that set the contributions of the sample and approximation errors in (24) to be equal. Indeed, we begin by simplifying the bound on the sample error. If , then for all , so that
where we used the definition of (and the fact that ). Then, by the above inequality and Propositions 11 and 12, inequality (24) gives
If we set the contributions of the sample and approximation errors to be equal, the choice for is
It is easy to see that for all values of , so that from (42) we have
4 The kernel PCA filter
A natural choice for the spectral filter would be the regularization defined by kernel PCA , that corresponds to truncating the generalized inverse of the kernel matrix at some cutoff parameter . The corresponding filter function is
The above filter does not satisfy the Lipschitz condition 2.c) in Assumption 2, so that the bound (27) for the sample error does not hold in this caseNote that, by Proposition 16 in A.2, if is locally compact, then defined in (16) still is a -valued estimator.. However, we can still achieve an estimate by employing inequality (44) in A.3. To this aim, with a slight abuse of the notation, here we count the eigenvalues of and without their multiplicities and we list them in decreasing order. Furthermore, for any we set and as the smallest eigenvalues of and which are greater or equal to , i.e.
and inequality (26) for the sample error then reads
By Lemma 1, in order to have convergence to of the right hand side of this expression we need to choose the sequence such that
Since the gap can have any arbitrary rate of convergence to zero as , we thus see that there exists no distribution independent choice of ensuring the convergence to zero of the above bound.
which recovers a known result about kernel PCA (see for example ). Furthermore, if the bound holds, then we obtain , hence we have the equality .
The following result extends Theorem 5 to the case of kernel PCA, at the price of having a distribution dependent choice of the cut-off sequence .
If the sequence of natural numbers is strictly increasing and such that
and we define the sequence as
then, for every compact subset ,
By the above discussion and inequality (26),
Convergence to of the sample error then follows from (23). Combining this fact and Proposition 8 into inequality (24), the claim then follows. ∎
Some Perspectives
In this section we discuss some different perspectives to our approach and suggest some possible extensions.
We start discussing some connections between our analytical characterization of the support of and Mercer theorem . With the notations of Section 2.3, the fact that the family is an orthonormal basis of and the reproducing property give the relation
where the series converges absolutely. Note that in this expression the eigenfunctions of are defined outside through the extension equation (7). Restricting (43) to , we obtain
which is nothing else than Mercer theorem . In particular, taking , this formula implies that for all . On the other hand, the assumption that the reproducing kernel separates precisely ensures that
(Recall that, if separates , then is the -level set of the function .)
2 A Feature Space Point of View
In machine learning, kernel methods are often described in terms of a corresponding feature map . This point of view highlights the linear structure of the Hilbert space and often provides a more geometric interpretation.
We recall that a feature map associated to a reproducing kernel is a map , where is a Hilbert space with inner product , satisfying While every map from into a Hilbert space defines a reproducing kernel, it is also possible to prove that each kernel has an associated feature map (and in fact many). Indeed, given , the natural assignment is and . Such a choice is also minimal, in the sense that, if we make a different choice of and , then there exists an isometry such that – see for example Proposition 2.4 of or Theorem 4.21 of , noticing that both papers deal with the transpose .
We next review some of the concepts introduced in Section 2 in terms of feature maps. For the sake of comparison we assume that for all (this corresponds to the normalization assumption 1.d)), we let be the closure of the linear span of the set , and define
It is easy to see that the definition of separating kernel has the following equivalent and natural analogue in the context of feature maps.
We say that a feature map separates a subset if
The above definition is equivalent to Definition 1 since , where is the orthogonal projection onto . Then, according to Definition 3, a point if and only if . Since and , this is equivalent to
Theorem 1 then implies that Definition 1 and 3 are equivalent. We thus see that the separating property has a clear geometric interpretation in the feature space: the set is the intersection of the closed subspace , i.e. a linear manifold in , and – see Figure 2.
In the above interpretation, the estimator we propose for the support then stems from the following observation: given a training set , we classify a new point as belonging to the estimator of if the distance of to the linear span of is sufficiently small.
Given a training set , our estimator classifies a new point as belonging to the support if the distance of to the linear span of is sufficiently small.
3 Inverse Problems and Empirical Risk Minimization
Here we suggest a simple interpretation of the estimator and stress the connection with the supervised setting. We regard the sampled data as a training set of positive examples, so that each point almost surely; the new datum is the point , and we evaluate the estimator at . We label the examples according to the similarity function by setting
If satisfies Assumption 1, then, since and is -continuous, the function is close to whenever is close to . The interpolation problem
(where is defined in (18)) is ill-posed. To restore well-posedeness we can consider the corresponding least square problem (empirical risk minimization problem)
where is the regularization parameter (Tikhonov regularization). It is known that the minimum of the above expression is achieved by , with
where is the function . More generally, Tikhonov regularization can be replaced by spectral regularization induced by a different choice of the filter ; the corresponding regularized solution is still given by the previous equation, but the function appearing in it is now completely arbitrary. Comparing with (19), we see that . Equation (17) has then the following interpretation: a new point is estimated to be a positive example (that is, to belong to the support ) if and only if , where is a threshold parameter.
The above discussion suggests several extensions and variations of our method, obtained considering more general penalized empirical risk minimization functionals of the form
is a (regression) loss function measuring the approximation property of , for example the logistic loss or a robust loss such as the one used in support vector machine regression. Our theoretical analysis does not carry on to other loss functions and different mathematical concepts from empirical process theory are probably needed;
Empirical Analysis
In this section we describe some preliminary experiments aimed at testing the properties and the performances of the proposed methods both on simulated and real data. We only discuss spectral algorithms induced by Tikhonov regularization to contrast the general method to some current state of the art algorithms. Note that while computations can be made more efficient in several ways, we consider a simple algorithmic protocol and leave a more refined computational study for future work. Recall that Tikhonov regularization defines an estimator , and a point is labeled as belonging to the support if . The computational cost for the algorithm is, in the worst case, of order – like standard regularized least squares – for training, and order if we have to predict the value of at test points. In practice, one has to choose a good value for the regularization parameter and this requires computing multiple solutions, a so called regularization path. As noted in , if we form the inverse using the eigendecomposition of the kernel matrix the price of computing the full regularization path is essentially the same as that of computing a single solution (note that the cost of the eigen-decomposition of is also of order , though the constant is worse). This is the strategy that we consider in the following. In our experiments we considered two datasets: the MNISThttp://yann.lecun.com/exdb/mnist/ dataset and the CBCLhttp://cbcl.mit.edu/ face database. For the digits we considered a reduced set consisting of a training set of 5000 images and a test set of 1000 images. In the first experiment we trained on images for the digit and tested on images of digits and . Each experiment consists of training on one class and testing on two different classes and was repeated for 20 trials over different training set choices. For all our experiments we considered the Abel kernel. Note that in this case the algorithm requires to choose parameters: the regularization parameter , the kernel width and the threshold . In supervised learning cross validation is typically used for parameter tuning, but cannot be used in our setting since support estimation is an unsupervised problem. Then, we considered the following heuristics. The kernel width is chosen as the median of the distribution of distances of the -th nearest neighbor of each training set point for . Fixed the kernel width, we choose the regularization parameter in correspondence of the maximum curvature in the eigenvalue behavior – see Figure 3 – the rationale being that after this value the eigenvalues are relatively small.
For comparison we considered a Parzen window density estimator and one-class SVM (1CSVM) as implemented by . For the Parzen window estimator we used the same kernel of the spectral algorithm, that is the Laplacian kernel, and also the same width. Given a kernel width, an estimate of the probability distribution is computed and can be used to estimate the support by fixing a threshold . For the one-class SVM we considered the Gaussian kernel, so that we have to fix the kernel width and a regularization parameter . We fixed the kernel width to be the same used by our estimator and set . For the sake of comparison, also for one-class SVM we considered a varying offset . The performance is evaluated computing ROC curve (and the corresponding AUC value) for varying values of the thresholds . The ROC curves on the different tasks are reported (for one of the trials) in Figure 4, Left. The mean and standard deviation of the AUC for the three methods is reported in Table 2. Similar experiments were repeated considering other pairs of digits, see Table 2. Also in the case of the CBCL datasets we considered a reduced dataset consisting of images for training and other for test. On the different test performed on the MNIST data the spectral algorithm always achieves results which are better – and often substantially better – than those of the other methods. On the CBCL dataset SVM provides the best result, but spectral algorithm still provides a competitive performance.
We remark that, although binary classification data sets are used in the experiments, the considered set-up is that of a one-class classification problem. Indeed, the training and tuning of the algorithms are performed using only examples of one class and the other class is only considered for testing. Accordingly, the proposed methods are compared to state of the art algorithms for one-class classification.
Appendix A Auxiliary Proofs
In this section we give the proofs of a few technical results needed in the paper.
The next result shows that, if is a reproducing kernel which is nonzero on the diagonal, then it can be normalized, and its normalized version separates the same sets. When for some , then clearly this result still holds replacing the set with and considering the restriction of to , where .
Assume that for all . Then, the reproducing kernel on , given by
is normalized and separates the same sets as .
Clearly is a kernel of positive type. Denote by the reproducing kernel Hilbert space with kernel , and define the feature map , . It is simple to check that and , so that the map
is a unitary operator with . Clearly, for any and
The above equality shows that and separate the same sets. ∎
A.2 Analytic Results
In this section, we suppose that the kernel satisfies Assumption 1, and endow the set with the metric induced by . Measurability of a map taking values in a topological space will be always understood with respect to the Borel -algebra of such space. The next simple lemma will be used frequently.
is continuous and measurable. Moreover, if is given by
then is measurable for all .
The map , is continuous from into by item i) in Proposition 1. Since , continuity of follows at once. By item v) in Proposition 1, is then a measurable map, hence is such. ∎
We recall some basic properties of the operator defined by the kernel. The next result is known (see for example ), but we report a short proof for completeness.
The -valued map defined in Lemma 5 is Bochner-integrable with respect to , and its integral
is a positive trace class operator on , with .
The map isbounded because and measurable by Lemma 5 . Therefore, is a Bochner-integrable -valued map, and its integral is a trace class operator. As is a positive operator for all , so is . In particular, , and . ∎
Now, we come to the proof of Proposition 7. We will split it into the proofs of Propositions 15 and 16 below.
For all , the map defined in (15) is a -valued estimator for .
hence is measurable by Lemma 6. ∎
For the next proposition we recall that the topology of uniform convergence on compact subsets of is generated by the following basis of open sets
Suppose is locally compact. Let be a family of functions such that each is upper semicontinuous. Then, for any sequence of positive numbers and all , the map defined in (16) is a -valued estimator, where is the space of continuous functions on with the topology of uniform convergence on compact subsets.
Throughout the proof, will be fixed. Let be a decreasing sequence of continuous functions such that for all (such sequence exists by (12.7.8) of ). Then, by Lemma 6 and continuity of the functional calculus (see e.g. Problem 126 in ), for all the map
is continuos from into the Banach space of the bounded operators on with the uniform operator norm. Thus, for all , the real function is continuous on , hence is measurable by item v) of Proposition 1. By spectral calculus and dominated convergence theorem, for all
It then follows that, for each , the real function is measurable on , being the pointwise limit of measurable functions. We now prove that the map is measurable from into the space . By M2, p. 115 in , this is equivalent to the measurability of the subsets for all open sets . Since is a locally compact separable metric space, the topology of uniform convergence on compact subsets is a separable metric topology on by (12.14.6.2) in . By separability of , each open set then is the denumerable union of sets of the neighborhood basis . Hence, it is enough to show that is measurable for all , and . We have
By separability of , there exists a countable set such that . A continuity argument then shows that
Since each set is measurable in , measurability of the countable intersection then follows. ∎
We conclude this section with the proof of measurability of the threshold parameters defined in (30).
A.3 A Useful Inequality
The following proof of inequality (45) below is due to A. Maurerhttp://www.andreas-maurer.eu.
In particular, if is a Lipshitz function with Lipshitz constant , then
Let and be the orthonormal bases of eigenvectors of and corresponding to the eigenvalues and , respectively, which here we list repeated accordingly to their multiplicity. We have
A.4 Concentration of Measure Results
We will need in particular the next two straightforward consequences of this inequality.
with probability at least .
where . Since , by solving the equation we have
The above result and Borel-Cantelli lemma imply that
almost surely. In the paper we actually need a slightly stronger result which is given in the following lemma.
If is a sequence of i.i.d. -valued random variables, such that almost surely, then we have
We continue with the notations in the proof of Lemma 8. By (46), for all we have
For all , , so that the series is convergent, and Borel-Cantelli lemma gives the result. ∎
The following inequality is given in and we report its proof for completeness.
If Assumption 1 holds true, then for all we have
with probability at least .
where we have bounded the operator norm by . The result follows applying Lemma 8. ∎
Acknowledgement
A. T. acknowledges the financial support of the Italian Ministry of Education, University and Research (FIRB project RBFR10COAQ). L. R. acknowledges the financial support of the Italian Ministry of Education, University and Research (FIRB project RBFR12M3AC).