Quantification before Selection: Active Dynamics Preference for Robust Reinforcement Learning

Wei LiarXiv 2022 · DOI

Abstract

Reinforcement Learning (RL) policies trained in simulation often fail when deployed in the real world due to the "Sim-to-Real" gap. While Domain Randomization (DR) is a common solution, uniform sampling of environment parameters can lead to inefficient training and over-conservative policies. We introduce Active Dynamics Preference (ADP), a framework that replaces uniform sampling with an active curriculum. By prioritizing environment parameters that are both informative for learning and novel to the agent, ADP bridges the sim-to-real gap more effectively than traditional methods.

Introduction

The transition from simulated environments to physical robotic systems is hindered by discrepancies in physical parameters such as friction, mass, and latency. Domain Randomization (DR) attempts to address this by training agents across a distribution of simulated scenarios. However, standard uniform DR suffers from two primary issues: the "Too Hard" problem, where initial training on extreme parameters provides no useful signal, and the "Over-Conservative" problem, where agents learn a sub-optimal "lowest common denominator" policy to satisfy all possible variations.

Active Dynamics Preference (ADP) addresses these challenges by treating environment selection as an active learning problem, focusing on the "Goldilocks zone" of parameters that maximize learning progress.

Methodology: Active Dynamics Preference

The ADP framework replaces uniform sampling with a targeted selection process that balances the informativeness of a scenario with its novelty.

Overview of the Active Dynamics Preference (ADP) framework, illustrating the active selection of environment parameters based on informativeness and density.

Core Components

  • Informativeness Score Function (ISF): ADP quantifies the learning potential of an environment setup using the Temporal Difference (TD) error (specifically via Generalized Advantage Estimation). High uncertainty in the agent's value function indicates a scenario where significant learning can occur.
  • Density Function (DF): To ensure broad coverage and prevent overfitting to specific difficult regions, ADP tracks the frequency of visited parameter ranges, preferring low-density (novel) areas.
  • Multi-Armed Bandit Selection: The trade-off between informativeness and novelty is managed via a Thompson Sampling bandit, which dynamically adjusts the selection criteria throughout training.
  • Discretization via Continuity: Based on the Performance Continuity Hypothesis—the assumption that similar parameters yield similar performance—ADP discretizes continuous parameter spaces into searchable bins.

Experimental Results

We evaluated ADP on four MuJoCo locomotion benchmarks: Hopper, Walker2d, Ant, and HalfCheetah. ADP was compared against Uniform Domain Randomization (UDR), Robust Adversarial RL (RARL), and Ensemble Policy Optimization (EPOpt).

Evaluation scores across different parameter scales for various locomotion tasks. ADP consistently maintains higher performance across a wider range of variations compared to baselines.

Key Findings

  • Superior Generalization: ADP outperformed UDR in most high-dimensional tests. For instance, in the Walker task, ADP achieved a score of 2155, significantly surpassing UDR’s 1738.
  • Implicit Curriculum Learning: ADP naturally discovers a training curriculum, starting with standard parameters and gradually moving toward more challenging extremes as the agent's skill increases.
  • Robustness to Unseen Noise: Agents trained with ADP showed enhanced resilience to sensor noise and actuator lag, even when these specific perturbations were not explicitly part of the training distribution.

Discussion and Conclusion

ADP demonstrates that active selection of environment parameters is a powerful tool for building robust RL agents. By focusing on informative and novel scenarios, ADP avoids the pitfalls of over-conservatism inherent in uniform DR.

While the current implementation relies on a discretization hypothesis and manual bin tuning, future work could explore the use of neural function approximators to handle higher-dimensional parameter spaces. ADP represents a significant step toward more efficient and reliable Sim-to-Real transfer for complex robotic tasks.

Summary updated

BibTeX
@misc{li2022quantification,
  author = {Wei Li},
  title = {{Quantification before Selection: Active Dynamics Preference for Robust Reinforcement Learning}},
  year = {2022},
  eprint = {2209.11596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.11596},
}
Figure