Markovian Pandora's box

Yuanyuan Yang, Ruimin Zhang, Jamie Morgenstern, Haifeng XuarXiv 2025 · OpenReview

Abstract

In the Markovian Pandora's Box Problem, decision-making is governed by both order constraints and Markovianly correlated rewards structured within a shared directed acyclic graph (DAG). While previous iterations of the Pandora's Box problem assumed independent rewards, this framework incorporates Markovian dependencies, making it highly relevant for applications such as data-driven algorithm design and hyperparameter tuning. This paper presents optimal fully adaptive strategies for forest-structured graphs and introduces a 1/2-approximation strategy for static transitions that offers significant computational speedups. Our findings deepen the understanding of sequential exploration under Markovian correlations in graph-based decision-making.

Introduction

The classic Pandora’s Box problem is a foundational model in economics and computer science for sequential search. In the traditional setting, an agent must decide which "boxes" to open, each containing a reward from a known distribution but requiring a cost to inspect. The goal is to maximize the expected reward minus the total cost. However, the classic model assumes that rewards are independent and can be explored in any order.

In real-world scenarios, such as testing software checkpoints or tuning machine learning models, these assumptions often fail. Testing a simple version of an algorithm provides information about the likely performance of more complex versions, creating Markovian dependencies. Furthermore, certain tests must be performed before others, imposing order constraints. This paper introduces the "Markovian Pandora’s Box" problem to address these complexities.

Problem Formulation

The authors model the search space as a Directed Acyclic Graph (DAG). Each node represents a box with a potential reward, and edges represent both the logical order of exploration and the probabilistic transition of reward states.

  1. Markovian Dependencies: The reward distribution of a box depends on the realized reward of its predecessor in the graph.
  2. Order Constraints: A box can only be opened if its parent boxes have already been explored.

Finding an optimal strategy in this setting is generally NP-hard due to the "Curse of Adaptivity," where the optimal sequence of actions may change based on every revealed reward. The paper specifically investigates cases where these dependencies form a forest (a collection of trees), which allows for more tractable solutions.

Methodology and Technical Innovations

The research introduces several key technical innovations to overcome the computational intractability of adaptive search:

Generalized Reservation Value (GRV)

The authors extend the classic "reservation value"—a threshold used to determine whether to stop searching—to account for future Markovian rewards. The GRV serves as a metric to rank available boxes, ensuring that the agent accounts for both immediate gains and the potential value of downstream nodes. They prove that the optimal choice is always to pick the available box with the highest current GRV.

Equivalent Reward Tables and Contraction

To handle the tree structure, the authors develop a dynamic programming approach. They use a "contraction" technique to iteratively collapse subtrees into "equivalent boxes." By calculating an equivalent reward table for a sequence of boxes, a complex chain of dependencies can be treated as a single decision point, simplifying the graph until an optimal strategy is extracted.

Static Transition Analysis

For settings where the transition probabilities between reward states are uniform across the graph ("static transitions"), the authors utilize fixed-point iteration. They demonstrate that the Markov chain of rewards often converges quickly, allowing for "truncation"—looking only a few steps ahead to achieve near-optimal results with much lower computational overhead.

Key Results

The paper establishes several landmark results in the field of sequential search:

  • Exact Optimality for Forests: The authors provide the first polynomial-time algorithm to find the exact optimal adaptive strategy for forest-structured graphs.
  • 1/2-Approximation: For forest graphs with static transitions, a 1/2-approximation algorithm is introduced. This algorithm identifies high-impact subgraphs to explore, providing a significant speedup over exact solutions.
  • Computational Efficiency: The "Faster Solution" identifies subgraphs of size $\Theta(1)$ that are sufficient for near-optimal probing, meaning the complexity does not necessarily explode as the total number of boxes increases.
  • Hardness Results: The paper proves that for general DAGs, the problem remains NP-hard to approximate within a factor of 0.9997, highlighting the importance of the forest-structure discovery.

Conclusion and Future Work

This work deepens the understanding of sequential exploration under Markovian correlations. By providing tractable solutions for forest-structured graphs, the authors bridge the gap between theoretical search models and practical applications like data-driven algorithm design.

Future research may explore extending these models to continuous reward distributions, as the current framework assumes finite support. Additionally, applying these algorithms to real-world machine learning pipelines could provide empirical validation of the theoretical speedups and reward optimizations identified in this study.

Summary updated

BibTeX
@misc{yang2025markovian,
  author = {Yuanyuan Yang and Ruimin Zhang and Jamie Morgenstern and Haifeng Xu},
  title = {{Markovian Pandora's box}},
  year = {2025},
  eprint = {2502.00228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.00228},
}
Figure