Improving generalization of robot locomotion policies via Sharpness-Aware Reinforcement Learning
Severin Bochem, Eduardo Gonzalez-Sanchez, Yves Bicker, Gabriele Fadini
TL;DR
The paper addresses the challenge of robust sim-to-real transfer for robot locomotion by combining SHAC with Adaptive Sharpness-Aware Minimization (ASAM) to form SHAC-ASAM. This approach promotes flatter minima in the loss landscape, aiming to retain the sample efficiency of gradient-based methods while enhancing robustness to action perturbations and environmental variations. Experimental results in contact-rich Ant and Humanoid environments show SHAC-ASAM improves generalization and robustness relative to vanilla SHAC, approaching zeroth-order like robustness demonstrated by PPO, albeit with higher computational cost. The work suggests a practical path to more reliable sim-to-real transfer and indicates potential applicability of sharpness-aware optimization to other first-order reinforcement learning algorithms in robotics.
Abstract
Reinforcement learning often requires extensive training data. Simulation-to-real transfer offers a promising approach to address this challenge in robotics. While differentiable simulators offer improved sample efficiency through exact gradients, they can be unstable in contact-rich environments and may lead to poor generalization. This paper introduces a novel approach integrating sharpness-aware optimization into gradient-based reinforcement learning algorithms. Our simulation results demonstrate that our method, tested on contact-rich environments, significantly enhances policy robustness to environmental variations and action perturbations while maintaining the sample efficiency of first-order methods. Specifically, our approach improves action noise tolerance compared to standard first-order methods and achieves generalization comparable to zeroth-order methods. This improvement stems from finding flatter minima in the loss landscape, associated with better generalization. Our work offers a promising solution to balance efficient learning and robust sim-to-real transfer in robotics, potentially bridging the gap between simulation and real-world performance.
