Skip to main content
QUICK REVIEW

[Paper Review] Self-Refined Large Language Model as Automated Reward Function Designer for Deep Reinforcement Learning in Robotics

Jiayang Song, Zhehua Zhou|arXiv (Cornell University)|Sep 13, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes a self-refining large language model (LLM) framework that automates reward function design for deep reinforcement learning in robotics. By iteratively generating, evaluating, and refining reward functions using feedback from RL training, the method produces reward functions that match or exceed manually designed ones in performance on continuous control tasks across multiple robotic systems.

ABSTRACT

Although Deep Reinforcement Learning (DRL) has achieved notable success in numerous robotic applications, designing a high-performing reward function remains a challenging task that often requires substantial manual input. Recently, Large Language Models (LLMs) have been extensively adopted to address tasks demanding in-depth common-sense knowledge, such as reasoning and planning. Recognizing that reward function design is also inherently linked to such knowledge, LLM offers a promising potential in this context. Motivated by this, we propose in this work a novel LLM framework with a self-refinement mechanism for automated reward function design. The framework commences with the LLM formulating an initial reward function based on natural language inputs. Then, the performance of the reward function is assessed, and the results are presented back to the LLM for guiding its self-refinement process. We examine the performance of our proposed framework through a variety of continuous robotic control tasks across three diverse robotic systems. The results indicate that our LLM-designed reward functions are able to rival or even surpass manually designed reward functions, highlighting the efficacy and applicability of our approach.

Motivation & Objective

  • To address the challenge of manually designing high-performing reward functions for deep reinforcement learning in robotics.
  • To explore whether large language models (LLMs) can autonomously generate effective reward functions using natural language inputs.
  • To develop a self-refinement loop that improves LLM-generated reward functions based on RL training feedback.
  • To evaluate the framework on diverse continuous-control robotic tasks and compare performance against human-designed reward functions.
  • To demonstrate that LLM-generated reward functions can achieve superior or comparable performance with minimal human intervention.

Proposed method

  • The framework begins with an LLM generating an initial reward function from natural language task descriptions and available state observations.
  • The generated reward function is used to train a DRL agent, and training outcomes (e.g., success rate, reward trajectory) are collected and evaluated.
  • Evaluation results—including training convergence, average reward, success rate, and state deviations—are fed back to the LLM as feedback.
  • The LLM performs self-refinement by revising the reward function based on the feedback, using a chain-of-thought prompting strategy to improve design quality.
  • The loop of generation, evaluation, and refinement repeats until the reward function achieves high performance, as measured by success rate and reward stability.
  • The final reward function is validated across multiple robotic systems (e.g., quadruped, drone, manipulator) in continuous control tasks.

Experimental results

Research questions

  • RQ1Can an LLM generate a reward function for a robotic control task using only natural language and state observation descriptions?
  • RQ2How effective is the self-refinement loop in improving the quality of LLM-generated reward functions over multiple iterations?
  • RQ3Can LLM-generated reward functions achieve performance comparable to or better than manually designed ones in continuous control tasks?
  • RQ4What feedback signals from RL training are most informative for guiding LLM-based reward function refinement?
  • RQ5How generalizable is the proposed framework across different robotic platforms and task types?

Key findings

  • The self-refining LLM framework successfully generated a reward function for a quadruped robot that achieved a 99% success rate in forward running, matching the performance of a manually designed reward function.
  • After three iterations of refinement, the LLM-generated reward function achieved an average episode reward of 894, with training convergence after 43,000 steps.
  • The final LLM-designed reward function reduced linear velocity deviation to 0.183 (normalized), indicating stable and accurate forward motion.
  • The framework outperformed earlier iterations: the second iteration achieved only 70% success rate, while the final version reached 99% for goal 1 (forward speed) and 100% for goal 2 (no fall).
  • The LLM-generated reward function achieved a success rate of 100% in preventing falls, matching the performance of the manually engineered baseline.
  • The method demonstrated generalizability across diverse robotic systems, including quadrupedal locomotion, drone hovering, and robotic manipulation tasks.

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.