A Large Language Model-Driven Reward Design Framework via Dynamic Feedback for Reinforcement Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Sun, Shengjie, Liu, Runze, Lyu, Jiafei, Yang, Jing-Wen, Zhang, Liangpeng, Li, Xiu
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866912076274860032
author Sun, Shengjie
Liu, Runze
Lyu, Jiafei
Yang, Jing-Wen
Zhang, Liangpeng
Li, Xiu
author_facet Sun, Shengjie
Liu, Runze
Lyu, Jiafei
Yang, Jing-Wen
Zhang, Liangpeng
Li, Xiu
contents Large Language Models (LLMs) have shown significant potential in designing reward functions for Reinforcement Learning (RL) tasks. However, obtaining high-quality reward code often involves human intervention, numerous LLM queries, or repetitive RL training. To address these issues, we propose CARD, a LLM-driven Reward Design framework that iteratively generates and improves reward function code. Specifically, CARD includes a Coder that generates and verifies the code, while a Evaluator provides dynamic feedback to guide the Coder in improving the code, eliminating the need for human feedback. In addition to process feedback and trajectory feedback, we introduce Trajectory Preference Evaluation (TPE), which evaluates the current reward function based on trajectory preferences. If the code fails the TPE, the Evaluator provides preference feedback, avoiding RL training at every iteration and making the reward function better aligned with the task objective. Empirical results on Meta-World and ManiSkill2 demonstrate that our method achieves an effective balance between task performance and token efficiency, outperforming or matching the baselines across all tasks. On 10 out of 12 tasks, CARD shows better or comparable performance to policies trained with expert-designed rewards, and our method even surpasses the oracle on 3 tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2410_14660
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Large Language Model-Driven Reward Design Framework via Dynamic Feedback for Reinforcement Learning
Sun, Shengjie
Liu, Runze
Lyu, Jiafei
Yang, Jing-Wen
Zhang, Liangpeng
Li, Xiu
Machine Learning
Large Language Models (LLMs) have shown significant potential in designing reward functions for Reinforcement Learning (RL) tasks. However, obtaining high-quality reward code often involves human intervention, numerous LLM queries, or repetitive RL training. To address these issues, we propose CARD, a LLM-driven Reward Design framework that iteratively generates and improves reward function code. Specifically, CARD includes a Coder that generates and verifies the code, while a Evaluator provides dynamic feedback to guide the Coder in improving the code, eliminating the need for human feedback. In addition to process feedback and trajectory feedback, we introduce Trajectory Preference Evaluation (TPE), which evaluates the current reward function based on trajectory preferences. If the code fails the TPE, the Evaluator provides preference feedback, avoiding RL training at every iteration and making the reward function better aligned with the task objective. Empirical results on Meta-World and ManiSkill2 demonstrate that our method achieves an effective balance between task performance and token efficiency, outperforming or matching the baselines across all tasks. On 10 out of 12 tasks, CARD shows better or comparable performance to policies trained with expert-designed rewards, and our method even surpasses the oracle on 3 tasks.
title A Large Language Model-Driven Reward Design Framework via Dynamic Feedback for Reinforcement Learning
topic Machine Learning
url https://arxiv.org/abs/2410.14660