Towards Tight Bounds on the Sample Complexity of Average-reward MDPs

Yujia Jin, Aaron Sidford

Introduction

In reinforcement learning (RL), agents aim to find a policy that maximizes long-term rewards. While extensive research has focused on discounted rewards (where immediate rewards are prioritized) or finite horizons, many real-world systems—such as network traffic controllers, queuing systems, or inventory management—are better modeled using average rewards over an infinite timeframe.

A critical metric for evaluating RL algorithms is "sample complexity," which measures how much data (samples from a generative model) an algorithm needs to find a near-optimal policy. For average-reward Markov Decision Processes (AMDPs), the optimal sample complexity has long been an open question. Specifically, it was unclear how the required number of samples should scale with the environment's mixing time ($t_{mix}$)—the time it takes for the system to reach a steady state distribution regardless of its starting point. Previous methods either suffered from a sub-optimal quadratic dependence on $t_{mix}$ or required highly restrictive assumptions.

This work establishes the first near-tight sample complexity bounds for infinite-horizon AMDPs, resolving a significant theoretical gap by proving that sample complexity scales linearly with the mixing time.

Methodology: Bridging Average and Discounted Rewards

The authors tackle the AMDP sample complexity problem by establishing a quantitative bridge between AMDPs and the better-understood Discounted MDPs (DMDPs).

The AMDP-DMDP Connection

The core insight is a formal proof demonstrating that the value of an average-reward policy is exceptionally close to the rescaled value of a discounted policy, specifically within a factor of $O((1-\gamma)t_{mix})$. By carefully choosing the discount factor $\gamma$ based on the mixing time and desired accuracy ($\gamma = 1 - \Theta(\epsilon/t_{mix})$), an AMDP can be effectively approximated by a DMDP. This allows researchers to "import" powerful, state-of-the-art solvers from the discounted reward literature to find a policy that is also nearly optimal for the original average-reward problem.

Oblivious Sampling

The proposed algorithm utilizes "oblivious" sampling. This means the algorithm determines the number of samples to draw for each state-action pair before observing any data. This approach makes the algorithm highly parallelizable and practically easier to implement compared to dynamic sampling methods that adapt their strategy based on intermediate results.

Lower Bound Hardness Construction

To prove their upper bounds are "tight," the authors construct a family of mathematically "hard" MDP instances. These environments are specifically designed to be as difficult as possible for any algorithm to solve.

Construction of a hard AMDP instance used to prove the lower bound.

These instances feature a multi-level state space where an algorithm must distinguish between a single "best" action and several "suboptimal" actions that appear statistically very similar. By demonstrating that any algorithm must collect a minimum amount of data to succeed on these instances, the authors establish a fundamental performance limit.

Key Results

The paper's main findings significantly improve upon prior work by demonstrating a linear, rather than quadratic, dependence on mixing time.

Comparison of sample complexity bounds for different types of MDPs, highlighting the linear dependence on mixing time.
  • Upper Bound: The proposed algorithm finds an $\epsilon$-optimal policy using $\tilde{O}(A_{tot} t_{mix} / \epsilon^3)$ samples.
  • Lower Bound: The theoretical analysis proves that at least $\Omega(A_{tot} t_{mix} / \epsilon^2)$ samples are fundamentally required for any oblivious algorithm.
  • Weakened Assumptions: Notably, these results hold even if only deterministic policies (rather than all randomized ones) satisfy the mixing time bound. This broadens the applicability of the theory to a wider class of real-world problems.

Limitations and Future Work

While this work makes significant strides, a few open questions remain:

  • The Epsilon Gap: There is a lingering gap between the $\epsilon^{-3}$ dependence in the upper bound and the $\epsilon^{-2}$ dependence in the lower bound. The authors suspect that $\epsilon^{-2}$ is the true optimal rate, but achieving it may require a novel, direct algorithm that does not rely on reducing the AMDP to a discounted MDP.
  • Global Mixing Assumption: The current analysis assumes that all policies mix within time $t_{mix}$. In many practical scenarios, only the optimal policy might exhibit well-behaved mixing. Future research could explore bounds that depend solely on the mixing time of the optimal policy or alternative parameters like the "bias span" or "diameter" of the MDP.

Summary updated

BibTeX
@inproceedings{jin2021towards,
  author = {Yujia Jin and Aaron Sidford},
  title = {{Towards Tight Bounds on the Sample Complexity of Average-reward MDPs}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=QBNuzY3vDVq},
}
Figure