# On self-concordant convergence

In the post Feasibility is optimal I suggested introducing a new barrier function to guarantee faster convergence towards the analytical center of a polytope. This turns out to be unnecessary or even detrimental, and in this post I will get into why. This post also presents a potentially new result relating to convergence for a class of central path methods for linear programming which I will call medium-step methods.

After digging around for literature on self-concordant functions I came across the book Convex Programming by Stephen Boyd and Lieven Vandenberghe. Chapter 9 of the book deals precisely with the kind of problem I'm wanting to solve, especially section 9.6.

I will also use the paper A polynomial-time algorithm, based on Newton's method, for linear programming by James Renegar. Using the notation from Renegar, the iteration bound on page 505 in Convex Programming, using optimal line search and 64-bit floating point accuracy, becomes:

$20-21/4(1-1/2)2(f(ξ)-f(x0))+log2log2(1/2-53)≤288(f(x0)-f(ξ))+6$

All that remains is to work out a bound for $\mathrm{\Delta }=f\left({x}_{0}\right)-f\left(\xi \right)$. Remember that $f$ here is the barrier function, which we are minimizing. Large values of $\mathrm{\Delta }$ means slow convergence. In particular it is purely detrimental to add large quadratic terms as I suggested in the previous post. It may also be tempting to scale the barrier function down by some constant $r<1$ so as to reduce $\mathrm{\Delta }$ and thus the number of iterations, for example using $f\left(x\right)=r\phantom{\rule{0.167em}{0ex}}\mathrm{log}\phantom{\rule{0.167em}{0ex}}x$. But such scaling violates the self-concordance constraint that sits at the heart of the complexity analysis that Boyd and Vandenberghe (really Nesterov and Nemirovski) provides:

$|f′′′(x)|≤2f′′(x)3/2$

$2f′′(x)3/2=2r3/2(x2)3/2=2r3/2x3$

$|f′′′(x)|=2rx3$

$2rrx3≤2r3/2x3⇔1≤r$

which is violated for $r<1$. It also makes sense that this kind of scaling should provide no benefit due to the affine invariant nature of the Newton method.

Finally, Boyd and Vandenberghe claim that Nesterov and Nemirovski provide an even tighter bound on the number of iterations, but I do not have access to the relevant work. The following PDF on Nemirovski's website may contain relevant information but I have not read it yet: Interior point polynomial time methods in convex programming

## A conservative bound on Δ

To get started, let's borrow and adapt some of Renegar's notation. Renegar has the original system $A\phantom{\rule{0}{0ex}}x\ge b$ with $A\in {\mathbb{R}}^{m×n}$. So $x$ has $n$ dimensions, and we have $m$ inequalities. Renegar also introduces $l$ extra inequalities, each one a copy of ${c}^{T}\phantom{\rule{0}{0ex}}x\ge {k}^{\left(j\right)}$. These extra inequalities are moved forward at each step in the algorithm until we get close enough to the optimal solution. This is the "broom" I've written about earlier. Renegar ultimately uses $l=m$, but provides convergence analysis for other values of $l$ which shall become useful.

When modifying a constraint in a system let ${m}^{\prime }=m-1$ and $l=1$ where the latter corresponds to the constraint we are changing. Using $l>1$ would be useless in what follows, but I will try to preserve the analysis for other values of $l$ in case it is useful to someone.

Each step $j$ in the algorithm has an associated centroid ${\xi }^{\left(j\right)}$. Define the function ${\mathbf{\text{X}}}^{\left(j\right)}\left(x\right)$ as follows:

$Xi(j)(x)=aiTx-biaiTξ(j)-bi$

where $1\le i\le {m}^{\prime }$ correspond to the constraints that are not changing and ${m}^{\prime }+1\le i\le {m}^{\prime }+l$ to the one that does change (and copies of it, if any). In other words $\mathbf{\text{X}}\left(x\right)$ normalizes the coordinates $A\phantom{\rule{0}{0ex}}x-b\in {\mathbb{R}}^{m}$ by dividing them elementwise by $A\phantom{\rule{0}{0ex}}{\xi }^{\left(j\right)}-b$. This means that ${\mathbf{\text{X}}}^{\left(j\right)}\left({\xi }^{\left(j\right)}\right)=e$ where $e$ is all ones. Renegar also shows that ${e}^{T}\mathbf{\text{X}}\left(x\right)=m={m}^{\prime }+l$ for all feasible $x$.

If we move the constraint some fraction $\delta <1$ towards ${\xi }^{\left(j\right)}$, and if we started with a perfectly centered system ($\alpha ={\parallel {\mathbf{\text{X}}}^{\left(j\right)}\left({\xi }^{\left(j\right)}\right)-e\parallel }_{2}=0$) then Renegar shows that the distance from this point to the center of the new system ($\beta ={\parallel {\mathbf{\text{X}}}^{\left(j+1\right)}\left({\xi }^{\left(j\right)}\right)-e\parallel }_{2}$) is bounded by

$β2-lδ21-δβ-lδ21-δ≤0$

For $l=1$ this inequality has the solution

$β≤δ1-δ$

And for $l\gg 1$ and $\delta$ not too small it is roughly

$β≲lδ21-δ$

If for example $\delta =1/3$ and $l=1$ then $\beta =1/2$. Note that we can never perfectly center any system due to limited machine precision, so in reality $\alpha$ is somewhere around $ϵ\sqrt{m}$. This turns out to not matter in this case - this small extra contribution gets rounded off in the end.

The question now is how large can $\mathrm{\Delta }$ actually be? Let's first express it in terms of $\mathbf{\text{X}}$:

$Δ=[-∑ilog(aiTξ(j)-bi)]-[-∑ilog(aiTξ(j+1)-bi)]$

$=-∑ilog(aiTξ(j)-biaiTξ(j+1)-bi)$

$=-∑ilog(Xi(j+1)(ξ(j)))$

Let's further introduce $V={\mathbf{\text{X}}}^{\left(j+1\right)}\left({\xi }^{\left(j\right)}\right)-e$, meaning we have:

$Δ=-∑ilog(1+Vi)$

Note that the sum over all elements in $V$ is zero (${e}^{T}\phantom{\rule{0}{0ex}}V=0$). Negative elements in $V$ contribute positively to $\mathrm{\Delta }$ (meaning raising it, worsening the iteration bound) whereas positive elements contribute negatively (improving the iteration bound).

We may obtain a simple upper bound for $\mathrm{\Delta }$ by first bounding $\delta \le 1/3$ and therefore $\beta \le 1/2$. If we desire to move the constraint further than $\delta =1/3$ then we can do so in multiple steps. Next let $V$ have exactly one negative element, $-\beta$, and let's pretend that all other elements are zero. This cannot actually happen due to the zero sum constraint, so this upper bound is very conservative. We therefore have

$Δ≤-log(1-β)=log2≈0.6931$

Because of the convexity and strictly decreasing nature of $-\mathrm{log}\left(1+{V}_{i}\right)$ there is no combination of two or more negative elements that will yield a higher upper bound on $\mathrm{\Delta }$. We therefore have

$#Iterations≤⌈288log(2)+6⌉=206$

This is already a useful result because it means we can move any constraint a substantial portion of the distance to the current center, and recenter the system in a reasonable amount of time. In particular we do not have to perform $O\left(\sqrt{m}\right)$ Newton steps as we would otherwise expect. Note that this does not help solve LP faster in general, because setting $l=1$ means overall convergence with respect to some objective function is slow. Using assumption (3.2) of Renegar with $\alpha$ explicit:

$kopt-k(j)≤(1-(1-α)δlm′+l)j(kopt-k(0))$

With $\delta =1/3$, $l=1$ and $\alpha =0$:

$kopt-k(j)≤(1-13m′+3)j(kopt-k(0))$

Which means that for every bit of desired accuracy we need to perform

$j≈(3m′+3)log2≈2m$

iterations, each one consisting of up to 206 Newton steps. Letting $l=m$ and $\delta =1/\left(13\sqrt{m}\right)$ on the other hand results in only

$j≈28mlog2≈20m$

iterations, each one only a single Newton step. We cannot use say $\delta =1/13$ with $l=m$ because then $\beta \approx m/156$ and $\mathrm{\Delta }$ will become large.

## An even better bound on Δ

By making use of the sum constraint we can improve the bound on Δ.

Let $V\in {\mathbb{R}}^{m}$ be the vector with a single negative element, all other elements positive and equal and ${\parallel V\parallel }_{2}=\beta$. For convenience let

$a=β1m(m-1)$

then

$V=(-(m-1)a,a,…,a)$

Clearly ${e}^{T}\phantom{\rule{0}{0ex}}V=0$, and

$∥V∥22=β2(m-1)2+m-1m(m-1)=β2$

To see whether $V$ maximizes $\mathrm{\Delta }$ let us evaluate the gradient of the barrier function at $V$ projected onto the null space of $e$. First the unprojected gradient:

$g=∇f(V)=(-11-(m-1)a,-11+a,…,-11+a)$

We can perform the above mentioned projection by subtracting the average of the entries in $g$ from $g$ itself:

$ĝ=g-e1m(-11-(m-1)a+-(m-1)1+a)$

$=g-e1m(-(1+a)-(m-1)(1-(m-1)a)(1-(m-1)a)(1+a))$

$=g-e1m(((m-1)2-1)a-m(1-(m-1)a)(1+a))$

$=g-e(m-2)a-1(1-(m-1)a)(1+a)$

$=(-11-(m-1)a-(m-2)a-1(1-(m-1)a)(1+a),-11+a-(m-2)a-1(1-(m-1)a)(1+a),…)$

$=1(1-(m-1)a)(1+a)(-(1+a)-(m-2)a+1,-(1-(m-1)a)-(m-2)a+1,…)$

$=1(1-(m-1)a)(1+a)(-(m-1)a,a,…,a)$

In other words:

$ĝ=1(1-(m-1)a)(1+a)V$

But because $V$ butts up against and is perpendicular to the ${\parallel V\parallel }_{2}=\beta$ constraint, and $\stackrel{̂}{g}$ points in the same direction as $V$, therefore $V$ is locally optimal. Whether it is globally optimal is something that I conjecture is true, but I cannot prove it at present. At least one other local optimum exist, $a=-\beta /\sqrt{m\left(m-1\right)}$ (signs merely flipped), but it can be shown to be inferior to its negative, as we shall soon see. Moving on, we have the following conjectural bound:

$Δ≤-log(1-βm-1m)-(m-1)log(1+β1m(m-1))$

And in the limit:

$limm→∞Δ≤-log(1-β)-β$

Because we have limited $\beta \le 1/2$ we therefore have

$Δ≤log(2)-12≈0.1931$

If we use $a$ with signs flipped we instead get $-\mathrm{log}\left(1+\beta \right)+\beta \approx 0.094535$, which is inferior as previously stated. The iteration bound therefore, conjecturally, improves to:

$#Iterations≤⌈288(log(2)-12)+6⌉=62$

We can do even better by optimizing the choice of $\delta$. The following Octave code shows that $\delta =1/6$ is optimal:

octave:58> d=0.01:0.001:0.4; b=d./(1-d); it=(ceil(288*(-log(1-b)-b))+6).*ceil(1./d/3); plot(d,it); [i,j] = min(it); it(j), d(j)
ans = 26
ans = 0.1670 So as few as $2*13=26$ Newtons steps will perform the same job that would otherwise require 62 steps with $\delta =1/3$. So conjecturally we are nearly an order of magnitude faster than the 206 figure in the previous section.

## Medium-step

The term medium-step comes about for two reasons: the existence of the term long-step in the literature and the much shorter steps taken in Renegar's paper compared to what is done here.

Renegar uses $\delta =1/\left(13\sqrt{m}\right)$ whereas I use $\delta =1/6$ above. We could therefore call Renegar's $\delta$ short-step. It requires $O\left(L\sqrt{m}\right)$ iterations. On the other extreme, the type of predictor-corrector methods often used in practice are known as long-step methods. They use $\delta \gg 1$, sometimes stepping as far as 99.9% of the distance to the boundary of the system. Todd and Ye demonstrate that these methods have worst-case performance of $\mathrm{\Omega }\left(L\sqrt{m}\right)$ and, if I understand correctly, they remain $O\left(L\sqrt{m}\right)$.

Because the $\delta$ chosen above is inbetween these two extremes I have chosen to call the method medium-step. Note again that this result is only useful if we seek to remain in the center of a linear program. It is not useful if one seeks to optimize some objective function ${c}^{T}\phantom{\rule{0}{0ex}}x$.

## Future work

Further theoretical improvements could be made by analyzing what I will call medium-step predictor-corrector methods. By computing the tangent to the central path using a short step, a line search can be performed for finding a better initial guess in the system updated with $\delta =1/6$. This is likely to bring down the number of Newton steps. By how much I am not sure. Note that computing this tangent itself costs a small number of Newton steps. On the other hand the system is likely to be better conditioned compared to just after a medium-step update, meaning these Newton steps are cheaper to compute.

## Closing remarks

I started writing this post around 2023-03-05, so in total I've been obsessing about this specific problem for roughly seven weeks. Initially I thought I had a much stronger result than I actually do, so quite a bit of time was spent making sure I don't overstate the result. In the process I've learned even more about barrier methods and self-concordant functions.