Abstract
Reinforcement Learning (RL) is notoriously unstable, often due to the "deadly triad" of bootstrapping, off-policy learning, and function approximation. This paper reframes Q-learning as a monotone numerical scheme—a concept borrowed from partial differential equations (PDEs)—to show that stability depends on whether the algorithm preserves the ordering of value functions during updates. By analyzing a simple Linear Quadratic (LQ) problem, we demonstrate how learning rates and function approximators can inadvertently break monotonicity, leading to divergence.
Introduction
In reinforcement learning, the goal is for value functions to converge to an optimal solution. However, deep RL methods frequently fail to converge or "blow up." While researchers often cite the "deadly triad" as the cause, the underlying mathematical mechanism remains a subject of intense study. This work approaches RL through the lens of numerical analysis, treating the Bellman equation as a discretization of the Hamilton-Jacobi-Bellman (HJB) equation.
In numerical physics, "monotone schemes" are considered the gold standard because they guarantee convergence to a stable solution. This paper investigates whether Q-learning can be treated as such a scheme and identifies the conditions under which monotonicity is violated.
Methodology
The analysis focuses on a 1D Deterministic Linear Quadratic (LQ) Problem, a mathematically tractable "toy" problem where dynamics are linear and costs are quadratic. This setup allows for precise control over parameters to visualize the breakdown of stability.
HJB and Numerical Schemes
The author derives the continuous-time HJB equation for the LQ problem and solves it using fixed-point iteration. A critical distinction is made between "upwind" and "downwind" schemes. In numerical methods, an upwind scheme selects the direction of a derivative based on the system's "flow," ensuring monotonicity and stability. Conversely, a "downwind" scheme leads to immediate instability. Standard discrete-time Q-learning is mapped onto these schemes to evaluate how the learning rate ($\alpha$) affects monotonicity.
Function Approximation
The study further derives a specific stability condition for linear function approximation. It demonstrates how the choice of features ($X$) and the learning rate ($\alpha$) interact, showing that stability becomes state-dependent: $\alpha_n < 1 / \|X(x,u)\|^2$.
Key Results and Stability Thresholds
The Role of the Learning Rate
In its table-lookup form, Q-learning is a monotone operator as long as the learning rate $\alpha$ remains between 0 and 1. When $\alpha$ exceeds 1, the algorithm enters a state of "over-relaxation." While it may converge faster in specific instances, it eventually loses its monotonicity guarantee.
As shown in the figure above, with a step size of 0.8, the value function converges to a smooth downward parabola, and the policy follows a stable staircase pattern toward the theoretical optimum. However, increasing the step size to 1.8 leads to catastrophic failure.
At $\alpha = 1.8$, the value function spikes to magnitudes of $10^{40}$, and the policy exhibits chaotic oscillations. This visual evidence confirms that exceeding the stability threshold breaks the monotonicity of the update rule, causing the system to diverge wildly.
Discussion and Limitations
The Function Approximation Trap
When using function approximation, monotonicity is no longer guaranteed by a small $\alpha$ alone. If an agent visits a region of the state space where features ($X$) are very large, a previously "safe" learning rate may violate the monotonicity condition. This suggests that exploration itself can trigger instability if the function approximator is not carefully constrained.
Conclusion and Future Work
This research highlights that Q-learning's stability is deeply rooted in its behavior as a monotone numerical scheme. While the current analysis is restricted to 1D deterministic LQ problems, it provides a theoretical foundation for understanding why neural networks—which are non-linear and high-dimensional—are so prone to the deadly triad. Future work should focus on designing function approximators or adaptive learning rates that explicitly preserve monotonicity to ensure robust convergence in complex RL environments.
Summary updated