REvolve: Reward Evolution with Large Language Models using Human Feedback

Alkis Sygkounas, Rishi Hazra, Andreas Persson, Amy Loutfi

TL;DR

This paper introduces REvolve, a novel evolutionary framework that uses Large Language Models (LLMs) guided by human feedback to automatically design effective reward functions for Reinforcement Learning (RL). REvolve significantly outperforms existing methods, including those using LLMs and expert-designed rewards, in complex tasks like autonomous driving, demonstrating its ability to translate implicit human knowledge into explicit, high-performing reward signals.

What Problem Does This Paper Address?

Training effective Reinforcement Learning (RL) agents hinges on well-designed reward functions. However, for many real-world tasks, such as autonomous driving, defining "good" behavior is inherently subjective and difficult to quantify explicitly. This is known as Polanyi's paradox – we know more than we can tell. This challenge often leads to reward functions that can be exploited by agents through "shortcuts," resulting in suboptimal behaviors that don't align with human preferences. Existing methods for reward design, even those leveraging LLMs, often struggle with this "reward design problem," risking premature convergence or requiring extensive, difficult-to-obtain human data.

Methods

REvolve tackles the reward design problem by combining evolutionary algorithms (EAs) with LLMs and human feedback. Instead of relying on gradient-based optimization (which is unsuitable for reward design), REvolve uses EAs to search for optimal reward functions. The key innovations are:

  • LLMs as Evolutionary Operators: REvolve uses LLMs (specifically GPT-4) not just to generate initial reward functions but also as intelligent operators for mutation and crossover. This allows the LLM to leverage its commonsense understanding to make more informed changes to reward functions.
  • Human Feedback as Fitness: Human evaluators provide feedback on policy rollouts (demonstrations of the agent's behavior). This feedback, in the form of preferences and natural language comments, is used to calculate a fitness score for each reward function. This bypasses the need for a separate, complex reward model training process, as seen in RLHF.
  • Evolutionary Framework: REvolve employs an "island model" of evolution with multiple sub-populations to maintain genetic diversity and prevent premature convergence. It iteratively generates, trains, evaluates, and refines reward functions using genetic operators like mutation, crossover, and selection.

Datasets

The paper does not introduce new datasets. Instead, it utilizes existing simulation environments for training and evaluation:

  • Autonomous Driving: AirSim simulator (Neighborhood and Coastline environments).
  • Humanoid Locomotion: MuJoCo simulator.
  • Dexterous Manipulation: MuJoCo simulator.

Key Insights and Ideas

  • Human Implicit Knowledge is Key: The core hypothesis is that LLMs, when guided by human feedback, can effectively capture and translate the "tacit" or implicit knowledge humans have about good behavior into explicit reward functions.
  • Evolutionary Search Outperforms Greedy: By using a full evolutionary approach (mutation, crossover, selection, migration) rather than a greedy iterative search (like Eureka), REvolve avoids premature convergence and explores the reward function space more effectively, leading to better policies.
  • Human Feedback is Efficient and Effective: REvolve demonstrates that minimal human feedback (pairwise comparisons of policy rollouts) is sufficient to guide the evolutionary process and produce reward functions that align with human preferences, outperforming automated feedback methods.
  • Interpretable Rewards: The reward functions generated by REvolve are in the form of executable Python code, making them interpretable and suitable for safety-critical applications, unlike black-box reward models used in RLHF.

Key Results

  • Outperforms Baselines: REvolve consistently outperformed state-of-the-art baselines, including expert-designed rewards, Eureka (a greedy LLM-based reward design method), and their "Auto" (automated feedback) counterparts, across all three tested environments (autonomous driving, humanoid locomotion, dexterous manipulation).
  • Human-Level Performance: In autonomous driving, REvolve-trained agents achieved performance close to that of a human driver.
  • Generalization: REvolve-designed rewards showed good generalizability to unseen environments within the autonomous driving domain.
  • Efficiency: REvolve's computational cost is comparable to Eureka, and it requires significantly less data compared to RLHF or Inverse Reinforcement Learning.

Limitations and Future Work

  • Computational Cost: Training RL agents is inherently computationally expensive, requiring parallel processing for multiple policies per generation.
  • LLM Reliance: REvolve currently relies on the closed-source GPT-4 model. The authors acknowledge a gap between GPT-4 and open-source LLMs for reward design but believe this gap will narrow.
  • Real-World Applicability: The authors suggest future work on integrating REvolve with Sim2Real algorithms to transfer learned policies to the real world.
  • Human-AI Interaction: Exploring more open-ended human feedback mechanisms and perspectives (e.g., egocentric vs. third-person views) is a promising avenue.

Summary updated

Abstract

Published at ICLR 2025. Full reference: Rishi Hazra*, Alkis Sygkounas*, Andreas Persson, Amy Loutfi, Pedro Zuidberg Dos Martires. "REvolve: Reward Evolution with Large Language Models for Autonomous Driving." Proceedings of the International Conference on Learning Representations (ICLR), 2025. Link: https://openreview.net/forum?id=cJPUpL8mOw Keywords: Other, Evolutionary Algorithms,Reward Design,Reinforcement Learning,Large Language Models Designing effective reward functions is crucial to training reinforcement learning (RL) algorithms. However, this design is non-trivial, even for domain experts, due to the subjective nature of certain tasks that are hard to quantify explicitly. In recent works, large language models (LLMs) have been used for reward generation from natural language task descriptions, leveraging their extensive instruction tuning and commonsense understanding of human behavior. In this work, we hypothesize that LLMs, guided by human feedback, can be used to formulate reward functions that reflect human implicit knowledge. We study this in three challenging settings -- autonomous driving, humanoid locomotion, and dexterous manipulation -- wherein notions of ``good" behavior are tacit and hard to quantify. To this end, we introduce REvolve, a truly evolutionary framework that uses LLMs for reward design in RL. REvolve generates and refines reward functions by utilizing human feedback to guide the evolution process, effectively translating implicit human knowledge into explicit reward functions for training (deep) RL agents. Experimentally, we demonstrate that agents trained on REvolve-designed rewards outperform other state-of-the-art baselines.
BibTeX
@inproceedings{sygkounas2025revolve,
  author = {Alkis Sygkounas and RISHI HAZRA and Andreas Persson and Amy Loutfi},
  title = {{REvolve: Reward Evolution with Large Language Models using Human Feedback}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=cJPUpL8mOw},
}
Figure