Auto MC-Reward: Automated Dense Reward Design with Large Language Models for Minecraft
Hao Li, Xue Yang, Zhaokai Wang, Xizhou Zhu, Jie Zhou, Yu Qiao, Xiaogang Wang, Hongsheng Li, Lewei Lu, Jifeng Dai
TL;DR
The paper tackles sparse rewards in Minecraft RL by introducing Auto MC-Reward, an LLM-driven framework that automatically designs, verifies, and refines dense reward functions through three components: Reward Designer, Reward Critic, and Trajectory Analyzer. It outputs executable, explainable reward functions with multi-step memory and chain-of-thought prompts, which are tested and refined via a structured feedback loop. Empirical results in MineDojo show that Auto MC-Reward improves learning efficiency and task success over sparse rewards and several dense-reward baselines, including long-horizon diamond mining tasks. The work demonstrates a scalable, interpretable approach to automated dense reward design for open-world, sparse-reward reinforcement learning.
Abstract
Many reinforcement learning environments (e.g., Minecraft) provide only sparse rewards that indicate task completion or failure with binary values. The challenge in exploration efficiency in such environments makes it difficult for reinforcement-learning-based agents to learn complex tasks. To address this, this paper introduces an advanced learning system, named Auto MC-Reward, that leverages Large Language Models (LLMs) to automatically design dense reward functions, thereby enhancing the learning efficiency. Auto MC-Reward consists of three important components: Reward Designer, Reward Critic, and Trajectory Analyzer. Given the environment information and task descriptions, the Reward Designer first design the reward function by coding an executable Python function with predefined observation inputs. Then, our Reward Critic will be responsible for verifying the code, checking whether the code is self-consistent and free of syntax and semantic errors. Further, the Trajectory Analyzer summarizes possible failure causes and provides refinement suggestions according to collected trajectories. In the next round, Reward Designer will further refine and iterate the dense reward function based on feedback. Experiments demonstrate a significant improvement in the success rate and learning efficiency of our agents in complex tasks in Minecraft, such as obtaining diamond with the efficient ability to avoid lava, and efficiently explore trees and animals that are sparse in the plains biome.
