Abstract
Reinforcement Learning (RL) agents often struggle to generalize from training environments to unseen test scenarios. This paper investigates the learning dynamics of standard Temporal Difference (TD) methods, revealing a mathematical bias that prioritizes fitting non-smooth, high-frequency components of the value function early in training. This "anti-smooth" behavior leads to overfitting and high interference. We introduce "update rank" as a metric to quantify this phenomenon and demonstrate that policy-based methods naturally maintain lower update ranks than value-based methods. Finally, we show that post-training policy distillation serves as an effective regularizer, filtering out overfitted details and significantly improving generalization on benchmarks like ProcGen.
1. Introduction
Deep Reinforcement Learning has achieved remarkable success in complex tasks, yet the "generalization gap"—the performance difference between training and testing environments—remains a significant hurdle. Agents often memorize specific trajectories or visual features rather than learning the underlying logic of the task. This paper explores the hypothesis that the learning dynamics inherent to Temporal Difference (TD) learning are partially responsible for this gap. Specifically, we examine how the pursuit of minimizing TD error can lead to representations that prioritize "jumpy" or non-smooth value functions, which are prone to overfitting.
2. Theoretical Analysis: The Bias of TD Learning
The core of the analysis lies in the eigendecomposition of transition operators. In TD learning, the value function is updated based on the transition dynamics of the environment. The authors prove that TD learning accelerates convergence along the non-smooth components (eigenvectors with small eigenvalues) of the value function.
Unlike Monte Carlo methods, which treat all components of the value function equally, TD learning provides a mathematical incentive to fit sharp, discontinuous changes early in the training process. This "anti-smooth" property means that the agent is biased toward high-frequency details that may not generalize well to new states, effectively "baking in" poor generalization from the start.
3. Quantifying Interference: The Update Rank Metric
To measure how learning at one state affects others, the authors introduce the Update Rank. This metric represents the approximate rank of a matrix that tracks the influence of updates across the state space.
- Low Update Rank: Indicates high interference/generalization. An update in one state significantly changes the agent's predictions for many other states, suggesting the agent is learning broad patterns.
- High Update Rank: Indicates low interference/memorization. The agent treats states as unique entries in a lookup table, minimizing the impact of updates on other states.
Empirical tracking in Atari 2600 environments shows that value-based agents (like DQN) typically start with low update ranks but quickly pivot toward high update ranks as they minimize TD error, signaling a transition from generalization to memorization.
4. Policy Gradients vs. Value-Based Methods
A key finding is the difference in learning dynamics between objective functions. Policy-based methods, such as PPO (Proximal Policy Optimization), maintain a lower update rank for a longer duration compared to value-based methods like DQN or C51. This suggests that the objective of maximizing expected reward is inherently "smoother" than the objective of predicting exact state values. Consequently, policy-gradient agents tend to exhibit better natural generalization.
5. Policy Distillation as a Filter
To mitigate the overfitting caused by TD learning, the authors propose post-training policy distillation. In this setup, a fully trained "teacher" agent provides targets for a fresh, randomly initialized "student" network.
The student is trained to mimic the teacher's final policy without undergoing the teacher's original TD-driven learning trajectory. This process acts as a "reset button," allowing the student to find a smoother representation of the successful behavior. By bypassing the "non-smooth" struggle of the initial training, the student filters out the overfitted details, resulting in a more robust agent.
6. Experimental Results
The study evaluated these concepts across several benchmarks, including Classic Control (MountainCar), Atari 2600, and the ProcGen suite. Key results include:
- Generalization Boost: In ProcGen environments designed to test generalization (e.g., BigFish, Heist, Climber), distilled agents showed significant performance gains on unseen test levels.
- Robustness: Distilled agents demonstrated higher resilience to input noise and better consistency when interpolating between different observations compared to their teacher networks.
- Reward Density Correlation: The authors confirmed that agents in "dense reward" tasks (where there is frequent signal to fit) develop higher update ranks and worse generalization than those in sparse reward environments.
7. Conclusion and Future Work
This research highlights a fundamental tension in RL: the mechanism used to learn value functions (TD learning) inherently biases the agent toward poor generalization by prioritizing non-smooth components. While policy distillation offers a powerful post-hoc remedy, it does not address the root cause during initial training. Future research directions include designing architectures resistant to high-frequency interference and modifying the TD update rule to adaptively promote generalization throughout the training process.
Summary updated