TL;DR
This paper tackles the challenge of transferring reinforcement learning policies trained in simplified, abstract simulators to real-world robots. They introduce a novel method, ASTRA, that grounds these abstract simulators using real-world data and history-based learning, enabling successful sim2real transfer even when the simulator significantly deviates from reality.
What Problem Does This Paper Address?
Reinforcement learning (RL) has shown great promise in robotics, but training directly on real robots is often impractical due to cost, safety, and data requirements. Simulators offer a solution, but high-fidelity simulators are difficult to build and maintain for complex tasks. This leads to the use of abstract simulators that are simpler but may omit crucial real-world dynamics. The core problem is how to train an RL policy in such an abstract simulator and successfully transfer it to a real robot, especially when the abstraction introduces partial observability – meaning the abstract state doesn't fully capture the real-world state. Existing sim2real methods often assume simulators and real-world environments share similar state spaces, differing only in parameters, which doesn't hold for abstract simulators.
Methods
The authors formalize the "abstract sim2real" problem using state abstraction from RL literature. They identify that partial observability due to abstraction necessitates history-based grounding methods. Their proposed method, ASTRA (Augmented Simulation with self-predicTive abstRAction), addresses this by:
- History-based Encoder: A recurrent neural network (RNN) encoder learns to map abstract state-action histories to a latent "approximate information state" (AIS). This AIS is designed to retain task-relevant information for both policy learning and simulator grounding.
- Self-Predictive Grounding: ASTRA augments the abstract simulator with learned components:
- Latent Dynamics Model: Predicts the next latent state from the current latent state and action.
- Reward Predictor: Estimates rewards from the target environment.
- Abstract State Predictor: Corrects the abstract simulator's next state prediction using the latent representation.
- Joint Training: These components are trained jointly using a combination of losses: latent dynamics prediction, reward prediction, and abstract state correction.
- Target Environment Abstraction: A separate encoder is trained to map real-world histories to the same latent space, ensuring compatibility for policy deployment.
Datasets
The paper uses existing simulated environments and a real robot for evaluation:
- Simulated Navigation: AntMaze (a 2D point-mass abstract simulator for the target environment).
- Simulated Humanoid Locomotion: RL Humanoid benchmark with varying levels of abstraction (Walker2D, Kinematics, Extended Kinematics).
- Real Robot Tasks:
- NAO Robot Navigation: A 2D point-mass abstract simulator for the real NAO robot.
- NAO Robot Ball-Kicking: A simplified ball physics simulator for the real NAO robot.
For grounding, they collect data using random or suboptimal behavior policies in the target environments.
Key Insights and Ideas
- Abstraction Induces Partial Observability: The core insight is that abstracting states in a simulator doesn't just change parameters; it fundamentally alters the information available, leading to partial observability. This means simple state-based corrections are insufficient.
- History is Crucial for Grounding: To overcome partial observability, grounding methods must consider the history of states and actions, not just the current abstract state. This allows the grounded simulator to implicitly account for unmodeled real-world dynamics.
- Self-Predictive Representations Matter: Simply predicting the next abstract state isn't enough. ASTRA's self-predictive losses (reward and latent dynamics) help shape the latent representation to be more informative for both control and grounding, leading to better transfer.
- Grounding is More Effective than Domain Randomization for Abstract Simulators: While domain randomization helps with parametric differences, it struggles when the simulator's state representation is fundamentally different from the real world. ASTRA's explicit grounding proves more effective in these scenarios.
Key Results
- Superior Sim2Real Transfer: ASTRA consistently achieved the highest success rates across all evaluated tasks (legged robot navigation, humanoid locomotion, NAO robot navigation, and NAO ball-kicking), significantly outperforming baselines like Direct Transfer, Domain Randomization, COMPASS, and NAS.
- Robustness to Abstraction Levels: ASTRA's performance remained strong even with highly abstract simulators (e.g., the skeletal Walker2D for humanoid locomotion), where other methods failed.
- Effectiveness of Grounding Components: Ablation studies showed that both reward prediction and latent dynamics prediction contribute to ASTRA's performance, with reward prediction being particularly critical.
- Data Efficiency: ASTRA showed significant performance gains with relatively small amounts of real-world data (25-75% of a baseline dataset), plateauing around 100% data.
Limitations and Future Work
- Known State Mapping: ASTRA requires a known mapping from real-world states to abstract simulator states. This limits its applicability to scenarios where such mappings can be defined, rather than directly using raw sensor data.
- Non-Trivial Real-World Data: While ASTRA requires less data than direct policy learning, it still needs some real-world data for grounding.
- Acceptable Abstraction Levels: The paper suggests future work could explore identifying the limits of acceptable abstraction levels for sim2real transfer.
- Unifying Abstract Simulators: The authors propose a more general analysis for abstract simulators, potentially extending beyond the highly abstract end of the spectrum.
Summary updated