Introduction
In Reinforcement Learning (RL), achieving a stable method for off-policy learning combined with function approximation has long been considered a "Holy Grail." This paper introduces Greedy-GQ, the first RL algorithm for off-policy control that uses linear function approximation while maintaining a computational complexity that scales linearly with the number of features. By minimizing the Projected Bellman Error, Greedy-GQ achieves guaranteed convergence in scenarios where classic algorithms like Q-learning are known to diverge.
The Problem: The Deadly Triad
To understand the significance of Greedy-GQ, we must look at the three elements that make up the "Deadly Triad" (a term coined by Richard Sutton):
- Off-policy learning: Allowing an agent to learn an optimal "target" policy while actually following a different "behavior" policy. This is crucial for learning from human demonstrations or historical data.
- Function approximation: Using models (like linear models or neural networks) to handle large or continuous state spaces where maintaining a giant table of every possible state is impossible.
- Bootstrapping: Learning from estimated future values rather than waiting for final outcomes.
When these three elements meet, standard algorithms like Q-learning can become highly unstable, causing the learned values to oscillate or explode to infinity. While previous "Gradient TD" methods solved this instability for prediction (evaluating a fixed policy), they had not yet been successfully extended to control (finding the best policy) in a computationally efficient, $O(d)$ manner.
The Solution: Greedy-GQ
The authors present Greedy-GQ, an extension of gradient temporal-difference (GTD) learning. The core innovation is how it handles the objective function to ensure stability:
- Projected Bellman Error (PBE) Minimization: Instead of trying to find a fixed point (which can be unstable), Greedy-GQ performs a form of stochastic gradient descent to minimize the PBE.
- Two-Timescale Update: The algorithm maintains two sets of weights. The primary weights ($ heta$) represent the action-value function, while an auxiliary set of weights ($w$) is used to estimate a component of the gradient that would otherwise require expensive matrix inversions.
- Linear Complexity: By using a "weight-doubling trick," the algorithm remains $O(d)$ per time step, where $d$ is the number of features. This makes it just as fast as standard Q-learning.
- Subgradient Descent: Because the "greedy" policy (taking the best action) creates a non-differentiable objective function, the authors utilize techniques from subgradient calculus to prove convergence.
The authors call this setting "latent learning" because the optimal policy is learned "in the background" while the agent follows a stationary behavior policy.
Experiments and Results
The paper evaluates the algorithm using Baird’s 7-star counterexample, a classic synthetic Markov Decision Process (MDP) specifically designed to make off-policy TD methods diverge. In this benchmark, the rewards are always zero, meaning the true value function should be zero. However, the way the features are constructed causes standard Q-learning to see its errors grow exponentially.
As shown in the evaluation, there is a stark contrast between the two methods. While Q-learning's error shoots off the chart, Greedy-GQ’s error (measured as $\sqrt{J}$) smoothly converges to the true value of zero. Alongside this empirical success, the authors provide a formal proof that Greedy-GQ iterates remain bounded and converge to a local optimum (or equilibrium point) with probability one.
Key Insights
- Stability through Optimization: By framing RL as the minimization of a specific error function (PBE) rather than just a recursive update, we gain access to the stability of gradient descent.
- The Power of Two Scales: Updating the auxiliary weights ($w$) faster than the primary weights ($\theta$) allows the algorithm to "track" the projection of the Bellman error, effectively stabilizing the learning process.
- Breaking the Deadly Triad: This work proves that the "Deadly Triad" is not an inherent impossibility; with the right gradient-based approach, we can have off-policy control, function approximation, and bootstrapping all at once.
Limitations and Future Work
While Greedy-GQ is a significant step forward, it has a few limitations:
- Stationary Behavior Policy: The current proof requires the behavior policy to be fixed. While the authors suggest it could be extended to slowly changing policies, this remains a formal limitation for fully interactive "active" learning.
- Local Optima: Because the objective function is non-convex, the algorithm is only guaranteed to find a local optimum, not necessarily the global best policy.
- Linear Only: The primary focus and proofs are centered on linear function approximation. Extending the same level of robustness to deep neural networks is a natural and necessary next step for modern RL applications.
Summary updated