LLM-Based Reward Engineering for Reinforcement Learning: A Chain of Thought Approach
Reinforcement Learning (RL) has achieved significant milestones in various domains. Traditional reward engineering often requires extensive domain knowledge and trial-and-error experimentation. This paper explores the integration of Large Language Models (LLMs) with CoT reasoning to automate and enhance the generation of reward functions for RL environments. We present a comprehensive methodology that leverages CoT-enabled LLMs to generate sophisticated, adaptive, and context-aware reward functions, implemented within Gymnasium environments and trained using Stable Baselines3. Through a detailed case study on the Bipedal Walker environment, we demonstrate the efficacy of our approach in producing superior agent performance compared to non-CoT approaches.
Authors
- Jinxin Du (ORCID: https://orcid.org/0000-0002-6676-7939)
- Qiongying Fu (ORCID: https://orcid.org/0000-0002-9242-3208)
- Lunde Chen (ORCID: https://orcid.org/0000-0002-7556-1940)
- Xinning Zhu (ORCID: https://orcid.org/0000-0002-7469-379X)
Institutions
- Shanghai University (CN)
Publication Details
- Published
- 2025-04-24
- DOI
- https://doi.org/10.1109/icccbda64898.2025.11030414
- Citations
- 2
- Primary Topic
- Statistical and Computational Modeling
- Type
- article
- Field-Weighted Citation Impact
- 4.96