Skip to main content
QUICK REVIEW

[Paper Review] Eureka: Human-Level Reward Design via Coding Large Language Models

Yecheng Jason Ma, William Liang|arXiv (Cornell University)|Oct 19, 2023
Software Engineering ResearchComputer Science48 citations
TL;DR

Eureka uses coding LLMs (e.g., GPT-4) to autonomously generate and iteratively refine executable reward functions for RL, achieving human-level performance across 29 environments and enabling dexterous pen spinning with curriculum learning.

ABSTRACT

Large Language Models (LLMs) have excelled as high-level semantic planners for sequential decision-making tasks. However, harnessing them to learn complex low-level manipulation tasks, such as dexterous pen spinning, remains an open problem. We bridge this fundamental gap and present Eureka, a human-level reward design algorithm powered by LLMs. Eureka exploits the remarkable zero-shot generation, code-writing, and in-context improvement capabilities of state-of-the-art LLMs, such as GPT-4, to perform evolutionary optimization over reward code. The resulting rewards can then be used to acquire complex skills via reinforcement learning. Without any task-specific prompting or pre-defined reward templates, Eureka generates reward functions that outperform expert human-engineered rewards. In a diverse suite of 29 open-source RL environments that include 10 distinct robot morphologies, Eureka outperforms human experts on 83% of the tasks, leading to an average normalized improvement of 52%. The generality of Eureka also enables a new gradient-free in-context learning approach to reinforcement learning from human feedback (RLHF), readily incorporating human inputs to improve the quality and the safety of the generated rewards without model updating. Finally, using Eureka rewards in a curriculum learning setting, we demonstrate for the first time, a simulated Shadow Hand capable of performing pen spinning tricks, adeptly manipulating a pen in circles at rapid speed.

Motivation & Objective

  • Motivate the challenge of reward design in RL and the gap between high-level planning by LLMs and low-level manipulation.
  • Develop a universal reward design pipeline that does not rely on task-specific prompts or predefined templates.
  • Leverage environment code as context, evolutionary search, and reward reflection to automatically generate and improve reward functions.
  • Demonstrate that LLM-generated rewards can outperform expert human rewards across diverse robot morphologies and tasks.

Proposed method

  • Feed the raw environment code as context to a coding LLM to generate executable reward functions in zero-shot fashion.
  • Use evolutionary search with multiple samples per iteration to find and refine reward programs.
  • In-context reward mutation and reward reflection provide targeted edits based on policy training feedback.
  • Evaluate candidate rewards via a GPU-accelerated RL loop (Isaac Gym) and iterate to improve rewards.
  • Support multiple random restarts and five evolution iterations with 16 samples per iteration to explore reward space.
  • Open-source prompts, environments, and rewards to enable reproducibility and further research.

Experimental results

Research questions

  • RQ1Can a coding LLM generate executable, high-quality reward functions without task-specific prompts or templates?
  • RQ2Does evolutionary, in-context refinement improve reward quality beyond initial zero-shot rewards?
  • RQ3Are LLM-generated rewards competitive with or superior to human-engineered rewards across diverse robots and tasks?
  • RQ4Can human feedback be incorporated to produce more human-aligned rewards without updating the model?
  • RQ5Can curriculum learning enable learning dexterous skills (e.g., pen spinning) using Eureka rewards?

Key findings

  • Eureka outperforms human rewards on 83% of 29 tasks across 10 robot morphologies, with an average normalized improvement of 52%.
  • The approach solves previously infeasible dexterous manipulation tasks, enabling pen spinning with curriculum learning on a Shadow Hand.
  • Reward reflection and in-context learning enable targeted reward edits that improve performance, with ablations showing substantial drops without reflection.
  • Eureka demonstrates a gradient-free RLHF pathway where human inputs refine rewards without model updates.
  • Starting from human rewards, Eureka still improves performance, indicating strong in-context reward refinement capabilities.
  • Rewards generated by Eureka tend to be novel and weakly correlated with human rewards, indicating discovery of new design principles.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.