BackTracking
BackTracking searches along a given direction for a step size that satisfies an Armijo-type sufficient decrease condition in every objective. Rejected steps are reduced by safeguarded quadratic interpolation.
Overview
Let $F=(F_1,\ldots,F_m):\mathbb{R}^n\to\mathbb{R}^m$ be the objective map, let $x$ be the current point and let $d(x)$ be a search direction at $x$. Along $d(x)$, write
\[\phi_i(\alpha)=F_i(x+\alpha d(x)),\qquad i=1,\ldots,m.\]
BackTracking uses only the values $\phi_i(\alpha)$ returned by the caller's evaluator at trial steps, together with two inputs from the caller: a decrease factor (factor), either one scalar $\eta<0$ or one value $\eta_i<0$ per objective, and one slope $s_i$ per objective (slopes). Two optional inputs change a single execution: a reference vector $R$ (reference) for nonmonotone searches and an initial step (alpha0). It computes no derivatives and makes no assumption about $F$, such as differentiability or convexity. The meaning of $\eta$ and $s_i$ is set by the method that calls the search; Armijo-type conditions in the literature shows the choices made in the cited works.
| Option | Default | Meaning |
|---|---|---|
initial_step | InitialStatic(alpha=1.0) | First trial step of each search |
c_1 | 1e-4 | Sufficient decrease coefficient |
tau_1 | 0.05 | Lower safeguard $\tau_1$ of the quadratic interpolation |
tau_2 | 0.95 | Upper safeguard $\tau_2$ of the quadratic interpolation |
minstep | 1e-15 | A reduced step at or below this value ends the search |
maxstep | 1.0 | Upper bound for the initial step |
max_iters | 1000 | Maximum number of step reductions |
verbose | 0 | 1 logs the final diagnostic with @info |
configure_linesearch converts the options to the element type T and checks that $0<c_1<1$, that $0<\tau_1\leq1/2\leq\tau_2<1$, that minstep, maxstep and the initial step are finite, that 0 < minstep < maxstep, and that minstep <= initial_step.alpha <= maxstep. Preparation uses the initial x/Fx prototypes to infer T and allocates independent point/value buffers with the evaluator stored in the prepared object. Steps only decrease during a search, so no trial step exceeds the fixed maxstep or the additional per-call consumer bound. See Using a line search.
Armijo-type condition
BackTracking accepts $\alpha>0$ when every $F_i(x+\alpha d(x))$ is finite and
\[F_i(x+\alpha d(x))\leq R_i+c_1\alpha\eta_i,\qquad i=1,\ldots,m,\]
where $\eta_i=\eta$ for a scalar factor and $\eta_i$ is the $i$-th entry of a vector factor. By default $R=F(x)$, the monotone case. A reference must be finite and satisfy $R_i\geq F_i(x)$ for every $i$; see Nonmonotone reference. For $m=1$, $R=F(x)$ and $\eta=\nabla F_1(x)^\mathsf{T}d(x)$, this is the Armijo condition of scalar optimization; see Nocedal and Wright [1], equation (3.4).
The multiobjective works cited here name their extensions of this condition differently: Fliege and Svaiter [2] call it an Armijo-like rule, Lucambio Pérez and Prudente [3] the Armijo condition for vector optimization, and Assunção, Ferreira and Prudente [4] an Armijo-type step size. This documentation uses Armijo-type condition.
When $F$ is differentiable, the generalized directional derivative of $F$ at $x$ along $d(x)$ is
\[\mathcal{D}(x,d(x))=\max_{1\leq j\leq m}\nabla F_j(x)^\mathsf{T}d(x),\]
see [3]. If $\mathcal{D}(x,d(x))<0$, then $d(x)$ is a descent direction for every objective.
BackTracking does not verify that the condition can be satisfied: with an arbitrary negative factor, the search may end with :minimum_step or :max_iterations. For each condition in Armijo-type conditions in the literature, the cited work shows that, under its assumptions, all sufficiently small steps are accepted.
Armijo-type conditions in the literature
The works below differ in the decrease term on the right-hand side of the condition. In all of them, $c_1\in(0,1)$.
One slope per objective
Fliege and Svaiter [2], Section 4, assume that $F$ is differentiable and that $\nabla F_i(x)^\mathsf{T}d(x)<0$ for all $i$, and accept $\alpha$ when
\[F_i(x+\alpha d(x))\leq F_i(x)+c_1\alpha\nabla F_i(x)^\mathsf{T}d(x), \qquad i=1,\ldots,m,\]
their equation (7). The search starts at $\alpha=1$ and halves $\alpha$ until (7) holds. Their Lemma 4 shows that (7) holds strictly for all sufficiently small $\alpha>0$.
Each objective has its own slope $s_i=\nabla F_i(x)^\mathsf{T}d(x)$ on the right-hand side. This is the BackTracking condition with the vector factor = slopes; with tau_1 = tau_2 = 0.5 and the default initial step $\alpha=1$, the trial steps are those of their search. The scalar choice $\eta=\mathcal{D}(x,d(x))$ gives $s_i\leq\eta$, so (7) implies the scalar condition; the converse does not hold in general, and the two choices may accept different steps.
The generalized directional derivative
Lucambio Pérez and Prudente [3] work in vector optimization, where vectors are compared through the partial order induced by a cone. In the multiobjective case this order is componentwise, and their Armijo condition, equation (6), reduces to equation (7) of Fliege and Svaiter [2]. Their Definition 3.1 introduces Wolfe conditions for vector optimization. With the choices the authors indicate for multiobjective problems, the sufficient decrease part of these conditions, (7a) and (8a), uses the generalized directional derivative as the common term:
\[F_i(x+\alpha d(x))\leq F_i(x)+c_1\alpha\mathcal{D}(x,d(x)), \qquad i=1,\ldots,m.\]
This is the BackTracking condition with $\eta=\mathcal{D}(x,d(x))$. The proof of their Proposition 3.2 shows that it holds for all sufficiently small $\alpha>0$ when $F$ is continuously differentiable, $\mathcal{D}(x,d(x))<0$ and $F$ is bounded below along $d(x)$. BackTracking checks only this decrease condition, not the curvature conditions (7b) or (8b).
Composite objectives
Assunção, Ferreira and Prudente [4] consider objectives $F_i=f_i+h_i$, where $f_i$ is continuously differentiable and $h_i$ is proper, convex and lower semicontinuous. At an iterate $x$, their generalized conditional gradient method computes, in equations (14) and (15),
\[\begin{aligned} p(x)&\in\operatorname*{argmin}_{u}\max_{1\leq j\leq m} \{h_j(u)-h_j(x)+\nabla f_j(x)^\mathsf{T}(u-x)\},\\ \theta(x)&=\max_{1\leq j\leq m} \{h_j(p(x))-h_j(x)+\nabla f_j(x)^\mathsf{T}(p(x)-x)\}, \end{aligned}\]
and uses the direction $d(x)=p(x)-x$. By their Lemma 3.1, $\theta(x)\leq0$, with equality if and only if $x$ is Pareto critical. Their Armijo-type step size (Section 4, steps LS0–LS2) starts at $\alpha=1$, accepts $\alpha$ when
\[F_i(x+\alpha d(x))\leq F_i(x)-c_1\alpha|\theta(x)|, \qquad i=1,\ldots,m,\]
and otherwise chooses the next step in $[\tau_1\alpha,\tau_2\alpha]$, with $0<\tau_1<\tau_2<1$. This is the BackTracking condition with $\eta=-|\theta(x)|$. Their Proposition 4.1 shows that, when $\theta(x)<0$, the condition holds for all $\alpha$ in an interval $(0,\bar\alpha]$ with $\bar\alpha\leq1$. With the default options, every trial step lies in $(0,1]$, the range of step sizes in their Algorithm 1. Every reduction made by BackTracking lies in $[\tau_1\alpha,\tau_2\alpha]$; see Quadratic interpolation and safeguards. The defaults $c_1=10^{-4}$, $\tau_1=0.05$ and $\tau_2=0.95$ are the values reported in their Section 5, where the line search is coded by quadratic interpolation of the coordinate functions.
The objectives $F_i$ need not be differentiable here, so the slopes used for interpolation are chosen by the caller, for example the directional derivatives $\nabla f_i(x)^\mathsf{T}d(x)$ of the differentiable parts.
Nonmonotone reference
Mita, Fukuda and Yamashita [5], Algorithm 3, extend the max-type nonmonotone line search to multiobjective optimization. With a nonnegative integer $M$ and $m(k)=\min(k,M)$, their equation (9) sets, at iteration $k$,
\[C_i^k=\max_{0\leq j\leq m(k)}F_i(x^{k-j}),\qquad i=1,\ldots,m,\]
the componentwise maximum over the last $m(k)+1$ iterates, and their equation (10) accepts a step when $F(x^k+\alpha d^k)\leq C^k+c_1\alpha JF(x^k)d^k$ componentwise. With $M=0$ this is the monotone condition (7) of Fliege and Svaiter. Their Lemma 5 gives $F(x^k)\leq C^k$.
BackTracking keeps no history between executions. The calling method stores the previous values, passes $R=C^k$ as reference and factor = slopes, and updates its history only after accepting a step. Since $R\geq F(x)$, every step accepted by the monotone condition is also accepted here. Interpolation still uses $\phi_j(0)=F_j(x)$, not $R_j$.
Initial step
The option initial_step fixes the first trial of every execution. The keyword alpha0 replaces it for one execution; it must satisfy minstep <= alpha0 <= maxstep after conversion. Steps that depend on previous iterates, such as the two-point step sizes of Barzilai and Borwein [6], are computed by the calling method and passed as alpha0; the fixed maxstep must then be large enough to admit them.
Quadratic interpolation and safeguards
Suppose a trial with finite values is rejected, and let $j$ be the first index, in increasing order, whose condition fails. With the current step $\alpha$ and the caller's slope $s_j$, BackTracking forms
\[q_j(t)=\phi_j(0)+s_jt+b_jt^2, \qquad b_j=\frac{\phi_j(\alpha)-\phi_j(0)-\alpha s_j}{\alpha^2},\]
so that $q_j(0)=\phi_j(0)$, $q_j'(0)=s_j$ and $q_j(\alpha)=\phi_j(\alpha)$. The stationary point of $q_j$ is
\[\widehat\alpha =-\frac{s_j\alpha^2} {2\,[\phi_j(\alpha)-\phi_j(0)-\alpha s_j]}.\]
The new step is $\widehat\alpha$ if $s_j<0$, the denominator is finite and nonzero, $\widehat\alpha$ is finite, and
\[\tau_1\alpha\leq\widehat\alpha\leq\tau_2\alpha,\]
where $\tau_1$ and $\tau_2$ are the options tau_1 and tau_2.
In that case $\widehat\alpha>0$ and $s_j<0$ imply $b_j>0$, so $\widehat\alpha$ is the minimizer of $q_j$. Otherwise the new step is $\alpha/2$: a proposal outside the interval is replaced, not clamped to it. If some trial value is NaN or infinite, the step is halved without interpolation. Since $\tau_1\leq1/2\leq\tau_2$, halving also lies in the interval, so every reduction gives a new step in $[\tau_1\alpha,\tau_2\alpha]$; with the defaults, between 5% and 95% of the previous one. With tau_1 = tau_2 = 0.5, every reduction halves the step, as in the search of Fliege and Svaiter [2].
When $s_j=\phi_j'(0)$, $q_j$ and $\widehat\alpha$ are the quadratic interpolant and its minimizer in Nocedal and Wright [1], Section 3.5, equations (3.57) and (3.58). Otherwise $q_j$ still matches the two values and the slope $s_j$. The slopes only affect the proposed steps; the acceptance test uses the objective values, $R$ and $\eta_i$.
Nocedal and Wright continue with cubic interpolation after the first quadratic trial, and reset a trial to half its predecessor when it is too close to or too much smaller than that predecessor. BackTracking uses the quadratic model at every reduction of a trial with finite values, with the interval above. Choosing the first violating objective and the fallback rules above are choices of this implementation; the cited works do not prescribe them.
Trial sequence and stopping
The consumer may pass a nonnegative maxstep to each execution (Inf by default). Convert it conservatively and intersect it with the fixed method bounds. If the resulting upper bound is below minstep, return :step_limit without evaluation. Otherwise start at the smaller of the initial step (alpha0, or initial_step.alpha when alpha0 is not given) and the consumer bound:
- Form $x+\alpha d(x)$. If it equals $x$ in floating-point arithmetic, return
:indistinguishable_pointwithout evaluating it. - Evaluate the objectives. If the evaluator reports an error, return
:evaluation_failure. - If all values are finite and satisfy the Armijo-type condition with the reference $R$, return
:success. - If
max_itersreductions have been made, return:max_iterations. - Reduce the step: halve it if some value is not finite, otherwise apply the safeguarded quadratic proposal.
- If the new step is at or below
minstep, return:minimum_stepwithout evaluating it. Otherwise go to step 1.
With max_iters=0, only the initial step can be evaluated. An initial step equal to minstep is evaluated, since the threshold applies to reduced steps. The limits max_iters and minstep, the rounding check and the handling of nonfinite values belong to this implementation; they are not part of the line searches of Fliege and Svaiter [2] or of Assunção, Ferreira and Prudente [4].
Usage
Consider $F=(F_1,F_2):\mathbb{R}\to\mathbb{R}^2$ with
\[F_1(x)=(x-1)^2,\qquad F_2(x)=(x-1)^2+1,\]
the current point $x=0$ and the direction $d(x)=3$. Then $F(0)=(1,2)$ and $\nabla F_1(0)=\nabla F_2(0)=-2$, so the slopes are $s_i=\nabla F_i(x)^\mathsf{T}d(x)=-6$. The caller passes $\eta=\mathcal{D}(x,d(x))=-6$, the choice of Lucambio Pérez and Prudente [3].
The first trial, $\alpha=1$, gives $F(3)=(4,5)$ and is rejected by $F_1$. Since $F_1$ is quadratic and $s_1=\phi_1'(0)$, the model $q_1$ equals $\phi_1$, and its minimizer $\widehat\alpha=1/3$ is accepted with $F(1)=(0,1)$. In the code, objectives! fills values with $F(x)$.
julia> using MultiObjectiveLineSearches
julia> function objectives!(values, x)
values[1] = (x[1] - 1)^2
values[2] = (x[1] - 1)^2 + 1
return nothing
end;
julia> x = [0.0]; d = [3.0]; Fx = [1.0, 2.0]; slopes = [-6.0, -6.0];
julia> search = configure_linesearch(BackTracking(), objectives!, x, Fx);
julia> result = perform_linesearch!(search, x, d, Fx; slopes, factor=maximum(slopes));
julia> (result.success, result.nfev, result.iterations, result.alpha ≈ 1/3)
(true, 2, 1, true)
julia> (result.x_trial ≈ [1.0], result.F_trial ≈ [0.0, 1.0], x == [0.0])
(true, true, true)
julia> copyto!(x, result.x_trial); copyto!(Fx, result.F_trial);With $F_1(x)=x^2$, $F_2(x)=4(x-3/4)^2$, $x=1$ and $d(x)=-1$, both slopes are $-2$ and $F(1)=(1,1/4)$. The monotone search rejects $\alpha=1$, since $F_2(0)=9/4$, and accepts the interpolated step $1/4$. With the reference $R=(1,3)$, for example values of an earlier iterate, the step $\alpha=1$ is accepted:
julia> function tradeoff!(values, x)
values[1] = x[1]^2
values[2] = 4 * (x[1] - 0.75)^2
return nothing
end;
julia> x = [1.0]; d = [-1.0]; Fx = [1.0, 0.25]; slopes = [-2.0, -2.0];
julia> search = configure_linesearch(BackTracking(), tradeoff!, x, Fx);
julia> perform_linesearch!(search, x, d, Fx; slopes, factor=slopes).alpha
0.25
julia> perform_linesearch!(search, x, d, Fx; slopes, factor=slopes, reference=[1.0, 3.0]).alpha
1.0For the evaluator contract and buffer ownership, see Using a line search.
Execution signatures and borrowed-result semantics are documented under perform_linesearch! in the API Reference.
Method reference
MultiObjectiveLineSearches.BackTracking — Type
BackTracking(; initial_step=InitialStatic(), c_1=1e-4, tau_1=0.05, tau_2=0.95,
max_iters=1000, minstep=1e-15, maxstep=1.0, verbose=0)Armijo-type backtracking with safeguarded quadratic interpolation. max_iters counts reductions; verbose=1 logs the final diagnostic. Prepare with configure_linesearch and supply slopes and factor to each execution; reference and alpha0 are optional per call.
See BackTracking for options, admissible ranges, acceptance and reduction rules, and literature sources.