# Difference between revisions of "GradientLess Descent"

## Introduction

In this presentation, we are interested in minimizing a smooth convex function without ever computing its derivatives.

### Motivation and Set-up

A general optimisation question can be formulated by asking to minimise an objective function $f : \mathbb{R}^n \to \mathbb{R}$, which means finding: \begin{align*} x^* = \mathrm{argmin}_{x \in \mathbb{R}^n} f(x) \end{align*}

Depending on the nature of $f$, different settings may be considered:

• Convex vs non-convex objective functions;
• Differentiable vs non-differentiable objective functions;
• Allowed function or gradient computations;
• Noisy/Stochastic oracle access.

For the purpose of this paper, we consider convex smooth objective noiseless functions, where we have access to function computations but not gradient computations. This class of functions is quite common in practice; for instance, they make special appearances in the reinforcement learning literature.

To be even more precise, in our context we let $K \subseteq \mathbb{R}^n$ be compact $f : K \to \mathbb{R}$ be $\beta$-smooth and $\alpha$-strongly convex.

Definition 1

A convex continuously differentiable function $f : K \to \mathbb{R}$ is $\alpha$-strongly convex for $\alpha \gt 0$ if \begin{align*} f(y) \geq f(x) + \left\langle \nabla f(x), y-x\right\rangle + \frac{\alpha}{2} ||y - x||^2 \end{align*} $\forall x,y \in K$. It is called $\beta$-smooth for $\beta \gt 0$ if \begin{align*} f(y) \leq f(x) + \left\langle \nabla f(x), y-x\right\rangle + \frac{\beta}{2} || y - x||^2 \end{align*} $\forall x,y \in K$

We remark that if $f$ is twice continuously differentiable, this is simply equivalent to the eigenvalues of the Hessian matrix $\textbf{H}f$ being bounded between $\alpha$ and $\beta$. Further intuition can be gained from the image below, showing how such a function can be contained within quadratic bounds.

Relationship between convexity and smoothness.

In convex analysis, one usually says that a function has condition number $Q$ if it is both $\alpha$-strongly convex, and $\beta$-smooth, and $\frac{\beta}{\alpha} \leq Q$. The authors of this paper consider the more general case where $f$ is a monotone transformation of a $\alpha$-strongly convex and $\beta$-smooth function; for simplicity and transparency, we shall not consider these extensions here, but shall note that their proofs are quite elementary.

### Zeroth-Order Optimisation

In zeroth-order optimisation, we are interested in minimising a function without computing its derivatives. This is important in many practical applications in which derivatives may not be available or they may be difficult to compute, such as:

• Combinatorial (i.e. discrete) optimisation
• Instances of non-analytic loss functions (e.g. hyperparameter tuning)
• Reinforcement learning

Curiously, a large amount of this approach focuses on approximating gradients and then using first-order optimisation algorithms.

This paper presents a purely gradientless algorithm, proposes a geometric approach to analyse the algorithm, and proves a $O( k Q \log (n / \epsilon ))$ convergence bound. Here the latent dimension is $k$ and $k \lt n$, where $n$ is the input dimension.

The proposed algorithm is given in the picture below.

Observe that at each step, we perform binary search over several concentric circles and randomly sample points, in the hopes that if we take a small step in a random direction this will reduce the value of the objective function.

### Proof of correctness

The correctness of this algorithm hinges on two observations. The first one is about the volume of the intersection of high-dimensional balls; we call this intersection a hyperspherical cap.

Theorem 1

Let $B_1, B_2 \subseteq \mathbb{R}^n$ be balls of radii $r_1, r_2$. Let $\ell$ be the distance between the centres. If $r_1 \in \left[ \frac{\ell}{2 \sqrt{n}} , \frac{\ell}{\sqrt{n}} \right]$ and $r_2 \geq \ell - \frac{\ell}{4n}$, then $\lambda (B_1 \cap B_2) \geq c_n \lambda (B_1)$, where $c_n \geq \frac{1}{4}$.

Using this theorem about random searches in high dimensions, we can prove the correctness of our algorithm.

Theorem 2

$\forall x \in K$ s.t. $\frac{3}{5Q} ||x - x^*|| \in [C_1, C_2]$, we can find integers $0 \leq k_1, k_2 \lt \log \frac{C_2}{C_1}$ such that if $r = 2^{k_1}C_1$ or $r = 2^{-k_2}C_2$, then a sample $y$ from the uniform distribution on $B_x = B\left( x, \frac{r}{\sqrt{n}} \right)$ satisfies \begin{align*} f(y) - f(x^*) \leq (f(x) - f(x^*)) \left( 1- \frac{1}{5nQ} \right) \end{align*} with probability at least $\frac{1}{4}$.

Notice how the second theorem implies that with a quarter probability, $f(y)$ is closer to the optimum,$f(x^*),$ than $f(x)$ is.

For proofs of these theorems, please watch my talk.

## Results

We compare the GradientLess Descent algorithm to a benchmark established by the Augmented Randomised Search algorithm proposed in 2011.

For this comparison, we defined the function $f(x) = \frac{1}{2} x^T H x$ where $H$ is a diagonal matrix with eigenvalues linearly interpolating the interval $[\alpha , \beta]$. We observe that in most scenarios, GradientLess Descent beats the benchmark.

## Conclusion

This research paper has analyzed a randomized algorithm where a search direction is sampled from the standard Gaussian. This is a direct search-based algorithm, which yields the convergence rate that is polylogarithmically dependent on dimensionality for any monotone transform of a smooth and strongly convex objective with a low-dimensional structure. In this algorithm, the step-size is considered as an approximate line to search all the possible values of a grid spanning an interval with uniform spacing on a log-scale. They show a geometric decrease of the function value regret, up to a constant defined by the minimum step-size, on strongly convex functions with Lipschitz smooth gradient.

## Bibliography

1. Daniel Golovin et al. Gradientless descent: High-dimensional zeroth-order optimization". In: arXiv preprint arXiv:1911.06317 (2019).

2. Shengqiao Li. Concise formulas for the area and volume of a hyperspherical cap". In: Asian Journal of Mathematics and Statistics 4.1 (2011), pp. 66-70.

3. Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. In: Foundations of Computational Mathematics 17.2 (2017), pp. 527-566.

4. R Tyrrell Rockafellar. Convex analysis. 28. Princeton university press, 1970.