Bayesian Optimal Stopping: Invincible Prophets and Achievable Philosophers

Alireza AmaniHamedani, Ali Aouad, Senem Işık, Thomas Kesselheim, Amin SaberiarXiv 2026 · arXiv

TL;DR

Imagine you’re trying to pick the best apartment in a new city. You don't know the local market, but you have a few "mental models" of what it might be like. As you visit places, you learn which model is right, but every time you walk away from a unit, it’s gone forever. This paper proves that while you can mathematically approximate the strategy of a "Philosopher" ( the perfect learner) almost perfectly, you will never—no matter how much you learn—be able to beat a "Prophet" who already knows the future.

What Problem Does This Paper Address?

The authors dive into the world of Bayesian Optimal Stopping. In a classic "optimal stopping" problem (like the famous Secretary Problem), you see a sequence of numbers one by one and must decide immediately whether to "stop" and take the current value or keep looking.

Usually, researchers look at two extremes: either you know the exact probability distribution of the numbers (the "Prophet Inequality" setting), or you know absolutely nothing (the "Secretary" setting).

This paper explores the messy, realistic middle ground. You have a prior: a set of $K$ possible "worlds" (distributions), and you don't know which one you're currently in. As you see data, you update your beliefs. The challenge is twofold:

  1. Computational: The "Bayes-optimal" strategy (the Philosopher) requires solving a dynamic program over an exponentially large tree of possible histories. It’s a nightmare to compute.
  2. Information-Theoretic: How much does "learning on the fly" actually help you compete against an all-knowing Prophet who sees the entire sequence of numbers before they even start?

Methods

The authors bridge the gap between the "Prophet" and the "Philosopher" using a clever Primal-Dual Iterative Improvement scheme.

  • Dual Martingales: In probability, a martingale is a "fair game" where your expected future value is just your current value. The authors use "dual martingales" as a mathematical ceiling—a way to track the maximum possible reward any online algorithm could ever hope to get.
  • The "Boost": They start with a simple baseline algorithm. They then use the Bayesian structure of the problem to "shrink" the dual martingale, making the ceiling tighter. By randomizing between the baseline and a new "threshold-based" strategy (which uses the martingale to set acceptance levels), they create a strictly better algorithm.
  • Importance-Weighted Monte Carlo: Since they can't calculate the perfect strategy exactly (too many histories!), they use a specialized version of Monte Carlo sampling. By re-weighting samples to focus on rare, high-value outcomes, they can estimate the necessary thresholds in polynomial time.

Datasets

Not discussed in the paper. As a theoretical work in computer science and operations research, the authors use rigorous mathematical proofs and "hard instances" (mathematically constructed worst-case scenarios) rather than empirical datasets.

Key Insights and Ideas

  • The Philosopher is Achievable: The most surprising result is that we can get within a $(1-\epsilon)$ factor of the perfect Bayes-optimal strategy. Even though the "perfect" path is computationally impossible, a "near-perfect" path is surprisingly accessible.
  • The Prophet is Invincible: You might think that as $K$ (the number of possible worlds) gets smaller, or as the sequence $n$ gets longer, you could eventually "learn" your way into beating the Prophet's 1/e (~37%) barrier. The authors show this is a pipe dream. No matter how fast you learn, the "Prophet" remains out of reach; the competitive ratio doesn't substantially improve beyond the worst-case guarantees.
  • Learning vs. Waiting: The paper formalizes the tension in Bayesian stopping. You wait not just because a better value might show up later, but because seeing more values makes you smarter about the future.

Key Results

  • The Approximation Scheme: They provide a $(1-\epsilon)$-approximation for the Bayes-optimal policy. For the IID (Independent and Identically Distributed) case, this is a PTAS (Polynomial-Time Approximation Scheme), meaning it runs efficiently as long as you don't demand absolute perfection.
  • The 1/e Barrier: In the IID model, they prove that the best possible competitive ratio against a Prophet is exactly $1/e + 1/poly(K)$. This settles a lingering question about whether finite "candidate distributions" allow for significantly better performance. (Spoiler: they don't).
  • Complexity: The runtime for their algorithm is $poly(|I|^{\log^* |I| + 1/\epsilon})$, where $\log^*$ is the iterated logarithm—a function that grows so slowly it's effectively a small constant for any input size in the known universe.

Limitations and Future Work

  • Information Access: The algorithm assumes access to a "Value Oracle"—a tool that can tell you the expected maximum of a distribution. If you only have a "Sample Oracle" (you can only see examples, not the underlying math), the authors prove that a good approximation is actually impossible.
  • Combinatorial Constraints: This paper focuses on picking one item. Future work could extend this to more complex scenarios, like picking a set of items that satisfy certain constraints (e.g., online matching or matroid constraints).
  • Computational Efficiency: While the runtime is "near-polynomial," the exponents involving $1/\epsilon$ are still heavy. Finding a more "practical" polynomial-time algorithm remains an open challenge.

Summary updated

Abstract

We study Bayesian optimal stopping: a hidden world $H$ is drawn from $K$ worlds according to a known prior and determines the joint distribution of $n$ observations. A decision-maker selects one observation irrevocably to maximize its value, learning about the world as observations arrive. We compare algorithms against the Bayes-optimal online policy (the philosopher) and the offline optimum (the prophet). Our results show that the philosopher is achievable in that we find a $(1-\varepsilon)$-approximation of the Bayes-optimal policy that runs in time $\mathrm{poly}(|\mathcal{I}|^{\log^* |\mathcal{I}| + 1/\varepsilon} \cdot (1/\varepsilon)^{1/\varepsilon^2})$, where $|\mathcal{I}|$ is the size of the input. By contrast, the prophet is invincible and no algorithm can obtain a competitive ratio that substantially exceeds the worst-case guarantees. When the observations are conditionally independent and identically distributed given $H$, the secretary's rule is $1/e$-competitive. We show that no algorithm can guarantee a competitive ratio better than $1/e + 1/\mathrm{poly}(K)$ and this bound is attainable. Our approximation scheme builds on a primal improvement subroutine connecting the two benchmarks. Given an $α$-competitive algorithm against the prophet, we construct an algorithm with a strictly better approximation factor against the philosopher. We randomize between the baseline algorithm and a threshold algorithm based on dual martingales that exploit the Bayesian structure. Each improvement yields a tighter dual martingale, enabling repeated primal-dual updates. We approximate these martingales in polynomial time using importance-weighted Monte Carlo sampling. Dual martingales also establish our upper bound on the competitive ratio and may be useful for more general Bayesian online optimization problems.
BibTeX
@misc{amanihamedani2026bayesian,
  author = {Alireza AmaniHamedani and Ali Aouad and Senem Işık and Thomas Kesselheim and Amin Saberi},
  title = {{Bayesian Optimal Stopping: Invincible Prophets and Achievable Philosophers}},
  year = {2026},
  eprint = {2611.26829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26829},
}
Figure