Abstract
Unsupervised Reinforcement Learning (URL) aims to pretrain agents to acquire useful behaviors without human-specified rewards. However, extended pretraining often leads to "policy drift," where an agent specializes in a narrow subset of the state space and loses the generalist capabilities required for efficient downstream finetuning. We introduce POLTER (Policy Trajectory Ensemble Regularization), a plug-and-play regularization method that stabilizes pretraining by pulling the current policy toward an ensemble of its past versions. POLTER achieves a 19% average performance improvement across the Unsupervised Reinforcement Learning Benchmark (URLB) and establishes a new state-of-the-art for model-free methods.
Introduction
In traditional Reinforcement Learning (RL), agents are trained to maximize a specific, hand-crafted reward function. Unsupervised Reinforcement Learning (URL) seeks to remove this bottleneck by pretraining agents in reward-free environments. During this phase, agents learn "skills" or behaviors that should ideally provide a broad foundation for any future task.
A significant challenge in URL is the stability of the pretraining trajectory. As training progresses, agents often experience performance degradation on downstream tasks—a phenomenon linked to the policy drifting into specific niches of the environment. This drift prevents the agent from maintaining a "generalist" prior that is equally prepared for diverse downstream objectives. POLTER addresses this by regularizing the agent toward an "optimal prior" derived from its own training history.
The POLTER Method
POLTER (Policy Trajectory Ensemble Regularization) introduces a simple yet effective regularization term to the standard URL objective. The method operates on three core principles:
- Policy Snapshots: At regular intervals during pretraining, the algorithm saves "snapshots" of the current policy into an ensemble.
- Ensemble Regularization: The learning objective is augmented with a penalty—specifically the Kullback–Leibler (KL) divergence—that discourages the current policy from deviating too far from the average behavior of the ensemble.
- Theoretical Foundation: The method is grounded in the concept that the optimal prior for unknown tasks is the policy that induces the average state distribution of all reachable skills. By anchoring the agent to the "geometric center" of its previously discovered behaviors, POLTER maintains a more balanced and adaptable starting point for finetuning.
Crucially, POLTER is algorithm-agnostic. It can be integrated into various URL frameworks, including data-based (entropy maximization), knowledge-based (novelty seeking), and competence-based (explicit skill learning) methods.
Experimental Evaluation
The authors evaluated POLTER using the Unsupervised Reinforcement Learning Benchmark (URLB), which includes 12 tasks across three distinct domains: Walker (2D locomotion), Quadruped (3D locomotion), and Jaco Arm (robotic manipulation). They also utilized "white-box" environments like PointMass to visualize state-marginal distributions.
Key Results
- Performance Gains: POLTER improved the performance of data- and knowledge-based URL algorithms by an average of 19% (measured by Interquartile Mean).
- Impact on ProtoRL: The data-based algorithm ProtoRL saw a massive 40% performance increase when augmented with POLTER.
- New State-of-the-Art: By optimizing the regularization strength ($\alpha$), POLTER achieved a score of 0.84 IQM on the URLB, setting a new record for model-free URL methods.
- Sample Efficiency: In complex locomotion tasks, regularized agents reached peak performance significantly faster than unregularized baselines, demonstrating that a stable prior leads to faster adaptation.
Discussion and Future Work
POLTER effectively mitigates the drift problem by capturing "implicit skills" throughout the training trajectory. Even when an algorithm does not explicitly model skills, its policy at different time steps represents different behavioral modes; POLTER ensures these modes are not forgotten.
While highly effective in continuous control tasks using DDPG, future research could explore POLTER's performance in discrete action spaces (e.g., Atari). Additionally, while the current method uses a uniform ensemble, future iterations could leverage explicit skill vectors in competence-based URL to further refine the regularization process. Automating the selection of the regularization strength ($\alpha$) through meta-learning or AutoRL also remains a promising direction.
Summary updated