mlsanityData to 14 Oct 2026

Extracting Heuristics from Large Language Models for Reward Shaping in Reinforcement Learning

arXiv 2405.15194 ↗First posted 24 May 2024cs.LG cs.AIcited by 8

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

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  2. 2023Let's Verify Step by Stepcited by 3,789
  3. 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,211
  4. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  5. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  6. 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,210
  7. 2017Curiosity-driven Exploration by Self-supervised Predictioncited by 1,194
  8. 2023Graph of Thoughts: Solving Elaborate Problems with Large Language Modelscited by 886
  9. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
  10. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
  11. 2023Fine-Grained Human Feedback Gives Better Rewards for Language Model Trainingcited by 401
  12. 2023On the Planning Abilities of Large Language Models : A Critical Investigationcited by 312
21 more
  1. 2016Hierarchical Deep Reinforcement Learning: Integrating Temporal Abstraction and Intrinsic Motivationcited by 286
  2. 2023Reward Design with Language Modelscited by 261
  3. 2018BabyAI: A Platform to Study the Sample Efficiency of Grounded Language Learningcited by 244
  4. 2023Large Language Model Guided Tree-of-Thoughtcited by 221
  5. 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 207
  6. 2023ChatGPT: Jack of all trades, master of nonecited by 204
  7. 2023Grounding Large Language Models in Interactive Environments with Online Reinforcement Learningcited by 195
  8. 2023Guiding Pretraining in Reinforcement Learning with Large Language Modelscited by 187
  9. 2024LLMs Can't Plan, But Can Help Planning in LLM-Modulo Frameworkscited by 179
  10. 2024On the Self-Verification Limitations of Large Language Models on Reasoning and Planning Taskscited by 142
  11. 2019Language as an Abstraction for Hierarchical Deep Reinforcement Learningcited by 138
  12. 2023Can ChatGPT Reproduce Human-Generated Labels? A Study of Social Computing Taskscited by 89
  13. 2023Towards LLM-guided Causal Explainability for Black-box Text Classifierscited by 44
  14. 2021Heuristic-Guided Reinforcement Learningcited by 42
  15. 2024Unveiling the Generalization Power of Fine-Tuned Large Language Modelscited by 36
  16. 2019Reward Shaping via Meta-Learningcited by 32
  17. 2022Leveraging Approximate Symbolic Models for Reinforcement Learning via Skill Diversitycited by 22
  18. 2024Theory of Mind abilities of Large Language Models in Human-Robot Interaction : An Illusion?cited by 22
  19. 2024Beyond Sparse Rewards: Enhancing Reinforcement Learning with Language Model Critique in Text Generationcited by 22
  20. 2024Towards Interpretable Hate Speech Detection using Large Language Model-extracted Rationalescited by 16
  21. 2023Principal-Agent Reward Shaping in MDPscited by 13

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Policy-Invariant Reward Shaping from LLM Feedback: A Framework for Hybrid RL Agents
  2. 2024Enhancing Q-Learning with Large Language Model Heuristics
  3. 2024From Reward Shaping to Q-Shaping: Achieving Unbiased Learning with LLM-Guided Knowledge
  4. 2025Boosting Universal LLM Reward Design through Heuristic Reward Observation Space Evolution
  5. 2024On the Modeling Capabilities of Large Language Models for Sequential Decision Making
  6. 2025RLFR: Extending Reinforcement Learning for LLMs with Flow Environment
  7. 2025Response-Level Rewards Are All You Need for Online Reinforcement Learning in LLMs: A Mathematical Perspective
  8. 2026Memory-Based Advantage Shaping for LLM-Guided Reinforcement Learning