arXiv:2611.08883cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08883

Learning to Restart: Differentiable Restart Policies for Optimization Dynamics

Yiman Fong, Zhonglin Xie, Zaiwen Wen

ABSTRACT

Adaptive restart mechanisms, which reset the momentum or other auxiliary state of an iterative optimizer, play a central role in the empirical performance of accelerated first-order methods, yet existing restart rules remain almost entirely hand-designed. The obstruction to learning restart policies is that, unlike the typical Learning to Optimize (L2O) setting, the discrete restart events make the resulting trajectory non-differentiable in the algorithm parameters and thus block gradient-based optimization of the restart policy. We resolve this obstruction by developing a differentiable framework for restart policies through their continuous-time limit. We introduce surrogate gradients for the restart events and optimization trajectories that are efficient to compute and provably converge to their continuous-time counterparts. We validate the effectiveness of our surrogate gradients in L2O settings, training restart policies that improve upon standard handcrafted adaptive restart criteria on quadratic and linear programs, and that transfer zero-shot from synthetic quadratics to logistic regression on real datasets.

1 INTRODUCTION

Optimization algorithms underlie a wide range of modern applications, including operations research (Taha, 1997), the training of large-scale machine learning models (Zhao et al., 2025), and decision-making in finance (Pilbeam, 2018). Substantial effort has therefore been devoted to accelerating these algorithms, both by analytical design and, more recently, by data-driven approaches such as hyperparameter optimization (Feurer & Hutter, 2019) and learning to optimize (L2O) (Chen et al., 2022; 2024). In this line of work, the training objective is differentiable in the parameters to be optimized, which enables efficient gradient-based optimization.

What is largely missing from this data-driven toolbox is the restart mechanism: adaptive resets of the momentum or other auxiliary state of an iterative algorithm. Restart is routinely used to accelerate convergence on a wide range of convex optimization problems (O'Donoghue & Candès, 2015; Giselsson & Boyd, 2014; Feroq & Qu, 2019, etc.), and it is also a key ingredient behind the empirical performance of PDLP on large-scale linear programs (Applegate et al., 2021; 2023; Lu & Yang, 2025; Applegate et al., 2025). The vast majority of existing restart rules, however, are designed analytically in a case-by-case manner. It is therefore natural to follow the L2O paradigm and learn the restart criterion, by parameterizing it via a neural network and optimizing it directly against a downstream optimization objective. The key obstacle is that the restart events are discrete in time, so the resulting optimization trajectory is non-differentiable, which precludes a naive application of gradient-based learning.

In this work, we resolve this obstacle by developing a differentiable framework for learning restart rules in optimization dynamics. Our starting point is the observation that, although the restart events of a discrete-time algorithm are non-differentiable in the algorithm parameters, the restart events in its continuous-time limit dynamics are differentiable. Our main contributions are summarized as follows:

  • Continuous-time differentiable restart. In continuous-time dynamics, we apply the implicit function theorem to obtain closed-form representations of the gradients for both the restart times and the trajectory (Theorem 2.2). We demonstrate that by using these gradient surrogates, a parameterized restart rule can be optimized to outperform the standard hand-designed adaptive restart criteria on the underlying ODE dynamics (Section 2.4).

  • Efficient discrete approximation. We develop a surrogate gradient (Theorem 3.2)—the discrete-time analogue of the continuous restart sensitivity that can be implemented efficiently (e.g., through the standard automatic-differentiation framework). We prove that, whenever the discrete dynamics are consistent with their continuous-time limit, the surrogate gradients converge to the continuous gradients (Theorem 3.4).

  • Applications to L2O. We instantiate the framework in the L2O setting through experiments on Quadratic Programming (Section 4.1) and on Linear Programming (Section 4.2), each with a synthetic training family and real test problems. The learned restart policies consistently outperform the standard handcrafted restart criteria on both problem families, confirming the effectiveness of our discrete surrogate gradients. In particular, a policy trained only on synthetic quadratics transfers zero-shot to logistic regression on real datasets and to tomographic reconstruction from real scanner measurements (Section 4.1), where it improves over the best handcrafted criterion.