Deep TAMER: Interactive Agent Shaping in High-Dimensional State Spaces

Garrett Warnell, Nicholas R. Waytowich, Vernon Lawhern, Peter Stone

Abstract

Deep Reinforcement Learning (DRL) often suffers from extreme sample inefficiency, requiring millions of frames to learn tasks from sparse environment rewards. This paper introduces Deep TAMER, an extension of the Training an Agent Manually via Evaluative Reinforcement (TAMER) framework designed for high-dimensional state spaces. By integrating deep learning with real-time human feedback, Deep TAMER allows agents to learn complex tasks like Atari Bowling in minutes rather than days. Our results demonstrate that agents can achieve superhuman performance with only 15 minutes of human interaction, significantly outperforming state-of-the-art autonomous RL algorithms.

Introduction

Standard DRL agents must discover optimal strategies through trial and error, often struggling with "credit assignment" when rewards are sparse. In contrast, humans possess a priori knowledge that can guide learning. Deep TAMER exploits this by allowing a human trainer to provide scalar-valued feedback (e.g., "good" or "bad") in real-time. While the original TAMER was restricted to low-dimensional inputs and linear models, Deep TAMER leverages deep neural networks to process raw pixel data, bridging the gap between human-interactive shaping and modern representational power.

The Deep TAMER Framework

Deep TAMER transforms the reinforcement learning problem into a supervised learning task where the agent seeks to predict and maximize human reinforcement.

The Deep TAMER interaction loop: A human observes the environment and provides real-time feedback to an agent, which uses a deep predictive model to choose actions.

The system incorporates several critical components to handle the complexity of pixel-level inputs:

  1. State Representation: To handle $160 \times 160$ pixel images, a convolutional autoencoder is pre-trained on random policy data. The encoder is then frozen to provide a 100-dimensional state representation.
  2. Deep Reward Model ($\hat{H}$): A two-layer fully-connected network estimates the human's internal reward function. The agent acts myopically, selecting actions that maximize this predicted feedback.
  3. Feedback Replay Buffer: To account for the sparsity of human interaction relative to GPU cycles, feedback is stored in a buffer. The agent performs multiple asynchronous Stochastic Gradient Descent (SGD) updates to maximize the utility of every human "click."
  4. Credit Assignment: Recognizing human reaction time, feedback is mapped to past state-action pairs using a uniform distribution over a [0.2, 4.0] second window.

Experimental Results

The framework was evaluated on the Atari 2600 game of Bowling, a task characterized by extremely sparse rewards that typically defeat standard RL algorithms like A3C or DQN.

Comparison of Deep TAMER performance against standard RL algorithms and human benchmarks on Atari Bowling.

Key findings include:

  • Superhuman Performance: Deep TAMER agents achieved average scores between 160 and 200, surpassing the professional human play tester benchmark (160) and significantly outperforming Double-DQN and A3C, which struggled to reach scores of 70.
  • Rapid Convergence: Agents reached and exceeded the performance level of their human trainers within just 7 minutes of interaction.
  • Efficiency: The transition from millions of frames to 15 minutes of interaction represents a massive reduction in sample complexity, suggesting viability for real-world applications where simulators are unavailable.

Discussion and Future Work

Deep TAMER demonstrates that human-in-the-loop training can effectively "filter" noisy human feedback to produce a consistent, high-performing policy. However, limitations remain. The reliance on a pre-trained, frozen encoder may hinder performance if the agent explores regions of the state space not covered during initial random exploration. Future research could explore adaptive credit assignment models to better match individual human reaction times and hybrid approaches that combine human shaping with autonomous exploration to further refine policies after the trainer has left the loop.

Summary updated

BibTeX
@inproceedings{warnell2018deep,
  author = {Garrett Warnell and Nicholas R. Waytowich and Vernon Lawhern and Peter Stone},
  title = {{Deep TAMER: Interactive Agent Shaping in High-Dimensional State Spaces}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11485},
}
Figure