Online Selection Problems against Constrained Adversary

Zhihao Jiang, Pinyan Lu, Zhihao Gavin Tang, Yuhao ZhangICML 2021

Introduction

In classical online algorithms, decisions must be made sequentially without knowledge of future inputs. Traditionally, performance is evaluated using the competitive ratio—the ratio between the algorithm's performance and the best possible performance in hindsight. This analysis typically assumes a "worst-case" adversary who knows the algorithm and provides the most difficult input possible. However, this assumption is often too pessimistic for real-world applications.

A recent trend, "algorithms with predictions," attempts to bridge this gap by incorporating machine learning hints. Most existing work in this area focuses on a "robustness-consistency" trade-off: the algorithm should perform optimally if the prediction is perfect (consistency) but still maintain a baseline performance if the prediction is entirely inaccurate (robustness).

This paper introduces a novel perspective: What if we have a guarantee on the prediction's quality? Instead of relying on a single point estimate, the authors propose a constrained adversary model. In this model, the algorithm is provided with a prediction interval $[p_l, p_u]$, and it is guaranteed that the optimal value lies within this range. The adversary can still act maliciously, but they are constrained to operate within these predefined boundaries.

Revisiting Classic Online Problems

The researchers apply this constrained adversary model to three classic online selection problems, designing new threshold-based algorithms for each:

  1. Single Item Selection (Adversarial Arrival): An algorithm observes $n$ items sequentially and must decide immediately whether to select the current item to maximize its value.
  2. The Secretary Problem (Random Arrival): Similar to the single item selection, but the items arrive in a uniformly random order.
  3. Online Edge-Weighted Bipartite Matching: "Online" nodes arrive one by one, revealing weighted edges to a known set of "offline" nodes. The algorithm must match them immediately to maximize the total weight of the matching.

Instead of static thresholds, the authors utilize dynamic functions $g(x)$ that determine the required value to select an item based on how much of the "budget" (or probability) has already been expended.

Key Insights and Results

The Power of the Prediction Interval

By defining prediction accuracy as the ratio $\Delta = p_u / p_l$, the authors create a continuous spectrum between a perfect prediction ($\Delta = 1$) and the classical no-prediction setting ($\Delta \to \infty$).

For the Single Item Selection problem under adversarial arrival, they discovered an explicit optimal threshold function $g(x)$ that yields a competitive ratio of $\Gamma = \frac{1}{\ln \Delta + 1}$. The authors proved this algorithm is strictly optimal. While the ratio drops as $\Delta$ increases, it consistently outperforms the zero ratio obtained without predictions in a purely adversarial setting.

Advancing the Secretary Problem

In the classical Secretary Problem, the best possible competitive ratio is $1/e \approx 0.367$. By leveraging the prediction interval, the authors' time-dependent threshold algorithm significantly improves upon this baseline. As time runs out, the algorithm becomes less stringent, but the prediction interval allows it to be much more strategic about its initial pickiness.

Even with a very loose prediction ($\Delta = 100$), their algorithm achieves a competitive ratio of approximately $0.448$. With a highly accurate prediction ($\Delta = 1.5$), the ratio jumps to roughly $0.778$.

Competitive ratios for the Secretary Problem across different prediction accuracies (Delta) and threshold steps (N).

Bipartite Matching vs. Selection

For the Online Edge-Weighted Bipartite Matching problem, the authors generalized the famous "Ranking" and "Water-filling" algorithms. Their adapted version achieves the optimal $1-1/e$ ratio when predictions are perfect and remains highly competitive as accuracy degrades.

A surprising theoretical insight from the paper is that as the prediction becomes less accurate (large $\Delta$), the structural complexity added by the graph matching becomes negligible compared to the fundamental difficulty of simply selecting the right values. As demonstrated below, the competitive ratio of the matching algorithm asymptotically converges to the single-item selection ratio.

The competitive ratio of the matching algorithm converges to the single-item selection ratio as the prediction interval widens (Delta increases).

Limitations and Future Work

While the paper establishes strong theoretical foundations for the constrained adversary model, it notes a few areas for future exploration:

  • Analytical Solutions: For the Secretary Problem, the authors relied on computer-assisted numerical analysis (using the KNITRO solver) to find optimal thresholds for specific values of $\Delta$. Finding a closed-form analytical solution for the optimal competitive ratio at any given $\Delta$ remains an open mathematical challenge.
  • Arrival Models: The bipartite matching results currently focus on adversarial arrivals. Combining the "random arrival" model—which typically allows for better competitive ratios—with edge-weighted matching and interval predictions is a promising next step.
  • Broader Applications: The constrained adversary model is highly adaptable. The authors suggest applying it to other classic online problems, such as makespan minimization (scheduling tasks to minimize total completion time), to see if similar performance gains can be achieved.

Summary updated

BibTeX
@inproceedings{jiang2021online,
  author = {Zhihao Jiang and Pinyan Lu and Zhihao Gavin Tang and Yuhao Zhang},
  title = {{Online Selection Problems against Constrained Adversary}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=EN1FzFlSvR},
}
Figure