Skip to content

Constrained Online Selection with Predictions: Matroid Secretary, Knapsack, and Matching

Hedyeh Beyhaghi, Tao Zixu He, Cameron Musco

cs.DS

Abstract

We study learning-augmented algorithms for constrained online selection problems, including the secretary problem under matroid and knapsack constraints, and the edge-weighted online bipartite matching problem with random vertex arrivals. In each, items arrive in a uniformly random order, and their values are revealed only on arrival. The goal is to select a set of items with nearly maximum total value, subject to the constraints (matroid, knapsack, or matching). In the learning-augmented setting, item value predictions are given in advance. We seek algorithms that are both consistent, in that accurate predictions lead to near-optimal selection, and robust, in that they obtain strong worst-case bounds even when predictions are inaccurate. Building on work of Fujii and Yoshida (2024) on the learning-augmented secretary problem, we study a method that follows the predicted optimum until an item with a large enough prediction error is observed. At that point, it reverts to running a worst-case competitive algorithm. We make a simple but critical modification: the first item with a large prediction error is selected with a carefully chosen probability. With this modification, we prove a general result, showing that if the underlying worst-case algorithm is αα-competitive for α∈(0,1]α\in(0,1], this approach achieves competitive ratio max⁡{α2(1+α),1−ε1+ε}\max\{\fracα{2(1+α)},\frac{1-ε}{1+ε}\}, where εε is the maximum relative error of any prediction. That is, the algorithm is perfectly consistent, achieving competitive ratio 11 as ε→0ε\to 0, and robust up to a constant factor relative to the worst-case baseline. For all three problems we study, α=1/eα= 1/e, and our result is the first to achieve consistency and constant-factor robustness. We hope that our general analysis framework can be applied to other learning-augmented online decision-making problems.

Create a lesson

Metadata

Comments
21 pages