The Dilemma: Stability vs. Usability
In reinforcement learning (RL), estimating value functions using off-policy data and function approximation (like neural networks) is notoriously unstable. This combination triggers the "deadly triad," causing standard algorithms like Temporal Difference (TD) learning and Q-learning to mathematically diverge to infinity in certain settings.
To solve this, researchers developed "Gradient TD" methods (such as TDC and GTD2) that come with strict mathematical guarantees of convergence. However, practitioners rarely use them. The reason is practical: Gradient TD methods require maintaining a second set of weights and carefully tuning a secondary learning rate. If this secondary learning rate is tuned poorly, the algorithm learns painfully slowly. Faced with choosing an easy-to-use algorithm that might diverge (Q-learning) or a mathematically sound algorithm that is a nightmare to tune (Gradient TD), most practitioners stick to Q-learning.
This paper introduces Temporal Difference with Regularized Corrections (TDRC), a simple algorithmic tweak that adds L2 regularization to the secondary weights of Gradient TD. TDRC combines the best of both worlds: it is as easy to tune and performant as standard TD, but maintains the strict convergence guarantees of Gradient TD, even in off-policy deep RL settings.
Introducing TDRC
TDRC builds upon the established TD with Corrections (TDC) algorithm. TDC uses a secondary set of weights ($h$) to estimate the expected TD error, which acts as a gradient correction to prevent divergence.
The novel contribution of TDRC is incredibly simple but highly effective: applying L2 regularization (ridge regression) to the secondary weights $h$, controlled by a parameter $eta$.
- When $eta$ is very large, $h$ is pushed to zero, and the algorithm behaves exactly like standard TD.
- When $eta = 0$, the algorithm is exactly TDC.
By using an intermediate value (like $eta = 1.0$), TDRC reduces the variance of the $h$ estimator. Because the variance is controlled, the authors can drop the requirement for a separate, highly-tuned secondary learning rate. TDRC effectively uses a single shared learning rate for both the primary and secondary weights.
The authors also extend this to control and deep RL, creating QRC (Q-learning with Regularized Corrections). In deep RL, the secondary weights are implemented as an additional head on the neural network that predicts the TD error, without passing gradients backward into the main network.
Key Insights
- TDC's "Good" Performance was an Illusion: The authors found that in previous literature where TDC matched TD's performance, it was only because the secondary learning rate was tuned so close to zero that TDC effectively became TD—breaking its theoretical convergence guarantees in the process.
- Variance is the Culprit: The reason Gradient TD methods learn so slowly is the high variance of the secondary weight estimator ($h$). Regularizing $h$ provides a much better bias-variance tradeoff, allowing the primary weights to update smoothly.
- Insensitivity to Hyperparameters: TDRC is remarkably robust to the choice of the regularization parameter $eta$. A default of $eta = 1.0$ worked across almost all tested domains, eliminating the need for painful hyperparameter sweeps.
Experimental Results
The authors evaluated TDRC and QRC across a spectrum of environments, from linear prediction tasks (Boyan's chain, Baird's counterexample) to linear control (Mountain Car) and non-linear deep RL (MinAtar suite).
- Prediction & Linear Control: TDRC matched the fast learning speed of standard TD on normal problems. Crucially, on Baird's counterexample—a classic benchmark specifically designed to cause standard TD to diverge—standard TD and Vtrace diverged to infinity, while TDRC successfully converged. In Mountain Car, standard TDC completely failed to learn a reasonable policy, whereas TDRC matched standard TD perfectly.
- Deep RL: QRC performed competitively with standard Q-learning across the board. In highly off-policy settings (e.g., Mountain Car with heavy experience replay), standard Q-learning exhibited spikes of instability, while QRC remained stable. In the MinAtar environments, tuning $eta < 1$ allowed QRC to actually outperform standard Q-learning.
Limitations and Future Work
While TDRC is proven to converge, the mathematical conditions required for the step-size multiplier and $eta$ depend on domain-specific matrix properties that are practically impossible to compute for large-scale problems. Furthermore, the optimal scale of $eta$ depends on the magnitude of the environment's rewards. While $eta=1.0$ works well generally, dynamically adapting $eta$ (or using reward normalization) could yield even better results.
Ultimately, TDRC represents a significant step toward making mathematically sound RL algorithms practical for everyday use, though broader testing on large-scale environments like the full Atari 2600 suite will be needed to truly dethrone standard Q-learning.
Summary updated