Policy Testing in Markov Decision Processes

Kaito Ariu, Po-An Wang, Alexandre Proutiere, Kenshi Abe

TL;DR

This paper introduces the first computationally tractable, instance-optimal algorithm for policy testing in discounted Markov Decision Processes (MDPs). By cleverly reformulating a mathematically intractable, non-convex lower-bound optimization problem into a policy optimization task over a newly defined "reversed MDP," the authors bypass traditional loose convex relaxations to achieve true statistical optimality.

What Problem Does This Paper Address?

In reinforcement learning (RL), pure exploration tasks—such as determining whether a new policy outperforms a baseline threshold—are evaluated by their sample complexity (how many samples are needed to make a decision with high confidence). Ideally, we want algorithms that are instance-optimal, meaning they adapt to the specific difficulty of the problem at hand rather than a pessimistic worst-case scenario.

While instance optimality is well-understood in simple Multi-Armed Bandits (MABs), extending it to stateful MDPs has faced a massive mathematical roadblock. In MDPs, the set of alternative environments that can confuse an algorithm forms a non-convex set. Consequently, the optimization problem required to find the optimal sampling strategy has non-convex constraints, making it computationally intractable. Previous approaches relied on loose convex relaxations, which sacrificed statistical optimality for computational feasibility.

Methods

The authors tackle this intractability through a series of novel mathematical insights:

  1. Objective-Constraint Swapping: They reformulate the lower-bound optimization problem by swapping the roles of the objective function and the constraints. This flips the problem into one with a non-convex objective but convex constraints (a global KL-divergence ball).
  2. The Reversed MDP: They show that this dual problem can be interpreted as a policy optimization task in a newly constructed environment called a reversed MDP ($\bar{\mathcal{M}}$). In this reversed setting, the roles of the original transition kernel and the policy are interchanged, allowing the authors to leverage modern, highly efficient policy gradient descent techniques.
From the original MDP to the reversed MDP, where the roles of the transition kernel and policy are swapped.
  1. Product-Box Decomposition: To handle the global KL constraint, they prove it can be decomposed exactly into a family of independent "product-box" subproblems across state-action pairs.
  2. The PTST Algorithm: They introduce PTST (Policy Testing with Static Sampling), which solves these inner product-box problems using projected policy gradient methods and coordinates them via an outer budget search.

Datasets

The algorithm was evaluated using synthetic, randomly generated tabular MDP environments. The experiments covered three distinct configurations to test scalability:

  • 2-state, 2-action MDPs
  • 3-state, 3-action MDPs
  • 5-state, 5-action MDPs

The exact reward functions, transition kernels, and target policies used to construct these environments are detailed in Appendix J of the paper.

Key Insights and Ideas

  • Duality as a Tool for Tractability: The most significant "aha moment" is realizing that non-convexity in the constraints is much harder to deal with than non-convexity in the objective. Swapping them makes the constraint set convex and manageable.
  • The Environment is the Policy: Mapping the transition kernel of the original MDP to a policy in the reversed MDP is a powerful conceptual bridge. It unlocks the entire toolkit of constrained RL policy gradient methods for solving pure exploration lower bounds.
  • Exact Decomposition: Finding that the global KL-feasible set factorizes exactly into independent product boxes means the inner optimization step can be solved efficiently block-by-block without any loose approximations.

Key Results

The authors mathematically prove that PTST achieves asymptotically instance-optimal sample complexity.

Empirically, PTST was compared against a modified version of KLB-TS, a state-of-the-art baseline adapted from best policy identification. Across all tested state and action dimensions ($|S|=|A|=2, 3, 5$), PTST consistently outperformed the baseline, requiring significantly fewer average samples to reach the same confidence level ($\delta$) across a wide range of values ($10^{-15}$ to $10^{-2}$).

Experimental results showing that PTST consistently requires a lower average stopping time (fewer samples) than the KLB-TS baseline across different state-action sizes.

Limitations and Future Work

  • Static Sampling Only: The current theoretical guarantees are restricted to static sampling allocations, where the proportions of state-action pairs to sample are fixed beforehand. Extending this framework to fully adaptive sampling regimes remains an open challenge.
  • Computational Overhead: While theoretically tractable, the computational cost of calculating Euclidean projections onto the convex sets scales up with the state-action space. In practice, the authors had to use a heuristic variant (using SLSQP) for their experiments. They note that developing projection-free variants (e.g., using conditional gradient updates) is an important next step to reduce overhead.

Summary updated

BibTeX
@inproceedings{ariu2026policy,
  author = {Kaito Ariu and Po-An Wang and Alexandre Proutiere and Kenshi Abe},
  title = {{Policy Testing in Markov Decision Processes}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=Lh7fVWYDdv},
}
Figure