Extracting Heuristics from Large Language Models for Reward Shaping in Reinforcement Learning
Not on the map. Why?
Abstract (arXiv)
Reinforcement Learning (RL) suffers from sample inefficiency in sparse reward domains, and the problem is further pronounced in case of stochastic transitions. To improve the sample efficiency, reward shaping is a well-studied approach to introduce intrinsic rewards that can help the RL agent converge to an optimal policy faster. However, designing a useful reward shaping function for all desirable states in the Markov Decision Process (MDP) is challenging, even for domain experts. Given that Large Language Models (LLMs) have demonstrated impressive performance across a magnitude of natural language tasks, we aim to answer the following question: `Can we obtain heuristics using LLMs for constructing a reward shaping function that can boost an RL agent's sample efficiency?' To this end, we aim to leverage off-the-shelf LLMs to generate a plan for an abstraction of the underlying MDP. We further use this LLM-generated plan as a heuristic to construct the reward shaping signal for the downstream RL agent. By characterizing the type of abstraction based on the MDP horizon length, we analyze the quality of heuristics when generated using an LLM, with and without a verifier in the loop. Our experiments across multiple domains with varying horizon length and number of sub-goals from the BabyAI environment suite, Household, Mario, and, Minecraft domain, show 1) the advantages and limitations of querying LLMs with and without a verifier to generate a reward shaping heuristic, and, 2) a significant improvement in the sample efficiency of PPO, A2C, and Q-learning when guided by the LLM-generated heuristics.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 33 of its 65 references that are in the map. First posted on arXiv 24 May 2024.
Builds on
33 of 65 references.
References · 33
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2023Let's Verify Step by Stepcited by 3,789
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
- 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,194
- 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
- 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 401
- 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 312
21 more
- 2016Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivationcited by 286
- 2023Reward Design with Language Modelscited by 261
- 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 244
- 2023Large Language Model Guided Tree-of-Thoughtcited by 221
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
- 2023ChatGPT: Jack of all trades, master of nonecited by 204
- 2023Grounding Large Language Models in Interactive Environments with Online Reinforcement Learningcited by 195
- 2023Guiding Pretraining in Reinforcement Learning with Large Language Modelscited by 187
- 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworkscited by 179
- 2024On the Self-Verification Limitations of Large Language Models on Reasoning and Planning Taskscited by 142
- 2019Language as an Abstraction for Hierarchical Deep Reinforcement Learningcited by 138
- 2023Can ChatGPT Reproduce Human-Generated Labels? A Study of Social Computing Taskscited by 89
- 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
- 2021Heuristic-Guided Reinforcement Learningcited by 42
- 2024Unveiling the Generalization Power of Fine-Tuned Large Language Modelscited by 36
- 2019Reward Shaping via Meta-Learningcited by 32
- 2022Leveraging Approximate Symbolic Models for Reinforcement Learning via Skill Diversitycited by 22
- 2024Theory of Mind abilities of Large Language Models in Human-Robot Interaction : An Illusion?cited by 22
- 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generationcited by 22
- 2024Towards Interpretable Hate Speech Detection using Large Language Model-extracted Rationalescited by 16
- 2023Principal-Agent Reward Shaping in MDPscited by 13
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026Benchmarking Reward Hack Detection in Code Environments via Contrastive Analysiscited by 18
- 2026LLM-Enhanced Reinforcement Learning for Time Series Anomaly Detectioncited by 1
- 2026STO-RL: Offline RL under Sparse Rewards via LLM-Guided Subgoal Temporal Ordercited by 0
- 2026medR: Reward Engineering for Clinical Offline Reinforcement Learning via Tri-Drive Potential Functionscited by 0
- 2026MIRA: Memory-Integrated Reinforcement Learning Agent with Limited LLM Guidancecited by 0
- 2026Hierarchical Reward Design from Language: Enhancing Alignment of Agent Behavior with Human Specificationscited by 0
- 2026The Mechanism Matters: When Knowledge Graphs Help Reinforcement Learningcited by 0
- 2026A Unified Framework for Dynamic Reward Shaping in Reinforcement Learningcited by 0
- 2026A Unified Framework for Dynamic Reward Shaping in Reinforcement Learning8 Aug 2026
- 2026The Mechanism Matters: When Knowledge Graphs Help Reinforcement Learning21 Jul 2026
- 2026Hierarchical Reward Design from Language: Enhancing Alignment of Agent Behavior with Human Specifications20 Feb 2026
- 2026MIRA: Memory-Integrated Reinforcement Learning Agent with Limited LLM Guidance20 Feb 2026
- 2026medR: Reward Engineering for Clinical Offline Reinforcement Learning via Tri-Drive Potential Functions3 Feb 2026
- 2026Benchmarking Reward Hack Detection in Code Environments via Contrastive Analysis27 Jan 2026
- 2026STO-RL: Offline RL under Sparse Rewards via LLM-Guided Subgoal Temporal Order13 Jan 2026
- 2026LLM-Enhanced Reinforcement Learning for Time Series Anomaly Detection5 Jan 2026
Similar, not cited
Close in wording, no citation either way
- 2026Policy-Invariant Reward Shaping from LLM Feedback: A Framework for Hybrid RL Agents
- 2024Enhancing Q-Learning with Large Language Model Heuristics
- 2024From Reward Shaping to Q-Shaping: Achieving Unbiased Learning with LLM-Guided Knowledge
- 2025Boosting Universal LLM Reward Design through Heuristic Reward Observation Space Evolution
- 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Making
- 2025RLFR: Extending Reinforcement Learning for LLMs with Flow Environment
- 2025Response-Level Rewards Are All You Need for Online Reinforcement Learning in LLMs: A Mathematical Perspective
- 2026Memory-Based Advantage Shaping for LLM-Guided Reinforcement Learning