Learning Online Algorithms with Distributional Advice

Ilias Diakonikolas, Vasilis Kontonis, Christos Tzamos, Ali Vakilian, Nikos ZarifisICML 2021

This paper bridges the gap between classical online algorithms and modern machine learning by posing a fundamental question: If we have historical data (samples) about the future, how much better can we perform?

The authors introduce a framework for online algorithms that learn from independent and identically distributed (i.i.d.) samples of the input distribution. They prove that while general distributions are "unlearnable" with finite samples, focusing on log-concave distributions allows for algorithms that are both nearly optimal when the distribution is correct (consistent) and robust against worst-case scenarios when it is not.

The Challenge: Distributional Advice

In classical online computation, an algorithm makes decisions without knowing the future (e.g., the classic "Ski-Rental" problem: "Should I buy skis now or keep renting?"). Traditionally, these algorithms are evaluated using the competitive ratio—comparing the algorithm's performance to an offline "prophet" who knows the entire sequence of events in advance.

Recently, researchers have augmented these models with "advice" or predictions. However, most prior work assumes advice is a single deterministic value (like a specific guess of how many days you will ski). This paper addresses a more realistic scenario: Distributional Advice. Instead of a single guess, the algorithm has access to a set of historical samples drawn from the underlying distribution of the input.

The challenge in this setting is two-fold:

  1. Sample Complexity: How many samples do we need to reach a certain level of performance?
  2. The "Best of Both Worlds": Can we design an algorithm that is consistent (performs optimally if the samples accurately reflect the future) but also robust (maintains a good worst-case guarantee if the samples are misleading or the distribution shifts)?

Methodology & Theoretical Framework

The researchers focus their analysis on two foundational online problems: Ski-Rental and Prophet Inequalities.

The "No-Go" Theorem and Log-Concavity

A key insight of the paper is a "No-Go" theorem for general distributions. The authors point out that for arbitrary distributions, an adversary can always hide a "spike" in the probability mass just outside the range of your historical samples. Consequently, it is information-theoretically impossible to beat worst-case competitive bounds with finite samples without making structural assumptions.

To bypass this, the authors focus on log-concave distributions—a broad class that includes Gaussian, Exponential, and Uniform distributions. These distributions possess a "monotone hazard rate," which significantly simplifies the structure of the optimal strategy. For instance, in the Ski-Rental problem, the optimal strategy for a log-concave distribution is surprisingly binary: you either buy on day zero or you rent forever. This structural insight allows the learning algorithm to search a much smaller, more manageable space of strategies.

Learning and Robustness Techniques

  • Empirical Risk Minimization (ERM): For Ski-Rental, the authors use the Dvoretzky-Kiefer-Wolfowitz (DKW) inequality to show that an empirical distribution built from a specific number of samples is "close enough" to the real distribution to find a near-optimal buying threshold.
  • Black-Box Hedging: To ensure the algorithm doesn't fail catastrophically if the distribution changes (robustness), they employ a technique to "hedge" between the newly learned strategy and a classic worst-case optimal strategy.

Key Results & Sample Complexity

The paper establishes tight bounds on the number of samples required to achieve near-optimal performance.

Summary of sample complexity bounds for Ski-Rental and Prophet Inequality under different distribution assumptions.
  • Ski-Rental: Under log-concave distributions, $\tilde{O}(1/\epsilon^2)$ samples are sufficient to achieve a $(1+\epsilon)$-consistent and robust strategy. The authors also prove a matching lower bound of $\Omega(1/\epsilon^2)$, demonstrating that their proposed algorithm is essentially as efficient as theoretically possible.
  • Prophet Inequality: For $n$ distributions, they show that $\tilde{O}(n^3/\epsilon^2)$ samples suffice to get a $(1+\epsilon)$-consistent strategy. This is a significant milestone because it moves beyond the standard "1/2-competitive" barrier of the classic prophet inequality.
  • Stronger Oracles: Interestingly, the authors show that if an algorithm has access to a "conditional sampling oracle" (the ability to ask for samples specifically from the tail of a distribution), it can achieve near-optimality for any distribution, bypassing the log-concave restriction entirely.

Limitations and Future Work

While the framework provides a strong foundation for distributional advice, several avenues remain open:

  • High Sample Complexity for Prophets: The $n^3$ dependence for the Prophet Inequality is quite high. The authors acknowledge this and suggest optimizing this bound as an area for future improvement.
  • Expanding the Problem Set: Ski-Rental and Prophet Inequalities are the "drosophila" (fruit flies) of online algorithms. Applying this distributional advice framework to other classic problems, such as Paging or the $k$-server problem, remains unexplored.
  • Beyond Log-Concavity: While log-concavity covers many natural phenomena, real-world data is often multi-modal or heavy-tailed. Extending these consistency and robustness results to broader classes of distributions (like "near" log-concave) would be a highly valuable next step for practical applications.

Summary updated

BibTeX
@inproceedings{diakonikolas2021learning,
  author = {Ilias Diakonikolas and Vasilis Kontonis and Christos Tzamos and Ali Vakilian and Nikos Zarifis},
  title = {{Learning Online Algorithms with Distributional Advice}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=QNXeVSktz92},
}
Figure