alphaFeedback

WorksMathematics

Multi-Trajectory Parallel-in-Iteration Optimization

AI contributions
  • Gemini · multiple versions
  • OpenAI’s ChatGPT
View details

Abstract

Previously, we developed a ``parallel-in-iteration'' optimization framework that uses multigrid reduction-in-time (MGRIT) to parallelize slowly converging optimization methods, such as gradient descent. Unlike time-dependent evolution problems, optimization requires only a final point with a sufficiently small gradient, rather than an accurate approximation of the entire trajectory of iterates. This motivates a different use of MGRIT: instead of repeatedly improving the approximation of a single long trajectory, we introduce restarted MGRIT (R-MGRIT), which performs one MGRIT iteration on a trajectory, takes the approximate final point as a new initial guess, and repeats the process on a new trajectory. Each restart thus defines a new all-at-once system, allowing progress toward the solution without accurately approximating the preceding trajectory. Moreover, we find that these trajectories can be shortened without increasing the number of restarts needed for convergence. We provide theoretical results comparing MGRIT and R-MGRIT for linear problems and demonstrate the convergence behavior of the shortened trajectories numerically for both linear and nonlinear problems. Shortening the trajectories increases the estimated parallel speedup while reducing the number of processors required.

Introduction

Consider the unconstrained optimization problem of minimizing a convex function F:RN→RF:\mathbb{R}^{N}\to\mathbb{R}, i.e., solving min⁡u∈RNF(u)\min_{\mathbf{u}\in\mathbb{R}^{N}} F(\mathbf{u}). Suppose that for solving this problem we employ a 1-step iterative optimization algorithm of the form

ui=Φ(ui−1)+wi,i=0,1,…,(1)\mathbf{u}_{i}=\Phi(\mathbf{u}_{i-1})+\mathbf{w}_{i},\quad i=0,1,\ldots, \tag*{(1)}

where Φ(⋅)\Phi(\cdot) is a linear or nonlinear operator and wi\mathbf{w}_{i} is a generic forcing term that does not depend on ui\mathbf{u}_{i}. For example, if F:=f+gF:=f+g, where ff is LL-smooth and gg is nonsmooth, then we may use proximal gradient [5, 4] as the optimization method, which takes the form of (1) with

Φ(⋅)=(I+s∂g)−1(I−s∇f)(⋅),(2)\Phi(\cdot)=(I+s\partial g)^{-1}(I-s\nabla f)(\cdot), \tag*{(2)}

where ∂g\partial g denotes the subgradient of gg, and wi=0\mathbf{w}_{i}=\mathbf{0} for all i>0i>0. If F:=fF:=f, i.e., the objective function is LL-smooth, then (2) reduces to the gradient descent operator [18, 19], another prototypical method of the form (1). These algorithms may converge slowly; for general convex problems, gradient descent and proximal gradient have a convergence rate of O(1/i)O(1/i), such that tens of thousands or more iterations [7, 21, 5] may be required to get an accurate approximation to the optimum. Since the algorithms are sequential in ii, a long wall-clock time may then be required to solve the problem.

Assume NtN_t iterations of the method (1) starting from an initial guess u0∈RN\mathbf{u}_{0}\in\mathbb{R}^{N} are required in order to approximate u∗\mathbf{u}^{*}, a minimizer of FF, to the desired accuracy. Computing this sequence of iterates is equivalent to solving the “all-at-once” system,

A(u)=[I−Φ(⋅)I⋱⋱−Φ(⋅)I][u0u1⋮uNt]=[w0w1⋮wNt]=w,(3)\mathcal{A}(\mathbf{u})= \begin{bmatrix} I & & & \\ -\Phi(\cdot) & I & & \\ & \ddots& \ddots& \\ & & -\Phi(\cdot) & I \end{bmatrix} \begin{bmatrix} \mathbf{u}_{0}\\ \mathbf{u}_{1}\\ \vdots\\ \mathbf{u}_{N_t} \end{bmatrix} = \begin{bmatrix} \mathbf{w}_{0}\\ \mathbf{w}_{1}\\ \vdots\\ \mathbf{w}_{N_t} \end{bmatrix} =\mathbf{w}, \tag*{(3)}

where w0≡u0\mathbf{w}_0 \equiv\mathbf{u}_0 is the initial guess. Parallel-in-time algorithms, such as multigrid reduction-in-time (MGRIT) [11], are designed to solve systems of the form (3) for time-dependent evolution equations [13, 20]. Further inspired by the fact that certain optimization algorithms can be interpreted as discretizations of time-dependent ODEs [26, 3, 23], in [2] we re-purposed parallel-in-time methods, namely MGRIT, to parallelize over iterations of optimization algorithms by writing those iterations in the form of (3). We showed that this approach can substantially reduce the predicted wall-clock time compared with executing the optimization algorithm sequentially. We note that related ideas have also since been used to parallelize gradient flows with Parareal [27].

While parallel-in-time methods approximate entire exact trajectories with high accuracy, the goal for optimization problems is to sufficiently reduce the gradient of the initial guess in order to obtain an approximate minimizer of the objective function. In our parallel-in-iteration approach [2], MGRIT is used to approximate the exact sequence of iterates produced by a fixed number of steps of the sequential optimization method (1). Since the intermediate iterates generated by (1) are irrelevant to the final solution, expending computational resources to accurately approximate the entire trajectory is inefficient. Instead, we can consider multiple trajectories, and approximate them inexactly with just one or a few MGRIT iterations, where each new trajectory is started from the final point of the previous trajectory.

We call this restarted MGRIT algorithm R-MGRIT. Given an optimization problem with minimizer u∗\mathbf{u}^* and optimization method (1), we consider applying MGRIT to the associated all-at-once system A(u)=w\mathcal{A}(\mathbf{u}) = \mathbf{w} (3) with Nt+1N_t + 1 time points. After one MGRIT iteration, we obtain approximate solutions vi≈ui\mathbf{v}_i \approx\mathbf{u}_i, i=0,1,…,Nti = 0, 1, \ldots, N_t. If the approximation at the final point, vNt\mathbf{v}_{N_t}, is not sufficiently accurate, we formulate a new all-at-once system,

A(u~)=w~,(4)\mathcal{A}(\widetilde{\mathbf{u}}) = \widetilde{\mathbf{w}}, \tag*{(4)}

where the new initial guess is updated to w~0=u~0:=vNt\widetilde{\mathbf{w}}_0 = \widetilde{\mathbf{u}}_0 := \mathbf{v}_{N_t}. This updated system determines a new trajectory yielded by (1) starting from the improved initial guess u~0\widetilde{\mathbf{u}}_0. Rather than accurately approximating a single long trajectory, R-MGRIT approximates a sequence of potentially shorter trajectories, using the final point of each to initialize the next. We therefore refer to R-MGRIT as a multi-trajectory parallel-in-iteration algorithm.

Our motivation is to investigate whether doing a one MGRIT iteration per trajectory leads to a more efficient parallel-in-iteration method than running MGRIT to convergence on a single trajectory, assuming the trajectory has enough optimization steps to reach the desired optimization accuracy. We prove, based on existing MGRIT error propagation theory, that standard MGRIT and R-MGRIT yield approximately the same gradient reduction after a fixed number of iterations. However, we find that we can shorten the consecutive trajectories without increasing the number of trajectories needed for convergence, which increases the parallel speedup while at the same time reducing the number of processors required.

The rest of this paper is organized as follows. In § 2, we introduce our model problems and the optimization methods considered in this paper. In § 3, we present the MGRIT algorithm in an optimization context and define our standard and multi-trajectory parallel-in-iteration schemes. In § 4, we compare the standard and restarting MGRIT schemes theoretically, which justifies our approach of truncating the time domain for multi-trajectory solves. § 5 provides numerical results, in which we observe that both standard and restarted schemes converge in approximately the same number of iterations; moreover, the number of R-MGRIT trajectories required for convergence is either preserved or reduced by truncating the time domain to a fixed fraction of the original number of time points. In § 6, we provide theoretical speedup estimates for the truncated restarting scheme, showcasing its superiority over the standard MGRIT scheme. In § 7, we apply Anderson acceleration to accelerate R-MGRIT, and concluding remarks are given in § 8.

Model problems

In the following, we briefly summarize our model problems and present the optimization algorithms of our choice for each problem; for a more complete discussion, see [2]. The optimization algorithms are employed in the parallel-in-iteration framework, such that in what follows we speak of a “fine-grid” optimization method, and a complementary “coarse-grid” optimization method; see discussion in subsection 3.1. We let x∈Rd\mathbf{x} \in\mathbb{R}^{d} denote a coordinate on Ω⊂Rd\Omega\subset\mathbb{R}^{d}, such that x=x\mathbf{x}=x when d=1d=1 and x=(x,y)\mathbf{x}=(x,y) when d=2d=2. The matrices which appear in the definition of our model problems arise from finite-difference discretizations of (negative) Laplacian operators, and are defined as

A1=−1h2[−211−21⋱⋱⋱1−2]∈Rn×n,and(5)A_{1}=-\frac{1}{h^{2}}\begin{bmatrix} -2 & 1 \\ 1 & -2 & 1 \\ & \ddots& \ddots& \ddots\\ && 1 & -2 \end{bmatrix}\in\mathbb{R}^{n\times n}, \qquad\text{and} \tag*{(5)}
A2=−1h2[−TII−TI⋱⋱⋱I−T]∈Rn2×n2(6)A_{2}=-\frac{1}{h^{2}}\begin{bmatrix} -T & I \\ I & -T & I \\ & \ddots& \ddots& \ddots\\ && I & -T \end{bmatrix}\in\mathbb{R}^{n^{2}\times n^{2}} \tag*{(6)}

for d=1d=1 and d=2d=2, respectively, with h=1/(n+1)h=1/(n+1). Here, T∈Rn×nT\in\mathbb{R}^{n\times n} is a tridiagonal matrix with elements −1-1, 44 and −1-1 on the sub-, main and superdiagonals, respectively, and I∈Rn×nI\in\mathbb{R}^{n\times n} is the identity matrix. The 2-norm of A1A_{1} is ∥A1∥2=1h24sin⁡2(nπ2(n+1))≈4h2\|A_{1}\|_{2}=\frac{1}{h^{2}}4\sin^{2}\left(\frac{n\pi}{2(n+1)}\right)\approx\frac{4}{h^{2}} for h≪1h\ll1, while the 2-norm of A2A_{2} is ∥A2∥2=1h28sin⁡2(nπ2(n+1))≈8h2\|A_{2}\|_{2}=\frac{1}{h^{2}}8\sin^{2}\left(\frac{n\pi}{2(n+1)}\right)\approx\frac{8}{h^{2}} for h≪1h\ll1. Throughout the paper, we refer to A1A_{1} and A2A_{2} as 1D and 2D Laplacian matrices, respectively.

Quadratic minimization problem (MP1)

Our first model problem, MP1 (7), is the following straightforward quadratic minimization,

min⁡u∈RN12⟨A1u,u⟩−⟨b,u⟩,(7)\min_{u\in\mathbb{R}^{N}}\frac{1}{2}\langle A_{1}u,u\rangle-\langle b,u\rangle, \tag*{(7)}

where A1A_{1} is the 1D Laplacian matrix (5), such that N=nN=n, and b∈RNb\in\mathbb{R}^{N} is some prescribed vector. We consider solving this problem with a fine-grid gradient descent iteration, which uses the update

ui=Gsf(ui−1):=(I−s∇f)(ui−1)=(I−sA1)ui−1+sb,i=1,2,…,(8)\mathbf{u}_{i}=\mathcal{G}_{sf}(\mathbf{u}_{i-1}):=(I-s\nabla f)(\mathbf{u}_{i-1}) =(I-sA_{1})\mathbf{u}_{i-1}+s\mathbf{b},\quad i=1,2,\ldots, \tag*{(8)}

with stepsize s=1/Ls=1/L for L=∥A1∥2L=\|A_{1}\|_{2}. On the coarse-grid we are required to step over the 2/L2/L stability limit of gradient descent, and as such we use the proximal point method, with updates given by

ui=Psf(ui−1):=(I+s∇f)−1(ui−1)=(I+sA1)−1(ui−1+sb),i=1,2,….(9)\mathbf{u}_{i}=\mathcal{P}_{sf}(\mathbf{u}_{i-1}):=(I+s\nabla f)^{-1}(\mathbf{u}_{i-1}) =(I+sA_{1})^{-1}(\mathbf{u}_{i-1}+s\mathbf{b}),\quad i=1,2,\ldots. \tag*{(9)}

Elastic obstacle problem (MP2)

Our second model problem, MP2 (10), is an approximate linearized discretization of the elastic obstacle problem (EOP) [6, 22] with an ℓ1\ell^1 penalty [28]. Given some discretized obstacle ϕ∈RN\phi\in\mathbb{R}^N and dimension d∈{1,2}d \in\{1,2\}, letting b=−Adϕ\mathbf{b}=-A_d\phi, MP2 is given by

min⁡u∈RN12⟨Adu,u⟩−⟨b,u⟩+λ∥(−u)+∥1(10)\min_{\mathbf{u}\in\mathbb{R}^N} \frac{1}{2}\langle A_d\mathbf{u},\mathbf{u}\rangle-\langle\mathbf{b},\mathbf{u}\rangle+\lambda\lVert(-\mathbf{u})_+\rVert_1 \tag*{(10)}

where AdA_d is the dd-dimensional Laplacian matrix from (2.1), λ>0\lambda>0 is a predefined penalty parameter, and ∑i(−(u)i)+=∥(−u)+∥1\sum_i(-(\mathbf{u})_i)_+=\lVert(-\mathbf{u})_+\rVert_1, where (a)+=max⁡{0,a}(a)_+=\max\{0,a\} and ∥⋅∥1\lVert\cdot\rVert_1 denotes the ℓ1\ell^1 norm. For sufficiently large λ\lambda, the solution of (10) is an approximate solution of the continuous EOP up to a change of variables [16, 12].

As in [2], we consider proximal gradient descent as the fine-grid method for (10), with updates taking the form

ui=Psg∘Gsf(ui−1):=(I+s∂g)−1(I−s∇f)(ui)=(I+s∂g)−1((I−sAd)ui−1+sb),i=1,2,…,(11)\mathbf{u}_i=P_{sg}\circ G_{sf}(\mathbf{u}_{i-1}):=(I+s\partial g)^{-1}(I-s\nabla f)(\mathbf{u}_i) =(I+s\partial g)^{-1}\left((I-sA_d)\mathbf{u}_{i-1}+s\mathbf{b}\right),\quad i=1,2,\ldots, \tag*{(11)}

where ∇f\nabla f denotes the gradient of f:=12⟨Adu,u⟩−⟨b,u⟩f:=\frac{1}{2}\langle A_d\mathbf{u},\mathbf{u}\rangle-\langle\mathbf{b},\mathbf{u}\rangle and ∂g\partial g denotes the subgradient of g:=λ∥(−⋅)+∥1g:=\lambda\lVert(-\cdot)_+\rVert_1; the proximal operator Psg=(I+s∂g)−1P_{sg}=(I+s\partial g)^{-1} is given component-wise by

(Psλ∥(−⋅)+∥1(u))j={(u)j+sλ,(u)j<−sλ,0,−sλ≤(u)j≤0,(u)j,(u)j>0.(12)\left(P_{s\lambda\lVert(-\cdot)_+\rVert_1}(\mathbf{u})\right)_j= \begin{cases} (\mathbf{u})_j+s\lambda, & (\mathbf{u})_j<-s\lambda,\\ 0, & -s\lambda\le(\mathbf{u})_j\le0,\\ (\mathbf{u})_j, & (\mathbf{u})_j>0. \end{cases} \tag*{(12)}

We take s=1/Ls=1/L with L=∥Ad∥2L=\lVert A_d\rVert_2, d=1,2d=1,2. Analogously to MP1, on coarse grids we must step over the 2/L2/L stability limit of the proximal gradient descent method, so that on coarse grids we use the alternating proximals method:

ui:=Psg∘Psf(ui−1)=(I+s∂g)−1∘(I+s∇f)−1(ui)=(I+s∂g)−1((I+sAd−sb)−1(ui)),i=1,2,….(13)\mathbf{u}_i:=P_{sg}\circ P_{sf}(\mathbf{u}_{i-1})=(I+s\partial g)^{-1}\circ(I+s\nabla f)^{-1}(\mathbf{u}_i) =(I+s\partial g)^{-1}\left((I+sA_d-s\mathbf{b})^{-1}(\mathbf{u}_i)\right),\quad i=1,2,\ldots. \tag*{(13)}

Parallel-in-iteration optimization methods

In [2], we presented our parallel-in-iteration framework for optimization problems based on re-purposing parallel time integration algorithms for time-dependent differential equations, motivated by the fact that optimization algorithms often have interpretations as discretizations of time-dependent differential equations (such as gradient flow). In this section, we recall the MGRIT algorithm [11], which we present in the context of optimization. Then, we define our multi-trajectory R-MGRIT parallel-in-iteration scheme. While we use MGRIT in our exposition of the multi-trajectory framework, we note that other parallel-in-time methods, such as PFASST [17, 10], for example, could be employed instead.

The MGRIT algorithm

Given an initial guess u0∈RN\mathbf{u}_0\in\mathbb{R}^N and 1-step iterative method of the form (1), we consider the associated all-at-once system of the form (3), where w0=u0\mathbf{w}_0=\mathbf{u}_0 is the initial guess and u\mathbf{u} is the exact solution. The associated residual vector, given an approximation v≈u\mathbf{v}\approx\mathbf{u}, is defined as

r(v)=w−A(v)=[w0−v0w1−[v1−Φ(v0)]⋮wNt−[vNt−Φ(vNt−1)]].(14)\mathbf{r}(\mathbf{v})=\mathbf{w}-\mathcal{A}(\mathbf{v})= \begin{bmatrix} \mathbf{w}_0-\mathbf{v}_0\\ \mathbf{w}_1-[\mathbf{v}_1-\Phi(\mathbf{v}_0)]\\ \vdots\\ \mathbf{w}_{N_t}-[\mathbf{v}_{N_t}-\Phi(\mathbf{v}_{N_t-1})] \end{bmatrix}. \tag*{(14)}

We assume that NtN_t is sufficiently large such that uNt\mathbf{u}_{N_t} is a sufficiently accurate approximation of the minimizer u∗\mathbf{u}^*. Instead of solving (3) sequentially with time-stepping or forward substitution, MGRIT aims to solve it iteratively and in parallel via the introduction of a coarser approximation of the problem. Let ti=iΔtt_i = i\Delta t, i=0,1,…,Nti = 0, 1, \ldots, N_t be a fine temporal mesh with constant spacing Δt\Delta t; in an optimization setting, we take it to be the fixed stepsize s>0s > 0 of the underlying optimization method (1). Then, given an integer coarsening factor m>1m > 1, we introduce a coarse temporal mesh Tj=jΔTT_j = j\Delta T, j=0,1,…,NTj = 0, 1, \ldots, N_T, where NT=Nt/mN_T = N_t/m, with constant spacing ΔT=mΔt\Delta T = m\Delta t. We denote the NT+1N_T + 1 points appearing exclusively on the coarse mesh by CC-points, while all remaining points are FF-points. Figure 1 illustrates the fine- and coarse-grid temporal meshes.

Fine- and coarse-grid discretization meshes with coarsening factor m

Figure 1. Fine- and coarse-grid discretization meshes with coarsening factor mm. CC-points (in blue) are denoted by {Tj}\{T_j\}, while all remaining points are FF-points (in black); the fine grid is the union of CC- and FF-points.

MGRIT has both linear [11] and Full Approximation Scheme (FAS) variants [14], suitable for linear and nonlinear Φ\Phi, respectively, and these variants differ in the way that coarse-grid correction is performed. First, we consider the linear case, in which we assume Φ\Phi is a linear operator, such that Φ(ui−1)=Φui−1\Phi(\mathbf{u}_{i-1}) = \Phi\mathbf{u}_{i-1} is a matrix-vector product with matrix Φ\Phi. We also write the action of the space-time operator A(⋅)\mathcal{A}(\cdot), meaning it operates simultaneously on all spatial coordinates and time points of the solution u\mathbf{u}, as a matrix-vector product A(u)=Au\mathcal{A}(\mathbf{u}) = A\mathbf{u}. From (3), we obtain an equivalent system written only in terms of the CC-points, which we write in block-matrix form as

AΔuΔ=[I−ΦmI⋱⋱−ΦmI][u0um⋮uNTm]=[w0w~m⋮w~NTm]=wΔ,(15)\mathcal{A}_{\Delta}\mathbf{u}_{\Delta} = \begin{bmatrix} I & & & \\ -\Phi^m & I & & \\ & \ddots& \ddots& \\ & & -\Phi^m & I \end{bmatrix} \begin{bmatrix} \mathbf{u}_0 \\ \mathbf{u}_m \\ \vdots\\ \mathbf{u}_{N_Tm} \end{bmatrix} = \begin{bmatrix} \mathbf{w}_0 \\ \widetilde{\mathbf{w}}_m \\ \vdots\\ \widetilde{\mathbf{w}}_{N_Tm} \end{bmatrix} = \mathbf{w}_{\Delta}, \tag*{(15)}

where w~jm=wjm+Φwjm−1+⋯+Φm−1w(j−1)m+1\widetilde{\mathbf{w}}_{jm} = \mathbf{w}_{jm} + \Phi\mathbf{w}_{jm-1} + \cdots+ \Phi^{m-1}\mathbf{w}_{(j-1)m+1}; note that Φm\Phi^m plays the role of time-stepping operator for this coarse system. While system (15) has a factor of mm fewer equations than (3), it is no less expensive to solve because (naively) computing the action of Φm\Phi^m is mm times as expensive as computing that of Φ\Phi. So, instead, MGRIT solves an approximation to the ideal coarse-grid system (15) arising from replacing the ideal coarse-grid time-stepping operator Φm\Phi^m with an approximation:

Ψ≈Φm.(16)\Psi\approx\Phi^m. \tag*{(16)}

Then, MGRIT solves the approximate system BΔuΔ=wΔ\mathcal{B}_{\Delta}\mathbf{u}_{\Delta} = \mathbf{w}_{\Delta}, where the approximation BΔ≈AΔ\mathcal{B}_{\Delta} \approx\mathcal{A}_{\Delta} replaces the Φm\Phi^m terms in (15) by Ψ\Psi.

Throughout the paper, we assume MGRIT is initialized with an initial approximate solution vector v(0)=[u0  u0  ⋯  u0]T\mathbf{v}^{(0)} = [\mathbf{u}_0\ \ \mathbf{u}_0\ \ \cdots\ \ \mathbf{u}_0]^T which simply extends the initial guess u0\mathbf{u}_0 to all other time points, which will be important to maintain progress in the restarted method. Letting r(0)\mathbf{r}^{(0)} denote the initial MGRIT residual (14), we define the linear MGRIT algorithm in Algorithm 3.1 with the standard MGRIT pre- and post-relaxation schemes [11, 9], where RI(⋅)R_I(\cdot) stands for the injection operator. Note that we omit the post F-relaxation that follows the correction at C-points, since it is made redundant by the FCF-relaxation in the following iteration. We note that while the MGRIT convergence criterion is given in terms of the residual

Algorithm 3.1 2-level MGRIT(Φ\Phi, Ψ\Psi, u0\mathbf{u}_0, w\mathbf{w}, ε\varepsilon).

  1. Initialize u\mathbf{u} given initial guess u0∈RN\mathbf{u}_0 \in\mathbb{R}^{N}: u=[u0⋯u0]T∈RN(Nt+1)\mathbf{u} = [\mathbf{u}_0 \quad\cdots\quad\mathbf{u}_0]^T \in\mathbb{R}^{N(N_t+1)}.

  2. repeat

  3. Apply FCF-relaxation to Au=wA\mathbf{u} = \mathbf{w} using Φ\Phi.

  4. Inject residual to the coarse grid: rΔ=RI(w−Au)\mathbf{r}_{\Delta} = R_I(\mathbf{w} - A\mathbf{u}).

  5. Solve coarse-grid correction problem using Ψ\Psi: BΔeΔ=rΔ\mathcal{B}_{\Delta}\mathbf{e}_{\Delta} = \mathbf{r}_{\Delta}.

  6. Correct approximate solution at C-points: uΔ←uΔ+eΔ\mathbf{u}_{\Delta} \leftarrow\mathbf{u}_{\Delta} + \mathbf{e}_{\Delta}.

  7. until ∥r∥/∥r(0)∥≤ε\lVert\mathbf{r}\rVert/\lVert\mathbf{r}^{(0)}\rVert\leq\varepsilon.

(14), in [2 Lemma 5.1] we proved that reducing the norm of the initial residual by a factor ε\varepsilon implies that the norm of the gradient is also reduced to a similar factor; i.e., ∥∇f(vNt)∥/∥∇f(u0)∥≈ε\lVert\nabla f(\mathbf{v}_{N_t})\rVert/\lVert\nabla f(\mathbf{u}_0)\rVert\approx\varepsilon, where vNt\mathbf{v}_{N_t} denotes the MGRIT approximate solution at the final time point NtN_t.

Now let us consider the MGRIT coarse-grid correction in the more general FAS case, where Φ(⋅)\Phi(\cdot) in (3) is not (necessarily) a linear operator. Let v≈u\mathbf{v} \approx\mathbf{u} be an approximate solution of A(u)=wA(\mathbf{u}) = \mathbf{w} in (3). After performing the FCF-relaxation step, both the fine-grid approximation v\mathbf{v} and nonlinear residual w−A(v)\mathbf{w} - A(\mathbf{v}) are injected to the coarse-grid:

vΔ=RI(v),rΔ=RI(w−A(v)).(17)\mathbf{v}_{\Delta} = R_I(\mathbf{v}), \qquad\mathbf{r}_{\Delta} = R_I(\mathbf{w} - A(\mathbf{v})). \tag*{(17)}

The ideal FAS coarse-grid problem is then to solve the system

AΔ(uΔ)=AΔ(vΔ)+rΔ(18)A_{\Delta}(\mathbf{u}_{\Delta}) = A_{\Delta}(\mathbf{v}_{\Delta}) + \mathbf{r}_{\Delta} \tag*{(18)}

for the coarse-grid solution uΔ\mathbf{u}_{\Delta}, where similarly to (15),

AΔ(⋅)=[I−Φm(⋅)I⋱⋱−Φm(⋅)I].(19)A_{\Delta}(\cdot) = \begin{bmatrix} I \\ -\Phi^{m}(\cdot) & I \\ & \ddots& \ddots\\ && -\Phi^{m}(\cdot) & I \end{bmatrix}. \tag*{(19)}

The coarse-grid system (18) results from the elimination of F-points variables from the residual equation A(u)−A(v)=r(v)A(\mathbf{u}) - A(\mathbf{v}) = \mathbf{r}(\mathbf{v}). Similarly to the linear case, the MGRIT iteration solves an approximation of (18),

BΔ(uΔ)=BΔ(vΔ)+rΔ,(20)\mathcal{B}_{\Delta}(\mathbf{u}_{\Delta}) = \mathcal{B}_{\Delta}(\mathbf{v}_{\Delta}) + \mathbf{r}_{\Delta}, \tag*{(20)}

where BΔ(⋅)≈AΔ(⋅)\mathcal{B}_{\Delta}(\cdot) \approx A_{\Delta}(\cdot) replaces the Φm(⋅)\Phi^{m}(\cdot) terms in AΔ(⋅)A_{\Delta}(\cdot) by a computationally cheaper Ψ(⋅)≈Φm(⋅)\Psi(\cdot) \approx\Phi^{m}(\cdot).

We define the 2-level FAS-MGRIT iteration in Algorithm 3.2, once again omitting the redundant post-F relaxation. Similarly to the linear case, in [2 Lemma 5.1] we proved that ∥r∥/∥r(0)∥≤ε\lVert\mathbf{r}\rVert/\lVert\mathbf{r}^{(0)}\rVert\leq\varepsilon implies that ∥GsF(vNt)∥/∥GsF(u0)∥≈ε\lVert G_{sF}(\mathbf{v}_{N_t})\rVert/\lVert G_{sF}(\mathbf{u}_0)\rVert\approx\varepsilon, where GsF(⋅)G_{sF}(\cdot) denotes the generalized gradient of FF, given by

GsF(vi):=1s[vi−Psg(vi−s∇f(vi))]=1s(I−Psg∘Gsf(vi))(21)G_{sF}(\mathbf{v}_i) := \frac{1}{s}\left[\mathbf{v}_i - \mathcal{P}_{sg}\left(\mathbf{v}_i - s\nabla f(\mathbf{v}_i)\right)\right] = \frac{1}{s}\left(I - \mathcal{P}_{sg} \circ G_{sf}(\mathbf{v}_i)\right) \tag*{(21)}

Algorithm 3.2 2-level FAS-MGRIT(Φ\Phi, Ψ\Psi, u0\mathbf{u}_0, w\mathbf{w},ε\varepsilon).

  1. Initialize u\mathbf{u} given initial guess u0∈RN\mathbf{u}_0 \in\mathbb{R}^{N}: u=[u0⋯u0]T∈RN(Nt+1)\mathbf{u} = [\mathbf{u}_0 \quad\cdots\quad\mathbf{u}_0]^T \in\mathbb{R}^{N(N_t+1)}.

  2. repeat

  3. Apply FCF-relaxation to A(u)=w\mathcal{A}(\mathbf{u}) = \mathbf{w} using Φ\Phi.

  4. Inject approximate solution and residual to coarse grid: uΔ=RI(u)\mathbf{u}_{\Delta} = R_I(\mathbf{u}), rΔ=RI(w−A(u))\mathbf{r}_{\Delta} = R_I(\mathbf{w} - \mathcal{A}(\mathbf{u})).

  5. Solve coarse-grid correction problem: BΔ(u^Δ)=BΔ(uΔ)+rΔ\mathcal{B}_{\Delta}(\hat{\mathbf{u}}_{\Delta}) = \mathcal{B}_{\Delta}(\mathbf{u}_{\Delta}) + \mathbf{r}_{\Delta}.

  6. Compute coarse-grid error approximation: eΔ=u^Δ−uΔ\mathbf{e}_{\Delta} = \hat{\mathbf{u}}_{\Delta} - \mathbf{u}_{\Delta}.

  7. Correct approximate solution at C-points: uΔ←uΔ+eΔ\mathbf{u}_{\Delta} \leftarrow\mathbf{u}_{\Delta} + \mathbf{e}_{\Delta}.

  8. until ∥r∥/∥r(0)∥≤ε\lVert\mathbf{r}\rVert/\lVert\mathbf{r}^{(0)}\rVert\leq\varepsilon.

for some vi∈RN\mathbf{v}_i \in\mathbb{R}^{N}. Note that Psg∘GsfP_{sg} \circ G_{sf} is the same as the proximal gradient operator (11); in particular, Psg∘Gsf=I−sGsFP_{sg} \circ G_{sf} = I - sG_{sF}.

While we have described 2-level MGRIT methods, multilevel MGRIT schemes are obtained by recursively applying the 2-level schemes. In our numerical tests, we apply the standard MGRIT scheme for MP1 (7) and the FAS-MGRIT scheme for MP2 (10). For both MP1 and MP2, MGRIT is iterated until the 2-norm of the residual (14) is reduced by 8 orders of magnitude from its initial value.

The restarted MGRIT algorithm for optimization problems (R-MGRIT)

We now describe the R-MGRIT algorithm, Algorithm 3.3. As introduced in § 1, instead of approximating a single exact trajectory yielded by the underlying optimization method (1), we treat the initial guess u0\mathbf{u}_0 of the all-at-once system A(u)=w\mathcal{A}(\mathbf{u}) = \mathbf{w} (3) as a parameter to be reinitialized. Each new trajectory is approximated using one MGRIT iteration.1 Thus, R-MGRIT can be interpreted as a restarting scheme that approximates multiple trajectories, each hopefully starting from a point closer to the true optimum. It is important to propagate u0\mathbf{u}_0 across the C-points in the new trajectory because a random initialization of the C-points may reintroduce large gradients. We note that one R-MGRIT iteration costs the same as one MGRIT iteration from Algorithms 3.1 and 3.2.

Algorithm 3.3 R-MGRIT(Φ\Phi, Ψ\Psi, u0\mathbf{u}_0, w\mathbf{w},ε\varepsilon,NtN_t).

  1. repeat

  2. Initialize u\mathbf{u} given initial guess u0∈RN\mathbf{u}_0 \in\mathbb{R}^{N}: u=[u0⋯u0]T∈RN(Nt+1)\mathbf{u} = [\mathbf{u}_0 \quad\cdots\quad\mathbf{u}_0]^T \in\mathbb{R}^{N(N_t+1)}.

  3. Run 1 iteration of MGRIT on all-at-once system A(u)=w\mathcal{A}(\mathbf{u}) = \mathbf{w}.

  4. Set u0←uNt\mathbf{u}_0 \leftarrow\mathbf{u}_{N_t}, w0←u0\mathbf{w}_0 \leftarrow\mathbf{u}_0.

  5. until ∥GsF(uNt)∥/∥GsF(u0)∥≤ε\lVert G_{sF}(\mathbf{u}_{N_t})\rVert/\lVert G_{sF}(\mathbf{u}_0)\rVert\leq\varepsilon.

Asymptotic final-point analysis of MGRIT and R-MGRIT

In the following, we compare standard linear MGRIT and R-MGRIT theoretically. We use the index kk to denote the number of iterations for standard MGRIT and the number of restarts (i.e., trajectories) for R-MGRIT. Based on linear MGRIT error propagation theory [9, 25], we demonstrate that if the approximate solutions at the final time point Nt=NTmN_t = N_T m of the kkth MGRIT iteration and kkth R-MGRIT trajectory are approximately the same, converging to the same asymptotic limit as NT→∞N_T \to\infty.

Consider an iterative method of the form (1) with a linear operator Φ\Phi. Furthermore, we assume wi=c\mathbf{w}_i=\mathbf{c} for i>0i>0, such that, given an initial guess u0\mathbf{u}_0, we have

ui=Φui−1+c,i=1,2,…(22)\mathbf{u}_i=\Phi\mathbf{u}_{i-1}+\mathbf{c},\qquad i=1,2,\ldots \tag*{(22)}

Writing the iith iterate yielded by (1) in terms of the initial guess u0\mathbf{u}_0 yields

ui=Φiu0+(I+Φ+⋯+Φi−1)c,i=1,2,…(23)\mathbf{u}_i=\Phi^i\mathbf{u}_0+\left(I+\Phi+\cdots+\Phi^{i-1}\right)\mathbf{c},\qquad i=1,2,\ldots \tag*{(23)}

Since u∗\mathbf{u}^* is a fixed point of the iteration, i.e., u∗=Φu∗+c\mathbf{u}^*=\Phi\mathbf{u}^*+\mathbf{c}, we may shift coordinates by defining vj=uj−u∗\mathbf{v}_j=\mathbf{u}_j-\mathbf{u}^*, with the resulting iteration being vi=Φvi−1\mathbf{v}_i=\Phi\mathbf{v}_{i-1}. Thus, without loss of generality, we simplify the above iteration to

ui=Φui−1=Φiu0,i=1,2,…(24)\mathbf{u}_i=\Phi\mathbf{u}_{i-1}=\Phi^i\mathbf{u}_0,\qquad i=1,2,\ldots \tag*{(24)}

For concreteness, we may consider Φ:=I−sA1\Phi:=I-sA_1 in the case of gradient descent (8) for MP1, (7).

In the following, we first explicitly determine the MGRIT error propagation matrix for kk MGRIT iterations. Assuming a constant initialization strategy, we then characterize the MGRIT and R-MGRIT approximate solutions, for the case of kk MGRIT iterations and kk R-MGRIT trajectories with 1 MGRIT iteration per trajectory, at the final time point in terms of the MGRIT parameters. Finally, we prove that the MGRIT and R-MGRIT end-point approximate solutions converge to the same asymptotic limit for fixed kk as NT→∞N_T\to\infty.

MGRIT error propagation after kk iterations

Let Φ\Phi and Ψ\Psi denote the fine- and coarse-grid operators. After kk iterations, the C-point error propagation block matrix E\mathcal{E} propagates the error at C-points via

eC(k)=EkeC(0),(25)\mathbf{e}_{\mathrm{C}}^{(k)}=\mathcal{E}^k\mathbf{e}_{\mathrm{C}}^{(0)}, \tag*{(25)}

where eC(0)\mathbf{e}_{\mathrm{C}}^{(0)} and eC(k)\mathbf{e}_{\mathrm{C}}^{(k)} denote the C-point initial error and the C-point error after kk iterations, respectively. For MGRIT with FCF-relaxation, E\mathcal{E} is given by [9, 25]

E=[00⋯0000⋯00(Φm−Ψ)Φm0⋯00Ψ(Φm−Ψ)Φm(Φm−Ψ)Φm⋯00⋮⋮⋱⋮⋮ΨNT−2(Φm−Ψ)ΦmΨNT−3(Φm−Ψ)Φm⋯00],(26)\mathcal{E}= \begin{bmatrix} 0 & 0 & \cdots& 0 & 0\\ 0 & 0 & \cdots& 0 & 0\\ (\Phi^m-\Psi)\Phi^m & 0 & \cdots& 0 & 0\\ \Psi(\Phi^m-\Psi)\Phi^m & (\Phi^m-\Psi)\Phi^m & \cdots& 0 & 0\\ \vdots& \vdots& \ddots& \vdots& \vdots\\ \Psi^{N_T-2}(\Phi^m-\Psi)\Phi^m & \Psi^{N_T-3}(\Phi^m-\Psi)\Phi^m & \cdots& 0 & 0 \end{bmatrix}, \tag*{(26)}

or block-wise, by

(E)i,j={Ψi−j−2(Φm−Ψ)Φmif i−j≥2,0otherwise.(27)(\mathcal{E})_{i,j}= \begin{cases} \Psi^{i-j-2}(\Phi^m-\Psi)\Phi^m & \text{if }i-j\ge2,\\ 0 & \text{otherwise}. \end{cases} \tag*{(27)}

By taking the kkth power of E\mathcal{E} in (26), we explicitly determine the error propagation matrix Ek\mathcal{E}^k for kk MGRIT iterations. We now introduce an assumption to hold uniformly throughout this section; while not strictly necessary for all of the results, applying the assumption uniformly aids in the presentation.

Assumption 4.1. The fine- and coarse-grid operators Φ\Phi and Ψ\Psi are simultaneously unitarily diagonalizable and satisfy ρ(Φ)<1\rho(\Phi)<1 and ρ(Ψ)<1\rho(\Psi)<1.

Proposition 4.2. Let Assumption 4.1 hold. For any iteration k≥1k \ge1, the block-components of EkE^k are given by:

(Ek)i,j={(i−j−k−1k−1)Ψi−j−2k((Φm−Ψ)Φm)kif i−j≥2k,0otherwise.(28)(\mathcal{E}^k)_{i,j} = \begin{cases} \binom{i-j-k-1}{k-1}\Psi^{i-j-2k}\left((\Phi^m-\Psi)\Phi^m\right)^k & \text{if } i-j \ge2k,\\ 0 & \text{otherwise.} \end{cases} \tag*{(28)}

Proof. By induction on kk. The base case k=1k=1 trivially matches (26) since (i−j−20)=1\binom{i-j-2}{0}=1. Now, assume the formula holds for k−1k-1. We compute the (i,j)(i,j)-th block of Ek=EEk−1\mathcal{E}^k=\mathcal{E}\mathcal{E}^{k-1} via the block matrix product

(Ek)i,j=∑p=0NT(E)i,p(Ek−1)p,j.(29)(\mathcal{E}^k)_{i,j}=\sum_{p=0}^{N_T}(\mathcal{E})_{i,p}(\mathcal{E}^{k-1})_{p,j}. \tag*{(29)}

By (28) holding for E\mathcal{E} and Ek−1\mathcal{E}^{k-1}, the addends in this sum are non-zero only if (E)i,p≠0⟺i−p≥2(\mathcal{E})_{i,p}\ne0 \Longleftrightarrow i-p\ge2 and (Ek−1)p,j≠0⟺p−j≥2(k−1)(\mathcal{E}^{k-1})_{p,j}\ne0 \Longleftrightarrow p-j\ge2(k-1). Adding these two inequalities, we have that (Ek)i,j=0(\mathcal{E}^k)_{i,j}=0 if i−j<2ki-j<2k. Otherwise, for i≥j+2ki\ge j+2k, substituting (28) into (29) yields

(Ek)i,j=∑p=j+2k−2i−2(Ψi−p−2((Φm−Ψ)Φm))((p−j−kk−2)Ψp−j−2k+2((Φm−Ψ)Φm)k−1)=Ψi−j−2k((Φm−Ψ)Φm)k∑p=j+2k−2i−2(p−j−kk−2),\begin{aligned} (\mathcal{E}^k)_{i,j} =\sum_{p=j+2k-2}^{i-2}\left(\Psi^{i-p-2}\left((\Phi^m-\Psi)\Phi^m\right)\right)\left(\binom{p-j-k}{k-2}\Psi^{p-j-2k+2}\left((\Phi^m-\Psi)\Phi^m\right)^{k-1}\right) \\ &=\Psi^{i-j-2k}\left((\Phi^m-\Psi)\Phi^m\right)^k\sum_{p=j+2k-2}^{i-2}\binom{p-j-k}{k-2}, \end{aligned}

where we used the commutativity of Φ\Phi and Ψ\Psi. Recall the hockey-stick (or Fermat’s) identity for non-negative integers n≥rn\ge r,

∑i=rn(ir)=(n+1r+1).(30)\sum_{i=r}^{n}\binom{i}{r}=\binom{n+1}{r+1}. \tag*{(30)}

Applying the change of variables q=p−j−kq=p-j-k, we get that

∑p=j+2k−2i−2(p−j−kk−2)=∑q=k−2i−j−k−2(qk−2)=(i−j−k−1k−1),(31)\sum_{p=j+2k-2}^{i-2}\binom{p-j-k}{k-2} =\sum_{q=k-2}^{i-j-k-2}\binom{q}{k-2} =\binom{i-j-k-1}{k-1}, \tag*{(31)}

where the final equality comes from applying (30). ∎

From Proposition 4.2, we generalize [9 Lemma 3.2] to determine the C-point errors after kk iterations.

Lemma 4.3. Let Assumption 4.1 hold. After kk iterations of MGRIT with FCF-relaxation, the approximate solution at the iith C-point satisfies vim(k)=uim−eim(k)\mathbf{v}_{im}^{(k)}=\mathbf{u}_{im}-\mathbf{e}_{im}^{(k)}, where the error at the C-points satisfies

eim(k)=0,i=0,…,min⁡(2k−1,NT),(32)\mathbf{e}_{im}^{(k)}=0,\quad i=0,\ldots,\min(2k-1,N_T), \tag*{(32)}
eim(k)=∑j=0i−2k(i−j−k−1k−1)Ψi−j−2k((Φm−Ψ)Φm)kejm(0),i=2k,…,NT.(33)\mathbf{e}_{im}^{(k)}=\sum_{j=0}^{i-2k}\binom{i-j-k-1}{k-1}\Psi^{i-j-2k}\left((\Phi^m-\Psi)\Phi^m\right)^k\mathbf{e}_{jm}^{(0)},\quad i=2k,\ldots,N_T. \tag*{(33)}

Proof. The error at the ii-th C-point, eim(k)e_{im}^{(k)}, is determined by the product of the ii-th block row of Ek\mathcal{E}^{k} with the initial C-point error vector [e0(0) em(0) ⋯ eNTm(0)]T\left[e_{0}^{(0)}\ e_{m}^{(0)}\ \cdots\ e_{N_{T}m}^{(0)}\right]^{T}:

eim(k)=∑j=0NT(Ek)i,jejm(0).(34)e_{im}^{(k)}=\sum_{j=0}^{N_{T}}\left(\mathcal{E}^{k}\right)_{i,j}e_{jm}^{(0)}. \tag*{(34)}

The statement then follows from substituting (28) into (34). □\square

Characterizing (R-)MGRIT final-point approximate solutions

We now characterize the approximate solutions at the final time point NTN_{T} for standard MGRIT and R-MGRIT. For both methods, we use the constant initialization strategy described in Algorithms 3.1 and 3.3.

First, consider standard MGRIT applied to a trajectory with initial guess u0\mathbf{u}_{0}. Since the exact solution at the jjth C-point is ujm=Φjmu0\mathbf{u}_{jm}=\Phi^{jm}\mathbf{u}_{0}, the constant initialization gives an initial error ejm(0)=(Φjm−I)u0\mathbf{e}_{jm}^{(0)}=(\Phi^{jm}-I)\mathbf{u}_{0}. Substituting this into Lemma 4.3, the error after kk MGRIT iterations at the final time point is eNT(k)=ENT(k)u0\mathbf{e}_{N_{T}}^{(k)}=E_{N_{T}}^{(k)}\mathbf{u}_{0}, where

ENT(k)=∑j=0NT−2k(NT−j−k−1k−1)ΨNT−j−2k((Φm−Ψ)Φm)k(Φjm−I).(35)E_{N_{T}}^{(k)}=\sum_{j=0}^{N_{T}-2k}\binom{N_{T}-j-k-1}{k-1}\Psi^{N_{T}-j-2k}\left((\Phi^{m}-\Psi)\Phi^{m}\right)^{k}\left(\Phi^{jm}-I\right). \tag*{(35)}

Since the exact solution at the final time point is uNt=ΦNtu0\mathbf{u}_{N_{t}}=\Phi^{N_{t}}\mathbf{u}_{0}, the corresponding MGRIT approximation is

vNt(k)=(ΦNt−ENT(k))u0(36)\mathbf{v}_{N_{t}}^{(k)}=\left(\Phi^{N_{t}}-E_{N_{T}}^{(k)}\right)\mathbf{u}_{0} \tag*{(36)}

where ΦNt−ENT(k)⏟=:V~Nt(k)\underbrace{\Phi^{N_{t}}-E_{N_{T}}^{(k)}}_{=:\widetilde{V}_{N_{t}}^{(k)}}.

Next, consider R-MGRIT with one MGRIT iteration per trajectory. Since the same constant initialization strategy is used for each trajectory, the operator mapping its initial guess to its approximate final point is always the one-iteration MGRIT operator

V~Nt:=VNt(1)=ΦNt−ENT(1).(37)\widetilde{V}_{N_{t}}:=V_{N_{t}}^{(1)}=\Phi^{N_{t}}-E_{N_{T}}^{(1)}. \tag*{(37)}

Let u~0(k)\widetilde{\mathbf{u}}_{0}^{(k)} denote the initial guess of the kkth R-MGRIT trajectory, with u~0(1)=u0\widetilde{\mathbf{u}}_{0}^{(1)}=\mathbf{u}_{0}. The approximate final point of this trajectory is v~Nt(k)=V~Ntu~0(k)\widetilde{\mathbf{v}}_{N_{t}}^{(k)}=\widetilde{V}_{N_{t}}\widetilde{\mathbf{u}}_{0}^{(k)}. By construction, this becomes the initial guess for the next trajectory, i.e., u~0(k+1)=v~Nt(k)\widetilde{\mathbf{u}}_{0}^{(k+1)}=\widetilde{\mathbf{v}}_{N_{t}}^{(k)}. Applying this relation recursively, we obtain

v~Nt(k)=(V~Nt)ku0=(ΦNt−ENT(1))ku0.(38)\widetilde{\mathbf{v}}_{N_{t}}^{(k)}=\left(\widetilde{V}_{N_{t}}\right)^{k}\mathbf{u}_{0}=\left(\Phi^{N_{t}}-E_{N_{T}}^{(1)}\right)^{k}\mathbf{u}_{0}. \tag*{(38)}

Thus, standard MGRIT applies kk iterations to a single trajectory, yielding the final-point approximation vNt(k)=VNt(k)u0\mathbf{v}_{N_{t}}^{(k)}=V_{N_{t}}^{(k)}\mathbf{u}_{0}, whereas R-MGRIT applies the same single-iteration final-point operator kk times, yielding v~Nt(k)=(V~Nt)ku0\widetilde{\mathbf{v}}_{N_{t}}^{(k)}=\left(\widetilde{V}_{N_{t}}\right)^{k}\mathbf{u}_{0}. In the following sections, we compare these two approximations as NT→∞N_{T}\to\infty.

Error operators

Let Q=[q1 q2 ⋯ qN]Q=\left[\mathbf{q}_{1}\ \mathbf{q}_{2}\ \cdots\ \mathbf{q}_{N}\right] be the unitary matrix that diagonalizes both Φ\Phi and Ψ\Psi under Assumption 4.1, such that

Φ=Qdiag⁡(ϕ1,…,ϕN)Q∗,Ψ=Qdiag⁡(ψ1,…,ψN)Q∗.(39)\Phi=Q\operatorname{diag}(\phi_{1},\ldots,\phi_{N})Q^{*},\qquad\Psi=Q\operatorname{diag}(\psi_{1},\ldots,\psi_{N})Q^{*}. \tag*{(39)}

is satisfied with ϕn\phi_n and ψn\psi_n denoting the nnth eigenvalues of Φ\Phi and Ψ\Psi, respectively. We denote by u0,n=qn∗u0u_{0,n}=\mathbf{q}_n^*u_0 the nnth modal component of the initial guess u0u_0, where qn\mathbf{q}_n is the nnth column of QQ. Then, after an eigenvector expansion of ec(1)=Eec(0)e_c^{(1)}=\mathcal{E}e_c^{(0)} on the basis of eigenvectors given by the columns of QQ, it follows that the action of E\mathcal{E} on the nnth mode is given by En∈CNT+1×NT+1\mathcal{E}_n\in\mathbb{C}^{N_T+1\times N_T+1}, given by [9, 25]

En=(00⋯0000⋯00(ϕnm−ψn)ϕnm0⋯00ψn(ϕnm−ψn)ϕnm(ϕnm−ψn)ϕnm⋯00⋮⋮⋱⋮⋮ψnNT−2(ϕnm−ψn)ϕnmψnNT−3(ϕnm−ψn)ϕnm⋯00).(40)\mathcal{E}_n= \begin{pmatrix} 0 & 0 & \cdots& 0 & 0 \\ 0 & 0 & \cdots& 0 & 0 \\ (\phi_n^m-\psi_n)\phi_n^m & 0 & \cdots& 0 & 0 \\ \psi_n(\phi_n^m-\psi_n)\phi_n^m & (\phi_n^m-\psi_n)\phi_n^m & \cdots& 0 & 0 \\ \vdots& \vdots& \ddots& \vdots& \vdots\\ \psi_n^{N_T-2}(\phi_n^m-\psi_n)\phi_n^m & \psi_n^{N_T-3}(\phi_n^m-\psi_n)\phi_n^m & \cdots& 0 & 0 \end{pmatrix}. \tag*{(40)}

Following similar steps, it also follows from Proposition 4.2 that the action of ENT(k)E_{N_T}^{(k)} from (35) on the nnth mode (i.e., the nnth modal component of u0∈RNu_0\in\mathbb{R}^N) is

ENT,n(k)=((ϕnm−ψn)ϕnm)k∑j=0NT−2k(NT−j−k−1k−1)ψnNT−j−2k(ϕnjm−1).(41)E_{N_T,n}^{(k)}=\left((\phi_n^m-\psi_n)\phi_n^m\right)^k\sum_{j=0}^{N_T-2k}\binom{N_T-j-k-1}{k-1}\psi_n^{N_T-j-2k}(\phi_n^{jm}-1). \tag*{(41)}

such that the modal equivalents of (36) and (38) are

vNT,n(k)=VNT,n(k)u0,n=(ϕnNT−ENT,n(k))u0,n,(42)v_{N_T,n}^{(k)}=V_{N_T,n}^{(k)}u_{0,n}=(\phi_n^{N_T}-E_{N_T,n}^{(k)})u_{0,n}, \tag*{(42)}

and

v~NT,n(k)=V~NT,n(k)u0,n=(ϕnNT−ENT,n(1))ku0,n,(43)\widetilde{v}_{N_T,n}^{(k)}=\widetilde{V}_{N_T,n}^{(k)}u_{0,n}=(\phi_n^{N_T}-E_{N_T,n}^{(1)})^k u_{0,n}, \tag*{(43)}

respectively, where vNT,n(k)v_{N_T,n}^{(k)} is the nnth modal component of vNT(k)v_{N_T}^{(k)}, and v~NT,n(k)\widetilde{v}_{N_T,n}^{(k)} is the nnth modal component of v~NT(k)\widetilde{v}_{N_T}^{(k)}. We now establish the asymptotic modal error operator as NT→+∞N_T\to+\infty.

Lemma 4.4. Let Assumption 4.1 hold. As NT→+∞N_T\to+\infty, the modal error operator ENT,n(k)E_{N_T,n}^{(k)} from (41) for kk MGRIT iterations asymptotically converges to a well-defined limit modal operator

E∞,n(k):=−((ϕnm−ψn)ϕnm1−ψn)k=lim⁡NT→+∞ENT,n(k).(44)E_{\infty,n}^{(k)}:=-\left(\frac{(\phi_n^m-\psi_n)\phi_n^m}{1-\psi_n}\right)^k=\lim_{N_T\to+\infty}E_{N_T,n}^{(k)}. \tag*{(44)}

Proof. Applying the change of variables p=NT−2k−jp=N_T-2k-j reverses the summation order, rewriting the modal error operator from (41) as:

ENT,n(k)=((ϕnm−ψn)ϕnm)k∑p=0NT−2k(p+k−1k−1)ψnp(ϕn(NT−2k−p)m−1).(45)E_{N_T,n}^{(k)}=\left((\phi_n^m-\psi_n)\phi_n^m\right)^k\sum_{p=0}^{N_T-2k}\binom{p+k-1}{k-1}\psi_n^p\left(\phi_n^{(N_T-2k-p)m}-1\right). \tag*{(45)}

Let M=NT−2kM=N_T-2k. We can split the summation into two distinct parts and evaluate their limits as M→∞M\to\infty. For the first part involving the ϕn\phi_n term, let

SM=∑p=0M(p+k−1k−1)ψnpϕn(M−p)m.(46)S_M=\sum_{p=0}^{M}\binom{p+k-1}{k-1}\psi_n^p\phi_n^{(M-p)m}. \tag*{(46)}

To bound this sum, let ρ=max⁡(∣ψn∣,∣ϕnm∣)\rho= \max(\lvert\psi_n\rvert,\lvert\phi_n^m\rvert). By hypothesis, both ∣ϕn∣<1\lvert\phi_n\rvert< 1 and ∣ψn∣<1\lvert\psi_n\rvert< 1, which implies ρ<1\rho< 1. Taking the absolute value yields:

∣SM∣≤∑p=0M(p+k−1k−1)∣ψn∣p∣ϕnm∣M−p≤∑p=0M(p+k−1k−1)ρpρM−p=ρM∑p=0M(p+k−1k−1).(47)\lvert S_M\rvert\le\sum_{p=0}^{M} \binom{p+k-1}{k-1}\lvert\psi_n\rvert^p\lvert\phi_n^m\rvert^{M-p} \le\sum_{p=0}^{M}\binom{p+k-1}{k-1}\rho^p\rho^{M-p} = \rho^M\sum_{p=0}^{M}\binom{p+k-1}{k-1}. \tag*{(47)}

Using the hockey-stick identity (30), the sum of the binomial coefficients evaluates to (M+kk)\binom{M+k}{k}, giving the bound ∣SM∣≤(M+kk)ρM\lvert S_M\rvert\le\binom{M+k}{k}\rho^M. The expression (M+kk)\binom{M+k}{k} is a polynomial in MM of degree kk, while ρM\rho^M is an exponentially decaying term. Since exponential decay dominates polynomial growth as M→∞M \to\infty, we have lim⁡M→+∞(M+kk)ρM=0\lim_{M\to+\infty}\binom{M+k}{k}\rho^M=0, meaning lim⁡M→+∞SM=0\lim_{M\to+\infty}S_M=0.

The second part of the summation in (45), −∑p=0M(p+k−1k−1)ψnp-\sum_{p=0}^{M}\binom{p+k-1}{k-1}\psi_n^p, is a partial sum of the negative binomial series. As M→∞M\to\infty, this yields the Maclaurin series expansion for −(1−ψn)−k-(1-\psi_n)^{-k}:

lim⁡M→+∞−∑p=0M(p+k−1k−1)ψnp=−(1−ψn)−k.(48)\lim_{M\to+\infty}-\sum_{p=0}^{M}\binom{p+k-1}{k-1}\psi_n^p=-(1-\psi_n)^{-k}. \tag*{(48)}

Because ∣ψn∣<1\lvert\psi_n\rvert<1, this series converges absolutely. Substituting these two limits back into the original expression yields

lim⁡NT→+∞ENT,n(k)=((ϕnm−ψn)ϕnm)k(0−1(1−ψn)k)=−((ϕnm−ψn)ϕnm1−ψn)k,(49)\lim_{N_T\to+\infty}E_{N_T,n}^{(k)}=((\phi_n^m-\psi_n)\phi_n^m)^k\left(0-\frac{1}{(1-\psi_n)^k}\right)=-\left(\frac{(\phi_n^m-\psi_n)\phi_n^m}{1-\psi_n}\right)^k, \tag*{(49)}

which recovers E∞,n(k)E_{\infty,n}^{(k)} in (44).

Asymptotic final-point (R-)MGRIT approximate solutions

We now show that for any fixed kk, both MGRIT with kk iterations and R-MGRIT with 1 MGRIT iteration on kk consecutive trajectories converge to the same final-point approximate solution, asymptotically for NT→+∞N_T\to+\infty.

Theorem 4.5. Let Assumption 4.1 hold. For any fixed k≥1k\ge1, the MGRIT and R-MGRIT final-point solutions from (36) and (38) converge to the same limit as NT→+∞N_T\to+\infty, namely,

lim⁡NT→+∞vNT(k)=lim⁡NT→+∞v~NT(k)=v∞(k):=V~∞ku0,(50)\lim_{N_T\to+\infty}v_{N_T}^{(k)}=\lim_{N_T\to+\infty}\widetilde{v}_{N_T}^{(k)}=v_{\infty}^{(k)}:=\widetilde{V}_{\infty}^{k}u_0, \tag*{(50)}

where

V~∞:=(I−Ψ)−1(Φm−Ψ)Φm.(51)\widetilde{V}_{\infty}:=(I-\Psi)^{-1}(\Phi^m-\Psi)\Phi^m. \tag*{(51)}

Proof. We first establish the result for each modal component. For n=1,…,Nn=1,\ldots,N, define V~∞,n:=(ϕnm−ψn)ϕnm/(1−ψn)\widetilde{V}_{\infty,n}:=(\phi_n^m-\psi_n)\phi_n^m/(1-\psi_n). By Lemma 4.4, we have

lim⁡NT→+∞ENT,n(k)=−V~∞,nk.(52)\lim_{N_T\to+\infty}E_{N_T,n}^{(k)}=-\widetilde{V}_{\infty,n}^{k}. \tag*{(52)}

Since ∣ϕn∣<1\lvert\phi_n\rvert<1, we also have ϕnNT→0\phi_n^{N_T}\to0 as NT→+∞N_T\to+\infty. Thus, using (42) and (43), we obtain

lim⁡NT→+∞vNT,n(k)=−lim⁡NT→+∞ENT,n(k)u0,n=V~∞,nku0,n,(53)\lim_{N_T\to+\infty}v_{N_T,n}^{(k)}=-\lim_{N_T\to+\infty}E_{N_T,n}^{(k)}u_{0,n}=\widetilde{V}_{\infty,n}^{k}u_{0,n}, \tag*{(53)}
lim⁡NT→+∞v~NT,n(k)=(−lim⁡NT→+∞ENT,n(1))ku0,n=V~∞,nku0,n.(54)\lim_{N_T\to+\infty}\widetilde{v}_{N_T,n}^{(k)}=\left(-\lim_{N_T\to+\infty}E_{N_T,n}^{(1)}\right)^k u_{0,n}=\widetilde{V}_{\infty,n}^{k}u_{0,n}. \tag*{(54)}

Hence, the MGRIT and R-MGRIT final-point approximations converge to the same limit in every mode.

To recover the full approximate solution vectors, recall that the columns {qn}n=1N\{q_n\}_{n=1}^{N} of QQ form an orthonormal basis. Since NN is finite, the modal limits can be combined to give

lim⁡NT→+∞vNT(k)=lim⁡NT→+∞v~NT(k)=∑n=1Nv~∞,nqn,u0,nqn.(55)\lim_{N_T\to+\infty} v_{N_T}^{(k)}=\lim_{N_T\to+\infty}\widetilde{v}_{N_T}^{(k)}=\sum_{n=1}^{N}\widetilde{v}_{\infty,n}q_n,u_{0,n}q_n. \tag*{(55)}

Finally, by the simultaneous diagonalization of Φ\Phi and Ψ\Psi,

Qdiag⁡(V~∞,1,…,V~∞,N)Q∗=(I−Ψ)−1(Φm−Ψ)Φm=V~∞.(56)Q\operatorname{diag}(\widetilde{V}_{\infty,1},\ldots,\widetilde{V}_{\infty,N})Q^{*}=(I-\Psi)^{-1}(\Phi^{m}-\Psi)\Phi^{m}=\widetilde{V}_{\infty}. \tag*{(56)}

Therefore, the common limit is V~∞(k)u0\widetilde{V}_{\infty}^{(k)}u_0, as claimed. ∎

By the triangle inequality, we can bound the finite-time difference between the MGRIT and R-MGRIT approximate solutions by their differences with respect to their shared asymptotic limit:

∥vNT(k)−v~NT(k)∥≤∥vNT(k)−v∞(k)∥+∥v~NT(k)−v∞(k)∥.(57)\left\|v_{N_T}^{(k)}-\widetilde{v}_{N_T}^{(k)}\right\|\leq\left\|v_{N_T}^{(k)}-v_{\infty}^{(k)}\right\|+\left\|\widetilde{v}_{N_T}^{(k)}-v_{\infty}^{(k)}\right\|. \tag*{(57)}

In our numerical experiments from § 5, we observe that these right-hand side terms are approximately zero for a sufficiently large NtN_t, which implies the left-hand side difference is also close to zero. Namely, we will infer this in Figure 3 from the fact that the gradient at the C-points stalls for both MGRIT and R-MGRIT, which is consistent with v~NT(k)≈v∞(k)≈vNT(k)\widetilde{v}_{N_T}^{(k)}\approx v_{\infty}^{(k)}\approx v_{N_T}^{(k)}, with similar behavior observed in the nonlinear, nonsmooth MP2 experiments in Figure 5 and Figure 7.

Norm of the gradient of MP1 approximate solutions for MGRIT, R-MGRIT, and $\gamma$-truncated R-MGRIT

Figure 3. 22-norm of the gradient of the MP1 approximate solutions at coarse time index jj and iteration kk of MGRIT, R-MGRIT and γ\gamma-truncated R-MGRIT (with γ=0.2\gamma= 0.2), from left to right, divided by the 22-norm of the gradient of the initial guess u0u_0.

Convergence of the generalized gradient for MGRIT, R-MGRIT, and $\gamma$-truncated R-MGRIT

Figure 5. 22-norm of the generalized gradient GsFG_sF (21) of the MP2-1D, (10), approximate solutions at coarse time index jj and iteration kk of MGRIT, R-MGRIT and γ\gamma-truncated R-MGRIT (with γ=0.2\gamma= 0.2), from left to right, divided by the 22-norm of the gradient of the initial guess u0\mathbf{u}_0.

Three panels showing the normalized 2-norm of the generalized gradient for MGRIT, R-MGRIT, and $\gamma$-truncated R-MGRIT

Figure 7. 22-norm of the generalized gradient GSG_{\mathrm{S}} (21) of the MP2-2D approximate solutions at coarse time index jj and iteration kk of MGRIT, R-MGRIT and γ\gamma-truncated R-MGRIT (with γ=0.2\gamma= 0.2), from left to right, divided by the 22-norm of the gradient of the initial guess u0\mathbf{u}_0.

On a truncated R-MGRIT strategy

We now motivate the idea of shortening R-MGRIT trajectories, by showing that the approximate endpoint solution obtained with one MGRIT iteration depends only weakly on the length of the trajectory.

Lemma 4.6. Let Assumption 4.1 hold. Consider an R-MGRIT trajectory with fixed initial guess u~0(k)\widetilde{u}_0^{(k)}. Let v~jm(k)\widetilde{v}_{jm}^{(k)} denote its approximation at the jjth C-point after one MGRIT iteration. Then the limit v~∞(k)=lim⁡j→∞v~jm(k)\widetilde{v}_{\infty}^{(k)}=\lim_{j\to\infty}\widetilde{v}_{jm}^{(k)} exists, and

v~jm(k)−v~∞(k)=Ψj−1(v~m(k)−v~∞(k)),j≥1.(58)\widetilde{v}_{jm}^{(k)}-\widetilde{v}_{\infty}^{(k)}=\Psi^{j-1}\left(\widetilde{v}_{m}^{(k)}-\widetilde{v}_{\infty}^{(k)}\right),\qquad j\geq1. \tag*{(58)}

Consequently,

∥v~jm(k)−v~∞(k)∥2≤ρ(Ψ)j−1∥v~m(k)−v~∞(k)∥2.(59)\left\|\widetilde{v}_{jm}^{(k)}-\widetilde{v}_{\infty}^{(k)}\right\|_{2}\leq\rho(\Psi)^{j-1}\left\|\widetilde{v}_{m}^{(k)}-\widetilde{v}_{\infty}^{(k)}\right\|_{2}. \tag*{(59)}

Proof. Under constant initialization, Lemma 4.3 gives

e~jm(k)=∑ℓ=0j−2Ψj−ℓ−2(Φm−Ψ)Φm(Φℓm−I)u~0(k),j≥2.\widetilde{e}_{jm}^{(k)}=\sum_{\ell=0}^{j-2}\Psi^{j-\ell-2}(\Phi^{m}-\Psi)\Phi^{m}(\Phi^{\ell m}-I)\widetilde{u}_{0}^{(k)},\qquad j\geq2.

Separating the final term yields the recurrence

e~jm(k)=Ψe~(j−1)m(k)+(Φm−Ψ)Φm(Φ(j−2)m−I)u~0(k).\widetilde{e}_{jm}^{(k)}=\Psi\widetilde{e}_{(j-1)m}^{(k)}+(\Phi^{m}-\Psi)\Phi^{m}(\Phi^{(j-2)m}-I)\widetilde{u}_{0}^{(k)}.

Since v~jm(k)=Φjmu~0(k)−e~jm(k)\widetilde{v}_{jm}^{(k)}=\Phi^{jm}\widetilde{u}_0^{(k)}-\widetilde{e}_{jm}^{(k)}, we obtain

v~jm(k)=Φjmu~0(k)−Ψ(Φ(j−1)mu~0(k)−v~(j−1)m(k))−(Φm−Ψ)Φm(Φ(j−2)m−I)u~0(k)=Ψv~(j−1)m(k)+(Φm−Ψ)Φmu~0(k).\begin{aligned} \widetilde{v}_{jm}^{(k)}=\Phi^{jm}\widetilde{u}_0^{(k)}-\Psi\left(\Phi^{(j-1)m}\widetilde{u}_0^{(k)}-\widetilde{v}_{(j-1)m}^{(k)}\right)-\left(\Phi^m-\Psi\right)\Phi^m\left(\Phi^{(j-2)m}-I\right)\widetilde{u}_0^{(k)} \\ &=\Psi\widetilde{v}_{(j-1)m}^{(k)}+\left(\Phi^m-\Psi\right)\Phi^m\widetilde{u}_0^{(k)}. \end{aligned}

Using v~m(k)=Φmu~0(k)\widetilde{v}_m^{(k)}=\Phi^m\widetilde{u}_0^{(k)} and iterating gives

v~jm(k)=Ψj−1Φmu~0(k)+∑ℓ=0j−2Ψℓ(Φm−Ψ)Φmu~0(k).\widetilde{v}_{jm}^{(k)}=\Psi^{j-1}\Phi^m\widetilde{u}_0^{(k)}+\sum_{\ell=0}^{j-2}\Psi^\ell\left(\Phi^m-\Psi\right)\Phi^m\widetilde{u}_0^{(k)}.

Since ρ(Ψ)<1\rho(\Psi)<1, the Neumann series converges, giving

v~∞(k)=(I−Ψ)−1(Φm−Ψ)Φmu~0(k)=V~∞u~0(k).\widetilde{v}_{\infty}^{(k)}=(I-\Psi)^{-1}\left(\Phi^m-\Psi\right)\Phi^m\widetilde{u}_0^{(k)}=\widetilde{V}_{\infty}\widetilde{u}_0^{(k)}.

Subtracting this limit from the preceding finite sum and using the geometric series identity gives (58). Finally, since Ψ\Psi is unitarily diagonalizable, ∥Ψ∥2=ρ(Ψ)<1\lVert\Psi\rVert_2=\rho(\Psi)<1, which yields (59). □

Lemma 4.6 provides a motivation for shortening R-MGRIT trajectories. Although the approximate solution along a single trajectory generally converges to v~∞(k)≠0\widetilde{v}_{\infty}^{(k)}\ne0, its difference from this limit decays geometrically at a rate governed by ρ(Ψ)\rho(\Psi). Thus, sufficiently far along a trajectory, computing additional C-points has little effect on its approximate endpoint. Since R-MGRIT uses only this endpoint to initialize the next trajectory, much of this additional computation may be unnecessary.

More precisely, let V~jm\widetilde{V}_{jm} denote the endpoint operator for a trajectory with jj coarse-grid intervals. The lemma implies that V~jm→V~∞\widetilde{V}_{jm}\to\widetilde{V}_{\infty} as j→∞j\to\infty, and hence (V~∞)ku0→V~∞ku0=v∞(k)(\widetilde{V}_{\infty})^k u_0\to\widetilde{V}_{\infty}^k u_0=v_{\infty}^{(k)} for fixed kk. Therefore, sufficiently long trajectories can be shortened while retaining approximately the same final-point solution after kk restarts, potentially reducing the computational cost of R-MGRIT.

Motivated by this observation, we consider truncating each R-MGRIT trajectory to N‾t=γNt\overline{N}_t=\gamma N_t fine-grid intervals, where γ∈(0,1)\gamma\in(0,1) and N‾t\overline{N}_t is rounded to a multiple of mm when necessary. For sufficiently large N‾t\overline{N}_t, the preceding analysis suggests that, for fixed kk,

v~N‾t(k)≈v~Nt(k)≈v∞(k).(60)\widetilde{v}_{\overline{N}_t}^{(k)}\approx\widetilde{v}_{N_t}^{(k)}\approx v_{\infty}^{(k)}. \tag*{(60)}

The theoretical result does not specify how short the trajectories can be made, nor does it guarantee that truncation preserves the number of restarts required for convergence. We investigate these questions numerically in § 5, using γ=0.2\gamma=0.2.

Numerical results for MGRIT vs. R-MGRIT

For our numerical experiments we consider the two model problems, MP1, (7), and MP2, (10), with the optimization methods described in subsections 2.1 and 2.2 for MP1 and MP2, respectively. For each problem, we first determine NtN_t via a sequential fine-grid solve, then construct our fine-grid mesh of Nt+1N_t+1 points with spacing Δt=1/L\Delta t=1/L. We choose 10−810^{-8} as the relative tolerance for all iterative methods.

For R-MGRIT, as proposed in subsection 4.5, we consider truncating the fine-grid time domain by a fixed factor γ=0.2\gamma=0.2. In this case, we solve all-at-once systems of the form (4) corresponding to a fifth of the number of iterations of the underlying optimization method. We illustrate convergence results for a particular set of choices. for the parameters NN (dimension of the Laplacian matrix), mm (coarsening factor) and ℓ^\hat{\ell} (number of levels). Later, we present results for different values of mm, ℓ^\hat{\ell} and NN to analyze how performance is affected by the choices of these parameters.

The initial MGRIT guess u0∈RN\mathbf{u}_0 \in\mathbb{R}^N is chosen to be random with components in [0,1][0,1], after which the condition u0=w0\mathbf{u}_0 = \mathbf{w}_0 is enforced on the all-at-once system (3). For both model problems, we fix a step size s(ℓ)=mℓ−1/Ls^{(\ell)} = m^{\ell-1}/L for the ℓ\ellth level operator, ℓ=1,…,ℓ^\ell= 1,\ldots,\hat{\ell}, where mm denotes the coarsening factor and ℓ^\hat{\ell} the maximum number of levels; note that we use the same operator Ψ\Psi (with the level-appropriate step size s(ℓ)s^{(\ell)}) on all levels ℓ≥2\ell\ge2.

Numerical experiments for gradient descent applied to MP1

We solve MP1, (7), using gradient descent, (8). For this example, the 1D Laplacian matrix A1∈RN×NA_1 \in\mathbb{R}^{N \times N} in (5) with 2-norm LL is taken with N=n=80N = n = 80, the coarsening factor is chosen to be m=64m = 64 and the number of levels to be ℓ^=2\hat{\ell} = 2. We also choose b∈RN\mathbf{b} \in\mathbb{R}^N to be random with components in [0,1][0,1]. First, we solve the problem sequentially, with 30,016 iterations required for the convergence of the gradient descent algorithm (8). MGRIT then solves (3) using Algorithm 3.1. We then consider truncating the total number of fine-grid intervals from NtN_t to N‾t=γNt\overline{N}_t = \gamma N_t. For a truncation factor γ=0.2\gamma= 0.2, we have N‾t=6,080\overline{N}_t = 6,080.

Convergence for the sequential and MGRIT solves is illustrated in Figure 2, in which we observe that MGRIT requires 8 iterations for convergence, while R-MGRIT only requires 6 trajectories, so a total of 6 MGRIT iterations. We plot the gradient at the C-point approximate solutions of each iteration of MGRIT and R-MGRIT in Figure 3, in which we observe that the truncated R-MGRIT possesses a similar convergence behavior as the full-time domain R-MGRIT solve. Therefore, by truncating NtN_t to a sufficiently large (yet relatively small) N‾t=γNt\overline{N}_t = \gamma N_t, we obtain convergence in at most as many iterations as MGRIT.

Sequential and MGRIT convergence plots

Figure 2. (a): Convergence of MP1 with a standard sequential solve using gradient descent (8). (b): Convergence of MP1 using MGRIT (in blue), R-MGRIT (in red) and γ\gamma-truncated R-MGRIT with γ=0.2\gamma= 0.2 (in yellow).

Figure 2(b) shows that MGRIT and R-MGRIT converge essentially with the same speed and the cost per iteration is the same, so there is no direct benefit in considering multiple inexact trajectories instead of converging MGRIT accurately on a single trajectory. However, the middle panel of Figure 3 suggests that running R-MGRIT with shorter trajectories may provide a substantial cost benefit. This approach is explained in the γ\gamma-truncated numerical results in this section, and gain in computational cost is discussed in § 6.

Although the numerical results illustrated in Figure 3 are only presented for the norm of the gradient, the theory from § 4 allows us to interpret the results in terms of the approximate solutions. Theorem 4.5 predicts that the difference between the MGRIT and R-MGRIT final-point approximate solutions for each fixed iteration index 1≤k≤61 \leq k \leq6 will be small as the number of C-points becomes sufficiently large for both to approximate their common asymptotic limit of v∞(k)\mathbf{v}_{\infty}^{(k)}, and Figure 3 indicates that this happens much earlier than NTN_T. Indeed, Figure 3 suggests that (60) holds for N‾T=γNT\overline{N}_T = \gamma N_T with γ≤0.2\gamma\leq0.2 with γ\gamma-truncated R-MGRIT attaining a similar gradient reduction factor to MGRIT and full-time R-MGRIT.

For k≥7k \geq7, we observe that NTN_T is no longer large enough for the vNT(k)≈v∞(k)\mathbf{v}_{N_T}^{(k)} \approx\mathbf{v}_{\infty}^{(k)} approximation to hold and the MGRIT final-point gradient stalls, with a final gradient reduction factor of approximately 10−810^{-8} as predicted by [2 Lemma 5.1]. By approximating new target trajectories rather than the initial one, R-MGRIT iterations of index k≥7k \geq7 continue to reduce the gradient by approximately the same linear rate, as first illustrated in Figure 2. Thus, R-MGRIT does not require an accurate estimation of NtN_t, the number of iterations required for convergence of gradient descent (8) with the prescribed 10−810^{-8} accuracy threshold.

In Table 1, we present MGRIT and R-MGRIT convergence results for MP1 (7) with different coarsening factors mm, number of MGRIT levels ℓ^\hat{\ell} and different sizes for the matrix A1A_1 in (5); we note that all R-MGRIT results hold identically for a truncation factor γ=0.2\gamma= 0.2 (not shown). Having established in [2] that the number of iterations does not change much as ℓ^\hat{\ell} increases, here we only present results for the smallest (ℓ^=2\hat{\ell} = 2) and largest (ℓ^=ℓ\hat{\ell} = \ell) possible number of levels given the number of time points NtN_t and the coarsening factor mm.

ℓ^=2\hat{\ell}=2ℓ^=ℓ\hat{\ell}=\ell
m=4m=49(9)9(9)
m=16m=168(7)8(7)
m=64m=648(6)8(6)
m=256m=2567(5)—
m=4m=49(9)9(9)
m=16m=168(7)8(7)
m=64m=648(6)8(6)
m=256m=2568(6)—
m=1024m=10247(5)—

Table 1. MP1 (7) MGRIT convergence results for different values of mm and ℓ^\hat{\ell}. In parentheses, results for R-MGRIT. Here, ℓ\ell denotes the maximum number of levels for the given coarsening factor. For both N=60N=60 and N=80N=80, we have ℓ=8\ell=8 for m=4m=4, ℓ=4\ell=4 for m=16m=16, ℓ=3\ell=3 for m=64m=64 and ℓ=2\ell=2 for m=256m=256; for N=80N=80, we have m=1024m=1024. (a) N=60N=60, Nt=18,050N_t=18,050; (b) N=80N=80, Nt=30,016N_t=30,016.

Numerical experiments for proximal gradient applied to MP2

Numerical results for MP2-1D

We now consider solving the EOP, MP2 (10), using proximal gradient method (11) with penalty parameter λ=900\lambda= 900.

For MGRIT, we choose the alternating proximals operator (13) to be the coarse-grid operator. We present one MP2-1D and one MP2-2D example, similar to those in [2].

For the MP2-1D example, we consider MP2 in (10) with d=1d=1 and N=256N=256, with MGRIT parameters m=256m=256 and ℓ^=2\hat{\ell}=2. The obstacle ϕ\phi is obtained by discretizing ϕ(x)=max⁡{0,sin⁡x}\phi(x)=\max\{0,\sin x\} for x∈Ω:=[0,3π]x \in\Omega:= [0,3\pi] on a uniform mesh of N+2N+2 points.

We again start by presenting results for the sequential and (R-)MGRIT convergence in Figure 4. In this example, the proximal gradient method requires 109,888 iterations to reach the prescribed halting tolerance, i.e., that the generalized gradient of FF, GsFG_{sF} in (21), be reduced by 8 orders of magnitude; we extend the number of time points to Nt=110,081N_t=110,081 such that NT=Nt/m=431N_T=N_t/m=431 is an integer. In Figure 4, we observe that MGRIT reaches the prescribed residual tolerance in 10 iterations, while R-MGRIT reaches it in 9 iterations both when using the full NtN_t number of time points and when truncating the time domain to a fifth of the number of time points. The convergence speed of all 3 methods in Figure 4 is very similar. We present the C-point gradients of each iteration in Figure 5, in which we observe similar behavior in the gradient norm to what we observed in Figure 3 for MP1.

Convergence plots for MP2-1D

Figure 4. (a): Convergence of MP2-1D with a standard sequential solve using proximal gradient (11). (b): Convergence of MP2-1D using MGRIT (in blue), R-MGRIT (in red) and γ\gamma-truncated R-MGRIT with γ=0.2\gamma=0.2 (in yellow).

Numerical results for MP2-2D

For the MP2-2D example, we consider MP2 in (10) with d=2d=2 and N2=642N^2=64^2, with MGRIT parameters m=64m=64 and ℓ^=2\hat{\ell}=2. The obstacle ϕ\phi is obtained by discretizing $\phi(x,y)=\max{0,\sin x}\max{0,\sin y} for (x,y)∈Ω:=[0,3π]2(x,y) \in\Omega:= [0,3\pi]^2 on a uniform mesh of N+2N+2 points in each spatial dimension. We present the sequential and MGRIT convergence results in Figure 6, noting that the sequential solver required 13,256 iterations to converge; for a coarsening factor m=64m = 64, we then work with Nt=13,312N_t = 13,312, such that NT=Nt/m=208N_T = N_t/m = 208 denotes the number of coarse time intervals. We present C-point gradients in Figure 7, in which we observe that γ\gamma-truncated R-MGRIT (with γ=0.2\gamma= 0.2) converged in 9 iterations, while MGRIT and full-time R-MGRIT converged in 10 iterations. As in the MP2-1D example, we observe that γ\gamma-truncated R-MGRIT required fewer iterations to reduce the gradient by a factor of 10−810^{-8} than MGRIT and full-time R-MGRIT.

Sequential and MGRIT convergence for MP2-2D

Figure 6. (a): Convergence of MP2-2D with a standard sequential solve using proximal gradient (11). (b): Convergence of MP2-2D using MGRIT (in blue), R-MGRIT (in red) and γ\gamma-truncated R-MGRIT with γ=0.2\gamma= 0.2 (in yellow).

While the theory from § 4 is only presented for linear MGRIT problems, we observe generally similar results for the nonlinear MP2, (10), in both one and two dimensions. In particular, in both Figure 4 and Figure 6 we observe that R-MGRIT reduces the gradient by a factor of 10−810^{-8} in the same 9 iterations required for MGRIT to achieve a similar reduction factor, with R-MGRIT continuing to reduce the gradient in subsequent iterations while MGRIT’s final-point generalized gradient stalls. Although the approximation from (60) for NT=γNTN_T = \gamma N_T with γ=0.2\gamma= 0.2 is observed to be less accurate in that the convergence to the final gradient is slower in Figure 5 and Figure 7 than in Figure 3, as can be inferred from the rightmost panel of the respective figures, this is advantageous for γ\gamma-truncated R-MGRIT, which is able to reduce the final-point generalized gradient (21) at a slightly faster rate because the gradient undershoots with a slow increase to the final value.

In Table 2 and Table 3, we present convergence results for MP2, (10), with different coarsening factors mm, number of MGRIT levels ℓ^\hat{\ell} and different sizes for the matrices A1A_1 in (5) for MP2-1D and A2A_2 in (6) for MP2-2D. As in Table 1, we only present results for the smallest (ℓ^=2\hat{\ell}=2) and largest (ℓ^=ℓ\hat{\ell}=\ell) permissible number of levels. Comparing results for MGRIT, R-MGRIT with full time domain, and γ\gamma-truncated R-MGRIT, we observe that the truncated variant achieves comparable gradient reduction in a similar number of iterations.

ℓ^=2\hat{\ell}=2ℓ^=ℓ\hat{\ell}=\ellℓ^=2\hat{\ell}=2ℓ^=ℓ\hat{\ell}=\ell
m=4m=410(9)[10]12(13)[11]m=4m=410(8)[8]12(9)[10]
m=16m=169(8)[8]10(9)[9]m=16m=1611(9)[9]11(10)[9]
m=64m=6410(9)[9]10(11)[9]m=64m=649(7)[9]10(9)[9]
m=256m=25610(9)[9]10(9)[9]m=256m=2569(8)[7]—
m=1024m=102411(10)[9]—m=1024m=102410(9)[9]—

Table 2. MP2-1D MGRIT convergence results for different values of NN, mm and ℓ^\hat{\ell}. In parentheses, results for R-MGRIT; in square brackets, results for R-MGRIT with truncation factor γ=0.2\gamma= 0.2. For m=4m = 4, we have ℓ=8\ell= 8 for N=256N = 256 and ℓ=10\ell= 10 for N=512N = 512. For both N=256N = 256 and N=512N = 512, we have ℓ=5\ell= 5 for m=16m = 16, ℓ=4\ell= 4 for m=64m = 64, ℓ=3\ell= 3 for m=256m = 256 and ℓ=2\ell= 2 for $m = 1024. (a) N=256N = 256, Nt=109,888N_t = 109,888. (b) N=512N = 512, Nt=369,612N_t = 369,612.

ℓ^=2\widehat{\ell}=2ℓ^=ℓ\widehat{\ell}=\ellℓ^=2\widehat{\ell}=2ℓ^=ℓ\widehat{\ell}=\ell
m=4m=410(10)[10]10(10)[10]14(13)[13]14(13)[13]m=4m=49(9)[9]9(9)[9]11(11)[10]11(11)[10]
m=16m=1611(10)[10]11(10)[10]12(12)[11]12(12)[11]m=16m=169(8)[8]9(8)[8]9(9)[9]9(9)[9]
m=64m=6410(10)[9]10(10)[9]10(10)[9]10(10)[9]m=64m=649(8)[8]9(8)[8]9(9)[8]9(9)[8]
m=256m=2569(9)[7]9(9)[7]—m=256m=2569(9)[8]9(9)[8]—

Table 3. MP2-2D MGRIT convergence results for different values of NN, mm and ℓ^\widehat{\ell}. In parentheses, results for R-MGRIT; in square brackets, results for R-MGRIT with truncation factor γ=0.2\gamma=0.2. For both N2=642N^2=64^2 and N2=1282N^2=128^2, we have ℓ=7\ell=7 for m=4m=4, ℓ=4\ell=4 for m=16m=16, ℓ=3\ell=3 for m=64m=64 and ℓ=2\ell=2 for $m=256. (a) N2=642N^2=64^2, Nt=13,256N_t=13,256. (b) N2=1282N^2=128^2, Nt=46,431N_t=46,431.

R-MGRIT parallel speedup estimates

In § 5, we empirically observed that γ\gamma-truncated R-MGRIT achieves gradient reduction comparable to MGRIT (in the same or fewer number of iterations) with the R-MGRIT time domain truncated to a fifth of the number of time points required for MGRIT convergence to the same accuracy threshold. Because the primary motivation for employing MGRIT is to reduce the wall-clock time required to solve the sequential problem, we now formalize how this temporal truncation translates into practical parallel speedup. In the following, we assume that one R-MGRIT iteration has the same computational cost as one MGRIT iteration as described by the speedup formulas derived in [2]. Thus, in this section we discuss 2-level R-MGRIT with a γ\gamma-truncated temporal domain, with γ=1\gamma=1 denoting the non-truncated R-MGRIT (or equivalently, MGRIT) speedup estimates.

2-level γ\gamma-truncated R-MGRIT parallel speedup

In the following, recall that NtN_t denotes the number of time intervals on the fine-grid level ℓ=1\ell=1, and let tft_f denote the wall-clock time required to apply the fine-grid time-stepping operator Φ\Phi once. Similarly, recall that NTN_T denotes the total number of time intervals on the coarse-grid level ℓ=2\ell=2, and let tct_c denote the wall-clock time required to apply the coarse-grid time-stepping operator Ψ\Psi once. Let mm denote the coarsening factor, given by m=Nt/NTm=N_t/N_T. Let NpN_p denote the number of processors. By full parallelization we mean that Np=NT=Nt/mN_p=N_T=N_t/m, in which case each coarse-grid step is allocated to its own processor, along with mm fine-grid steps. Let NitN_{it} denote the number of iterations required for convergence of standard MGRIT given the coarsening factor mm. Finally, we let α:=tc/tf\alpha:=t_c/t_f denote the ratio of wall-clock time required to compute one coarse-grid step relative to one fine-grid step.

Given the 2-level parallel speedup estimate formula from [2], which is based on similar formulas [17, 24] for the parareal method [15], the speedup formula for this truncated time domain is

S‾2(m)=NtN‾it(αNT+2m),(61)\overline{S}_2(m)=\frac{N_t}{\overline{N}_{it}\left(\alpha N_T+2m\right)}, \tag*{(61)}

where N‾it\overline{N}_{it} is the number of iterations required for R-MGRIT convergence on a fine grid with N‾T=N‾Tm\overline{N}_T=\overline{N}_T m intervals. Note that N‾it\overline{N}_{it} still equals both the number of R-MGRIT trajectories and the total number of MGRIT iterations used by R-MGRIT. Given some γ∈(0,1]\gamma\in(0,1], we substitute N‾T=γNt/m=γNT\overline{N}_T=\gamma N_t/m=\gamma N_T into (61), which yields

S‾2(m,γ)=NtN‾it(γαNtm+2m)=1N‾it(γαm+2mNt).(62)\overline{S}_2(m,\gamma)=\frac{N_t}{\overline{N}_{it}\left(\frac{\gamma\alpha N_t}{m}+2m\right)} =\frac{1}{\overline{N}_{it}\left(\frac{\gamma\alpha}{m}+\frac{2m}{N_t}\right)}. \tag*{(62)}

Note that if N‾it=Nit\overline{N}_{it}=N_{it}, this formula is identical to the 2-level MGRIT speedup formula from [2], but with the operator cost ratio α\alpha scaled down by γ\gamma; letting γ=1\gamma=1 recovers the 2-level MGRIT formula exactly. By setting the derivative of the denominator of (62) with respect to mm equal to zero for a fixed γ\gamma, we maximize S‾2(m,γ)\overline{S}_2(m,\gamma) to find the optimal coarsening factor for the γ\gamma-truncated R-MGRIT solve:

∂∂m(γαm+2mNt)∣m=mγ∗=0⟺−γα(mγ∗)2+2Nt=0⟺mγ∗=γαNt2.(63)\left.\frac{\partial}{\partial m}\left(\frac{\gamma\alpha}{m}+\frac{2m}{N_t}\right)\right|_{m=m_\gamma^*}=0 \Longleftrightarrow-\frac{\gamma\alpha}{(m_\gamma^*)^2}+\frac{2}{N_t}=0 \Longleftrightarrow m_\gamma^*=\sqrt{\frac{\gamma\alpha N_t}{2}}. \tag*{(63)}

Let m∗:=m1∗m^*:=m_1^* denote the MGRIT optimal coarsening factor. Then, the relation between the truncated R-MGRIT and the MGRIT optimal coarsening factors satisfies

mγ∗m∗=γ.(64)\frac{m_\gamma^*}{m^*}=\sqrt{\gamma}. \tag*{(64)}

By substituting m∗m^* and mγ∗m_\gamma^* into (62), we find that the ratio between the γ\gamma-truncated R-MGRIT speedup and the standard MGRIT (or non-truncated R-MGRIT) speedup is given by

S‾2(mγ∗,γ)S2(m∗)=1γ(Nit/N‾it).(65)\frac{\overline{S}_2(m_\gamma^*,\gamma)}{S_2(m^*)}=\frac{1}{\sqrt{\gamma}}\left(N_{it}/\overline{N}_{it}\right). \tag*{(65)}

In practice, we expect that N‾it≤Nit\overline{N}_{it}\leq N_{it} for many small γ\gamma, as seen in Table 1 to Table 3 for γ=0.2\gamma=0.2. Therefore, the speedup is increased by a factor of Nit/(N‾itγ)N_{it}/(\overline{N}_{it}\sqrt{\gamma}) while the number of processors required for full parallelization is also reduced proportionally to γ\sqrt{\gamma}:

N‾p∗/Np∗γNt/mγ∗Nt/m∗=γNt/mγ∗Nt/m∗=γ.(66)\frac{\overline{N}_p^*/N_p^*}{\gamma N_t/m_\gamma^*}{N_t/m^*}=\frac{\gamma N_t/m_\gamma^*}{N_t/m^*}=\sqrt{\gamma}. \tag*{(66)}

For example, if γ=1/4\gamma=1/4 and N‾it=Nit\overline{N}_{it}=N_{it}, we achieve twice the speedup with half of the number of processors required for the standard MGRIT solve.

3-level γ\gamma-truncated R-MGRIT parallel speedup

We now extend the previous 2-level discussion to 3-level methods based on the 3-level speedup estimates from [2]. Following reasoning similar to the 2-level case, the full-parallelization 3-level γ\gamma-truncated speedup formula is given by

S‾3(m,γ)=1N‾it(γαm2+2mNt(1+3α2)).(67)\overline{S}_3(m,\gamma)=\frac{1}{\overline{N}_{it}\left(\frac{\gamma\alpha}{m^2}+\frac{2m}{N_t}\left(1+\frac{3\alpha}{2}\right)\right)}. \tag*{(67)}

By setting the derivative of the denominator in (67) with respect to mm equal to zero to maximize S‾3(m,γ)\overline{S}_3(m,\gamma), we obtain the optimal coarsening factor mγ∗m_\gamma^* given by

mγ∗=γNt1/α+3/23,such thatmγ∗m∗=γ3,(68)m_\gamma^*=\sqrt[3]{\frac{\gamma N_t}{1/\alpha+3/2}},\qquad\text{such that}\qquad\frac{m_\gamma^*}{m^*}=\sqrt[3]{\gamma}, \tag*{(68)}

where m∗:=m1∗m^*:=m_1^* denotes the 3-level MGRIT optimal coarsening factor. As in the 2-level case, truncating R-MGRIT by a factor γ\gamma increases the speedup and reduces the processor requirement relative to MGRIT, this time proportionally to γ3\sqrt[3]{\gamma} and γ2/3\gamma^{2/3}, respectively:

S‾3(m∗,γ)S3(m∗)=1γ3(NitN‾it),N‾p∗Np∗=γγ3=γ2/3.(69)\frac{\overline{S}_{3}(m^{*},\gamma)}{S_{3}(m^{*})}=\frac{1}{\sqrt[3]{\gamma}}\left(\frac{N_{it}}{\overline{N}_{it}}\right),\qquad\frac{\overline{N}_{p}^{*}}{N_{p}^{*}}=\frac{\gamma}{\sqrt[3]{\gamma}}=\gamma^{2/3}. \tag*{(69)}

For example, if γ=1/8\gamma=1/8 and Nit=N‾itN_{it}=\overline{N}_{it}, the predicted speedup is doubled while the processor requirement is quartered relative to the full-time 3-level MGRIT solve.

R-MGRIT parallel speedup estimates for MP1 and MP2

We now present the R-MGRIT parallel speedup estimates for MP1 and MP2 in the following tables. First, we compute the optimal m∗m^{*} for ℓ^=2\hat{\ell}=2 and ℓ^=3\hat{\ell}=3 by (63) and (68), respectively, given an empirically estimated α=tc/tf\alpha=t_{c}/t_{f}. We choose m=m∗m=m^{*} as the coarsening factor, rounding it to the nearest integer if needed, for the MGRIT solves. By running the MGRIT algorithm of our choice, namely Algorithm 3.1 for MP1 and Algorithm 3.2 for MP2, with m=m∗m=m^{*} as the coarsening factor, we empirically obtain Nit∗N_{it}^{*} as the number of iterations required for convergence with the theoretically predicted optimal coarsening factors, and we also estimate α\alpha. We then use m=m∗m=m^{*} and Nit=Nit∗N_{it}=N_{it}^{*} in the speedup formulas (62) and (67) for 2 and 3 levels, respectively. We then do the same for truncated R-MGRIT, for which we consider a truncation factor γ=0.2\gamma=0.2, as in § 5. Note that for R-MGRIT, the Nit∗N_{it}^{*} reported in the following tables corresponds to N‾it\overline{N}_{it} in the discussion from § 6.

In Table 4 to Table 6, we observe that truncating the time domain to a fifth of the number of time points required for standard MGRIT convergence provides a substantial improvement of the standard MGRIT speedup, in accordance with the theory developed in § 6. Notably, our results here suggest that R-MGRIT converges in less parallel wall-clock time by employing only a small fraction of NtN_{t} on each trajectory, the number of iterations required for the underlying optimization method to converge to a sufficiently accurate approximation of the true optimum.

ℓ^\hat{\ell}m∗m^{*}Nit∗N_{it}^{*}Sℓ^∗S_{\hat{\ell}}^{*}NpN_{p}ℓ^\hat{\ell}m∗m^{*}Nit∗N_{it}^{*}Sℓ^∗S_{\hat{\ell}}^{*}NpN_{p}
MGRIT216783.37109222984.09132
32186.2086032687.811155
R-MGRIT (γ=0.2\gamma=0.2)274610.05492103612.2059
313614.12278315813.36401

Table 4. Speedup estimates for MP1, (2.2), for different values of NN and ℓ^\hat{\ell}. Here, m∗m^{*} and Sℓ^∗S_{\hat{\ell}}^{*} are computed based on the numerically estimated tc/tft_{c}/t_{f} values given by α=3.1\alpha=3.1 for N=60N=60, and α=3.5\alpha=3.5 for N=80N=80. NpN_{p} denotes the number of processors required to achieve optimal speedup. (a) N=60N=60, Nt=18,050N_{t}=18,050 (b) N=80N=80, Nt=30,016N_{t}=30,016

ℓ^\hat{\ell}m∗m^*Nit∗N_{it}^*Sℓ^∗S_{\hat{\ell}}^*NpN_pℓ^\hat{\ell}m∗m^*Nit∗N_{it}^*Sℓ^∗S_{\hat{\ell}}^*NpN_p
MGRIT229491.2546240393.19116
320101.0666333094.911548
R-MGRIT (γ=0.2\gamma= 0.2)213183.1621218088.0552
312111.6522131898.39516
(a) N2=642N^2 = 64^2, Nt=13,256N_t = 13,256(b) N2=1282N^2 = 128^2, Nt=46,431N_t = 46,431

Table 6. Speedup estimates for MP2-2D, (2.5), for different values of NN and ℓ^\hat{\ell}. Here, m∗m^* and S∗S^* are computed based on the numerically estimated tctf\frac{t_c}{t_f} values given by α=13\alpha= 13 for N2=642N^2 = 64^2, and α=7\alpha= 7 for N2=1282N^2 = 128^2. NpN_p denotes the number of processors required to achieve optimal speedup.

We note that truncating more aggressively, e.g. choosing γ=0.125\gamma=0.125 instead of γ=0.2\gamma=0.2, did not significantly change the predicted speedup. We remark that an optimal truncation factor γ\gamma can not be determined a priori since we cannot estimate Nit∗N_{it}^{*} as a function of γ\gamma and the other parameters. However, our numerical results suggest γ=0.2\gamma=0.2 is a good baseline parameter choice for our model problems.

Applying Anderson-acceleration to R-MGRIT

In § 4 and § 5, we observed that R-MGRIT is not expected to achieve faster gradient reduction than MGRIT. Thus, in an attempt to obtain faster gradient reduction over MGRIT, we consider applying acceleration techniques to R-MGRIT. Namely, we consider applying Anderson acceleration [1, 8] to accelerate R-MGRIT. To this end, we define F\mathcal{F} as the map that takes an initial guess and returns the approximate final point obtained after one MGRIT iteration on the corresponding optimization trajectory. Since R-MGRIT uses this final point to initialize the next trajectory, we can write R-MGRIT as the fixed-point iteration

ℓ^\hat{\ell}m∗m^*Nit∗N_{it}^*Sℓ^∗S_{\hat{\ell}}^*NpN_pℓ^\hat{\ell}m∗m^*Nit∗N_{it}^*Sℓ^∗S_{\hat{\ell}}^*NpN_p
MGRIT2363107.5630328491010.88436
3391020.652818359933.606265
R-MGRIT (γ=0.2\gamma= 0.2)2162918.801362380734.79195
3231035.30956335864.632113
(a) N=256N = 256, Nt=109,888N_t = 109,888(b) N=512N = 512, Nt=369,612N_t = 369,612

Table 5. Speedup estimates for MP2-1D, (2.5), for different values of NN and ℓ^\hat{\ell}. Here, m∗m^* and S∗S^* are computed based on the numerically estimated tctf\frac{t_c}{t_f} values given by α=2.4\alpha= 2.4 for N=256N = 256, and α=3.9\alpha= 3.9 for N=512N = 512. NpN_p denotes the number of processors required to achieve optimal speedup.

u~0(k+1)=F(u~0(k)),k=0,1,….(70)\widetilde{\mathbf{u}}_0^{(k+1)} = \mathcal{F}\left(\widetilde{\mathbf{u}}_0^{(k)}\right), \qquad k = 0,1,\ldots. \tag*{(70)}

The minimizer u∗\mathbf{u}^* of the underlying optimization problem, min⁡u∈RNF(u)\min_{\mathbf{u}\in\mathbb{R}^N} F(\mathbf{u}), is a fixed point of this map, i.e., F(u∗)=u∗\mathcal{F}(\mathbf{u}^*) = \mathbf{u}^*.

The Anderson acceleration iteration for (70) given a window size w∈N∪{+∞}w \in\mathbb{N}\cup\{+\infty\}, denoted by AA(w)\mathrm{AA}(w), is given by

u~0(k+1)=F(u~0(k))+∑i=1min⁡(k,w)βi(k)(F(u~0(k))−F(u~0(k−i))),k=0,1,…,(71)\widetilde{\mathbf{u}}_0^{(k+1)} = \mathcal{F}\left(\widetilde{\mathbf{u}}_0^{(k)}\right) + \sum_{i=1}^{\min(k,w)} \beta_i^{(k)}\left(\mathcal{F}\left(\widetilde{\mathbf{u}}_0^{(k)}\right)-\mathcal{F}\left(\widetilde{\mathbf{u}}_0^{(k-i)}\right)\right), \qquad k = 0,1,\ldots, \tag*{(71)}

where for each kk the coefficients βi(k)\beta_i^{(k)} are determined by solving

min⁡{βi(k)}∥r(u~0(k))+∑i=1min⁡(k,w)βi(k)(r(u~0(k))−r(u~0(k−i)))∥,(72)\min_{\{\beta_i^{(k)}\}} \left\| r\left(\widetilde{\mathbf{u}}_0^{(k)}\right) + \sum_{i=1}^{\min(k,w)} \beta_i^{(k)}\left(r\left(\widetilde{\mathbf{u}}_0^{(k)}\right)-r\left(\widetilde{\mathbf{u}}_0^{(k-i)}\right)\right)\right\|, \tag*{(72)}

where r(u~0(k)):=u~0(k)−F(u~0(k))r(\tilde{u}_0^{(k)}) := \tilde{u}_0^{(k)} - \mathcal{F}(\tilde{u}_0^{(k)}) for all kk. Put simply, AA(ww) attempts to accelerate (70) by using the ww previous initial guesses to generate an improved initial guess for the next all-at-once system. In the tests below we use AA(1), in which case only the previous initial guess is used, and AA(∞\infty), corresponding to using the full available history of initial guesses.

In Figure 8, we present numerical experiments similar to those in § 5 in which we apply Anderson acceleration to R-MGRIT with a full time domain and truncated R-MGRIT with γ=0.2\gamma= 0.2. We consider the setting of the numerical experiments illustrated in Figure 2 and Figure 6 for MP1-1D, (7), and MP2-2D, (10), respectively; this time, we compare MGRIT with Anderson-accelerated R-MGRIT and Anderson-accelerated truncated R-MGRIT. We observe in Figure 8 that AA(∞\infty) reduces the number of R-MGRIT iterations required for convergence in experiments for both model problems. AA(1) achieves a similar improvement in gradient reduction in all instances, except for the γ\gamma-truncated MP1 experiment. Since Anderson acceleration adds trivial overhead cost to the underlying fixed-point iteration, the acceleration provided would improve the parallel speedup estimates presented in § 6 by further reducing Nˉit\bar{N}_{it}, the number of R-MGRIT iterations required for convergence, relative to NitN_{it}, the number of MGRIT iterations required for convergence.

AA(1) applied to R-MGRIT for MP1

(a) AA(1) applied to R-MGRIT for MP1.

AA(1) applied to R-MGRIT for MP2-2D

(b) AA(1) applied to R-MGRIT for MP2-2D.

AA($\infty$) applied to R-MGRIT for MP1

(c) AA(∞\infty) applied to R-MGRIT for MP1.

AA($\infty$) applied to R-MGRIT for MP2-2D

(d) AA(∞\infty) applied to R-MGRIT for MP2-2D.

Figure 8. Convergence of R-MGRIT (blue), full-time R-MGRIT with Anderson acceleration (71) (orange), γ\gamma-truncated R-MGRIT (yellow) and γ\gamma-truncated R-MGRIT with Anderson acceleration (purple) variants, with γ=0.2\gamma= 0.2, for: (a) MP1 and AA(1), (b) MP2-2D and AA(1), (c) MP1 and AA(∞\infty), and (d) MP2-2D and AA(∞\infty). In (a) and (c), the blue curve sits underneath the yellow curve.

Conclusions

We have extended the parallel-in-iteration MGRIT framework for optimization from [2] by introducing restarted MGRIT (R-MGRIT). Rather than repeatedly improving the approximation of a single optimization trajectory, R-MGRIT performs one MGRIT iteration per trajectory, using its approximate final point to initialize the next. For linear problems under suitable assumptions, we proved that, for any fixed kk, the final-point approximations obtained from kk MGRIT iterations and kk R-MGRIT trajectories converge to the same limit as the trajectory length tends to infinity.

We further showed that the approximate endpoint of a single R-MGRIT trajectory approaches its infinite-trajectory limit geometrically, which together with our numerical observations motivates a truncated R-MGRIT strategy in which each trajectory is shortened by a factor γ∈(0,1)\gamma\in(0,1). Our numerical experiments on linear and nonlinear optimization problems showed that truncation generally does not reduce gradient reduction per trajectory, while leading to substantial performance gains: our parallel cost analysis predicts that shortening the trajectories can substantially increase parallel speedup while reducing the number of processors required.

Finally, we investigated the use of Anderson acceleration with R-MGRIT and observed further reductions in the number of trajectories required for convergence in our numerical experiments. Future work will consider extensions of these parallel-in-iteration methods to broader classes of optimization problems and optimization algorithms, along the lines discussed in [2].

Acknowledgements. The authors used Google’s Gemini and OpenAI’s ChatGPT during the final stages of the preparation of this manuscript. All AI suggestions mathematical claims, proofs, computations, citations, and final wording were reviewed, verified, and edited by the authors, who take full responsibility for the manuscript. Los Alamos National Laboratory report number LA-UR-26-28803.

References

  1. [1]D. G. Anderson, Iterative procedures for nonlinear integral equations, Journal of the ACM, 12 (1965), p. 547–560, https://doi.org/10.1145/321296.321305.
  2. [2]G. H. M. Araújo, O. A. Krzysik, and H. De Sterck, Parallel-in-iteration optimization using multigrid reduction in time, ETNA - Electronic Transactions on Numerical Analysis, 66 (2026), p. 32–63, https://doi.org/10.1553/etna_vol66s32.
  3. [3]H. Attouch, Z. Chbani, J. Peypouquet, and P. Redont, Fast convergence of inertial dynamics and algorithms with asymptotic vanishing viscosity, Mathematical Programming, 168 (2016), p. 123–175, https://doi.org/10.1007/s10107-016-0992-8.
  4. [4]A. Beck, First-Order Methods in Optimization, Society for Industrial and Applied Mathematics, 2017, https://doi.org/10.1137/1.9781611974997.
  5. [5]A. Beck and M. Teboulle, A fast iterative shrinkage-thresholding algorithm for linear inverse problems, SIAM Journal on Imaging Sciences, 2 (2009), p. 183–202, https://doi.org/10.1137/080716542.
  6. [6]L. A. Caffarelli, The obstacle problem revisited, The Journal of Fourier Analysis and Applications, 4 (1998), p. 383–402, https://doi.org/10.1007/bf02498216.
  7. [7]A. Chambolle and T. Pock, An introduction to continuous optimization for imaging, Acta Numerica, 25 (2016), p. 161–319, https://doi.org/10.1017/S0962492900009x.
  8. [8]H. De Sterck and Y. He, Linear asymptotic convergence of Anderson acceleration: Fixed-point analysis, SIAM Journal on Matrix Analysis and Applications, 43 (2022), p. 1755–1783, https://doi.org/10.1137/21m1449579.
  9. [9]V. A. Dobrev, T. Kolev, N. A. Petersson, and J. B. Schroder, Two-level convergence theory for multigrid reduction in time (MGRIT), SIAM Journal on Scientific Computing, 39 (2017), p. S501–S527, https://doi.org/10.1137/16m1074096.
  10. [10]M. Emmett and M. Minion, Toward an efficient parallel in time method for partial differential equations, Communications in Applied Mathematics and Computational Science, 7 (2012), p. 105–132, https://doi.org/10.2140/camcos.2012.7.105.
  11. [11]R. D. Falgout, S. Friedhoff, T. V. Kolev, S. P. MacLachlan, and J. B. Schroder, Parallel time integration with multigrid, SIAM Journal on Scientific Computing, 36 (2014), p. C635–C661, https://doi.org/10.1137/130944230.
  12. [12]M. P. Friedlander and P. Tseng, Exact regularization of convex programs, SIAM Journal on Optimization, 18 (2008), p. 1326–1350, https://doi.org/10.1137/060675320.
  13. [13]M. J. Gander, 50 Years of Time Parallel Time Integration, Springer International Publishing, Cham, Switzerland, 2015, p. 69–113, https://doi.org/10.1007/978-3-319-23321-5_3.
  14. [14]A. J. Howse, H. D. Sterck, R. D. Falgout, S. MacLachlan, and J. Schroder, Parallel-in-time multigrid with adaptive spatial coarsening for the linear advection and inviscid burgers equations, SIAM Journal on Scientific Computing, 41 (2019), p. A538–A565, https://doi.org/10.1137/17m1144982.
  15. [15]J.-L. Lions, Y. Maday, and G. Turinici, Résolution d’EDP par un schéma en temps parallèle, Comptes Rendus de l’Académie des Sciences - Series I - Mathematics, 332 (2001), p. 661–668, https://doi.org/10.1016/s0764-4442(00)01793-6.
  16. [16]O. L. Mangasarian, Sufficiency of exact penalty minimization, SIAM Journal on Control and Optimization, 23 (1985), p. 30–37, https://doi.org/10.1137/0323003.
  17. [17]M. Minion, A hybrid parareal spectral deferred corrections method, Communications in Applied Mathematics and Computational Science, 5 (2010), p. 265–301, https://doi.org/10.2140/camcos.2010.5.265.
  18. [18]Y. Nesterov, A method for solving the convex programming problem with convergence rate O(1/k²), Proceedings of the USSR Academy of Sciences, 269 (1983), pp. 543–547.
  19. [19]Y. Nesterov, Introductory Lectures on Convex Optimization, Springer US, 2004, https://doi.org/10.1007/978-1-4419-8853-9.
  20. [20]B. W. Ong and J. B. Schroder, Applications of time parallelization, Computing and Visualization in Science, 23 (2020), https://doi.org/10.1007/s00791-020-00331-4.
  21. [21]B. O’Donoghue and E. Candès, Adaptive restart for accelerated gradient schemes, Foundations of Computational Mathematics, 15 (2013), p. 715–732, https://doi.org/10.1007/s10208-013-9150-3.
  22. [22]J.-F. Rodrigues, Obstacle problems in mathematical physics, North-Holland Mathematics Studies, North-Holland, May 2014.
  23. [23]O. Romero, M. Benosman, and G. J. Pappas, ODE discretization schemes as optimization algorithms, in 2022 IEEE 61st Conference on Decision and Control (CDC), IEEE, Dec. 2022, p. 6318–6325, https://doi.org/10.1109/cdc51059.2022.9992691.
  24. [24]D. Ruprecht and R. Krause, Explicit parallel-in-time integration of a linear acoustic-advection system, Computers & Fluids, 59 (2012), p. 72–83, https://doi.org/10.1016/j.compfluid.2012.02.015.
  25. [25]B. S. Southworth, Necessary conditions and tight two-level convergence bounds for parareal and multigrid reduction in time, SIAM Journal on Matrix Analysis and Applications, 40 (2019), p. 564–608, https://doi.org/10.1137/18m122608.
  26. [26]W. Su, S. Boyd, and E. J. Candès, A differential equation for modeling Nesterov’s accelerated gradient method: Theory and insights, Journal of Machine Learning Research, 17 (2016), pp. 1–43.
  27. [27]Y. Sun and Y. Xu, Parareal algorithm for gradient flow arising from orthogonality-constrained matrix optimization problems, Journal of Scientific Computing, 109 (2026), https://doi.org/10.1007/s10915-026-03443-0.
  28. [28]G. Tran, H. Schaeffer, W. M. Feldman, and S. J. Osher, An l¹ penalty method for general obstacle problems, SIAM Journal on Applied Mathematics, 75 (2015), p. 1424–1444, https://doi.org/10.1137/140963303.

Paper details

vlnc:W_rm6er4q7
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

CC BY 4.0

Original source

  • Mathematics

Gemini (multiple versions), OpenAI’s ChatGPT · View statement →

Looking for related papers…
Contents