Post · 17 min read· pp. 197–205

Going beyond least-squares – I : self-concordant analysis of Newton method

Least-squares is a workhorse of optimization, machine learning, statistics, signal processing, and many other scientific fields. I find it particularly appealing (too much, according to some of my students and colleagues…), because all algorithms, such as stochastic gradient [1], and analyses, such as for kernel ridge regression [2], are much simpler and rely on reasonably simple linear algebra.

Despite the unique appeal of least-squares, most interesting optimization or machine problems go beyond quadratic functions. While there are many algorithms and analyses dedicated to more general situations, it is tempting to use least-squares for analysis or algorithms by considering the functions at hand to be approximately quadratic.

Using bounds on the third-order derivatives and Taylor expansions are the usual ways to go, but they are not ideal for sharp non-asymptotic results where the deviation from quadratic functions has to be precisely quantified. In many situations, more finer structures can be used. In a series of posts, I will describe self-concordance properties, that relate the third order derivatives to second order ones.

There are many great books that cover this topic where the material below is taken from [3, 4, 5, 6].

Self-concordance

A function f:C⊂R→Rf: C \subset \mathbb{R} \to \mathbb{R} is said self-concordant on the open interval CC if and only if it is convex, three-times differentiable on CC, and

∀x∈C, ∣f′′′(x)∣⩽2f′′(x)3/2.(1)\tag{1}\forall x \in C, \ |f^{\prime\prime\prime}(x)| \leqslant 2 f^{\prime\prime}(x)^{3/2}.
You may wonder why the power 3/23/2 or why the constant 22. The constant is just a convention (multiplying the function ff by cc would replace 22 by 2/c2/\sqrt{c}), while the power 3/23/2 is fundamental, as it makes the definition “affine-invariant”, that is, if ff is self-concordant, so is y↦f(ay)y \mapsto f(ay) for any a∈Ra \in \mathbb{R}.

For a convex function defined on a convex subset CC of R\mathbb{R}, this has to be true along all rays, or equivalently, if f′′′(x)[h,h,h]=∑i,j,k=1dhihjhk∂3f∂xi∂xj∂xk(x)f^{\prime\prime\prime}(x)[h,h,h]= \sum_{i,j,k=1}^d h_i h_j h_k \frac{\partial^3 f}{\partial x_i \partial x_j \partial x_k}(x) is the symmetric third-order tensor and f′′(x)[h,h]=∑i,j=1dhihj∂2f∂xi∂xj(x)f^{\prime\prime}(x)[h,h] = \sum_{i,j=1}^d h_i h_j \frac{\partial^2 f}{\partial x_i \partial x_j}(x) the second-order one, then

∀x∈C, ∀h∈Rd, ∣f′′′(x)[h,h,h]∣⩽2f′′(x)3/2[h,h].(2)\tag{2} \forall x \in C, \ \forall h \in \mathbb{R}^d , \ |f^{\prime\prime\prime}(x)[h,h,h]| \leqslant 2 f^{\prime\prime}(x)^{3/2}[h,h].

Examples. One can check that if ff and gg are self-concordant, then so is f+gf+g (but not their average). Moreover, if ff is self-concordant, so is y↦f(Ay)y\mapsto f(Ay) for any matrix AA. The property is also preserved by Fenchel conjugation. Classical examples are all linear and quadratic functions, the negative logarithm, the negative log-determinant, or the negative logarithm of quadratic functions. The three previous examples are particularly important because they are “barrier functions”, with non-full domains, and are instrumental to interior-point methods (see below).

Properties in one dimension. A nice reformulation of Eq. (1) (which is one-dimensional) is

∣ddx(f′′(x)−1/2)∣=∣12f′′′(x)f′′(x)−3/2∣⩽1,\big| \frac{d}{dx} \big( f^{\prime\prime}(x)^{-1/2} \big) \big| = \big| \frac{1}{2} f^{\prime\prime\prime}(x) f^{\prime \prime}(x)^{-3/2} \big| \leqslant 1,
which allows to define upper and lower bounds on f′′(x)f^{\prime \prime}(x) by integration, as, for x>0x > 0,
–x⩽f′′(x)−1/2 –f′′(0)−1/2⩽x,– x \leqslant f^{\prime\prime}(x)^{-1/2} \, – f^{\prime\prime}(0)^{-1/2} \leqslant x,
which can be transformed into (by isolating f′′(x)f^{\prime\prime}(x)):
f′′(0)(1+xf′′(0)1/2)2⩽f′′(x)⩽f′′(0)(1–xf′′(0)1/2)2.(3)\tag{3} \frac{f^{\prime\prime}(0)}{\big(1 + x f^{\prime\prime}(0)^{1/2}\big)^2} \leqslant f^{\prime\prime}(x) \leqslant \frac{f^{\prime\prime}(0)}{\big(1 – x f^{\prime\prime}(0)^{1/2}\big)^2}.
We thus obtain global upper and lower bounds on f′′(x)f^{\prime\prime}(x).

We can then integrate Eq. (3) twice between 00 and xx to obtain lower and upper bounds on f′f^\prime and then ff:

−f′′(0)1/2+f′′(0)1/21+xf′′(0)1/2⩽f′(x)−f′(0)⩽−f′′(0)1/2+f′′(0)1/21−xf′′(0)1/2,-f^{\prime\prime}(0)^{1/2} + \frac{f^{\prime\prime}(0)^{1/2}}{1+x f^{\prime\prime}(0)^{1/2}} \leqslant f^\prime(x)-f^\prime(0) \leqslant -f^{\prime\prime}(0)^{1/2} + \frac{f^{\prime\prime}(0)^{1/2}}{1-x f^{\prime\prime}(0)^{1/2}},
and
ρ(–f′′(0)1/2x)⩽f(x) –f(0) –f′(0)x⩽ρ(f′′(0)1/2x),(4)\tag{4} \rho \big( – f^{\prime\prime}(0)^{1/2} x \big) \leqslant f(x) \ – f(0) \ – f^\prime(0) x \leqslant \rho \big( f^{\prime\prime}(0)^{1/2} x \big),
with ρ(u)= –log⁡(1−u) –u∼u22\displaystyle \rho(u) =\ – \log(1-u) \ – u \sim \frac{u^2}{2} when u→0u\to 0, that is, the second-order expansion is tight at x=0x =0, but leads to global lower and upper bounds. This upper-bound is valid as long as δ=f′′(0)1/2x∈[0,1]\delta = f^{\prime\prime}(0)^{1/2} x \in [0,1], while the lower-bound on ff is always true. The function ρ\rho is plotted below.

Properties in multiple dimensions. The properties above in Eq. (3) and (4) directly extend to multiple dimensions. For any x∈Cx \in C, then for any Δ∈Rd\Delta \in \mathbb{R}^d such that δ2=Δ⊤f′′(x)Δ<1\delta^2 = \Delta^\top f^{\prime\prime}(x) \Delta < 1, we have upper and lower bounds for the Hessian, the gradient and the functions value at x+Δx + \Delta, that is, denoting by ∥⋅∥\| \cdot \| the standard Euclidean norm (see detailed proofs at the end of the post)

(1−δ)2f′′(x)≼f′′(x+Δ)≼1(1−δ)2f′′(x),(5)\tag{5}(1-\delta)^2 f^{\prime \prime}(x) \preccurlyeq f^{\prime \prime}(x+\Delta) \preccurlyeq \frac{1}{(1-\delta)^2} f^{\prime \prime}(x),
∥f′′(x)−1/2(f′(x+Δ)−f′(x)−f′′(x)Δ)∥⩽δ21−δ,(6)\tag{6}\big\| f^{\prime\prime}(x)^{-1/2} \big(f^\prime(x+\Delta)-f^\prime(x) -f^{\prime \prime}(x)\Delta \big) \big\| \leqslant \frac{\delta^2}{1-\delta},
and
ρ(−δ)⩽f(x+Δ) −f(x) –f′(x)⊤Δ⩽ρ(δ).(7)\tag{7} \rho(-\delta) \leqslant f(x+\Delta)\ -f(x) \ – f^\prime(x)^\top \Delta \leqslant \rho(\delta).
A nice consequence is that if δ<1\delta < 1, then x+Δ∈Cx+\Delta \in C, that is, we get “for free” a feasible point. Moreover, these approximations are “second-order tight” at Δ=0\Delta=0, that is, the term in f′′(x)f^{\prime\prime}(x) in Taylor expansion around xx is exact.

Dikin ellipsoid. The condition that δ2=Δ⊤f′′(x)Δ<1\delta^2 = \Delta^\top f^{\prime\prime}(x) \Delta < 1 defines an ellipsoid around xx which is always strictly inside the domain of ff (see example in the plot below). The results above essentially state that when inside the Dikin ellipsoid, the locally quadratic approximation can be used.

Dikin ellipsoids for the function f(x)=∑i=1klog⁡(bi–ai⊤x)f(x) = \sum_{i=1}^k \log (b_i – a_i^\top x), which is self-concordant with a domain which is a polytope.

In this post, I will focus primarily on the use self-concordant functions in optimization through the analysis of Newton method.

Why should you care about Newton method?

  1. For fun: Newton method is one of the classics of optimization!
  2. For high precisions: as we will see, it is quadratically convergent and attains machine precision after solving a few linear systems.
  3. Even in high dimensions where the linear system can be expensive, Newton method may still be the method of choice for severely ill-conditioned problems where even accelerated first-order methods are too slow to obtain low precision solutions.
  4. It sometimes comes for free in situations where gradients are expensive to evaluate compared to dd.

Classical analysis of Newton method

Given a function f:Rd→Rf: \mathbb{R}^d \to \mathbb{R}, Newton method is an iterative optimization algorithm consisting in locally approximating the function ff around the iterate xtx_{t} by a second-order Taylor expansion

f(xt)+f′(xt)⊤(x−xt)+12(x−xt)⊤f′′(xt)(x–xt),f(x_t) + f^\prime(x_t)^\top(x-x_t) + \frac{1}{2} (x-x_t)^\top f^{\prime \prime}(x_t) ( x – x_t),
whose minimum can be found in closed form as
xt+1=xt –f′′(xt)−1f′(xt).(8)\tag{8} x_{t+1} = x_t \ – f^{\prime \prime}(x_t)^{-1} f^{\prime}(x_t).

Quadratic approximation and Newton step (in green) for varying starting points (in red). When the starting point is far from the global minimizer (in 0), the Newton step totally overshoots the global minimizer.

Newton method is classically analyzed for three times differentiable convex functions with bounded Hessians and third-order derivatives. The method is only locally convergent, that is, far away from the global minimizer x∗x_\ast (even for very regular convex function), the method may diverge. In the non-convex setting, this leads to nice fractal plots, but even for convex functions, the method can be unstable (see plot above).

Locally, it is quadratically convergent, that is, there exists c>0c>0, such that if ∥xt –x∗∥⩽c\| x_t \ – x_\ast\| \leqslant c, then ∥xt+1 –x∗∥/c⩽(∥xt –x∗∥/c)2\| x_{t+1} \ – x_\ast \| /c \leqslant \big( \|x_t\ – x_\ast\| / c \big)^2. Roughly, the number of significant digits doubles at every iteration.

This leads to

∥xt –x∗∥⩽c(∥xt0 –x∗∥/c)2t−t0,\| x_{t} \ – x_\ast \| \leqslant c \big( \|x_{t_0} \ – x_\ast\| / c \big)^{2^{t-t_0}} ,
for t⩾t0t \geqslant t_0 and t0t_0 an index for which ∥xt0 –x∗∥⩽c\| x_{t_0} \ – x_\ast\| \leqslant c. It is less than ε\varepsilon, as soon as 2t−t0log⁡(c/∥xt0–x∗∥)⩾log⁡(c/ε)2^{t-t_0} \log ( c / \| x_{t_0} – x_\ast \| ) \geqslant \log ( c / \varepsilon), that is,
t⩾t0+log⁡log⁡(c/ε)log⁡2 –log⁡log⁡(c/∥xt0–x∗∥)log⁡2.t \geqslant t_0 + \frac{ \log \log ( c / \varepsilon)}{ \log 2} \ – \frac{\log \log ( c / \| x_{t_0} – x_\ast \| )}{\log 2}.

That is, once we enter the quadratic phase, we obtain a number of iterations in log⁡log⁡(1/ε)\log \log ( 1/ \varepsilon), that is, only very few iterations. For example, for ε=10−16\varepsilon = 10^{-16}, log⁡log⁡(1/ε)⩽4\log \log ( 1/ \varepsilon) \leqslant 4.

Two major issues may be solved elegantly using self-concordant analysis:

  1. Dealing with the two phases of Newton method, the quadratically convergent final phase, as well as the initial phase.
  2. Obtaining convergence rates which are affine-invariant, that is, minimizing f(x)f(x) of f(Ax+b)f(Ax+b) for AA an invertible matrix should lead to exactly the same convergence rate (this is not the case for the classical analysis, where for example the constant cc depends on non affine-invariant quantities).

Self-concordant analysis of Newton method

Consider f:C→Rf: \mathcal{C} \to \mathbb{R} which is self-concordant. Since Newton method in Eq. (8) is not globally convergent, we need to study a version where the Newton step is performed partially. There are several possible strategies. Here I present the so-called “damped Newton” iteration and thus study the iteration

x+=x –11+λ(x)f′′(x)−1f′(x),x^+ = x\ – \frac{1}{1+\lambda(x)} f^{\prime \prime}(x)^{-1} f^\prime(x),
where we define the “Newton decrement” λ(x)\lambda(x) at x∈Cx \in C, as
λ2=λ(x)2=f′(x)⊤f′′(x)−1f′(x)=∥f′′(x)−1/2f′(x)∥2.\lambda^2 = \lambda(x)^2 =f^\prime(x)^\top f^{\prime \prime}(x)^{-1} f^\prime(x) = \|f^{\prime \prime}(x)^{-1/2} f^\prime(x) \|^2.

The Newton decrement is a key quantity in the analysis of Newton method, as 12λ(x)2\frac{1}{2} \lambda(x)^2 is exactly the decrease in the quadratic approximation obtained by a full Newton step. Moreover,

  1. If λ(x)<1\lambda(x) < 1, then x+x^+ is in the Dikin ellipsoid where we can expect the local quadratic approximation to be relevant.
  2. If λ(x)<1\lambda(x) < 1, then one can show that f(x) –f(x∗)⩽ρ(λ(x))∼12λ(x)2f(x) \ – f(x_\ast) \leqslant \rho( \lambda(x)) \sim \frac{1}{2} \lambda(x)^2 when λ(x)\lambda(x) is close to zero, that is, the Newton decrement provides an upper bound on the distance to optimum.

The update corresponds to Δ= –11+λ(x)f′′(x)−1f′(x)\Delta = \ – \frac{1}{1+\lambda(x)} f^{\prime \prime}(x)^{-1} f^\prime(x), and δ=λ(x)1+λ(x)∈[0,1]\delta = \frac{\lambda(x)}{1+\lambda(x)} \in [0,1], thus x+x^+ is automatically feasible (which is important for constrained case, see below).

Moreover, using Eq. (7), we get

f(x+)−f(x)⩽ –f′(x)⊤f′′(x)−1f′(x)1+λ(x)+ρ(λ(x)1+λ(x))=log⁡(1+λ(x)) –λ(x).f(x^+)-f(x) \leqslant \ – \frac{f^\prime(x)^\top f^{\prime \prime}(x)^{-1} f^\prime(x)}{1+\lambda(x)} + \rho \Big( \frac{\lambda(x)}{1+\lambda(x)} \Big) = \log (1+ \lambda(x)) \ – \lambda(x).
This immediately leads to a fixed decrease of 14 –log⁡54⩾0.0268\frac{1}{4} \, – \log \frac{5}{4} \geqslant 0.0268 if λ(x)⩾14\lambda(x) \geqslant \frac{1}{4}.

We can now compute the Newton decrement at x+x^+, to see how it decreases, by first bounding

λ(x+)=∥f′′(x+)−1/2f′(x+)∥⩽11−δ∥f′′(x)−1/2f′(x+)∥,\lambda(x^+) =\|f^{\prime \prime}(x^+)^{-1/2} f^\prime(x^+) \| \leqslant \frac{1}{1-\delta} \|f^{\prime \prime}(x)^{-1/2} f^\prime(x^+) \|,
using Eq. (5). We then have, using Eq. (6):
∥f′′(x)−1/2f′(x+)∥⩽∥f′′(x)−1/2(f′(x)+f′′(x)Δ)∥+δ21−δ⩽λ(x)21+λ(x)+δ21−δ.\|f^{\prime \prime}(x)^{-1/2} f^\prime(x^+) \| \leqslant \big\| f^{\prime \prime}(x)^{-1/2} \big( f^\prime(x) + f^{\prime\prime}(x) \Delta \big) \big\| + \frac{\delta^2}{ 1-\delta } \leqslant \frac{\lambda(x)^2}{1+\lambda(x)} + \frac{\delta^2}{ 1-\delta }.
This exactly leads to
λ(x+)⩽2λ(x)2,\lambda(x^+) \leqslant 2 \lambda(x)^2,
which leads to quadratic convergence if λ(x)\lambda(x) is small enough.

We can then divide the analysis in two phases: before λ(x)⩽1/4\lambda(x) \leqslant 1/4 and after. The first integer t0t_0 such that λ(x)⩽1/4\lambda(x) \leqslant 1/4 is less than f(x0)–f(x∗)0.0268⩽38[f(x0)–f(x∗)]\frac{ f(x_0) – f(x_\ast)}{0.0268} \leqslant 38 [ f(x_0) – f(x_\ast) ]. Then, for the second phase, 2λ(xt)⩽(1/2)2t−t02\lambda(x_t) \leqslant (1/2)^{2^{t-t_0}}. Given that for λ⩽1/4\lambda \leqslant 1/4, ρ(λ)⩽2λ\rho(\lambda) \leqslant 2\lambda, we reach precision ε\varepsilon as soon as 2t−t0log⁡2⩾log⁡1ε2^{t-t_0} \log 2 \geqslant \log \frac{1}{\varepsilon}, that is, t⩾t0+1log⁡2log⁡log⁡1ε−1t \geqslant t_0 + \frac{1}{\log 2} \log \log \frac{1}{\varepsilon} -1. This leads to number of iterations to reach a precision ε\varepsilon which is less than

38[f(x0) –f(x∗)]+2log⁡log⁡1ε.38[ f(x_0) \ – f(x_\ast)] +2 \log \log \frac{1}{\varepsilon}.

Interior point methods

Self-concordant functions are also key in the analysis of interior point methods. Consider a function ff defined on Rd\mathbb{R}^d and the constrained optimization problem

min⁡x∈Cf(x),\min_{ x \in C} f(x),
where CC is a convex set. Barrier methods are appending a so-called “barrier function” g(x)g(x) to the objective function. A function gg is a barrier function if gg is convex and with domain containing the relative interior of CC, with gradients that explode when reaching the boundary of CC. We then solve instead
min⁡x∈Rdε−1f(x)+g(x),(9)\tag{9} \min_{x \in \mathbb{R}^d} \varepsilon^{-1} f(x) + g(x),
where ε>0\varepsilon > 0. Typically, the minimizer xεx_\varepsilon is in the relative interior of CC (hence the name interior point method), and, when ε\varepsilon tends to zero, xεx_\varepsilon tends to the minimizer of ff on CC.

When both the original function ff and the barrier function gg are self-concordant, the (damped) Newton method is particularly useful as it ensures feasibility of the iterates. Moreover, the interplay between the progressive reduction of ε\varepsilon towards zero and the approximate resolution of Eq. (9) can be completely characterized (see [3, 4, 5]). This applies directly to linear programming, second-order cone programming and semidefinite programming.

Applications in machine learning

If you have reached this point, you are probably a big fan of self-concordance. While this property is crucial in optimization, is it really relevant for machine learning or statistics? The sad truth is that most of the non-quadratic functions within machine learning are not self-concordant in the sense of Eq. (1) or Eq. (2). In particular, log-sum-exp functions, such that the logistic loss f(t)=log⁡(1+exp⁡(−t))f(t) = \log( 1 + \exp(-t) ), do satisfy a relationship between third and second-order derivatives, but of the form

∣f′′′(t)∣⩽f′′(t),| f^{\prime \prime \prime}(t)| \leqslant f^{\prime \prime }(t),
without the power 3/23/2. This seemingly small difference leads to several variations [7] which will the topic of next month blog post. Meanwhile, it is worth mentioning two applications in machine learning of classical self-concordance.

Maximum likelihood estimation for covariance matrices. Beyond its use in interior point methods, self-concordant functions arise naturally when estimating the covariance matrix using maximum likelihood estimation with a Gaussian model. Indeed, the negative log-likelihood can be written as

–log⁡p(x∣μ,Σ)=d2log⁡(2π)+12log⁡det⁡Σ+12(x−μ)⊤Σ−1(x–μ),– \log p (x| \mu ,\Sigma) =\frac{d}{2} \log(2\pi) + \frac{1}{2} \log \det \Sigma + \frac{1}{2} ( x -\mu)^\top \Sigma^{-1} ( x – \mu),
which leads to a negative log-determinant of the inverse Σ−1\Sigma^{-1} of the covariance matrix Σ\Sigma, which is a self-concordant function, on which the guarantees discussed above apply.

Self-concordant losses. One can also design losses which are self-concordant. For example, a self-concordant version of the Huber loss is

f(t)=1+t2 –1 –log⁡1+t2+12.f(t) = \sqrt{1+t^2} \ – 1 \ – \log \frac{ \sqrt{1+t^2} +1 }{2} .
It can be seen as the Fenchel-conjugate of –log⁡(1−t2)– \log(1-t^2), and the proximity with a quadratic problem can be leveraged to obtain generalization performances using this loss function which are essentially the same as for the square loss. It can also be used for binary classification (see [8] for details, and the two nice blog posts of Dmitrii Ostrovskii).

One-step-estimation. Given the focus of this post on Newton method, I cannot resist mentioning a great technique coming from statistics that relies on a single Newton step. We consider a classical empirical risk minimization problem (statisticians would call it an M-estimation problem), with empirical risk R^(θ)=1n∑i=1nℓ(yi,fθ(xi))\displaystyle \widehat{R}(\theta) = \frac{1}{n} \sum_{i=1}^n \ell(y_i, f_\theta(x_i) ). Given an estimator θ^\hat{\theta}, obtained by any means, then if θ^\hat{\theta} is 1n\frac{1}{\sqrt{n}} away from the optimal parameter (with optimal performance on unseen data), then one Newton step on the function R^\widehat{R} started from θ^\hat{\theta} will lead to an estimator achieving asymptotically the usual Cramer-Rao lower bound. In a nutshell, a single Newton step on the empirical risk transforms a good estimator into a very good estimator. See [9, Section 5.7] for more details.

Acknowledgements. I would like to thank Adrien Taylor and Dmitrii Ostrovskii for proofreading this blog post and making good clarifying suggestions.

References

[1] F. Bach and E. Moulines. Non-strongly-convex smooth stochastic approximation with convergence rate O(1/n)O(1/n). Advances in Neural Information Processing Systems (NIPS), 2013. [2] Andrea Caponnetto, Ernesto De Vito. Optimal rates for the regularized least-squares algorithm. Foundations of Computational Mathematics 7(3):331-368, 2007. [3] Yurii Nesterov, and Arkadii Nemirovskii. Interior-Point Polynomial Algorithms in Convex Programming, SIAM, 1994. [4] Arkadii Nemirovski. Interior Point Polynomial Time Methods in Convex Programming. Lecture notes, 1996. [5] Yurii Nesterov. Lectures on Convex Optimization (Vol. 137). Springer, 2018. [6] Stephen P. Boyd, and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004. [7] Francis Bach. Self-Concordant Analysis for Logistic Regression. Electronic Journal of Statistics, 4, 384-414, 2010 [8] Dmitrii Ostrovskii, and Francis Bach. Finite-sample Analysis of M-estimators using Self-concordance. Electronic Journal of Statistics, 15(1):326-391, 2021. [9] Aad W. Van der Vaart. [Asymptotic Statistics](http://Aad W. Van der Vaart. Asymptotic Statistics), volume 3. Cambridge University Press, 2000.

Detailed proofs for self-concordance properties

We first show Eq. (7), by considering the function a(t)=f(x+tΔ)a(t) = f(x+t\Delta), which is a one-dimensional self-concordant function, for which a′(t)=Δ⊤f′(x+tΔ)a^\prime(t) = \Delta^\top f^\prime(x+t\Delta), and a′′(t)=Δ⊤f′′(x+tΔ)Δa^{\prime\prime}(t) = \Delta^\top f^{\prime\prime}(x+t\Delta) \Delta. Then a′′(0)=δ2a^{\prime\prime}(0) = \delta^2, and Eq. (4) for x=1x=1 and aa exactly leads to Eq. (7).

In order to show Eq. (5), we consider h∈Rdh \in \mathbb{R}^d, and the function b(t)=h⊤f′′(x+tΔ)hb(t) = h^\top f^{\prime\prime}(x+t\Delta) h. We have, b′(t)=f′′′(x+tΔ)[h,h,Δ]b'(t) = f^{\prime\prime\prime}(x+t\Delta)[h,h,\Delta], which can be bounded using Eq. (2) as

∣b′(t)∣⩽2f′′(x+tΔ)[h,h]f′′(x+tΔ)[Δ,Δ]1/2=2b(t)a′′(t)1/2⩽2b(t)δ1−tδ,|b'(t) | \leqslant 2 f^{\prime\prime}(x+t\Delta)[h,h] f^{\prime\prime}(x+t\Delta)[\Delta,\Delta]^{1/2} = 2 b(t) a^{\prime \prime}(t)^{1/2} \leqslant 2 b(t) \frac{\delta}{1-t\delta},
using Eq. (3). This implies that for δt∈[0,1)\delta t \in [0,1):
ddt[(1−δt)2b(t)]=−2δ(1−δt)b(t)+(1−δt)2b′(t)⩽0,\frac{d}{dt} \big[ (1-\delta t)^2 b(t) \big] = -2\delta (1-\delta t) b(t) + (1-\delta t)^2 b'(t) \leqslant 0,
which implies b(t)⩽b(0)(1−δt)2=h⊤f′′(x)h(1−δt)2b(t) \leqslant \frac{b(0)}{(1-\delta t)^2} = \frac{h^\top f^{\prime\prime}(x) h}{(1-\delta t)^2}, which leads to the right-hand side of Eq. (5) since this is true for all h∈Rdh \in \mathbb{R}^d. The left-hand side is proved similarly.

In order to show Eq. (6), we consider the function g(t)=h⊤f′(x+tΔ)g(t) = h^\top f^\prime(x+t\Delta), for which, g′(t)=h⊤f′′(x+tΔ)Δg^\prime(t) = h^\top f^{\prime\prime}(x+t\Delta) \Delta, and g′′(t)=f′′′(x+tΔ)[h,Δ,Δ]g^{\prime\prime}(t) = f^{\prime\prime\prime}(x+t\Delta) [h,\Delta,\Delta], which satisfies:

∣g′′(t)∣⩽2f′′(x+tΔ)[Δ,Δ]f′′(x+tΔ)[h,h]1/2⩽2b(t)1/2a′′(t).|g^{\prime\prime}(t)| \leqslant 2 f^{\prime\prime}(x+t\Delta)[\Delta,\Delta] f^{\prime\prime}(x+t\Delta)[h,h]^{1/2} \leqslant 2 b(t)^{1/2} a^{\prime \prime}(t).
This leads to
∣g′′(t)∣⩽2(h⊤f′′(x)h)1/2δ2(1−δt)3.|g^{\prime\prime}(t)| \leqslant 2 \big( h^\top f^{\prime\prime}(x) h\big)^{1/2} \frac{\delta^2}{(1-\delta t)^3}.
We can then integrate twice, using g(0)=h⊤f′(x)g(0) = h^\top f^\prime(x) and g′(0)=h⊤f′′(x)Δg^\prime(0) = h^\top f^{\prime\prime}(x) \Delta, to get:
h⊤(f′(x+tΔ)−f′(x) –f′′(x)Δ)⩽(h⊤f′′(x)h)1/2δ21−δ,h^\top \big(f^\prime(x+t\Delta)-f^\prime(x) \ – f^{\prime \prime}(x)\Delta \big) \leqslant \big( h^\top f^{\prime\prime}(x) h\big)^{1/2} \frac{\delta^2}{1-\delta},
which leads to Eq. (5) after maximizing with respect to hh.