Introduction
In supervised learning, "low interference" between gradients is usually a sign of a model that generalizes well. This paper reveals a startling paradox: in Temporal Difference (TD) learning, the opposite is true. TD learning naturally drifts toward low-interference solutions that effectively "memorize" specific transitions, leading to poor generalization. This phenomenon is largely driven by the inherent instability of bootstrapping.
The Problem: Gradient Interference and Bootstrapping
Reinforcement Learning (RL) agents are notorious for being sample-inefficient and brittle. While deep learning has mastered static datasets in Supervised Learning (SL), RL agents often struggle to generalize from one environment to another, or even across different starting states within the same environment.
The authors investigate gradient interference: the degree to which an update for one state affects the prediction for another. In SL, we want updates to be "constructive"—learning about one example should help the model recognize similar examples. However, in TD learning, where we update our current guess based on a future guess (a process called bootstrapping), the relationship between interference and generalization seems broken. The authors set out to understand why TD methods often converge to a "memorization-mode" and how bootstrapping contributes to this failure.
Methodology
The researchers compared Supervised Learning, Policy Gradient (REINFORCE), and Value-based RL (Double DQN) across several tasks, including image classification (SVHN and CIFAR10 adapted into interactive RL tasks), regression benchmarks (SARCOS, California Housing), and Atari 2600 games.
They introduced a metric called function interference ($\bar{\rho}$), which measures the alignment of the gradients of the model's outputs rather than the loss. This metric is more stable because the loss landscape in RL shifts constantly as the policy changes. Key methodological components included:
- Controlled Comparisons: Training RL agents to "explore" images to classify them, allowing a direct comparison between RL and SL on the exact same data.
- Ablation of Bootstrapping: Using TD($\lambda$) to vary the degree of bootstrapping, where $\lambda=0$ is pure bootstrapping and $\lambda=1$ is Monte-Carlo (no bootstrapping).
- Mathematical Decomposition: Deriving the evolution of interference over time to see how different components of the TD error push interference up or down.
Key Insights
The Interference Paradox
In SL, low interference correlates with a low generalization gap, which is desirable. In TD learning, however, low interference correlates with a high generalization gap. This suggests that when a TD agent has low interference, it isn't because it found a "flat," generalizable region of the loss landscape. Instead, it has effectively decoupled its states to memorize them individually.
As shown above, for classification tasks, interference is strongly positively correlated ($r > 0.9$) with the generalization gap. For TD methods, the correlation flips to strongly negative ($r \approx -0.5$).
Bootstrapping as a Wedge
Bootstrapping introduces "local target incoherence." Because the target for state $A$ depends on the current (potentially wrong) estimate of state $B$, the updates become noisy and inconsistent. This high-variance bias prevents the network from finding the shared features that lead to constructive interference.
TD($\lambda$) is a Generalizer
Increasing $\lambda$ (moving toward Monte-Carlo returns) significantly increases the temporal coherence of gradients. By relying less on the "guess-of-a-guess," the model finds it easier to learn features that apply across multiple time steps.
As $\lambda$ increases from 0.1 to 0.99, the cosine similarity (stiffness) between gradients of neighboring states increases dramatically. This leads to faster learning, broader update propagation, and better generalization.
Limitations and Future Work
The authors acknowledge that while they have identified the symptoms and the primary culprit (bootstrapping), a full description of the underlying mechanisms remains elusive. Future directions include:
- Optimizer Coupling: The paper hints that certain optimizers (like Adam) interact better with TD's unique interference patterns by smoothing out high-variance updates. More work is needed to design optimizers specifically for the non-stationary nature of RL.
- Scaling: While the trends hold across Atari and image datasets, it is unclear how these interference dynamics change in extremely high-dimensional or continuous action spaces.
- New Bootstrapping Methods: The ultimate goal is to use these findings to discover new bootstrapping methods that maintain the sample efficiency of TD(0) without sacrificing the generalization capabilities of Monte-Carlo methods.
Summary updated