Second Order Value Iteration in Reinforcement Learning

Chandramouli Kamanchi, Raghuram Bharadwaj Diddigi, Shalabh Bhatnagar

Abstract

Standard Value Iteration (VI) is a foundational first-order method for solving Markov Decision Processes (MDPs), but it often suffers from slow convergence, particularly when the discount factor is close to 1. This paper introduces Generalized Second Order Value Iteration (G-SOVI), a novel algorithm that accelerates convergence by smoothing the non-differentiable Bellman operator and applying a Newton-Raphson optimization scheme with successive relaxation. Theoretical analysis confirms that G-SOVI achieves a second-order convergence rate while maintaining global convergence guarantees. Empirical results demonstrate that G-SOVI significantly reduces the number of iterations and total wall-clock time required to find optimal policies compared to standard VI.

Introduction

Value Iteration (VI) serves as the conceptual backbone for many Reinforcement Learning algorithms. However, as a first-order fixed-point iteration method, it can require a massive number of iterations to converge. While techniques like successive over-relaxation and second-order Newton methods have been explored independently to accelerate optimization, their combination has been hindered by the non-differentiability of the max operator in the Bellman equation. This work bridges that gap by proposing G-SOVI, a generalized second-order method designed to solve known-model MDPs as rapidly as possible.

Methodology

To apply Newton-Raphson optimization to the Bellman equation, the authors developed a pipeline to ensure the operator is twice differentiable:

  1. Successive Relaxation: They incorporate a relaxation parameter $w$ into the Q-Bellman equation. Setting $w=1$ reduces the method to standard Second Order Value Iteration (SOVI).
  2. Smooth Approximation: The non-differentiable max operator is replaced with a smooth LogSumExp function: $g_N(x) = \frac{1}{N} \log \sum e^{N x_i}$. The parameter $N$ controls the approximation accuracy, with the error vanishing as $N \to \infty$.
  3. Newton-Raphson Application: With a differentiable operator $U$, the problem is framed as finding the root of $F(Q) = Q - UQ = 0$.

The authors mathematically prove that this smoothed, relaxed operator remains a contraction mapping, ensuring global convergence to a unique fixed point with a second-order rate.

Key Results

Convergence Speed

Evaluations on synthetic MDPs (ranging from 10 to 100 states) show that G-SOVI reaches the optimal value function in significantly fewer iterations than standard VI. As illustrated in the convergence plot below, G-SOVI and standard SOVI achieve near-zero error almost immediately, while standard VI follows a much slower, first-order decay path.

Convergence comparison showing Error vs. Number of Iterations for standard VI, standard SOVI, and G-SOVI.

Wall-Clock Efficiency

Although second-order methods are computationally heavier per iteration due to the need for matrix inversion ($O(|S|^3|A|^3)$ complexity), the drastic reduction in total iterations leads to superior overall efficiency. In time-constrained tests, G-SOVI achieved lower error than standard VI within the same total duration.

Table comparing error achieved by different algorithms within fixed computational time limits.

For a 10-state configuration, standard VI completed 50 iterations in 0.01 seconds, resulting in an error of ~25.48. In that same 0.01-second window, G-SOVI completed only 3 iterations but achieved a much lower error of ~3.88, demonstrating that the quality of second-order steps outweighs the overhead of matrix operations for these scales.

Discussion and Future Work

The primary limitation of G-SOVI is the computational cost of inverting the Jacobian matrix, which makes the exact algorithm intractable for very large or continuous state spaces. However, the authors suggest that the core principles of G-SOVI can be integrated with approximate dynamic programming. Future research could utilize neural networks to parameterize updates or employ quasi-Newton methods to approximate the Jacobian, potentially scaling second-order benefits to high-dimensional Reinforcement Learning tasks.

Conclusion

G-SOVI represents a significant step forward in MDP optimization by successfully merging successive relaxation with second-order methods. By providing a differentiable framework for the Bellman equation, it offers a path toward more efficient policy discovery in complex environments.

Summary updated

BibTeX
@article{kamanchi2021second,
  author = {Chandramouli Kamanchi and Raghuram Bharadwaj Diddigi and Shalabh Bhatnagar},
  title = {{Second Order Value Iteration in Reinforcement Learning}},
  journal = {IEEE Transactions on Automatic Control},
  year = {2021},
  doi = {10.1109/tac.2021.3112851},
}
Figure