TL;DR
This paper introduces a novel off-policy ranking method for Evolutionary Strategies (ES) in Reinforcement Learning (RL). By approximating policy fitness using data from a single "behavior" policy, their approach significantly reduces the number of environment interactions needed to train effective policies, achieving similar performance with 30-50% less data compared to existing methods.
What Problem Does This Paper Address?
Reinforcement Learning (RL) often requires a vast number of interactions with an environment to learn an optimal policy. Evolutionary Strategies (ES), a powerful class of derivative-free optimization methods, are particularly susceptible to this sample inefficiency. A core step in ES is ranking candidate policies based on their performance (fitness). Traditional ES methods in RL use "on-policy" evaluation, meaning each candidate policy is tested by interacting with the environment using that specific policy. This is highly inefficient because only the top-performing policies are used for learning, and the data from all other evaluated policies is discarded. This is especially problematic in domains like robotics where data collection is expensive and time-consuming. The paper aims to reduce this sample inefficiency by developing an "off-policy" ranking mechanism.
Methods
The authors propose an off-policy ranking method that replaces the wasteful on-policy evaluation step in ES algorithms. The core idea is to use a single "behavior policy" to interact with the environment and collect data. This data is then used to estimate the fitness of multiple "target" policies.
Key to their approach is a novel fitness function, $L_\pi(\hat{\pi})$, which approximates the value function of a target policy $\hat{\pi}$ using data collected from a behavior policy $\pi$. This approximation is crucial for deterministic policies, which are commonly used in state-of-the-art ES methods like ARS and TRES. To handle deterministic policies, they introduce a kernel-based smoothing technique to their approximation.
This off-policy fitness estimation is then integrated into existing ES algorithms. Specifically, they modify Augmented Random Search (ARS) and Trust Region Evolution Strategy (TRES) to use this new ranking mechanism. Instead of running $2N$ policies on-policy, their method runs a single behavior policy and then uses the collected data to rank the $2N$ candidate policies. Only the top $b$ policies (where $b < N$) are then more thoroughly evaluated, leading to significant data savings.
Datasets
The experiments were conducted on benchmark MuJoCo locomotion tasks, including Swimmer, Hopper, HalfCheetah, Walker2d, Ant, and Humanoid. They also evaluated their method on the Linear Quadratic Regulator (LQR) problem.
Key Insights and Ideas
- Off-policy ranking is key to sample efficiency: The fundamental insight is that by decoupling policy evaluation from policy execution, significant data savings can be achieved. This is a departure from standard ES practice.
- Kernel approximation bridges the gap for deterministic policies: The authors cleverly adapt off-policy estimation techniques, which typically struggle with deterministic policies, by introducing a kernel-based smoothing approach. This allows their method to work with the simple, yet effective, deterministic linear policies used in ARS and TRES.
- Data reuse is paramount: The core benefit comes from reusing the data collected by the behavior policy to evaluate multiple candidate policies, drastically reducing the total number of environment interactions.
- Robustness to seeds and hyperparameters: The proposed methods demonstrate robustness, performing consistently across different random seeds and showing less sensitivity to hyperparameter choices compared to the original algorithms.
Key Results
The proposed off-policy variants of ARS (OP-ARS) and TRES (OP-TRES) achieved similar reward thresholds as their original counterparts but required significantly less data:
- On average, they needed around 70% as much data.
- In some environments (HalfCheetah-v3, Ant-v3), they achieved this with as little as 50% of the data.
- The running times were comparable to the original methods.
- The methods showed robustness to random seeds and hyperparameter choices.
Limitations and Future Work
- Ant-v3 local optima: The authors note that in the Ant-v3 environment, OP-ARS sometimes gets stuck in local optima. They hypothesize this is due to approximate off-policy ranking forcing updates in opposing directions near local maxima and suggest interleaving with on-policy estimations might help.
- Theoretical analysis: While empirical results are strong, the authors suggest that investigating the theoretical underpinnings of their off-policy ranking approach would be a promising direction for future work.
- Generalizability: The authors believe their off-policy ranking idea is extendable to other ES and Random Search methods, which could be explored further.
- Hybrid algorithms: They suggest their approach could be beneficial for recent hybrid algorithms that combine ES with Deep RL methods, aiming to further improve sample efficiency.
Summary updated