Learning-Augmented Algorithms for Online Linear and Semidefinite Programming

Elena Grigorescu, Young-San Lin, Sandeep Silwal, Maoyuan Song, Samson Zhou

This paper bridges the gap between classical worst-case online optimization and modern machine learning. By incorporating "hints" from a machine learning predictor, the authors demonstrate how to bypass long-standing mathematical impossibility results in online optimization, achieving near-optimal performance when predictions are accurate while maintaining provable worst-case guarantees when they fail.

The Challenge of Online Optimization

In online optimization, an algorithm must make irrevocable decisions as constraints arrive one by one, without knowing the future. Traditionally, these algorithms are evaluated using the competitive ratio: a measure of how much worse the online solution is compared to an "offline" solution that sees all data in advance.

For many problems, such as the Online Set Cover, there are mathematical "impossibility results"—strict lower bounds proving that no algorithm can perform better than a certain threshold (often logarithmic in the size of the input).

In the real world, however, we often have access to historical data and can train machine learning models to predict the optimal solution. The challenge is that ML models act as "black boxes" with no worst-case guarantees. Following a bad prediction blindly could lead to catastrophic performance. This paper asks a critical question: How can we use potentially erroneous predictions to beat classical lower bounds without losing our safety net?

Primal-Dual Learning-Augmented (PDLA) Algorithms

To solve this, the authors introduce Primal-Dual Learning-Augmented (PDLA) algorithms. Their approach is built on four main pillars:

  1. Continuous Primal-Dual Framework: Instead of making discrete "yes/no" decisions, the algorithm increases variables continuously as new constraints arrive. It simultaneously maintains a "dual" problem (a mathematical mirror of the original) to track its performance.
  2. Fractional Advice Handling: Unlike previous work that only handled binary advice (e.g., "pick this set" or "don't"), this framework handles fractional advice. A predictor can assign a probability or confidence score to a variable.
  3. The "Deceleration" Strategy: This is the key to balancing trust. The algorithm increases variables based on the predictor's advice. However, once a variable reaches the value suggested by the advice, the algorithm "judiciously decelerates" its growth. This ensures that if the advice was an overestimation, the algorithm doesn't overspend, thereby maintaining robustness.
  4. Extension to SDPs: The authors extend this logic from Linear Programming (LP) to Semidefinite Programming (SDP). SDPs are more complex because they involve matrices and can model quadratic constraints. The algorithm handles this by analyzing the "largest eigenvector" of the unsatisfied constraints to decide the optimal direction to grow the solution.
PDLA Algorithms for LP and SDP

Key Insights and Theoretical Guarantees

The core contribution of this paper is proving that with a good predictor, an algorithm can achieve a constant-factor approximation, effectively "breaking" the logarithmic lower bounds that limit purely oblivious online algorithms.

The framework introduces a smooth trade-off governed by a confidence parameter ($\lambda$). If you trust your model ($\lambda \to 0$), you achieve high consistency. If you are skeptical ($\lambda \to 1$), you revert to classical robust performance.

Comparison of Approximation Guarantees

As summarized in the theoretical guarantees:

  • Consistency: When the advice is perfect, the algorithm is $O(1/(1-\lambda))$-consistent. For high confidence, this is essentially a constant factor of the optimal.
  • Robustness: Even if the advice is entirely incorrect, the algorithm remains $O(\log(\kappa n / \lambda))$-robust (where $\kappa$ is a condition number related to the constraints). This matches the best possible performance of classical algorithms that use no advice at all.

Empirical Validation

The authors evaluated their framework using two primary sources:

  • Synthetic Data: Randomly generated matrices where rows arrive online, allowing for controlled testing of different "corruption levels" in the advice.
  • Real-World Graph Data (Oregon-1): A dataset representing internet router connectivity sampled over time, modeled as a Weighted Vertex Cover problem. The optimal solution from a previous time step was used as the "advice" for the current one.

In these experiments, the learning-augmented approach significantly outperformed the baseline. Even when the "advice" (e.g., the previous day's graph) was noisy or outdated, the algorithm's performance degraded gracefully rather than failing catastrophically.

Limitations and Future Work

While a significant step forward, the paper notes a few limitations:

  • The "Packing" Problem: This framework focuses on covering problems (minimizing cost while satisfying constraints). Packing problems (maximizing profit within a capacity, like the Knapsack problem) are much harder to augment with advice and remain an open challenge.
  • Condition Number Dependency: The robustness guarantee depends on the condition number ($\kappa$) of the constraint matrix. In adversarial cases, this could be large, though it is typically manageable in practice.
  • Simpler Alternatives: The authors acknowledge a concurrent, simpler algorithm that might offer tighter guarantees, suggesting that the field of "advice-aware" optimization is rapidly evolving.

Summary updated

BibTeX
@inproceedings{grigorescu2022learning,
  author = {Elena Grigorescu and Young-San Lin and Sandeep Silwal and Maoyuan Song and Samson Zhou},
  title = {{Learning-Augmented Algorithms for Online Linear and Semidefinite Programming}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=xt9c1UbWIBc},
}
Figure