Learning to Optimize with Guarantees: A Complete Characterization of Linearly Convergent Algorithms
Abstract
The design of many classical optimization algorithms is driven by the certification of linear convergence rates over classes of optimization problems. In this paper, we consider the problem of improving the average-case performance of an algorithm over a specific distribution of problem instances. While this task can be tackled by embedding trainable components into the algorithm updates, a key challenge is to preserve worst-case guarantees across the entire problem class. For classes of composite optimization problems, we show that all linearly convergent algorithms can be parametrized in terms of a baseline linearly convergent algorithm, and a set of trainable, exponentially-decaying modifications to its update rule; crucially, this parametrization excludes all—and only—the algorithms that do not converge linearly. Our results apply to improving the average-case performance of classical algorithms such as gradient descent for nonconvex, gradient-dominated functions; Nesterov’s accelerated method for smooth, strongly convex functions; and projected gradient methods for optimization over polyhedral feasible sets. We illustrate how our characterization can be used for learning to optimize with linear convergence and feasibility guarantees. Numerical results showcase benefits over classical optimizers when solving ill-conditioned systems of linear equations and running a model predictive control scheme on a linear dynamical system.
keywords:
Learning to optimize; parametric optimization; fixed-point iterations; neural network control; numerical algorithms; application of nonlinear analysis and design., ,
1 Introduction
Guarantees of fast convergence are crucial whenever optimization must be executed under tight computational budgets, as in large-scale machine learning (ML) or real-time model predictive control (MPC). Worst-case linear convergence guarantees have been developed for iterative optimization algorithms over several classes of objective functions, whose structure—e.g., strong convexity, smoothness, or gradient dominance—can be exploited by first-order schemes such as standard gradient descent and Nesterov’s accelerated method [22]. A growing body of work leverages the analogy between worst-case convergence rates and robust-control techniques such as integral quadratic constraints (IQCs), leading to characterizations of accelerated algorithms with provably optimal rates across families of convex functions [15, 27, 29].
Worst-case rate guarantees establish a baseline performance in terms of the number of iterations required to achieve a certain level of precision. However, the performance of an algorithm in a specific application does not depend solely on its worst-case convergence rate. First, there exist fundamental trade-offs between the speed of convergence and the robustness of algorithmic behavior; see, for instance, the speed/covariance trade-off for accelerated methods in strongly convex optimization analyzed in [21]. This raises the question of how to appropriately define algorithm performance. A second challenge is that scenarios encountered in applications rarely span the entirety of the space of problem instances for which the worst-case guarantee is tight, resulting in overly conservative average-case performance. This introduces another trade-off: how to tailor an algorithm performance to specific instances without compromising the original uniform guarantees. A prime example of such a situation is MPC [20], where the optimization problems to be solved online often share the same objective and system dynamics constraints, and only differ in the initial state. In such cases, a solver tailored to this sub-family of problems could converge in significantly fewer iterations than a general-purpose algorithm tuned for optimal worst-case convergence rates.
The learning to optimize (L2O) literature addresses the challenge of adopting user-defined performance metrics beyond mere convergence rates and designs algorithms that are tailored to such metrics using ML. For instance, [4] proposes an algorithm performance metric that balances convergence speed with solution precision, and accordingly designs neural network (NN) update rules. However, general-purpose NN update rules come with no guarantees. Convergence with learned updates has been addressed through possibly conservative safeguarding mechanisms [11], or by limiting the use of ML components to learning initializations [25] or to hyperparameter tuning [12] of classical algorithms. These approaches demonstrate performance exceeding that of state-of-the-art classical algorithms upon training and inherit their convergence guarantees—yet the reliance on classical update rules inherently limits the expressivity of these learning-based design methods.
Beyond the optimal tuning of classical algorithms, another line of research seeks to use ML to design entirely new convergent update rules, aiming to discover application-specific shortcuts unknown to classical update rules. This has been achieved by taking simple gradient descent as a baseline and enhancing it through learned optimal deviations from such gradient-based updates. The work [19] characterizes the class of all and only those deviation functions that ensure convergence to stationary points in nonconvex, unconstrained smooth optimization, enabling learned optimization for user-defined performance metrics and outperforming finely tuned Adam [14] in NN training. The work [5] uses deep learning to train deviations from gradient descent and saturates these updates with the norm of measured gradients, ensuring convergence for composite convex optimization. The numerical studies of [19, 5] empirically demonstrate that convergence rates superior to those of classical algorithms can be achieved through training on gradient descent perturbations.
Our main goal is to address a question that has remained open in the literature on L2O. Given any algorithm with guaranteed linear convergence over a class of optimization problems, how can we improve its average-case performance over a subclass of problems of interest without sacrificing its guarantees over the entire class? A theoretical study of these trade-offs is important towards making learned optimization a standard and reliable component of linearly convergent algorithm design.
The goal of characterizing all convergent optimization algorithms for a class of problems is analogous to the canonical control-theoretic problem of parameterizing all stabilizing controllers for a given system, initially studied for linear systems [30, 3] and more recently for nonlinear and in particular neural-network systems (see, e.g. [28, 8, 18]). Structurally, our approach is analogous in that it augments an existing convergent algorithm with a decaying perturbation, whereas the Youla parameterization augments an existing stabilizing controller with a stable perturbation. Connection can also be drawn between our work and the recently-studied input-to-state stability properties of gradient algorithms applied to optimization problems satisfying the Polyak–Łojasiewicz (PL) condition [6]. In this paper we study a wider class of optimization algorithms and provide a characterization of perturbations achieving precise bounds on convergence rates.
Contributions: Given any existing optimization algorithm that achieves linear convergence to a set of fixed points at a specified rate—henceforth the baseline algorithm—our main contributions are as follows. First, we characterize conditions on the baseline algorithm under which adding exponentially decaying perturbations preserves the same linear convergence rate, up to a higher-order polynomial term. These conditions identify fundamental trade-offs between the frequency of perturbations and their worst-case impact on the linear convergence rate. Second, we establish a completeness result for linearly convergent optimization: every update rule that converges linearly at a given rate can be written as the sum of the baseline algorithm and a suitably designed exponentially decaying augmentation of its update rule that preserves linear convergence. Finally, we instantiate our results for augmenting state-of-the-art linearly convergent algorithms, notably 1) Nesterov’s accelerated gradient (NAG) [22] method for strongly convex and smooth optimization, 2) gradient descent for classes of nonconvex Polyak–Łojasiewicz (PL) functions, and 3) projected gradient descent for convex optimization with polyhedral feasible sets. Numerical examples showcase the potential of learned linearly convergent optimization in augmenting the performance of classical algorithms under tight iteration budgets.
Notation: The set of all sequences where for all is denoted as . For a function , we write . For , we use to denote the set of positive and monotonically non-decreasing polynomials of degree at most in the variable with . We define the set of fixed points of an operator , assumed non-empty, as . For and , we denote by the class of signals for which there exists a polynomial such that , where denotes any vector norm. We write for the indicator function of a set ( if , otherwise). The distance from to a set is defined as . For , indicates the element‐wise inequality.
2 Problem formulation
We consider composite optimization problems of the form
| (1) |
where is the decision variable, is proper and -smooth, and is convex, proper, and lower semi-continuous, but potentially nonsmooth. We let for brevity, and we assume that the set of optimizers is non-empty. In particular, we note that (1) subsumes constrained optimization problems of the form
| (2a) | |||
| (2b) | |||
where is -smooth, and each function with defines a non-empty convex feasibility set . In fact, one can rewrite (2) as an instance of (1) letting and .
A standard method to solve problem (1) is to analytically construct iterations of the form:
| (3) |
where is the state variable, the decision is the output variable, and the operator is designed so that its set of fixed points —the set of points such that —is related to through ; that is, a point can be reconstructed from a point as per .
A key metric for the performance of algorithms (3) when applied to a class of problems is how fast they converge to . Classical optimization algorithms often come with convergence guarantees that hold for the worst-case instance of . However, optimal control methods such as MPC require efficiently finding solutions to the instances of (1) that are encountered during deployment, where the objective is drawn from a specific distribution over the class . Motivated as such, in this work we investigate the following question.
Given a set of problem instances and a baseline algorithm to solve (1), how can we improve its average-case performance over , while retaining worst-case convergence guarantees over the entire class ?
In particular, this paper characterizes algorithms that achieve linear convergence to for classes of functions . We will showcase how to leverage such characterization for learning-based algorithm design in Section 4.
Definition 1.
An algorithm is said to be linearly convergent to for with rate if there exists a polynomial such that for any
| (4) |
at all times, where is a distance function. In this case, we write that ). When the focus is not on the polynomial order and only on the exponential convergence rate, we write . Additionally, if (4) holds with a polynomial such that , then we say that is monotonically linearly convergent to since the distance to the set of fixed points shrinks monotonically with the iterations, and we write .111Note that if (4) holds with a polynomial such that , then . Hence, (4) holds with the constant polynomial and shrinks monotonically.
To enhance the average-case performance of a baseline algorithm on problem instances , we aim to design augmentations to its update rule that do not jeopardize its convergence guarantees. Specifically, we will consider augmented update rules defined by the iterations:
| (5) |
and we will establish conditions ensuring that is linearly convergent as per (4).
3 A complete characterization of linearly convergent optimization algorithms
In this section, we establish our main results on how introducing an augmentation term affects the worst-case linear convergence guarantees of a given baseline optimization algorithm . We first abstract away from the specific form of and the class of functions it is designed to optimize; we only assume that is a linearly convergent fixed-point algorithm as per Definition 1. In Section 3.1, we present corollaries that reveal several classes of problems (1) and corresponding baseline algorithms that are compatible with our framework.
Consider a baseline algorithm achieving linear convergence as per Definition 1. The property (4) implies that the signal decays exponentially up to a polynomial factor , for any initial condition and any objective . We now characterize to what extent injecting exponentially decaying signals in the iterates of (5) can deteriorate the convergence guarantee of .
Theorem 1.
We report the proof of Theorem 1 in Appendix A. Theorem 1 establishes a trade-off between how often we inject an exponentially decaying perturbation—as measured by —and the degradation of the convergence rate. In particular, if , then by definition and we observe that the asymptotic rate does not change even with , as only the order of the polynomial factor in (4) is affected. This means that one can apply perturbation at every time instant as per (5) without deteriorating the asymptotic convergence rate. For the general case where ), instead, the convergence rate increases at most to the value . As expected, when tends to infinity, we recover the original rate of the baseline algorithm because ; this corresponds to the case for all .
It remains crucial to understand how large is the class of linearly convergent algorithms that can be achieved by perturbing a baseline algorithm with an exponentially decaying learned update as per (5). Our next result establishes conditions on the baseline algorithm that guarantee that any algorithm in ) can be represented—provided that such target algorithm satisfies the following regularity condition.
Definition 2.
Given a linearly convergent algorithm ) with iterates , define the sequence of updates satisfying
We say that is regular if this sequence of updates vanishes with the same exponential rate, i.e.
In other words, the definition above excludes pathological cases of linearly convergent algorithms that can cycle indefinitely among the points in even when . As an example, consider the case where the objective is constant, the baseline algorithm is with , and . In this case, the algorithm converges to yet is not regular according to Definition 2. In fact, by definition of , we have when is even and when is odd, hence the resulting is not exponentially decaying.
We are ready to present our completeness result.
Theorem 2.
Let be such that is Lipschitz continuous in . Consider the augmented algorithm with iterates defined as per (5), and any target algorithm such that ). If is regular, there exists a sequence such that the iterations of initialized with are equivalent to those of . Additionally, the augmented algorithm belongs to for any with .
A few remarks are in order. First, the completeness property of Theorem 2 is key in the context of automating the design of augmented algorithms, e.g., by learning from sampled problems, as it implies that (5) encompasses all regular linearly convergent algorithms ). Second, when we learn an augmentation term by searching over the entire space of exponentially decaying updates, it is desirable that the baseline algorithm satisfies the stronger condition . This is because, if , Theorem 1 only guarantees linear convergence—with the worsened rate —for those chosen exactly as in (6). In other words, without , most perturbations in may not preserve linear convergence. Third, the assumption that is Lipschitz continuous in is mild; we will show in the following that this condition is satisfied for baseline algorithms widely used for convex and composite optimization.
The rest of this section is dedicated to establishing how Theorem 1 and Theorem 2 can be used to augment existing solvers for composite optimization problems in the form (1) drawn from specific classes .
3.1 Results for smooth optimization
We first consider the case (1) where for all , leaving us with the task of minimizing a -smooth function . Our first result focuses on classes of possibly nonconvex functions for which standard gradient descent achieves monotonic linear convergence.
Corollary 1.
Let be the class of -smooth functions satisfying the restricted secant inequality (RSI) with constant , that is, those for which it holds
| (8) |
for any . Let be the gradient descent update rule with , , and . Then, any regular algorithm can be written as
| (9) |
with . Vice versa, for any , the algorithm (9) is such that .
Proof .
The result of Corollary 1 enables learning over the class of all the regular linearly convergent algorithms in , while ensuring that the augmented algorithm (9) never leaves the class , irrespectively of how “badly” the augmentation term may be chosen.
A few comments regarding the generality of the class of functions are in order. First, encompasses certain nonconvex functions, as highlighted in [31]. Second, it holds that , where is the set of -smooth and -strongly convex functions complying with
| (10) |
for some , and is the set of all the -smooth and convex functions that comply with the Polyak–Łojasiewicz (PL) inequality
| (11) |
for some .
Remark 1.
It is well known that , where is the set of all possibly nonconvex functions satisfying (11), see [13]. For functions in , the gradient descent rule achieves linear convergence in the function value as per
where . However, induces a monotonically linearly convergent sequence of iterates only if the restricted secant inequality (8) also holds, see [17].
Corollary 1 ensures a complete parametrization of regular linearly convergent algorithms with the same rate as gradient descent for all functions in . For the special case of strongly convex functions , one typically wants to augment ad-hoc algorithms tailored to such as NAG method [22], the heavy-ball method [23, 10], or optimal-rate algorithms such as those characterized in [15, 29].
Motivated as such, we show compatibility of the proposed framework with the augmentation of accelerated algorithms for objectives .
Corollary 2.
Consider the NAG algorithm
| (12) |
where and is the momentum coefficient. Let and , where is the condition number. Choose any target rate degradation factor , where . Then, for any such that and constructed as per (6) using any , the augmented algorithm defined by is such that .
Proof .
While Corollary 2 focuses on the case where NAG is used as the baseline algorithm in (5), we remark that the results extend analogously to any baseline algorithm such as those with optimal convergence rates designed using IQCs as per [15, 29]. As also discussed after Theorem 1, we note that enhancing accelerated algorithms, which are not monotonic in general, involves a trade-off between keeping the worst-case degradation rate as small as possible and the frequency at which we can apply a learned update. Last, we remark that one can always impose a target . Indeed, a large enough such that always exists since, for large enough, the exponential term dominates over the polynomial one.
3.2 Results for nonsmooth optimization
We now turn our attention to the case (1) where the objective is nonsmooth. Our first result focuses on the class of potentially nonsmooth proper, lower semi-continuous, convex functions that comply with the following inequality
| (13) |
where is the convex subdifferential of at , defined as
In particular, note that (13) corresponds to (11) when is differentiable.
Corollary 3.
Consider the class of functions . Let be the proximal point algorithm performing the iterations
| (14) |
where . Let . Then, any regular algorithm can be written as
| (15) |
with . Vice versa, for any , the algorithm (15) is such that .
Proof .
We begin by showing the baseline algorithm in (14) is -Lipschitz continuous in . Let and . Since and are obtained by solving the minimization (14), it holds that and by the first-order optimality conditions. In other words, there exist subgradients and such that and . Since is closed, convex, and proper, is maximally monotone [24] and . Observe that
Therefore, we have . On the other hand, by the Cauchy-Schwarz inequality, . Combining the two last inequalities, we have , from which -Lipschitz continuity follows. Similarly to Corollary 1, the result then follows by combining our Theorem 2 with the linear convergence result of the proximal point method (14) when applied to functions from [17, Theorem 4.2] and the definitions of error bound and quadratic growth from [13].
The result of Corollary 3 holds for any objective . In particular, encompasses the class of optimization problems (1), where and , that is, is nonsmooth and convex, for which ad-hoc algorithms have been developed to exploit the structure underlying these composite problems. Our next result focuses on the case where represents the indicator function of a set of linear constraints (2b) to address constrained optimization problems of the form (2) with .
Corollary 4.
Consider the constrained optimization problem (2) with and for all and define the feasible set . Let and define as the set of all such functions . Let be the proximal gradient descent method performing the iterations
| (16) | ||||
where . Consider any regular algorithm with feasible iterates and such that , with . Then, there exists with
| (17) |
at all times such that the augmented algorithm
| (18) | ||||
is equivalent to . Vice versa, for any such that (17) holds at all times and for all , the algorithm (18) is such that the iterates and .
Proof .
The baseline algorithm defined in (16) is such that as shown in [9, Theorem 11.5]. Now, consider any regular algorithm with feasible iterates and such that , with . Its iterates are equivalent to those of (18) by choosing
| (19) |
Next, we verify that for all . We have
| (20) |
By definition, because lies in and the claim follows by direct substitution in (20) since the sequence is equal to . Next, we verify that is Lipschitz in . Since the projection onto an affine subspace is -Lipschitz, it holds that
Last, analogously to the proof of Theorem 2, it holds that because is regular. Vice versa, if is such that at all times for all , the iterates of (18) are feasible because
| (21) |
and by Theorem 1.
Leveraging the composite structure of (2), Corollary 4 addresses the requirement of ensuring feasibility of all iterates of (18) in optimization problems with polytopic constraints. In fact, while Corollary 3 guarantees convergence rates of the augmented algorithm , feasibility of iterates of (15) may be lost for arbitrary choices of .
4 Learning to optimize with linear convergence guarantees
In this section, we illustrate a natural application of our characterization of linearly convergent algorithms to design new update rules with improved average‑case performance relative to a baseline linearly convergent algorithm while preserving its worst‑case convergence rate. We begin by formulating a meta‑optimization problem over the augmentation sequence , where we aim at minimizing the expected cost incurred by the augmented algorithm under a given data distribution while enforcing a target worst‑case convergence rate. Beyond the special case in which the algorithmic costs are quadratic in the iterates, the augmentation sequences are linear functions, and the objective functions are quadratic, the meta‑optimization is nonconvex. This motivates parameterizing as an exponentially decaying NN update and learning its parameters via empirical algorithmic cost minimization. We conclude by discussing the significant speed-ups achieved by learned augmentations through examples drawn from linear regression and linear quadratic MPC.222The Python source code that reproduces our experiments is publicly available at https://github.com/andrea-martin/LinearlyConvergentL2O.
4.1 Augmenting average-case performance of a baseline algorithm through NN updates
Let denote a distribution of objective functions and let ) be a known linearly convergent baseline algorithm for . The problem of designing an augmentation signal to enhance the average-case performance of relative to is expressed as
| (22a) | ||||
| (22b) | ||||
| (22c) | ||||
where and represent distributions over the parameters and the initial conditions , respectively, and in (22c) specify a target convergence rate over all functions , and measures the cost incurred by the algorithm (22b) in optimizing a function when starting from an initial condition . We refer to [4, 16] for commonly used algorithm performance metrics.
To cast (22) as a finite-dimensional learning problem, we perform a number of standard approximations. First, we parametrize classes of distributions , where is a new set of trainable parameters, that is, we let . For instance, one can parametrize the mean and variance of Gaussian distributions. Second, we approximate the expectations in (22a) with their sample-average counterparts
| (23) |
on the sets , , and with elements independently sampled from the distributions , , and , respectively. These two approximations allow us to evaluate the empirical algorithm performance explicitly as per (23), and backpropagate through the parameters .
Remark 2.
The by-design convergence guarantee (22c) ensures that the trajectories never diverge, and therefore, commonly chosen algorithmic costs [4] admit a uniform upperbound over any bounded sets of parameters , without wrapping the values between intervals defined a-priori [26]. Therefore, the use of stochastic algorithm augmentations enables a direct application of PAC-Bayes generalization bounds [2] as follows. Given a prior distribution of augmentation parameters with compact support, and a trained posterior distribution of augmentation parameters with compact support, one has by [2, Theorem 2.1] that, for any and ,
| (24) |
where and is its empiric value, and denotes the Kullback–Leibler divergence. The bound holds for every set of samples and obtained by sampling from and , respectively (i.e., for any realization of these draws). The inequality (2) enables quantifying how much the performance of the algorithm—trained over a set of problems and —generalizes to future instances . We refer the interested reader to more advanced PAC-Bayes bounds [2] and their specialization to learned optimization [26] for allowing optimal tuning of the quantities in (2) as part of the learning procedure.
Last, we parametrize exponentially decaying augmentations such that (22c) holds for any . To achieve this, we write as the product of a trainable exponentially decaying sequence of scalars and a NN operator encoding the direction of . Specifically, we let , where are the coefficients of a polynomial and are the weights of a NN, and let
| (25) |
where is chosen as the output of a long short-term memory (LSTM) network with 2 layers. For ease of implementation, in the examples below we consider deterministic algorithm updates by letting be drawn from a Dirac distribution with trainable mean. When dealing with polyhedral constraints as per Corollary 4, we use Agmon’s iterative method [1] to enforce (17) after generating through (25).
4.2 Augmenting NAG for ill-conditioned systems of linear equations
In our first example, we consider the problem of solving systems of linear equations of the form , where and are sampled from a joint distribution . Although each instance of this problem admits the analytical solution , directly computing the matrix inverse becomes numerically unstable when the condition number of grows very large. To address this, we instead approximate using iterative methods by solving the equivalent quadratic program:
| (26) |
For our experiment, we assume that , where corresponds to the matrix in the dataset [7] and is such that , , and is a matrix with entries drawn from a standard Gaussian distribution. Similarly, we assume that , where is a vector with entries and is a vector with entries drawn from a zero-mean Gaussian random variable with standard deviation .
We first solve the optimization problem (26) using standard gradient descent (GD) and NAG methods, with step-size and momentum chosen according to the optimal tuning for quadratic functions given in [15, Proposition 1]. Using the latter method as a baseline optimizer, we then train a two-layer LSTM to learn an augmentation term improving the resulting empirical performance (23) over a dataset of realizations of and . Specifically, we pick the algorithmic cost function in (22) as for , and perform meta-optimization using Adam with a learning rate of for epochs.
We then construct a test dataset by sampling independent realizations of and and compare the average-case performance of our learned optimizer against standard methods in solving (1) in Figure 1. As expected, the introduction of a momentum term enables NAG to converge significantly faster than standard gradient descent. Nevertheless, both methods still require a large number of iterations to reach solutions with high accuracy. Remarkably, we observe that our linearly convergent L2O method learns to initially follow the direction of the positive gradient, therefore initially increasing the cost function rather than decreasing it. This behavior does not pertain to classical optimizers and effectively accelerates the accumulation of momentum in the early stages. As demonstrated by Figure 1, this learned behavior results in improved transient performance, without affecting the asymptotic convergence rate.
Finally, to assess the impact of our linear convergence guarantees, we repeat the training of a 2-layer LSTM optimizer without enforcing an exponential decay of the augmentations in (5). We observe that, without clipping the magnitude of as per (25), the training procedure becomes highly sensitive to the initial parameter choice . In fact, since the matrix is ill-conditioned, the algorithmic cost function dramatically increases if the algorithm updates are poorly chosen, causing numerical instability problems when performing backpropagation to update the parameters . As a result, the lack of formal guarantees makes training algorithms to perform a large number of optimization steps numerically challenging. In this example, we thus consider a number of optimization steps of . To make things worse, Figure 2 showcase how learned optimizers may diverge when unrolled for more optimization steps than they were during training—even when training and test problems are drawn from the same distribution. These observations highlight that restricting our search space to linearly convergent algorithms yield not only theoretical but also practical computational advantages.
4.3 Augmenting projected gradient descent for MPC
In our second example, we consider a model predictive control setting where only a limited number of optimization steps can be executed in real-time. In particular, we study a discrete-time linear dynamical system described by the state space equation
| (27) |
where is the system state, is the control input, and represents a zero-mean Gaussian process noise term.
The goal at each time step is to solve the following finite-horizon linear quadratic control problem:
| (28a) | ||||
| (28b) | ||||
| (28c) | ||||
for simplicity, we assume that the weighting matrices and are identity matrices of appropriate dimensions. We further set and to account for actuation constraints yet sidestep recursive feasibility issues for ease of exposition, as our focus lies in efficiently solving the underlying quadratic program.
By introducing the stacked notation and , (28) can be equivalently rewritten as:
| (29a) | |||
| (29b) | |||
where , , and and are block matrices comprising the system Markov parameters to encode the system dynamics over a prediction horizon of length .
To solve the quadratic program above, we start from an initial guess equal to zero and employ the projected gradient descent (PGD) method (16) with step size . Using this as our baseline optimization algorithm, we then learn an augmentation term parametrized as per (25) to minimize the total average cost (29a) over optimization steps when each component of the initial state of the system (27) is drawn from a zero-mean Gaussian random variable with standard deviation of . Specifically, we perform meta-optimization using Adam with a learning rate of for epochs.
As highlighted by Figure 3, while both algorithms converge in a small neighborhood of the solution of (29) after iterations, our learned optimizer showcase improved transient performance. Numerically, we verify that this is because during training learns to promptly saturate the constraint when needed, leading to better performance in the testing phase. Remarkably, as shown in Figure 4, we observe a similar trend even when we close the loop between the linear dynamical system (27) and our learned optimizer. In particular, despite the repeated solution of (29) in a receding horizon fashion induces a new distribution over the state space, using our learned optimizer—trained on initial conditions randomly drawn from a Gaussian distribution—enables a significant reduction of the closed-loop cost incurred over an horizon of length when only a limited optimization steps can be performed in real-time.
5 Conclusion
We have shown that many classical linearly convergent algorithms—ranging from standard gradient descent to accelerated and proximal methods—can be enriched with an exponentially-decaying augmentation term whose role is to improve average‐case performance on a specified distribution of problems. Crucially, this can be achieved without sacrificing their provable worst‐case linear rates. Specifically, (i) these perturbations can be injected at any desired frequency below a threshold, trading off average-case improvement against worst-case rate degradation in a quantifiable way; and (ii) every regular linearly convergent method admits this form of decomposition. In practice, these results enable average-case improvement of baseline algorithms for composite optimization, by designing an exponentially decaying update function akin to designing a robustly stabilizing feedback policy for nonlinear control systems. Numerical examples confirm the potential for significant reduction in the number of optimization steps over general-purpose solvers.
While we have focused on application to learned optimization and average-case improvement, the characterization of all linearly convergent algorithms has independent interest. Accordingly, one direction of interest is to exploit the characterization to deriving update rules with optimal performance from the lens of typical control costs, drawing novel parallels between optimal control theory and accelerated optimization. Important venues of further investigation include analyzing the computational overhead arising from computing learned augmentations, guarantees for derivative-free optimization, design of nonexpansive fixed-point iterations, and applications to time-varying and online optimization.
References
- [1] Shmuel Agmon. The relaxation method for linear inequalities. Canadian Journal of Mathematics, 6:382–392, 1954.
- [2] Pierre Alquier. User-friendly introduction to pac-bayes bounds. arXiv preprint arXiv:2110.11216, 2021.
- [3] Brian DO Anderson. From youla–kucera to identification, adaptive and nonlinear control. Automatica, 34(12):1485–1506, 1998.
- [4] Marcin Andrychowicz, Misha Denil, Sergio Gomez, Matthew W Hoffman, David Pfau, Tom Schaul, Brendan Shillingford, and Nando De Freitas. Learning to learn by gradient descent by gradient descent. Advances in neural information processing systems, 29, 2016.
- [5] Sebastian Banert, Jevgenija Rudzusika, Ozan Öktem, and Jonas Adler. Accelerated forward-backward optimization using deep learning. SIAM Journal on Optimization, 34(2):1236–1263, 2024.
- [6] Leilei Cui, Zhong-Ping Jiang, Eduardo D Sontag, and Richard D Braatz. Perturbed gradient descent algorithms are small-disturbance input-to-state stable. arXiv preprint arXiv:2507.02131, 2025.
- [7] Timothy A Davis and Yifan Hu. The university of florida sparse matrix collection. ACM Transactions on Mathematical Software (TOMS), 38(1):1–25, 2011.
- [8] Clara Lucía Galimberti, Luca Furieri, and Giancarlo Ferrari-Trecate. Parametrizations of all stable closed-loop responses: From theory to neural network control design. Annual Reviews in Control, 60:101012, 2025.
- [9] Guillaume Garrigos and Robert M Gower. Handbook of convergence theorems for (stochastic) gradient methods. arXiv preprint arXiv:2301.11235, 2023.
- [10] Euhanna Ghadimi, Hamid Reza Feyzmahdavian, and Mikael Johansson. Global convergence of the heavy-ball method for convex optimization. In 2015 European control conference (ECC), pages 310–315. IEEE, 2015.
- [11] Howard Heaton, Xiaohan Chen, Zhangyang Wang, and Wotao Yin. Safeguarded learned convex optimization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 7848–7855, 2023.
- [12] Jeffrey Ichnowski, Paras Jain, Bartolomeo Stellato, Goran Banjac, Michael Luo, Francesco Borrelli, Joseph E Gonzalez, Ion Stoica, and Ken Goldberg. Accelerating quadratic optimization with reinforcement learning. Advances in Neural Information Processing Systems, 34:21043–21055, 2021.
- [13] Hamed Karimi, Julie Nutini, and Mark Schmidt. Linear convergence of gradient and proximal-gradient methods under the polyak-łojasiewicz condition. In Joint European conference on machine learning and knowledge discovery in databases, pages 795–811. Springer, 2016.
- [14] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
- [15] Laurent Lessard, Benjamin Recht, and Andrew Packard. Analysis and design of optimization algorithms via integral quadratic constraints. SIAM Journal on Optimization, 26(1):57–95, 2016.
- [16] Ke Li and Jitendra Malik. Learning to optimize. In International Conference on Learning Representations, 2017.
- [17] Feng-Yi Liao, Lijun Ding, and Yang Zheng. Error bounds, PL condition, and quadratic growth for weakly convex functions, and linear convergences of proximal point methods. In 6th Annual Learning for Dynamics & Control Conference, pages 993–1005. PMLR, 2024.
- [18] Ian R Manchester, Ruigang Wang, and Nicholas H Barbara. Neural networks in the loop: Learning with stability and robustness guarantees. Annual Review of Control, Robotics, and Autonomous Systems, in press, 2026.
- [19] Andrea Martin and Luca Furieri. Learning to optimize with convergence guarantees using nonlinear system theory. IEEE Control Systems Letters, 8:1355–1360, 2024.
- [20] David Mayne. Nonlinear model predictive control: Challenges and opportunities. Nonlinear model predictive control, pages 23–44, 2000.
- [21] Hesameddin Mohammadi, Meisam Razaviyayn, and Mihailo R Jovanović. Robustness of accelerated first-order algorithms for strongly convex optimization problems. IEEE Transactions on Automatic Control, 66(6):2480–2495, 2020.
- [22] Yurii Evgen’evich Nesterov. A method of solving a convex programming problem with convergence rate . In Doklady Akademii Nauk, volume 269, pages 543–547. Russian Academy of Sciences, 1983.
- [23] Boris T Polyak. Some methods of speeding up the convergence of iteration methods. Ussr computational mathematics and mathematical physics, 4(5):1–17, 1964.
- [24] Ernest K Ryu and Stephen Boyd. Primer on monotone operator methods. Appl. comput. math, 15(1):3–43, 2016.
- [25] Rajiv Sambharya, Georgina Hall, Brandon Amos, and Bartolomeo Stellato. Learning to warm-start fixed-point optimization algorithms. Journal of Machine Learning Research, 25(166):1–46, 2024.
- [26] Rajiv Sambharya and Bartolomeo Stellato. Data-driven performance guarantees for classical and learned optimizers. arXiv preprint arXiv:2404.13831, 2024.
- [27] Carsten Scherer and Christian Ebenbauer. Convex synthesis of accelerated gradient algorithms. SIAM Journal on Control and Optimization, 59(6):4615–4645, 2021.
- [28] Arjan J Van der Schaft and AJ Van Der Schaft. L2-gain and passivity techniques in nonlinear control, volume 2. Springer, 2000.
- [29] Bryan Van Scoy, Randy A Freeman, and Kevin M Lynch. The fastest known globally convergent first-order method for minimizing strongly convex functions. IEEE Control Systems Letters, 2(1):49–54, 2017.
- [30] Dante Youla, Hamid Jabr, and Jr Bongiorno. Modern Wiener-Hopf design of optimal controllers–Part II: The multivariable case. IEEE Transactions on Automatic Control, 21(3):319–338, 1976.
- [31] Hui Zhang and Wotao Yin. Gradient methods for convex minimization: better rates under weaker conditions. arXiv preprint arXiv:1303.4645, 2013.
Appendix A Proof of Theorem 1
We first prove the result by assuming that . This is instrumental towards establishing the general result. Let for compactness. By the algorithm definition (5) and the triangle inequality, we have that for every
Assuming that , we have that (4) holds with . It follows that . Iterating this inequality, we deduce that
where we used the fact that . Let and note that the right-hand side of the above can be written as where . We study . By linearity of summation, can be equivalently rewritten as
where with is the -th coefficient of the polynomial . Faulhaber’s formula implies that is a polynomial of degree in the variable with coefficient . Furthermore, is positive and monotonically non-decreasing by construction, that is, . Note that implies . Hence, we conclude that for all , which proves the result for the case .
We now turn our attention to the general case where is any linearly convergent algorithm in ) certified by a polynomial . We distinguish two cases. In the case , we have that ) also lies in , and the analysis above applies with rate in place of .
In the case , we necessarily have than . For any , consider the recursion
| (30) |
where denotes the repeated application of defined as with .
We first observe that, if and is constructed as per (6), then (30) is equivalent to (5) in the sense that for every . By construction, and therefore complies with (4) with and . Hence, as proven above, it holds that
We now argue that . Clearly, since for every and thus . To show that , assume there exists such that . Since ), we have that . At the same time, for any because . This is a contradiction, and thus . We conclude that
and therefore there exists a polynomial such that for all .
Next, we note that, for any
where we used the fact that for any . Letting , and using the fact that , we obtain
Since , we have that . This concludes the proof.
Appendix B Proof of Theorem 2
Let . We first show by induction that at all times, starting from the base case , which holds by construction. Assume now that . We aim to prove that . This holds because
It remains to show that the sequence belongs to . To prove this, we rewrite as
| (31) |
Since is Lipschitz continuous, letting be any element of , there exists a constant such that
and hence . We further have that by the regularity assumption on as per Definition 2. Since the sum of signals in belongs to , we conclude the proof by inspection of (31).