Finding global minima with kernel approximations
Last month, I showed how global optimization based only on accessing function values can be hard with no convexity assumption. In a nutshell, with limited smoothness, the number of function evaluations has to grow exponentially fast in dimension, which is a rather negative statement. On the positive side, this number does not grow as fast for highly smooth functions. However, optimal algorithms end up approximating the whole function to minimize, and then minimizing the approximation, which takes exponential time in general. In this post, I will describe very recent work with Alessandro Rudi and Ulysse Marteau-Ferey [1] that essentially jointly approximates the function and minimizes the approximation.
Our task for this post will be to minimize a function , for which we know the global minimizer is already located in a certain bounded set (typically a large ball). We can query values of at any point in .
It turns out it can be formulated as a convex optimization problem (there has to be a catch in this statement, stay tuned).
All optimization problems are convex!
We consider the following minimization problem:

Assuming attains its global minimizer in , then the optimal value of the problem above is attained and is clearly , that is, the problem in Eq. (1) leads to the minimal value of .
Moreover, each constraint in Eq. (1) is a linear constraint in , and the objective is linear. Hence we obtain a linear programming problem which is a particularly simple instance of a convex optimization problem. Thus, all optimization problems are convex!
The catch here is that the set of inequalities is dense, that is, in general, contains infinitely many elements, and thus the number of constraints is infinite.
Duality. It is worth deriving the convex optimization dual (being loose here in terms of regularity and integrability conditions). We add a Lagrange multiplier for each of the constraints , and consider the Lagrangian

This is also a convex optimization problem, with a linear objective function on the infinite-dimensional set of probability measures.
Overall, we get convex but (apparently) useless problems. We will first need an efficient way to represent non-negativity of functions (this will be applied to ).
Positivity with “sums of squares”
We now start to make some assumptions on the function to be minimized. We will assume that it can be written as
We will need infinite dimensions later, but you can safely assume that is a classical Euclidean space (e.g., ), and that we have
We will also assume that the constant function on can be represented as well, that is, there exists such that This is to ensure that we can represent within the optimization problem above the function .
The most classical example is the set of polynomials of degree for which we can choose to be of dimension and contain all monomials are degree less than . We will go infinite-dimensional and link this to kernels later in this post.
You may wonder why we are not simply modeling the function with a classical formulation . This is precisely to be able to enforce positivity.
Positivity through “sum-of-squares”. We can assume that the operator is positive-semidefinite (which we will denote ), that is, all of its eigenvalues are non-negative, or, for all , . Then this implies that the function is pointwise positive. Thus:
We refer to such functions as “sum-of-squares”. Indeed, given the spectral decomposition of as
A key question is whether the implication in Eq. can be reversed. In other words, can we write all non-negative functions as sum-of-squares? The answer will depend on the chosen feature map .
Polynomials. For polynomials, the answer is known to be positive in dimension 1, but negative in higher dimensions (see the nice review in [2]): that is, unless , or and , there are polynomials of degree in dimension that are non-negative but are not the sum of squares of polynomials.
Keeping in mind the difference being non-negative and being a sum of squares, let’s look how this can be used for global optimization of polynomials.
Polynomial optimization with sums-of-squares
We now consider that is a polynomial of degree , and that is of dimension and contain all monomials of degree less than . We consider representing the constraint in Eq. (1), as for some positive-definite operator (here a matrix) . With the notations above, this is equivalent to and . This leads to the following optimization problem (no localization set is used):
At this point, beyond the potentially large dimension of the convex problem when and grow, there is a major concern: is the problem in Eq. (3) equivalent to the one in Eq. (1)? This is true if and only if the polynomial is a a sum-of-squares, which given the discussion above may not happen as soon as .
In order to apply to all polynomials, the problem has to be changed. A simple reformulation is possible [3] by assuming that the global minimum of is attained within the set for some . It turns out (and this is a highly non-trivial fact) that all polynomials which are positive on can be written as , where and are sum-of-squares polynomials. The only issue is that the degrees of and are not known in advance so a sequence (a so-called “hierarchy”) of problems have to be solved with increasing degrees, each providing a lower bound on .
When the degree is large enough so that the sum-of-squares representation exists for , then the following problem
This remains a large semi-definite program whose order is not known in advance and for which complicated solvers are needed. I will now present our recent work where we go infinite-dimensional, and some of these issues are alleviated (but some others are created).
Going infinite-dimensional
We now consider to be infinite-dimensional. In order to allow finite-dimensional manipulations of various objects, we consider feature maps which are obtained from positive-definite kernels. More precisely, we consider the so-called Sobolev space of functions on with all partial derivatives up to order which are square-integrable. When , then this is a reproducing kernel Hilbert space, that is, there exists a positive-definite kernel such that the feature map allows to access function values as for all . For the algorithm, we will only need access to the kernel; for example, for , we can choose the usual exponential .
We now consider the same problem as for polynomials, but with this new feature map:
This is all very nice, but the problem in Eq. (4) is still an infinite-dimensional problem (note that we have gone from a continuum of inequalities to elements of a Hilbert space, but that’s not much of a gain).
Controlled approximation through sampling
We can now leverage classical and more recent techniques from kernel methods. The main idea is to subsample the set of equalities in Eq. (4), that is consider points , and solve instead the regularized sampled problem
Approximation guarantees. Beyond computational considerations, how big does need to be to obtain a value of which is at most away from ? From last post, if is -times differentiable, we cannot have smaller than . As shown in [1], for points selected uniformly at random, then can be taken to of the order for a well-chosen Sobolev space and regularization parameter . This is not the optimal rate , but close when and are large.
Finite-dimensional algorithm. The problem in Eq. (5) is still infinite-dimensional. We can leverage a recent work, again with Ulysse Marteau-Ferey and Alessandro Rudi [5], that shows that a representer theorem exists for this type of problems: the optimization for the operator may be restricted to of the form
In order to tackle large values which are larger than , simple iterative algorithms can be designed (see [1] for a damped Newton algorithm which does not require any singular value decompositions, with complexity per iteration). Classical tools for efficient kernel methods, such as column sampling / Nyström method (see [6, 7] and references therein) or random features (see [8, 9] and references therein), could also be used to avoid a cubic or quadratic complexity in .
Comparison with random search. Instead of solving the problem in Eq. (5), we could output the minimal value of for , which is exactly random search if the points are random (this also happens to correspond to using in Eq. (5)). This can only achieve an error for of order ; in other words, it cannot leverage smoothness, while our algorithm can. The main technical reason is that subsampling inequalities provide weaker guarantees than subsampling equalities, and thus representing the non-negativity of a function through an equality (which our method essentially does) provides significant benefits.
Duality
As always in convex optimization, it is beneficial to look at dual problems. It turns out that iterative algorithms are easier to build for the finite-dimensional dual problem to Eq. (5). We rather look now at the dual of Eq. (4) and make the parallel with the primal original problem in Eq. (1) and its dual.
Introducing a Lagrange multiplier for the constraint (this time not constrained to be non-negative because we have an equality constraint), we can form the Lagrangian
Note that the dual problem through a signed measure that should concentrate around the minimizers of leads to a natural candidate for the optimizer (see more details in [1], and a similar dual formulation for polynomials in [10]).
Simulations
In order to highlight how the optimization method works, I will first present how it minimizes the multi-modal function in dimension pictured below on .

We consider sampling a sequence of points from a quasi-random sequence (so that it fills the space more evenly that purely random). The random points are displayed in purple while the solution of our algorithm is displayed in red, with increasing numbers of sampled points. On the right plot, the model is displayed, showing that the model becomes more accurate as grows.

We also consider a problem in dimension , where we compare random sampling and our algorithm (“gloptikernel”), as grows (see [1] for the experimental set-up).

Clearly, the chosen baseline (random sampling) is rudimentary, though optimal up to logarithmic terms for non-smooth problems where only Lipschitz-continuity is assumed. We can also compare to gradient descent with random restarts (“random+GD” below, with the same overall number of function evaluations). As shown below, when the gradient information is robust, this baseline performs similarly (left plot), while when a high frequency component is added to the function (which makes the gradient information non reliable, right plot), the local descent algorithm needs more function evaluations.

It would be interesting to compare this new algorithms to other global optimization algorithms based on function evaluations, such as CMA-ES or Bayesian optimization.
Conclusion
In this post, I presented an algorithm for global optimization that can provably leverage smoothness with an algorithm which has a running time which is polynomial in the dimension and the number of function evaluations. For large smoothness factors, the number of such evaluations has a dependence on the precision which has no exponential dependence in dimension in the exponent (but still in the constants: we cannot optimize multivariate polynomials in polynomial time…).
These ideas can be extended in a number of ways.
General relaxation tool for dense inequalities. We can generalize the previous developments to all problems with a continuum of constraints on a variable , such as,
The answer depends on the expected smoothness of the function which is non-negative. In the optimization problem, we expect to be smooth at the optimum, while which is approximating a Dirac clearly isn’t; therefore, the choice is clear (at least in retrospect since we originally tried to model as a quadratic form…).
Constrained optimization. Following [3], we can apply the same algorithmic technique to constrained optimization, by formulating the problem of minimizing such that as maximizing such that , and non-negative functions. We can (at least in principle) then replace the non-negative constraints by and for positive operators and . All this remains to be explored in more details.
Acknowledgements. I would like to thank Alessandro Rudi and Ulysse Marteau-Ferey for proofreading this blog post and making good clarifying suggestions.
References
[1] Alessandro Rudi, Ulysse Marteau-Ferey, Francis Bach. Finding Global Minima via Kernel Approximations. Technical report arXiv:2012.11978, 2020. [2] Walter Rudin. Sums of squares of polynomials. The American Mathematical Monthly, 107(9), 813-821, 2000. [3] Jean-Bernard Lasserre. Global optimization with polynomials and the problem of moments. SIAM Journal on Optimization, 11(3):796–817, 2001. [4] Jean-Bernard Lasserre. Moments, Positive Polynomials and their Applications, volume 1. World Scientific, 2010. [5] Ulysse Marteau-Ferey, Francis Bach, and Alessandro Rudi. Non-parametric models for non-negative functions. Advances in Neural Information Processing Systems, 33, 2020. [6] Francis Bach. Sharp analysis of low-rank kernel matrix approximations. Conference on Learning Theory, pages 185–209, 2013. [7] Alessandro Rudi, Raffaello Camoriano, and Lorenzo Rosasco. Less is more: Nyström computational regularization. Advances in Neural Information Processing Systems, 2015. [8] Alessandro Rudi and Lorenzo Rosasco. Generalization properties of learning with random features. Advances in Neural Information Processing Systems, 30, 2017. [9] Francis Bach. On the equivalence between kernel quadrature rules and random feature expansions. Journal of Machine Learning Research, 18(1):714–751, 2017. [10] Jean-Bernard Lasserre. The moment-SOS hierarchy and the Christoffel-Darboux kernel. Technical Report arXiv:2011.08566, 2020.