REvolve: Reward Evolution with Large Language Models using Human Feedback
Rishi Hazra, Alkis Sygkounas, Andreas Persson, Amy Loutfi, Pedro Zuidberg Dos Martires
TL;DR
REvolve reframes reward design for reinforcement learning as an evolutionary search guided by human feedback, using GPT-4 as a reward designer and genetic programming with an island model to evolve executable Python reward functions. By treating human preferences as non-differentiable fitness signals and deploying LLMs as intelligent genetic operators, REvolve avoids training separate reward models and yields interpretable, task-specific rewards. Across autonomous driving, humanoid locomotion, and dexterous manipulation, REvolve outperforms greedy LLM-based methods like Eureka and surpasses baselines, approaching human expert performance in driving while maintaining diverse reward candidates. The approach highlights a scalable path to human-aligned RL in complex, tacitly defined tasks, though it entails high compute and depends on proprietary LLMs, pointing to future work in open models and real-world transfer.
Abstract
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.
