TL;DR
This paper introduces "Partial GAE," a novel approach to improve policy gradient methods in reinforcement learning by selectively using parts of the Generalized Advantage Estimation (GAE) to reduce bias introduced by incomplete trajectories. This method demonstrates improved performance in complex environments like MuJoCo and µRTS.
What Problem Does This Paper Address?
Policy gradient methods in reinforcement learning rely on estimating the "advantage function" to guide policy updates. A popular technique for this is Generalized Advantage Estimation (GAE), which offers a good balance between bias and variance. However, in practical scenarios, especially with long trajectories or when parallelizing computation, trajectories are often truncated. This truncation leads to an incomplete GAE, introducing significant bias into the advantage estimates. Existing methods use the entire truncated GAE, which can be problematic. This paper addresses the challenge of this bias in truncated GAE by proposing a method to selectively use parts of the GAE, thereby reducing bias and improving the effectiveness of policy updates.
Methods
The core contribution of this paper is the Partial GAE method. Instead of using the entire truncated GAE calculated from a fixed-length trajectory segment, Partial GAE selectively uses a portion of it. Specifically, it uses the first $\epsilon$ advantage estimates ($\hat{A}_1, \dots, \hat{A}_\epsilon$) from a truncated GAE of length $T$, discarding the rest. This is motivated by the observation that as the time step $t$ approaches the end of the trajectory ($T$), the bias of the truncated GAE increases. By discarding the later, more biased parts, the method aims to retain the benefits of GAE (reduced variance) while mitigating the introduced bias. The paper integrates this Partial GAE into the Proximal Policy Optimization (PPO) algorithm.
Datasets
The paper evaluates its proposed method on two main environments:
- MuJoCo: A physics simulation environment. Experiments were conducted on Ant-v3, Halfcheetah-v3, Hopper-v3, Swimmer-v3, and Walker2d-v3.
- µRTS: A simplified real-time strategy game environment, specifically a 16x16 map against the CoacAI agent. This environment is characterized by sparse rewards and long game steps.
Key Insights and Ideas
- Bias in Truncated GAE is a Significant Issue: The paper highlights that while GAE is effective, its practical application with truncated trajectories introduces substantial bias, particularly towards the end of the sampled sequence.
- Selective Use of GAE is Beneficial: The core insight is that not all parts of a truncated GAE are equally useful. By discarding the later, more biased segments, the method can achieve better performance.
- Trade-off Between Bias and Variance: The paper emphasizes that while GAE aims to balance bias and variance, truncating it shifts this balance. Partial GAE attempts to re-optimize this trade-off by reducing bias at the cost of potentially slightly increased variance (though still lower than infinite GAE).
- Finding an "Intermediate Value": The research suggests that there isn't a simple "more is better" rule for partial coefficient ($\epsilon$) or sampling length ($T$). Optimal performance often lies in an intermediate range, indicating a complex interplay between bias reduction and variance.
Key Results
- Improved Performance: In both MuJoCo and µRTS environments, the Partial GAE approach consistently achieved better performance compared to the baseline PPO using standard truncated GAE.
- Effect of Partial Coefficient ($\epsilon$): Smaller partial coefficients generally led to improved performance in MuJoCo environments, suggesting that discarding more of the biased tail of the GAE is beneficial.
- Effect of Sampling Length ($T$): Larger sampling lengths were found to improve performance in Ant-v3.
- Optimal Parameter Ranges: For Ant-v3, the highest performance was observed with a partial coefficient $\epsilon \in [384, 512]$ and sample length $T \in [64, 128]$. This highlights the need for careful tuning.
- µRTS Success: Partial GAE also performed well in the challenging µRTS environment, demonstrating its applicability to sparse reward and long-horizon tasks.
Limitations and Future Work
- Parameter Tuning: The paper acknowledges that finding the optimal values for the partial coefficient ($\epsilon$) and sampling length ($T$) is crucial and requires careful tuning. While theoretical analysis suggests increasing $(T - \epsilon)$ reduces bias, empirical results show an intermediate value yields the best performance, implying a complex trade-off with variance.
- Adaptive Parameter Selection: The authors suggest that an interesting direction for future research is to develop adaptive methods for adjusting the sampling length $T$ and partial coefficient $\epsilon$ during training, rather than relying on fixed values.
- Inherited Societal Harms: The paper notes that while their method improves value estimation, it inherits potential societal harms associated with deep reinforcement learning agents, such as unpredictable behavior in unseen states.
Summary updated