Robust Algorithms for the Secretary Problem

Domagoj Bradac, Anupam Gupta, Sahil Singla, Goran Zuzic

Abstract

In classical secretary problems, a sequence of $n$ elements arrive in a uniformly random order, and the goal is to choose a single item or a set of size $K$. While the random order model allows us to escape the strong lower bounds of adversarial settings, the resulting algorithms are often fragile and overfit to the model. For instance, Dynkin's popular $1/e$-secretary algorithm fails with even a single adversarial arrival. This paper investigates a robust version of the problem: the Byzantine Secretary model. In this setting, "green" (good) elements arrive at times uniformly randomly drawn from $[0,1]$, while "red" (rogue) elements arrive at adversarially chosen times. We provide algorithms that achieve values comparable to the optimal green set minus the largest green item. Specifically, we present a $(1-\varepsilon)$-competitive algorithm for picking $K$ elements (where $K \geq \mathrm{poly}(\varepsilon^{-1} \log n)$) and a $\mathrm{poly} \log^* n$-competitive algorithm for the single-item case.

Introduction

The secretary problem is a fundamental challenge in online decision-making: how do you select the best candidate from a sequence when decisions are irrevocable and you have no knowledge of future values? The classical solution assumes a random arrival order, leading to the famous $1/e$ success probability. However, this assumption is rarely met in practice. If an adversary can inject even one "fake" high-value candidate early in the process, they can trick the algorithm into setting a threshold so high that it misses all legitimate candidates.

This paper introduces the Byzantine Secretary model to address this lack of robustness. By mixing random arrivals (green elements) with adversarial ones (red elements), the authors create a framework that tests an algorithm's ability to ignore "traps" while still capturing the underlying value of the random stream.

The Byzantine Secretary Model and the $V^*$ Benchmark

In this model, the adversary chooses the values of all $n$ elements. The green elements are assigned arrival times sampled uniformly at random from the interval $[0, 1]$, while the red elements are placed at times chosen strategically by the adversary. The algorithm observes the values and arrival times but cannot see the color of the elements.

Because an adversary can always make the single best green item ($g_{max}$) indistinguishable from a red trap, it is impossible to compete with the absolute maximum. Consequently, the authors define a new success metric: the "Leave-one-out" Benchmark ($V^*$).

  • For selecting $K$ items, the benchmark is the value of the optimal set of $K$ green items excluding the largest one.
  • For the single-item case ($K=1$), the benchmark is the value of the second-largest green item.

Algorithmic Frameworks

1. Cascading Budgets (Large $K$ and Knapsack)

To select $K$ elements or solve the knapsack version of the problem, the authors use a cascading budget strategy. The algorithm partitions time into intervals and values into logarithmic "density levels." It maintains specific budgets for each level. If a high-value level does not yield enough items (potentially because an adversary is withholding them), the budget "cascades" down to lower-value levels. This ensures the algorithm remains productive even if the adversary attempts to "starve" it of top-tier items.

2. Multi-layered Bucketing (Single-Item Value Maximization)

For the $K=1$ case, the challenge is significantly higher because there is no room for error. The authors employ a $\text{poly} \log^* n$ bucketing scheme. This approach adaptively refines the estimate of the second-best green item over time. By maintaining multiple layers of thresholds, the algorithm can recover from early adversarial traps that would have permanently blinded a standard $1/e$ algorithm.

3. Minimax Principle (Ordinal Maximization)

For the problem of maximizing the probability of picking the second-best item (without knowing absolute values), the authors prove the existence of a robust randomized algorithm using the Minimax theorem. They demonstrate that if an algorithm can perform well on any known distribution of inputs, there must exist a randomized strategy that remains effective against worst-case adversarial placements.

Key Insights

  • The "Good-or-Learnable" Lemma: The authors show that in any time interval, an algorithm either successfully selects high-value elements or it "learns" that its current thresholds are incorrect, allowing for correction in subsequent intervals.
  • Independence from Corruption Level: A surprising result of this research is that the performance of these algorithms does not necessarily decay as the number of red items increases. The algorithm can compete against the second-best green item even if the stream is heavily diluted by red elements.
  • Adversarial Constraints: The adversary faces a trade-off. If they provide too many high-value red items, a simple strategy like "pick a random item" becomes highly effective. This limits the damage an adversary can do without inadvertently helping the algorithm.

Results and Conclusion

The paper establishes several significant bounds for the Byzantine Secretary problem:

  • Uniform Matroids/Knapsack: For large $K$, the algorithm is $(1 + \epsilon)$-competitive against the $V^*$ benchmark.
  • Single-Item Value Maximization: Achieves an expected value of at least $(\log^* n)^{-2} \cdot V^*$, a major improvement over previous robust models.
  • Partition Matroids: The authors provide an $O(\log \log n)^2$-competitive algorithm, addressing the complexity of varying top green items across different partitions.

While the results for large $K$ are near-optimal, the authors note that finding robust algorithms for small $K > 1$ and tightening the $\log^* n$ bounds remain open areas for future research. This work provides a vital step toward making online selection algorithms practical for real-world environments where the assumption of perfect randomness is often violated.

Summary updated

BibTeX
@inproceedings{bradac2020robust,
  author = {Domagoj Bradac and Anupam Gupta and Sahil Singla and Goran Zuzic},
  title = {{Robust Algorithms for the Secretary Problem}},
  booktitle = {ITCS},
  year = {2020},
  doi = {10.4230/lipics.itcs.2020.32},
}
Figure