Manuscript Offprint
arXiv:2610.25450Semi-supervised learning on singular data sets
GUILLAUME VALETTE
ABSTRACT. We propose to model singular data clouds by subanalytic sets, and develop an approach to semi-supervised learning in this setting. It relies on a Morrey-type embedding for Sobolev spaces relative to globally subanalytic measures with possibly singular support. As an illustration, we present a greedy method based on a Monte Carlo approximation of the Sobolev norm of the candidate solutions. We report numerical experiments on point clouds sampled from real algebraic varieties, as well as a test on a classification problem based on MNIST images downsampled into .
0. INTRODUCTION
The main task of machine learning is to determine how the available information on a sample can be reasonably generalized to the entire cloud [4, 7, 10]. This issue is particularly delicate when labeled data are sparse, and semi-supervised learning can then prove a relevant strategy to overcome the difficulties [2, 3]. Unlabeled data are then useful to carry information toward the cloud and working intrinsically reduces the dimension of the problems.
Semi-supervised learning algorithms often require the data to be supported on a smooth manifold or on an open set with Lipschitz or smooth boundary [1, 9], although it is hard to account why the support of the distribution of the cloud should always be so. Many authors also assume in addition that the density of the distribution measure is bounded away from zero and infinity. Data are often mapped into feature spaces in order to reduce the ambient dimension, and the image can be singular even if the feature map is polynomial. The image of the cloud is then distributed with respect to the push-forward of the distribution measure of the given cloud under the feature map. Its density can thus tend to zero or infinity, even if the feature map is analytic or polynomial.
In this article, we suggest globally subanalytic sets and measures as relevant models for singular clouds. The globally subanalytic category, which includes all the compact sets defined by finitely many equalities on analytic functions, is stable under analytic mappings (restricted to compact sets). Subanalytic sets may admit very general singularities within their closure and a large number of feature maps involved in machine learning, e.g. polynomial, Gaussian, Wendland, trigonometric, hyperbolic trigonometric, are subanalytic, which makes the subanalytic sets and measures attractive to modelize clouds in feature spaces.
The main motivation for authors to rely on the so-called manifold hypothesis is generally to perform functional analysis. Globally subanalytic sets admit stratifications and cell
2020 Mathematics Subject Classification. 62J07, 68T05, 68Q32, 46E35, 32B20, 14P10.
Key words and phrases. Machine learning, Semi-supervised learning, singular data cloud, subanalytic set, Sobolev spaces.
Research partially supported by the NCN grant 2021/43/B/ST1/02359.
G. VALETTE
decompositions, as well as many finiteness properties. Moreover, although these sets admit non metrically conical singularities, several results of analysis, such as Poincaré inequalities or Sobolev embedding [11, 12, 13, 14, 17], were proved to generalize to these singular sets. Our present idea is to rely on these results so as to produce machine learning algorithms for clouds that are supported on such a singular set.
In order to make it more precise, let us recall Corollary 3.5 of [17], which provided a Morrey-type embedding in this framework:
Theorem 0.1. Let be a bounded open globally subanalytic subset of and a globally subanalytic mapping, with globally subanalytic measured space. Given , there is for which we have the natural continuous embedding
(0.1)
Here, is the Sobolev space of relative to and denotes the space of functions that are Lipschitz with respect to the inner metric on the support (in ) of the pushed-forward measure (we refer to section 1 for all notations and definitions).
Let now be a sequence in a bounded globally subanalytic open subset of , and assume the 's to be drawn randomly with respect to a globally subanalytic probability measure (or a push-forward of such a measure). The above theorem yields that for each the problem
has at least one solution in , for each set of labels . As often, we will rather solve a ridge regression model that combines the MSE train and the Sobolev norm of the heuristic. We will work with a weighted Sobolev norm, which is equivalent but provides a more relevant minimizer (see (2.3)). The weights actually play the role of regularization parameters. One advantage of estimating the Sobolev norm relative to the distribution of the sample is that it can be estimated via the law of large numbers by averaging the partial derivatives of u on a random set of data, possibly unlabeled.
Trying to find or approximate the minimizer in the entire Sobolev space seems to be very difficult, if not untractable. We will thus, as usual in machine learning, rather seek it in a finite dimensional subspace spanned by some chosen hypothesis functions . One feature of our parametric semi-supervised approach is however that the norm is independent of the chosen basis. This allows to try different bases in the same algorithm, for instance setting the to be Gaussians centered at points of the cloud, and reducing successively the radius. We adopted a greedy approach, solving the ridge problem at every level, computing then the residual on the labeled data, and applying the same method to this residual with a new basis of hypothesis functions (constituted by Gaussians of smaller radius, see Section 2 for more). Other bases of functions were tried (polynomial, Wendland), and it was tested to combine them in a second phase, which proved to provide robustness, but we only present in Section 3 tests on our greedy algorithm using Gaussians. It seems that more efforts to select a dictionary of hypothesis functions related to the residual could lead to improvements of the MSE. We present the results on a regression problem on algebraic subsets of and then to a classification problem 3,5 vs 8 on MNIST data downsampled into .
The above theorem provides no information on the number of derivatives which are needed to ensure well-posedness. It is a difficult issue but since this number is related to the geometry of the cloud and can be chosen independently of the target, it seems possible to estimate it empirically on target examples.
The subanalycity assumption can apparently be significantly relaxed, and it seems to be enough to have a measure which is locally (at closure points) bi-Lipschitz equivalent to such a measure (see Remark 1.7). It is also worthy of notice that the needed mathematical results actually extend to the larger framework of polynomially bounded o-minimal structures expanding the real field [5, 6] (see Remark 1.5). Polynomial boundedness is however essential, and for example the results of [14, 17] are no longer valid on an exponential cusp (endowed with the Lebesgue measure).
The article is organized as follows. Section 1 recalls some mathematical results that are useful for our purpose. Section 2 gives our greedy algorithm, derives consistency from results of the preceding section, and establishes statistical bounds relative to the convergence of our Monte Carlo approximation. Section 3 presents the results of numerical experiments.
(1.1)
The flaw of the semi-analytic category is that it is not preserved by analytic morphisms, even when they are proper. To overcome this problem, we prefer working with the subanalytic sets, which are defined as the projections of the semi-analytic sets.
A subset is subanalytic if each point has a neighborhood such that is the image under the canonical projection of some relatively compact semi-analytic subset of (where depends on ).
A subset of is globally subanalytic if is a subanalytic subset of , where is the homeomorphism defined by
(1.2)
We say that a mapping (or a function) is globally subanalytic, and globally subanalytic, if its graph is a globally subanalytic subset of . We will allow the density of measures to be infinite, considering that is globally subanalytic if is a globally subanalytic set and the restriction of to is a globally subanalytic function.
G. VALETTE
For example, the restriction of an analytic function to a compact subanalytic subset of its domain is globally subanalytic. The functions and , , however fail to be subanalytic. Excluding infinite oscillations and flat functions is the main feature of the globally subanalytic category and polynomially bounded o-minimal structures in general.
1.1. Subanalytic measures. Given an m-dimensional globally subanalytic manifold M, we denote by the measure provided by unit differential m-forms, the tangent spaces of M being endowed with the euclidean metric. This amounts to define as the m-dimensional Hausdorff measure (restricted to M). We (abusively) consider as defined on the Borel -algebra of a globally subanalytic set containing M.
Given a -measurable function , we denote by the measure .
Definition 1.1. A measure on (the Borel -algebra of) a globally subanalytic set is said to be globally subanalytic if it is a finite sum of type where, for every , is a globally subanalytic manifold and is a globally subanalytic function. We then say that is a globally subanalytic measured space.
We impose the to be manifolds for convenience. Since globally subanalytic sets can always be decomposed into finitely many globally subanalytic manifolds, this is no loss of generality, and the measure , ( being the Hausdorff measure), with arbitrary globally subanalytic subset of and globally subanalytic function for each , is also globally subanalytic.
Given a Borel mapping , we denote by the push-forward of under , i.e. , if is a Borel set. Push-forwards of globally subanalytic measures under globally subanalytic mappings may fail to have globally subanalytic density. However, we proved in [17]:
Proposition 1.2. Let be a globally subanalytic measured space and let be globally subanalytic. There is a finite collection of globally subanalytic manifolds included in such that
where is for each a finite collection of globally subanalytic manifolds comprised in on each of which induces a submersion and the are globally subanalytic functions.
It was derived from this proposition that push-forwards of globally subanalytic measures always have a globally subanalytic support and that their density cannot be a flat function (see [17, Proposition 2.5]).
1.2. Sobolev spaces of globally subanalytic sets. We denote by the euclidean norm of and by the closure of a set .
Let be a globally subanalytic measure or the push-forward of such a measure on a bounded open globally subanalytic subset of . We denote by the support of .
Given , we denote by the Lebesgue space relative to , and we set for
We then denote by the completion of equipped with
identifying functions whose derivatives of order match -almost everywhere.
If x and y are two points of the same connected component of X, we set
(1.3)
where denotes the length of . When and do not belong to the same connected component, we put . We call the inner metric of .
We say that is Lipschitz with respect to the inner metric if there exists a constant such that the following inequality holds for any
(1.4)
We denote by the space of the functions on X that are Lipschitz with respect to the inner metric of X. We endow this space with its natural norm
(1.5)
Remark 1.3. In [15], the infimum (1.3) is taken on the subanalytic arcs only but this makes no difference [8]. Moreover, if is a nowhere dense globally subanalytic subset of then it is enough to take this infimum on the subanalytic arcs that cut at finitely many points only (possibly 0). This is because we can approximate globally subanalytic arcs of by arcs (of arbitrary close length) meeting in finitely many points. As a matter of fact, if extends continuously on then the extension is inner Lipschitz on .
Theorem 0.1 ensures that for large enough, every must coincide almost everywhere with a function which is Lipschitz with respect to the inner metric. In the sequel, we will always assume it to be equal on to such a function. Embedding (0.1) amounts to say that there is a constant such that we have for large enough for :
(1.6)
Remark 1.4. This embedding is induced by the embedding given by Corollary 6.3 of [14] (see the proofs of Theorem 3.4 and 3.5 of [17] for details). As the latter Corollary provides an embedding which is compact in the norm, so does Theorem 0.1. Section 1.4 gives details on this issue.
G. VALETTE
1.3. A Poincaré inequality. If is a finite subset of meeting every connected component, we then have for (with as in (1.6))
(1.7)
for some constant . This inequality actually follows from the compactness of embedding (0.1) (see Remark 1.4 or Section 1.4) up to a classical argument. Namely, if it failed, there would be a unit sequence in for which the right-hand-side goes to zero. The compactness of the embedding would then ensure us that we can extract a uniformly convergent subsequence. This subsequence would tend to a function that has 0 derivative as distribution. By Proposition 2.5 of [17], there is a -negligible subset of such that can be split into manifolds on which is absolutely continuous with respect to the canonical measure of the manifold. The function must thus be locally constant on these manifolds, which, since tends to zero and the 's meet each connected component, would contradict the fact that is a unit sequence in .
Inequalities (1.6) and (1.7) will ensure well-posedness of our ridge problem in the Sobolev space. The latter inequality makes it possible to get rid of the norm in the penalty of the loss (see (2.3)). It is more convenient to work with the second term of the right-hand-side of (1.7) (called by the author the “Sobolev energy”) than with the Sobolev norm because it does not penalize the constant function. It seems to be particularly relevant for classification problems, where the target is locally constant and thus has Sobolev energy 0.
We end this section with remarks about our setting that will not be needed for the next sections.
Remark 1.5. The above results remain valid with minor modifications in the proofs in the larger framework of polynomially bounded o-minimal structures [5, 6].
Remark 1.6. In (1.6) and (1.7), the function is defined on a neighborhood of . However, only the values of the partial derivatives of on are relevant, and these two inequalities are valid for any defined on a (possibly non subanalytic) open neighborhood of in , with constants independent of . This is because the restriction map is an onto isometry. This means that if we define as the direct limit of when runs in all the open neighborhoods of in , these two inequalities remain valid in this space. We thus could forget , simply fixing a locally closed bounded subanalytic set and working with functions defined on any neighborhood of this set.
Remark 1.7. Two measures and are bi-Lipschitz equivalent if there is a bi-Lipschitz homeomorphism , with and neighborhoods of the support of and respectively, such that for some . It seems that the proof of Corollary 3.5 of [17] applies to every measure with bounded support which is bi-Lipschitz equivalent to a push-forward of a globally subanalytic measure on an open subset of , and hence that (1.7) is valid for such a measure. It indeed seems to be enough to have such a homeomorphism locally at each point of the closure of the support in (we can use a partition of unity). In particular, our method apparently applies to every measure with a density bounded away from zero and infinity on a bounded Lipschitz domain or a compact Lipschitz submanifold (possibly with boundary ) of , which is a very common framework.
Remark 1.8. If is a nowhere dense globally subanalytic subset of then, applying (1.6) to endowed with the restriction of , we get for each (for large enough, for some independent of )
When extends continuously at points of , we must have (see Remark 1.3). This means that (1.6) (and hence (1.7)) holds for continuous functions that have singularities on a nowhere dense globally subanalytic set and we can get rid of the singularities of when integrating. This situation arises for instance when is the absolute value of a polynomial or more generally any piecewise polynomial continuous function on a globally subanalytic partition. We wish to stress the fact that the constants, and possibly , however then depend on this subset , since the partition associated to the restriction of the measure (see Definition 1.1 or Proposition 1.2) must now be adapted to . For example, if denotes the boundary of the ball and then tends to as (for all , say that is the Lebesgue measure) but does not tend to uniformly, although this function is smooth outside and continuous for each .
1.4. On asymptotical values of elements of . This section is not needed for the next sections. Elements of do not necessarily extend continuously at frontier points of ( is closed in but may have accumulation points in ). We clarify this in this section, which will be the opportunity to account for the compactness of our Morrey's embedding explained in Remark 1.4, as well as to point out that our method makes it possible to produce discontinuous heuristics (see example 1.9).
Let be sufficiently big for inequality (1.6) to hold. We denote by the euclidean ball of radius . We say that is connected at if is connected for all small enough. If is connected at a frontier point then an inner Lipschitz function can have only one asymptotical value at (this easily follows from the Lipschitz conic structure theorem [15, Theorem 3.4.1]). When the germ of at has more than one connected component (there must be finitely many), there then may be several asymptotical values at , one per connected component (since we can argue on each component).
We say that is normal if it is connected at each . By the above paragraph, if is normal then (see Remark 1.3). Since is compact for , it then follows from Arzela-Ascoli's Theorem that every bounded sequence of has a uniformly convergent subsequence.
When is not normal, one can always divide it into finitely many normal sets. It suffices to take a triangulation of compatible with . Applying then the above argument to every element of this partition, we get that every bounded sequence of has a uniformly convergent subsequence, from which we can conclude that embedding (0.1) is compact in the norm.
By a Lipschitz submanifold with boundary of we mean a set which is locally, up to a linear change of coordinates of , the graph of a Lipschitz map over a Lipschitz half-space.
G. VALETTE
The argument we just explained is indeed essentially the argument of Remark 1.4 since the compactness of the embedding given by Corollary 6.3 of [14] is obtained by a normalization of the manifold.
Example 1.9. Let and let be the cone
The set being normal, any element of extends to . This means that so do all the elements of (for large enough, say for instance that is the Hausdorff measure on of dimension ). If now and then the elements of may have two asymptotical values at the origin. This makes it possible to produce discontinuous heuristics, provided we include discontinuous functions in the basis (appearing in the next section), which requires to know in advance at which points the target function fails to be continuous.
2. Our GREEDY ALGORITHM
We are in the same setting as in the introduction. Namely, let be an open bounded globally subanalytic subset of and let be a globally subanalytic probability measure on or a push-forward of such a measure under a globally subanalytic mapping. Let be a sequence of observations drawn independently with respect to and let denote the support of . This set is with probability 1 the closure of in (strictly speaking, the closure of ). Take an inner Lipschitz function , and assume to be respectively labeled by , fixed integer.
As often in machine learning, we will not strive to learn but a close function within our basis. Our aim will be to find an element of the Sobolev space that approximates satisfyingly . We emphasize that we do not assume to be in the Sobolev space. We will be looking for a function in , with sufficiently large for (1.6) to hold, satisfying for all ( small positive number), where is a subset of the labeled data sufficiently rich to contain at least one point in each connected component of (the algorithm will rather work with the MSE train, this is just to motivate our method). In this situation, we have for all
where is the Lipschitz constant of , the constant of (1.6), and the point realizing . Summing these three inequalities, we get an upper bound of the error:
(2.1)
On a subspace of finite dimension , (1.6) always holds, but with a constant depending on . Since the greedy procedure browses a large number of candidate spaces, what matters here is a constant independent of them, which is what (1.6) provides.
The Lipschitzness of f could of course be relaxed into another notion of uniform continuity property. Existence of such a function u is here an assumption but the algorithm will on the way check the feasibility by computing the MSE train of the output and providing bounds for its Sobolev energy.
We will construct our approximations by solving a quadratic problem involving the MSE train and a penalty that will be given by a weighted Sobolev semi-norm. These weights will play the role of our regularization parameters. Take some positive reals , with as above and , and set for and in
(2.2)
Given a subspace of , consider now the ridge problem
(2.3)
where is the semi-norm resulting from the just above inner product. Inequality (1.7) ensures that this problem is well-posed for any closed subspace as soon as the meet every connected component of .
The subspace will be chosen as the span of some functions in . In the ideal situation where we are able to estimate inner products , we can compute the Gram matrix in this basis and solve the above ridge problem. This is unfortunately almost always impossible and we will rather estimate the inner product by averaging the partial derivatives on unlabeled data drawn independently of all the other choices (and independently of each other). Namely, let be random points drawn independently in , and define
(2.4)
This gives rise to an empirical norm and an empirical loss
(2.5)
In order to avoid an ill-conditioned problem, we will restrict ourselves to a spectral subspace spanned by all the eigenvectors corresponding to an eigenvalue bigger than some threshold (fixed once for all at the beginning) of the matrix , where is the matrix of the linear mapping in the basis and denotes the Gram matrix of in this basis. We shall therefore solve
(2.6)
The error of our Monte Carlo approximation can be bounded with high probability using Hoeffding's inequality, which gives for all an estimate of type (see (2.10))
(2.7)
for some depending on , and the . McDiarmid's inequality can be used to provide other inequalities of the same type (see (2.11) and Remark 2.3), that may be more or less sharp, depending on the situation. We can of course take the smallest of inequalities (2.10) and (2.11) with probability at least , for fixed (small).
G. VALETTE
Notice that if is the minimizer of (2.6) and if then, because , we must have
and consequently, by , which is true for all ,
(2.8)
which means that the Sobolev energy is, up to , bounded by the fall of the MSE train.
The number of functions of the basis is generally limited by the cost of the computation of , which makes it difficult to approximate an arbitrary target. We therefore opted for a Greedy approach. Our algorithm can be described as follows:
Multiscale Greedy
Choose a basis of functions
Draw randomly in
Compute for all , where
Find the solution of Problem (2.6)
Compute the residual , where is as in (2.6), and iterate the method, with and a new basis of functions.
The must be drawn independently of all the other choices. As explained in (2.7), the theorems of Section 2.2 provide at each level of the greedy a bound for the weighted Sobolev norm of the minimizer . To make it more explicit, let denote the residual at the level (with ) and the function corresponding to the minimizer, and observe that (2.8) reads for :
for some that can be bounded with high probability as explained in (2.10) and (2.11). After summing over all the accomplished levels, we get with probability at least :
(2.9)
Let us stress the fact that . The thus turn out to be bounds for the total weighted Sobolev energy of the heuristics rather than limitations of the Monte Carlo approximation of the Gram, which means that keeping reasonable values of the is essential. Inequalities (2.10) and (2.11) provide effective values of the in terms of the hyperparameters, the minimizer , and the probability . It is therefore possible to provide, after each level of the greedy algorithm, an a posteriori bound for the weighted Sobolev energy of the produced heuristic valid with high probability.
In view of (2.1) and (2.9), attention should be taken to prevent the from exploding. Of course, they depend on the choice of the successive bases . Their ability to adapt to the residuals (to which the are proportional) is thus essential for the success of the algorithm. A natural choice is to start with Gaussians with large radii and, at each level, to make the radius decay by a factor q. The first levels approximate the target roughly by rather mild functions, capturing its global behavior at low cost, and the next levels focus on more local oscillations. As the constants given by Section 2.2 will increase as the radius of the Gaussians drops, it is essential that the norm of the residual decays fast. We thus selected our basis among a large set of functions, a dictionary, taking those that are the most correlated with the residual. It seems that improvements could be made on the way this selection is made and that the residual is a good indicator for this purpose. The can be helpful to ensure that a reasonable approximation of the target lies within the limit of our sequence of dictionaries and could make it possible to adapt them to the target.
The were computed on examples (targeting a probability with , see Section 3) and stayed contained in the last levels by the rapid decay of the residual. It seems that many other statistical bounds can be provided and this is another interesting issue. The actual value of the Sobolev energy was also assessed empirically (on the total cloud) and the energy, as well as its empirical estimate, were much smaller than , which means that there is space for improvements of the statistical bounds, for instance by taking more care of the overlaps of the bumps of the elements of the basis.
2.1. Directional derivatives. The number of partial derivatives of order involved in the computation of the Gram matrix equals , which is a serious problem when the dimension of the ambient space increases, the computation of this matrix being the most expensive part of the algorithm. With MNIST data downsampled into , this was intractable for us. We thus used directional derivatives
to compute , averaging at each over a bunch of random vectors of , i.e. we replaced the bilinear form introduced in (2.4) with
for some weights . This amounts to replace the bi-linear form (2.2) with
which gives rise to an equivalent semi-norm. This proved efficient and the algorithm worked with a rather small number of directions (50 in dimension 49), and increasing the number of directions did not induce significant differences in the results. Somehow, we here take advantage of the Monte Carlo architecture which seems to compensate the just above Monte Carlo approximation. It would be interesting to also give statistical bounds for empirical estimates based on directional derivatives.
2.2. Statistical bounds for the Gram estimate. In this section, we provide inequalities to bound the Sobolev energy in terms of the hyperparameters and our Monte Carlo estimate. We let , , , , , , , , , and be as above. We assume that the are and have bounded derivatives up to order on . Given a matrix , we denote by the norm provided by the supremum on the sphere (w.r.t. the euclidean
G. VALETTE
norm) and the norm of matrix valued mappings will be assumed to be taken with respect to this matrix norm.
Theorem 2.1. Let . With probability at least , we have for every , ,
(2.10)
where .
Proof. Let (the case is left to the reader)
and notice that
Applying Hoeffding's inequality to the random variables defined as we get for each
Hence, for , cumulating these probabilities, we get that with probability at least all the absolute value of the coefficients of the matrix are smaller than . As a matter of fact, we have with probability at least for all :
which yields the desired bound.
The bound provided by the above theorem involves a term because we estimated the error on each coefficient in order to estimate the error on the matrices. In the proof of the theorem below, we rely on McDiarmid's inequality so as to argue on the level of matrices and get rid of this factor, which provides another bound (not comparable with the preceding one).
Theorem 2.2. Let denote the Gram matrix at , i.e.
With probability at least , , we have for all , ,
(2.11)
where
Proof. Define a function by setting for
where denotes the biggest eigenvalue of this matrix. Note that, in virtue of Weyl's inequality, we have for any , if and
so that, since and are both positive symmetric matrices ( for all symmetric):
Applying McDiarmid's inequality to and (now regarded as a finite family of random variables), we thus get for every :
(2.12)
Notice that, denoting by the Frobenius scalar product and by the derived norm, we have:
since the are i.i.d. random variables and has mean zero for all (the first inequality is from the definition of the Frobenius norm and the second is Jensen's inequality). But then
from which we can conclude (using that for all ),
since . Now, applying (2.12) with
and as in the statement of the theorem, we get that with probability at least :
G. VALETTE
But since for all
this yields the desired estimate.
Remark 2.3. The following generalization of the above theorem provides other (incomparable) statistical bounds. Let be a symmetric positive definite matrix and set
With probability at least , , we have for all , ,
where
In particular, for , where is as in (2.6), this gives a bound that takes in consideration the threshold .
3. NUMERICAL EXPERIMENTS
3.1. Regression problems on real algebraic varieties. We focused on algebraic hypersurfaces of , starting with the semi-algebraic set
fixing a sample of 4000 points on this set (or very close) for the training phase and a test sample of 5000 points. The clouds were generated by 60 steps of gradient descent of random points. Such points are distributed according to the push-forward under a polynomial map, which corresponds to the setting of this article. Figure 1 shows a representation in (the variable has been dropped for this purpose but this does not affect the main properties of the singular point; the experiments use ). This is typically an example of semi-algebraic set for which the inner metric is not equivalent to the euclidean metric.
The target function was taken equal to
(3.1)
with
The absolute value is here to ensure a certain lack of smoothness of the target, so as to make the problem a bit more difficult. We applied the greedy algorithm described in Section 2, solving the ridge problem (2.6) on 12 levels. The -level dictionary was constituted by 4000 Gaussians, centered at the points of the clouds (labeled or not), the radii of the Gaussians being allowed to go from 1.5.(0.8) to 1.5.(0.8) , and we selected the 800 functions that are the most correlated with the residual train (the Gaussians being rather similar functions, we did not take any normalization before estimating the correlation). The weights of the partial derivatives of order of the (squared) Sobolev norm were chosen equal to (the other weights chosen as 0) which proved sufficient. No effort was made to compute the minimal number of derivatives to ensure a well-posed problem on the entire Sobolev space. The Gram matrix was computed using a random sample 1000 of points (possibly unlabeled, this sample was different at each level) and we

FIGURE 1. Three-dimensional visualization of the singular algebraic hyper-surface defined by (the set is its intersection with ).
set (see (2.6) for ). We carried out 20 runs, varying the number of labeled points 100, 200, ..., 2000, making no parameter tuning between the runs. Figure 2 displays the variation of the MSE Test and Train as functions of the number of labeled examples. As one could expect, the result decays as the labeled data are growing and the two graphs are getting closer. During the greedy procedure, the MSE test decreased by up to 93 percent (by about 90 percent from 800 labeled points on). For comparison, we computed the MSE test of RBF Kernel Ridge Regression optimized with Grid Search, and our results are from 7 to 51 percent better (above 20 percent up to 1400 labeled points).
An interesting point of our test is that the MSE train and test were very correlated during the first levels, making it possible to estimate the potential MSE test gain of the last levels. The MSE train however started to decay faster than the MSE test on the last levels. These levels only generating very low gain, an early stopping was added to interrupt the greedy algorithm when the MSE train is less than so as to avoid overfitting and save time.
We then studied random generalizations of this problem, taking the support of the cloud to be supported by a set
where the are random polynomials of degree 3 vanishing at the origin (normalized by the square root of the mean of squares of their coefficients and limited to 20 coefficients). The polynomials and were now of degree 4 and generated like the (random, limited to 20 coefficients, and normalized). To keep the targets of the different random seeds
G. VALETTE

FIGURE 2. MSE on the training and test sets as a function of the number of training samples on a logarithmic scale.
within a comparable range, the absolute values were truncated at 1, i.e. the target was (the same target was of course used for kernel ridge regression).
We made up to 18 levels. The radii of the Gaussians of the level was however set equal to and the sample was composed by 2000 points, with all the other parameters as in the above particular case. The number of labeled points was fixed to 600, and we only changed the random seeds (responsible for the cloud, the , and the ) at each run. Here we stress the fact that although the hyperparameters were set manually, there was no parameter tuning on each random seed and no validation was needed. The average MSE test was about (with standard deviation ). For comparison, the average MSE test of ridge RBF on the 10 runs amounted to . Eight out of the ten runs gave results 5 to 20 percent better than the MSE test of RBF Kernel Ridge Regression optimized with Grid Search, while 2 of them were less good.
To be fully valid, the statistical bounds of Section 2.2 require the sample Z to be drawn independently of the basis of functions. Since part of the centers of the Gaussians are taken in the labeled data, this forces to exclude these data when drawing Z, which was not done in the above tests. These statistical bounds were thus estimated on extra runs, assuming and drawing Z as fresh samples, independent of the cloud, and, as mentioned in the preceding section, stayed contained by the rapid decay of the residual, although still being much higher than the actual Sobolev energy of the minimizer (evaluated empirically on a 20000 points random sample).
3.2. Application to classification problems. We then applied our method to a classification problem 3,5 vs 8 on MNIST data downsampled into . As above, the test was carried out on a sample of 4000 examples (labeled and unlabeled), from 10 different random seeds, and the results were averaged. We successively assumed 500, 1000, 1500, 2000 elements of this sample to be labeled. As explained in Section 2.1, we used the products of directional derivatives which were averaged among 50 random directions. The results of our multi-isotropic greedy algorithm (MISO) appear in Table 1. Kernel ridge regression is included as a reference; the accuracies obtained are of the same order. Obtaining satisfying results actually demanded to raise the weights of order to , , as well as the radius and eigenvalue threshold (adjusted manually but identical for all the seeds), likely due to the high ambient dimension which increases distances. The architecture was as described above, the dictionaries being constituted by 4000 Gaussian functions centered at sample points, from which we extracted 800 candidates at each level as above. The radius of the Gaussians was 12 at the first level decaying by 20 percent at every of the 10 levels. The accuracy at the first level was between and to finish as displayed in the table. A feature of the method is that the norm is independent of the chosen dictionary, which made it possible to test other functions, like anisotropic Gaussians, Wendlands, or polynomial functions. We chose to work with isotropic Gaussian for the present tests because this lead to the most satisfying results. Adding a first level exploring polynomials of degree 2 (and then Gaussian levels) however provided a very slight gain and it seems that other dictionaries would deserve to be tested.
| Accuracy | AUC | |||
|---|---|---|---|---|
| MISO | RBF ridge | MISO | RBF ridge | |
| 500 | 95.2 ± 0.3 | 94.6 ± 0.3 | 0.988 ± 0.002 | 0.985 ± 0.002 |
| 1000 | 96.2 ± 0.3 | 95.9 ± 0.3 | 0.993 ± 0.001 | 0.991 ± 0.001 |
| 1500 | 96.7 ± 0.3 | 96.5 ± 0.2 | 0.994 ± 0.001 | 0.993 ± 0.001 |
| 2000 | 96.9 ± 0.3 | 96.7 ± 0.2 | 0.995 ± 0.001 | 0.994 ± 0.001 |
TABLE 1. Accuracy rate and AUC on MNIST 3, 5 vs. 8, averaged over 10 random seeds. Values are reported as mean ± standard deviation.
ACKNOWLEDGMENTS
This work was supported by NCN funder grant 2021/43/B/ST1/02359. During the preparation of this work, the author used Claude (Anthropic), ChatGPT (OpenAI), Grok (X), AI language models, to improve the language and readability of the manuscript, implement algorithms in Python, check computations, suggest reformulations of some arguments. The statement and proof of Theorem 2.2 were initially proposed by Claude, the rest of the mathematical content is due to the author. All tests were run on Google Colab. All content was reviewed and edited by the author, who takes full responsibility for the content of this publication.
REFERENCES
[1] M. Belkin, P. Niyogi, Semi-Supervised Learning on Riemannian Manifolds, Machine Learning, 56, 209–239, (2004).
G. VALETTE
[2] M. Belkin, P. Niyogi, V. Sindhwani, Manifold regularization: a geometric framework for learning from labeled and unlabeled examples, J. Mach. Learn. Res. 7 (2006), 2399–2434.
[3] M. Belkin, P. Niyogi, Towards a theoretical foundation for Laplacian-based manifold methods J. Comput. System Sci. 74 (2008), no. 8, 1289–1308.
[4] C. M. Bishop, Pattern recognition and machine learning, Information Science and Statistics, Springer, New York, 2006. xx+738 pp.
[5] M. Coste, An Introduction to O-minimal Geometry, Dip. Mat. Univ. Pisa, Dottorato di Ricerca in Matematica, Istituti Editoriali e Poligrafici Internazionali, Pisa (2000).
[6] L. van den Dries, Tame topology and o-minimal structures, London Mathematical Society Lecture Note Series, 248, Cambridge University Press, Cambridge, 1998. x+180 pp.
[7] T. Hofmann, B. Schölkopf, A.J. Smola, Kernel methods in machine learning Ann. Statist. 36 (2008), no. 3, 1171–1220.
[8] N. Nguyen, A. Valette, G. Valette, Inner Lipschitz approximation in o-minimal structures, preprint, arXiv:2603.06443v1.
[9] D. Slepcev, M. Thorpe, Analysis of p-laplacian regularization in semisupervised learning, SIAM J. Math. Anal. 51 (3) (2019) 2085–2120.
[10] K. Muandet, K. Fukumizu, B. Sriperumbudur, B. Schölkopf, Kernel Mean Embedding of Distributions: A Review and Beyond: Foundations and Trends in Machine Learning (2017) 10 (1-2) 1–141.
[11] A. Valette, G. Valette, Poincaré inequality on subanalytic sets, J. Geom. Anal. 31 (2021), no. 10, 10464–10472.
[12] A. Valette, G. Valette, Uniform Poincaré inequality in o-minimal structures, Math. Inequal. Appl. 26 (2023), no. 1, 141–150.
[13] A. Valette, G. Valette, Trace operators on bounded subanalytic manifolds, Selecta Math. (N.S.) 30 (2024), no. 3, Paper No. 54, 29 pp.
[14] G. Valette, On Sobolev spaces of bounded subanalytic manifolds, Math. Ann. 390, 2413–2457 (2024).
[15] G. Valette, On subanalytic geometry, To appear in Panoramas et synthèses, available at https://guillaume-valette.u.matinf.uj.edu.pl/images/articles/subanalytic.pdf.
[16] G. Valette, a priori estimates for solutions of linear elliptic PDEs on subanalytic domains, preprint arXiv:2506.22913v1.
[17] G. Valette, Sobolev embedding and subanalytic measures, arXiv:2604.22941.
(G. Valette) INSTYTUT MATEMATYKI UNIWERSYTETU JAGIELLOŃSKIEGO, UL. S. ŁOJASIEWICZA 6, KRAKÓW, POLAND
Email address: guillaume.valette@im.uj.edu.pl