Eureka: Human-Level Reward Design via Coding Large Language Models

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

Eureka automates one of the most tedious parts of reinforcement learning: reward engineering. Instead of manually tuning reward functions for days, the authors prompt GPT-4 with the environment source code and task description, and GPT-4 outputs a Python reward function. Eureka then evaluates the reward in the RL environment (IsaacGym), iteratively refining it based on training curves—just like a human RL researcher would. On 29 diverse tasks across 10 robot morphologies (quadruped, humanoid, dexterous hand, UAV, etc.), Eureka-designed rewards outperform expert human-written rewards in 83% of cases. The key insight is that LLMs excel at code-level reasoning: given the physics simulation code, GPT-4 can infer what behaviors should be rewarded (e.g., "reward the hand for maintaining contact with the cube while lifting it"). Eureka uses a evolutionary selection mechanism: it generates multiple reward candidates, trains policies with each, and selects the top performers for the next iteration. The most impressive result is zero-shot sim-to-real transfer: policies trained with Eureka rewards in IsaacGym deploy directly on a real Shadow Hand robot for dexterous pen spinning—without any real-world fine-tuning. This beats prior SOTA by a large margin and suggests that LLM-generated rewards capture physically realistic behavior better than hand-tuned alternatives. The open-source release includes the full prompting pipeline, IsaacGym integration, and 29 benchmark environments. The codebase also supports custom environments: drop in your MuJoCo/IsaacGym XML, write a task description, and Eureka will generate and tune rewards automatically. It's one of the first systems to show LLMs can replace a key human-in-the-loop step in the RL pipeline.

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.
Share

Related Papers

Gymnasium: A Standard Interface for Reinforcement Learning Environments

Gymnasium: A Standard Interface for Reinforcement Learning Environments

Farama Foundation, Jordan Terry, Mark Towers et al. · JMLR 2023 · Mar 2023

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.

rl foundation-models sim-to-real
Code Beginner
GitHub ★ 11,943 Code updated: May 2026
ManiSkill: A Unified Benchmark for Generalizable Manipulation Skills

ManiSkill: A Unified Benchmark for Generalizable Manipulation Skills

Jiayuan Gu, Sean Xiang, Stone Tao et al. · ICLR 2023 (Oral) · Jan 2023

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.

sim-to-real rl manipulation foundation-models
Code PDF Beginner
GitHub ★ 2,914 Code updated: May 2026