DIP-RL: Demonstration-Inferred Preference Learning in Minecraft

Ellen R. Novoseller, Vinicius G. Goecks, David Watkins, Josh Miller, Nicholas R. Waytowich · DOI

Abstract

DIP-RL (Demonstration-Inferred Preference Reinforcement Learning) introduces a framework for training agents in complex, open-ended environments like Minecraft without manual reward engineering. By leveraging a small set of human demonstrations to infer preferences and utilizing a pre-trained autoencoder for state representation, DIP-RL enables agents to achieve human-level peak performance in tasks where traditional reward signals are difficult to define.

Introduction

In Reinforcement Learning (RL), agents are typically guided by mathematical reward functions. However, in open-ended environments like Minecraft, "reward engineering"—the process of defining formulas for complex tasks like building or exploring—is notoriously difficult.

Existing alternatives often fall short: Behavioral Cloning (BC) suffers from distribution drift when agents encounter unfamiliar states, and standard Preference-based RL requires tedious, manual human feedback. DIP-RL bridges this gap by providing high-quality guidance from human preferences without the "human-in-the-loop" bottleneck, automatically inferring rewards from existing demonstration data.

Methodology

DIP-RL leverages human demonstrations through three synergistic components:

  1. State Representation: A pre-trained autoencoder compresses high-dimensional Minecraft pixels into compact vector embeddings, facilitating more efficient visual processing for the RL algorithm.
  2. Seeded Replay Buffer: The agent's memory is pre-filled with human demonstration data, ensuring it begins learning from examples of successful behavior rather than random exploration.
  3. Inferred Preferences: The system assumes that any segment from a human demonstration is superior to any segment generated by the agent. These inferred pairs train a reward model using the Bradley-Terry model, which provides a continuous signal to a Soft Actor-Critic (SAC) agent.
DIP-RL System Architecture

Experimental Results

The framework was evaluated on a tree-chopping task (MineRLTreechop-v0) using 25 human demonstrations. The results demonstrate that DIP-RL effectively anchors the reward function to high-quality behavior from the start of training.

Performance comparison across different models: (a) Maximum logs per episode and (b) Average logs per episode.

Key findings include:

  • Human-Level Peak Performance: DIP-RL successfully reached the maximum score of 4 logs, matching human performance in its best episodes. While the SQIL baseline had a slightly higher average log count, it failed to reach the 4-log ceiling achieved by DIP-RL.
  • Superiority Over Baselines: DIP-RL significantly outperformed Behavioral Cloning and vanilla SAC. Compared to standalone RL, the framework showed a 149.4% enhancement in the mean number of logs collected per episode.
  • Robust Visual Foundation: The use of embeddings from diverse Minecraft datasets (including FindCave) provided a visual foundation that improved sample efficiency.

Conclusion and Future Work

DIP-RL demonstrates that automatically inferring preferences from a small set of demonstrations is a viable path for training agents in complex environments without manual reward engineering. Future research will address training stability and evaluate the framework on more abstract tasks, such as building structures or creating complex environmental features, where visual goals are more nuanced.

Summary updated

BibTeX
@inproceedings{novoseller2023dip,
  author = {Ellen R. Novoseller and Vinicius G. Goecks and David Watkins and Josh Miller and Nicholas R. Waytowich},
  title = {{DIP-RL: Demonstration-Inferred Preference Learning in Minecraft}},
  booktitle = {MFPL @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=lpouLcLhX6},
}
Figure