Abstract
Off-policy prediction is a cornerstone of modern reinforcement learning, enabling agents to learn from diverse data sources. However, the variance introduced by importance sampling remains a significant hurdle. This paper provides a comprehensive empirical evaluation of 11 off-policy learning algorithms across two gridworld tasks designed to test their limits. Our findings highlight a fundamental trade-off: algorithms robust to extreme variance often exhibit slower learning in stable conditions, while emphatic methods achieve superior asymptotic performance at the cost of initial convergence speed.
Introduction
In Reinforcement Learning (RL), off-policy learning allows an agent to evaluate a target policy while following a separate behavior policy. This capability is vital for multi-task learning, mastering options, and utilizing historical data. The primary challenge is the importance sampling ratio—the mismatch between the two policies. When these ratios are compounded over time, they can lead to explosive variance, making learning unstable or prohibitively slow. Despite numerous proposed algorithms, a lack of standardized, high-variance benchmarks has made it difficult to determine which methods are most effective in practice.
Methodology
We evaluate 11 algorithms categorized into three primary families:
- Gradient-TD Family: (e.g., GTD, TDRC, HTD) Designed to guarantee convergence in settings where standard TD methods might fail.
- Emphatic-TD Family: (ETD) Utilizes a "follow-on" trace to re-weight updates, ensuring theoretical convergence under off-policy training.
- Variable-λ Family: (Tree Backup, Vtrace, ABTD) These algorithms dynamically scale or "cut" traces to prevent variance explosions, effectively limiting the lookahead through bootstrapping.
These algorithms were tested using linear function approximation with tile coding. To ensure statistical significance and avoid "lucky" parameter settings, we conducted over 20,000 algorithm instances across 50 independent runs.
Experimental Setup
The Four Rooms environment layout and action space. An Empirical Comparison of Off-policy Prediction Learning Algorithms in the Four Rooms Environment, page 3
The primary testbed is the Four Rooms environment, a 104-state gridworld. We utilize two variants:
- Standard Rooms Task: A grid where the product of importance sampling ratios can reach $2^{14}$.
- High Variance Rooms Task: An extreme version where the behavior policy makes certain transitions rare, pushing the product of importance sampling ratios as high as $2^{14} \times 25$.
While these tasks are smaller than modern benchmarks like the Arcade Learning Environment, they isolate the mathematical challenges of off-policy learning in a way that is computationally feasible for large-scale comparative studies.
Results and Discussion
Sensitivity of various off-policy algorithms to step-size and trace parameters. An Empirical Comparison of Off-policy Prediction Learning Algorithms in the Four Rooms Environment, page 4
Our results demonstrate that no single algorithm dominates across all conditions. In the standard task, Gradient-TD and standard Off-policy TD methods reached an error floor of approximately 0.14. Conversely, Variable-λ methods like Tree Backup and Vtrace were limited by their trace-cutting mechanisms, which acted as a "speed limiter," preventing them from reaching the same level of accuracy as simpler algorithms.
However, in the High Variance task, the tables turned. The Variable-λ family proved superior; by effectively bootstrapping more aggressively when variance is high, these algorithms maintained stability where others diverged. Emphatic TD (ETD) consistently showed the best long-term (asymptotic) performance but suffered from a "slow-start" problem. A key finding was that tuning the $\beta$ parameter in ETD—previously thought to be of minor importance—is actually critical for practical performance in high-variance settings. Finally, TDRC emerged as a strong "pragmatic choice," offering robust performance across both tasks with minimal parameter tuning.
Conclusion and Future Work
This study underscores the importance of selecting off-policy algorithms based on the expected variance of the environment. While emphatic methods offer the best final accuracy, practitioners facing high-variance importance sampling should consider Variable-λ methods or robust alternatives like TDRC.
Future research should focus on adaptive mechanisms to speed up the initial learning of emphatic methods, such as dynamic interest functions or step-size adaptation (e.g., Adam). Additionally, extending this rigorous empirical framework to non-linear function approximation in Deep RL remains a vital next step for the field.
Summary updated