On the Use of Non-Stationary Policies for Stationary Infinite-Horizon Markov Decision Processes

Bruno Scherrer, Boris Lesner

Introduction

In the realm of Markov Decision Processes (MDPs), a foundational principle is that an optimal stationary policy always exists for infinite-horizon problems. However, this paper introduces a surprising twist: when dealing with approximation errors, non-stationary (periodic) policies are significantly easier to optimize. By shifting away from strictly stationary policies, we can achieve performance guarantees that are an order of magnitude better.

The Problem with Stationary Policies

When solving large-scale Reinforcement Learning (RL) problems, finding a perfect solution is rarely feasible. Instead, practitioners rely on "Approximate" versions of Value Iteration (AVI) or Policy Iteration (API). Because these algorithms use approximations—such as neural networks to estimate value functions—they introduce an error, $\epsilon$, at every step.

Standard theory provides a performance bound for the resulting stationary policy: the loss compared to the optimal policy is at most $\frac{2\gamma}{(1-\gamma)^2} \epsilon$, where $\gamma$ is the discount factor.

The critical flaw lies in the $(1-\gamma)^2$ term in the denominator. In many real-world tasks, $\gamma$ is very close to 1 (e.g., 0.99 or 0.999), causing this error bound to explode. While researchers previously suspected this "conservative" bound might just be a theoretical quirk, this paper proves the bound is actually tight. This means that under approximation error, stationary policies really can perform as poorly as the bound suggests.

To prove this tightness, the authors construct a specific synthetic MDP to demonstrate how errors compound quadratically over the horizon.

Synthetic MDP used to prove the tightness of the standard stationary error bound.

The Non-Stationary Solution

To overcome this limitation, the authors propose a paradigm shift: instead of searching for the best stationary policy (where the agent always takes the same action in a given state), we should utilize periodic non-stationary policies.

The paper introduces three algorithmic variations to compute these policies:

  1. Non-stationary AVI: Instead of outputting the final policy $\pi_k$ from Value Iteration, the algorithm outputs a policy $\pi_{k,m}$ that cycles through the last $m$ policies generated during training.
  2. API with a Growing Period: A variation of Policy Iteration where the evaluated policy grows one step longer every iteration, incorporating every policy found since the algorithm started.
  3. API with a Fixed Period ($m$): A generalization of standard API. While standard API evaluates a stationary policy (where $m=1$), this version evaluates a periodic policy of length $m$.

The core mathematical contribution of the paper is proving that these cycling policies effectively "cancel out" a significant portion of the accumulated approximation error over time.

Key Insights and Results

  • Breaking the Square: The most significant result is reducing the error bound from $O\left(\frac{1}{(1-\gamma)^2}\right)$ to $O\left(\frac{1}{1-\gamma}\right)$. In terms of the "effective horizon" of an MDP, this changes the error growth from quadratic to linear.
  • The Impact of $\gamma$: The authors prove that their non-stationary approaches achieve a tight performance bound of $\frac{2\gamma}{1-\gamma} \epsilon$. To illustrate the impact, consider a scenario where $\gamma = 0.99$. The standard stationary bound is roughly $20,000\epsilon$. The new non-stationary bound is roughly $200\epsilon$—a 100x improvement in the guaranteed quality of the solution.
  • Simplicity vs. Optimality: The findings demonstrate that computing near-optimal non-stationary policies is fundamentally simpler than computing near-optimal stationary policies, challenging the standard RL practice of strictly enforcing stationarity.

Limitations and Future Work

While theoretically profound, the approach has practical considerations:

  • Memory Constraints: Executing a non-stationary policy of period $m$ requires storing $m$ distinct policies in memory. Although the authors show that a relatively small $m$ (proportional to the effective horizon $\frac{1}{1-\gamma}$) is sufficient, it still increases the agent's memory footprint.
  • Norm Assumptions: The current proofs rely on the $L_\infty$ (max-norm) error. Modern deep RL typically uses $L_2$ or other $L_p$ norms for function approximation. Extending these proofs to $L_p$ norms is a logical next step.
  • Empirical Validation: As a purely analytical paper, the next phase of research will require applying these "cycling" policies to deep RL benchmarks (like MuJoCo or StarCraft) to verify if the theoretical gains translate to empirical performance in complex environments.

Summary updated

BibTeX
@inproceedings{scherrer2012use,
  author = {Bruno Scherrer and Boris Lesner},
  title = {{On the Use of Non-Stationary Policies for Stationary Infinite-Horizon Markov Decision Processes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2012},
  url = {https://openreview.net/forum?id=BkW3GD-O-S},
}
Figure