Abstract
Learning to optimize (L2O) is an emerging technique to solve mathematical optimization problems with learning-based methods. Although with great success in many real-world scenarios such as wireless communications, computer networks, and electronic design, existing L2O works lack theoretical demonstration of their performance and robustness in out-of-distribution (OOD) scenarios. We address this gap by providing comprehensive proofs. First, we prove a sufficient condition for a robust L2O model with homogeneous convergence rates over all In-Distribution (InD) instances. We assume an L2O model achieves robustness for an InD scenario. Based on our proposed methodology of aligning OOD problems to InD problems, we also demonstrate that the L2O model's convergence rate in OOD scenarios will deteriorate by an equation of the L2O model's input features. Moreover, we propose an L2O model with a concise gradient-only feature construction and a novel gradient-based history modeling method. Numerical simulation demonstrates that our proposed model outperforms the state-of-the-art baseline in both InD and OOD scenarios and achieves up to 10 $\times$ convergence speedup.
Introduction
Learning to Optimize (L2O) has gained significant traction by training neural networks to serve as optimization algorithms, often outperforming traditional hand-crafted methods like Gradient Descent or Adam. However, L2O models face a critical "trust issue": while they excel on problems similar to their training data (In-Distribution, or InD), they often fail to converge or collapse when encountering Out-of-Distribution (OOD) scenarios.
Previous attempts to improve L2O robustness have been largely empirical, relying on trial-and-error data augmentation. This work provides the first rigorous theoretical framework to understand L2O failure in OOD settings and proposes a mathematically grounded architecture, GO-Math-L2O, to ensure convergence and speed.
Methodology
The core of our approach lies in analyzing how input features influence robustness.
Virtual Feature Methodology
To analyze OOD scenarios, we construct "virtual features" representing the discrepancy between OOD and InD inputs. Using the Mean Value Theorem, we link OOD performance directly to the model's behavior during training, allowing us to quantify the deterioration of convergence rates.
The Gradient-Only Insight
A key theoretical finding is that the magnitude of OOD shift is exacerbated by the number of input features. Specifically, including the optimization variable ($x$) itself as an input makes the model highly sensitive to domain translations. We prove that a "gradient-only" diet makes the optimizer more translation-invariant and robust.
GO-Math-L2O Architecture
Based on these insights, we propose GO-Math-L2O. Unlike previous state-of-the-art models that use both the variable $x$ and the gradient $\nabla f(x)$, our model uses only gradients and subgradients. To maintain the benefits of momentum, we implement a novel Invertible History Modeling technique that recovers historical subgradients without the ambiguity found in non-smooth optimization.
Experimental Results
We evaluated GO-Math-L2O on LASSO and Logistic Regression benchmarks, testing OOD robustness through synthetic shifts (Trigger 1: starting point shift; Trigger 2: objective function translation) and real-world datasets (BSDS500, Ionosphere, Spambase).
As shown in Figure 3, GO-Math-L2O achieves up to a 10× speedup compared to the state-of-the-art L2O-PA model under starting point shifts. While L2O-PA's performance varies wildly with the shift magnitude $s$, GO-Math-L2O remains consistently fast.
Under the more challenging Trigger 2 (Figure 4), where the entire objective function is translated, traditional L2O models like L2O-PA often fail to reach the optimum, plateauing at high error levels. In contrast, GO-Math-L2O maintains a steady path to convergence, demonstrating superior stability.
Conclusion
This work establishes a theoretical foundation for robust L2O. By proving that "less is more"—specifically, that omitting the optimization variable $x$ from input features enhances robustness—we developed GO-Math-L2O. While currently focused on convex optimization, future work will explore extending these guarantees to non-convex landscapes and investigating additional robust features beyond first-order gradients.
Summary updated