Learning Predictions for Algorithms with Predictions

Mikhail Khodak, Nina Balcan, Ameet Talwalkar, Sergei Vassilvitskii

TL;DR

This paper introduces a formal framework for learning the advice used by "algorithms with predictions." By treating an algorithm's performance bound as a loss function, the authors demonstrate how to use standard online learning techniques to obtain high-quality predictions. This approach yields provable regret and sample complexity guarantees across classic algorithmic problems like bipartite matching, page migration, and job scheduling.

Introduction

Traditional algorithm design often relies on worst-case analysis, evaluating how an algorithm performs on the most difficult possible input. While robust, this approach is frequently too pessimistic for real-world data. A newer subfield, algorithms with predictions, seeks to bridge this gap by allowing algorithms to utilize "advice" (predictions) from a machine learning model. If the prediction is accurate, the algorithm runs faster or produces better results; if the prediction is poor, the algorithm maintains a reasonable worst-case safety net (robustness).

However, a major gap exists in the current literature: most research assumes the prediction is simply "given." There has been very little work on how to actually learn these predictions, especially in online settings where the data distribution might change over time, or when predictions must be generated dynamically based on specific instance features.

A General Framework for Learning Predictions

The authors propose a general, two-step design approach to bridge the gap between static advice and learnable predictions:

  1. Identify a Learnable Upper Bound: For a given algorithm, find a function $U_t(x)$ that upper-bounds the algorithm's cost $C_t(x)$ based on the prediction $x$. Crucially, this bound should be "convenient to optimize"—ideally convex—and computable once the algorithm finishes.
  2. Apply Online Learning: Use standard tools from the online learning literature (such as Online Gradient Descent or Exponentiated Gradient) to update the predictor $x$ over a sequence of tasks.
Summary of problems, algorithms, upper bounds, and regret guarantees

The paper demonstrates this framework across several classic problems:

  • Bipartite Matching: Learning dual variables to initialize the Hungarian algorithm.
  • Page Migration: Learning where to move data in a network based on request sequences.
  • Job Scheduling: Learning machine weights to minimize makespan.
  • Ski-Rental: Learning both the optimal "break-even" point and the confidence parameter ($\lambda$) that balances trusting the prediction versus relying on the worst-case strategy.

Evaluation and Problem Settings

As a theoretical paper focused on algorithm design, the evaluation does not rely on standard image or text datasets. Instead, the framework is evaluated using:

  • Mathematical Problem Instances: Synthetic sequences of bipartite graphs, page requests, and job durations.
  • Feature-based Inputs: The authors extend their results to contextual cases where each instance comes with a feature vector (e.g., metadata about a job), learning a linear mapping from features to predictions.

Key Insights and Ideas

  • The "Feedback for Free" Property: In many algorithmic problems, once the algorithm terminates, the "ground truth" (e.g., the optimal dual solution or the actual job length) is naturally revealed. This provides the "label" needed to train the predictor for the next round without requiring extra manual labeling.
  • Convex Relaxations: Algorithmic costs are often discrete or non-convex. The authors show that by optimizing a convex upper bound of the cost, they can still achieve strong performance and regret guarantees.
  • Beyond Static Predictions: Most previous work assumed a single "best" prediction exists for all tasks. This paper shows how to learn linear predictors that adapt to the specific features of each incoming task.
  • Dispersion as a Tool: For problems with discontinuous costs (like ski-rental), the authors use the concept of "dispersion"—a measure of how spread out the discontinuities are—to prove that simple learning algorithms will still converge to low regret.

Key Results

  • Bipartite Matching: The authors improved the sample complexity bounds of previous state-of-the-art methods by a factor of $n$ (the number of nodes in the graph) and provided the first-ever regret guarantees for the online setting.
  • Page Migration: They provided the first learning-theoretic guarantees for this problem, showing how to learn a distribution over predicted requests.
  • Job Scheduling: They achieved the first guarantees for learning non-static predictors (predictors that change based on instance features) in the context of algorithms with predictions.
  • Ski-Rental: They provided a unified way to learn both the prediction and the "robustness-consistency" trade-off parameter simultaneously, outperforming previous specialized analyses.

Limitations and Future Work

  • Simultaneous Tuning: While the authors successfully tuned the trade-off parameter $\lambda$ and the predictor $x$ simultaneously for ski-rental, they note that a more general theory for doing this across all problems is still missing.
  • Non-Convexity: Some algorithmic bounds remain difficult to optimize. Finding tighter, more "learnable" bounds for complex combinatorial problems remains an open challenge.
  • Hard Instances: The authors suggest future work should investigate "hard" instances—cases where no amount of prediction can actually help improve an algorithm's performance.

Summary updated

BibTeX
@inproceedings{khodak2022learning,
  author = {Mikhail Khodak and Nina Balcan and Ameet Talwalkar and Sergei Vassilvitskii},
  title = {{Learning Predictions for Algorithms with Predictions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=5OLcPQaYTVg},
}
Figure