Variance reduced value iteration and faster algorithms for solving Markov decision processes

Aaron Sidford, Mengdi Wang, Xian Wu, Yinyu Ye · DOI

TL;DR

This paper introduces novel algorithms for solving Markov Decision Processes (MDPs) that significantly speed up computation, achieving nearly linear time complexity for discounted MDPs and improved sublinear times for certain regimes. The key innovation lies in applying variance reduction techniques to approximate value iteration, leading to faster convergence and more efficient sample usage.

What Problem Does This Paper Address?

Markov Decision Processes (MDPs) are fundamental for modeling sequential decision-making under uncertainty, with applications spanning AI, control, and finance. However, solving large-scale MDPs efficiently, especially discounted infinite-horizon MDPs (DMDPs), has been a persistent challenge. Existing algorithms often scale poorly with the number of states and actions, making them impractical for real-world problems. This paper aims to bridge this gap by developing algorithms that offer significantly improved runtime complexities, particularly for scenarios where the discount factor is not extremely close to 1.

Methods

The authors build upon the classic value iteration algorithm, a standard method for solving MDPs. Their core contribution is the integration of variance reduction techniques with approximate value iteration. Instead of directly sampling values, their algorithms sample differences from a fixed initial value vector, which reduces the variance of estimates and thus the number of samples required per iteration.

Key algorithmic components include:

  • ApxVal: A subroutine that approximates the value operator using sampling. It leverages a technique called "variance reduction" by sampling differences from a pre-computed initial value vector.
  • RandomizedVI: A simple randomized value iteration scheme that uses ApxVal in each iteration.
  • HighPrecisionRandomVI: An algorithm that achieves high precision by iteratively decreasing the error requirement for RandomizedVI, leading to nearly linear time complexity.
  • SublinearRandomVI: An algorithm that achieves sublinear time complexity by further optimizing sample usage.
  • Monotonic Algorithms (ApxMonVal, SublinearRandomMonVI): These algorithms ensure that value estimates always increase and maintain specific properties, allowing for a more direct conversion of approximate values to approximate policies without losing optimality guarantees. This also helps remove certain undesirable factors from the runtime complexity.

The paper also extends these techniques to finite horizon MDPs, adapting the core ideas to this related problem.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithm development and analysis for general MDPs, rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • Variance Reduction for MDPs: The paper demonstrates that variance reduction, a technique successful in other optimization problems, can be effectively applied to MDPs to significantly improve the sample complexity and runtime of value iteration.
  • Monotonicity for Policy Guarantees: By ensuring that value estimates always increase and satisfy certain inequalities (e.g., $T_\pi(v) \ge v$), the authors can guarantee that approximate values directly translate to approximate policies without loss of optimality. This is a crucial insight for bridging the gap between value function approximation and policy computation.
  • Nearly Linear Time for Intermediate Discount Factors: The work provides the first algorithms that achieve nearly linear time complexity for DMDPs even when the discount factor $\gamma$ is not extremely close to 1 (i.e., $\gamma$ can be polynomial in the number of states/actions). This is a significant theoretical advancement.
  • Sublinear Time Algorithms: For specific regimes, the authors achieve sublinear time complexity, which is a substantial improvement over previous methods.

Key Results

The paper presents several algorithms with improved theoretical guarantees:

  • Nearly Linear Time Algorithm: Computes an $\epsilon$-optimal policy for DMDPs in time $\tilde{O}(|S||A| \gamma^3 M^2 / \delta)$ (where $\tilde{O}$ hides polylogarithmic factors). This is the first algorithm to achieve nearly linear time for intermediate discount factors.
  • Sublinear Time Algorithm: Under the assumption of $O(1)$ time sampling for transitions, an $\epsilon$-optimal policy is computed in time $\tilde{O}(|S||A| M^2 / ((1-\gamma)^4 \epsilon^2))$.
  • Finite Horizon MDPs: The algorithms are extended to finite horizon MDPs, improving upon existing best results for computing approximately optimal policies.
  • Policy Computation: The paper shows how to convert approximate value vectors into approximate policies with minimal loss in optimality, achieving $\epsilon$-optimal policies in times comparable to value computation.

Limitations and Future Work

  • Dependence on Discount Factor: While the paper makes significant progress, the authors note that future work could aim to improve the algorithms' dependence on the discount factor $\gamma$.
  • Generalization: The authors suggest that their methods could be generalized to settings with additional structural knowledge, such as known upper bounds on the process diameter or ergodicity.
  • Other Methods: They also plan to investigate the use of variance reduction for policy iteration and primal-dual methods.
  • Practical Performance: The paper focuses on theoretical runtime complexity. While the theoretical improvements are substantial, empirical studies would be needed to assess their practical performance against existing methods.

Summary updated

BibTeX
@inproceedings{sidford2018variance,
  author = {Aaron Sidford and Mengdi Wang and Xian Wu and Yinyu Ye},
  title = {{Variance reduced value iteration and faster algorithms for solving Markov decision processes}},
  booktitle = {SODA},
  year = {2018},
  doi = {10.1137/1.9781611975031.50},
}
Figure