Online Algorithms with Uncertainty-Quantified Predictions

Bo Sun, Jerry Huang, Nicolas Christianson, Mohammad Hajiesmaili, Adam Wierman, Raouf Boutaba

This paper, presented at ICML 2024, explores a new frontier in online algorithm design: how to make better decisions by intelligently using machine learning predictions that come with "uncertainty quantification" (UQ).

TL;DR

The authors introduce a framework for online algorithms that leverage uncertainty-quantified predictions (like confidence intervals) rather than just point estimates. By minimizing a new metric called the Distributionally-Robust Competitive Ratio (DRCR), their algorithms can optimally "hedge" between trusting a prediction and preparing for the worst case.

What Problem Does This Paper Address?

Traditional online algorithms—designed to make decisions as data arrives without knowing the future—are typically built for the "worst-case" scenario. While this provides safety, it often leads to overly pessimistic performance in the real world.

A recent trend, "learning-augmented algorithms," tries to fix this by using machine learning predictions about the future. However, most existing methods treat these predictions as "untrusted" black boxes. They don't know if a prediction is a high-confidence "sure thing" or a low-confidence "guess."

Meanwhile, the ML community has developed robust tools for Uncertainty Quantification (UQ), such as conformal inference, which provide a range (an interval) where the truth is likely to fall with a specific probability. This paper addresses the gap of how to mathematically incorporate these UQ intervals into the design of competitive online algorithms.

Methods

The authors propose two main approaches to tackle this challenge:

  1. Single-Instance Optimization: They introduce the Distributionally-Robust Competitive Ratio (DRCR). This metric seeks an algorithm that performs well against the worst-case distribution of inputs that still "fits" within the provided UQ interval. They frame algorithm design as an optimization problem: find the parameters that minimize this DRCR.
  2. Multi-Instance Learning: For scenarios where the same type of problem is solved repeatedly (e.g., daily resource allocation), they propose an online learning framework. This approach uses an $\epsilon$-net to partition the UQ space and learns the best algorithmic response for different types of predictions over time.

They apply these methods to two classic problems:

  • Ski Rental: Deciding when to buy equipment versus continuing to rent.
  • Online Search: Deciding when to sell an asset as prices fluctuate (also known as the one-way trading problem). For this, they utilize a "protection-function-based" approach, formalized as the Protection-Function-Based Algorithm (PFA).
The Protection-function-based algorithm (PFA) used for the online search problem.

Datasets and Evaluation

The paper evaluates its theories using synthetic datasets designed to simulate various levels of prediction quality:

  • Ski Rental Simulations: True skiing horizons were sampled uniformly, and "Probabilistic Interval Predictions" (PIPs) were generated with varying noise levels ($\sigma_t$) to simulate alternating periods of high-quality and low-quality predictions.
  • Online Search Simulations: Prices were bounded within a fixed interval $[m, M]$, and UQ predictions were generated to test the algorithm's ability to capture the maximum price.

Key Insights and Ideas

  • Interpolation is the Goal: The DRCR metric acts as a bridge. If the UQ is 100% certain, the algorithm behaves like an average-case optimal one. If the UQ is 0% certain, it reverts to a classic worst-case optimal algorithm.
  • Nuanced Hedging: Unlike point-prediction algorithms that might just "trust or not," UQ-aware algorithms can adjust their behavior based on the width of the interval and the confidence level. For example, in ski rental, a wider interval might trigger a more conservative "wait-and-see" approach.
  • Learning Beyond the Worst Case: In the multi-instance setting, the algorithm doesn't just assume the worst distribution within the UQ. It learns the actual distribution, allowing it to eventually outperform even the theoretically optimal DRCR solution.

Key Results

The authors prove that their proposed algorithms—DSR (Deterministic Ski Rental), RSR (Randomized Ski Rental), and PFA (Protection-Function-based Algorithm)—attain the optimal DRCR for their respective problems.

Empirically, their randomized algorithm (RSR-PIP) significantly outperforms the standard worst-case optimal algorithm (WOA) and a naive "follow the prediction" (FTP) baseline. Furthermore, their dynamic learning approach (OL-Dynamic) shows the ability to adapt and improve its performance over time as it sees more instances.

Comparison of cumulative empirical ratios for different ski rental algorithms. Lower is better.

Limitations and Future Work

  • Computational Complexity: While the authors show that the design optimization is tractable for ski rental and online search, more complex online problems (like the k-server problem) might lead to much harder optimization challenges.
  • UQ Reliability: The single-instance results rely on the UQ being "valid" (i.e., the ground truth actually falls in the interval with the stated probability). While the multi-instance learning helps mitigate "bad" UQ, the framework's performance is still tied to the quality of the underlying uncertainty model.
  • Expanding the Scope: Future work could involve applying this UQ-aware framework to a broader class of online problems, such as online resource allocation in cloud computing or dynamic pricing in e-commerce.

Summary updated

BibTeX
@inproceedings{sun2024online,
  author = {Bo Sun and Jerry Huang and Nicolas Christianson and Mohammad Hajiesmaili and Adam Wierman and Raouf Boutaba},
  title = {{Online Algorithms with Uncertainty-Quantified Predictions}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=xF656w37Mj},
}
Figure