Eureka: Human-Level Reward Design via Coding Large Language Models
Yecheng Jason Ma, William Liang, Guanzhi Wang, De-An Huang, Osbert Bastani, Dinesh Jayaraman, Yuke Zhu, Linxi Fan, Anima Anandkumar · NVIDIA, UT Austin, Caltech · 2024
Framework
PyTorch + IsaacGym
License
Apache-2.0
Stars
3,161
Summary
Eureka uses GPT-4 to write reward functions for RL environments, achieving human-level reward design on 29 tasks and enabling zero-shot sim-to-real transfer on Shadow Hand dexterous manipulation.
Abstract Summary
Key Points
- GPT-4 writes and iteratively refines RL reward functions.
- Outperforms human rewards on 83% of 29 tasks across 10 robot types.
- Zero-shot sim-to-real transfer to Shadow Hand dexterous manipulation.
- Evolutionary selection: generate → train → select → iterate.
- Open-source with IsaacGym integration and 29 benchmark tasks.
Problem Setting and Definitions
The goal of reward design is to return a shaped reward function for a ground-truth reward function that may be difficult to optimize directly (e.g., sparse rewards); this ground-truth reward function may only be accessed via queries by the designer. We first introduce the formal definition from Singh et al. (2010) , which we then adapt to the program synthesis setting, which we call reward generation .
Method
Eureka consists of three algorithmic components: 1) environment as context that enables zero-shot generation of executable rewards, 2) evolutionary search that iteratively proposes and refines reward candidates, and 3) reward reflection that enables fine-grained reward improvement. See Alg. 1 for pseudocode; all prompts are included in App. A .
Reward design requires the environment specification to be provided to the LLM. We propose directly feeding the raw environment source code (without the reward code, if exists) as context.
Experiments
We thoroughly evaluate Eureka on a diverse suite of robot embodiments and tasks, testing its ability to generate reward functions, solve new tasks, and incorporate various forms of human input. We use GPT-4 ( OpenAI, 2023 ) , in particular the gpt-4-0314 variant, as the backbone LLM for all LLM-based reward-design algorithms unless specified otherwise. Environments.
Our environments consist of 10 distinct robots and 29 tasks implemented using the IsaacGym simulator ( Makoviychuk et al., 2021 ) .
Sources and Demonstrations
Figures are reproduced from Ma et al. See the full paper for experimental details and the project page, when the paper links one, for demonstrations and videos.
Related Papers
Gymnasium: A Standard Interface for Reinforcement Learning Environments
Farama Foundation, Jordan Terry, Mark Towers et al.
Gymnasium is the maintained successor to OpenAI Gym, providing a standardized API for RL environments with 100+ built-in tasks, vectorized parallel execution, and native support for physics engines like MuJoCo, PyBullet, and IsaacGym.
ManiSkill: A Unified Benchmark for Generalizable Manipulation Skills
Jiayuan Gu, Sean Xiang, Stone Tao et al.
ManiSkill is a GPU-parallelized robotics simulation benchmark with 20+ manipulation tasks, PartNet-Mobility assets, and unified observation/action spaces, supporting RL, IL, and VLA training at millions of steps per hour.
iGibson: Interactive Gibson Benchmark for Real-World Navigation and Manipulation
Bokui Shen, Fei Xia, Chengshu Li et al.
iGibson is a photorealistic, physics-based indoor simulation platform with 15 interactive scenes, 500+ object categories, and GPU-accelerated rendering, enabling RL and VLA training for mobile manipulation and embodied AI.
Symmetries Here and There, Combined Everywhere: Cross-space Symmetry Compositions in Robotics
Loizos Hadjiloizou, Rodrigo Pérez-Dattari, Noémie Jaquier
Formalizes cross-space symmetry compositions in robotics and derives equivariant network architectures that exploit multiple simultaneous symmetries for improved generalization.