Playing Doom with SLAM-Augmented Deep Reinforcement Learning

Shehroze Bhatti, Alban Desmaison, Ondrej Miksik, Nantas Nardelli, N. Siddharth, Philip H. S. TorrarXiv 2016

Abstract

Navigating complex 3D environments remains a significant challenge for Deep Reinforcement Learning (DRL) agents due to partial observability. This paper presents a SLAM-augmented approach that provides agents with a persistent "mental map" of their surroundings. By integrating standard Deep Q-Networks (DQN) with a top-down semantic map built via Simultaneous Localization and Mapping (SLAM) and object detection, we demonstrate a significant performance increase in the classic game Doom. Our agent nearly doubles the mean reward of pixel-only baselines, proving that spatial abstraction and memory are critical for mastering 3D spatial tasks.

Introduction

While DRL has achieved superhuman performance in 2D Atari games, 3D environments like Doom introduce the hurdle of partial observability. Unlike 2D games where the entire state is often visible, a 3D agent only perceives a first-person view (FPV). Consequently, objects like enemies or health packs are "forgotten" once they leave the field of vision. To address this, we propose a system that provides the agent with a persistent, cumulative representation of its environment, mimicking human spatial memory.

Methodology: SLAM-Augmented DQN

The core of our approach is the SLAM-Augmented DQN, which utilizes a dual-input stream: raw FPV pixels and a dynamically updated 2D Semantic Map.

Figure 1: Comparison of first-person views and their corresponding reconstructed semantic maps.

The mapping pipeline consists of three primary modules:

  1. Simultaneous Localization and Mapping (SLAM): We employ ORB-SLAM2 to track the agent’s pose and orientation in 3D space.
  2. Object Detection: A Faster R-CNN model, pre-trained on ImageNet and fine-tuned on a custom ViZDoom dataset, identifies entities such as monsters and health packs.
  3. Projection: Using depth data from the game's z-buffer, the system projects detected objects and structural geometry onto a cumulative 2D floor plan.

This map allows the agent to maintain knowledge of the environment even when specific areas are no longer visible.

Experimental Setup and Results

We evaluated our agent in the ViZDoom "Deathmatch" scenario. To train the object detector, we curated a dataset of 3,000 manually annotated images from the ViZDoom engine. Our results indicate that spatial mapping provides a substantial competitive advantage:

  • Performance: The baseline pixel-only DQN achieved a mean reward of 3.45, while our Reconstructed Semantic Map (RSM) agent reached 6.91—a nearly 100% improvement.
  • Survival and Efficiency: Agents with maps exhibited longer survival times by successfully navigating back to known health resources. Furthermore, the augmented network required only 10% more parameters than the baseline, demonstrating high information density.
  • Real-time Viability: The integrated pipeline operates at approximately 40 FPS, ensuring it is suitable for real-time gameplay.
Figure 2: A full 2D semantic map generated by the agent during exploration.

Conclusion and Future Work

By transforming transient visual data into a persistent semantic map, we significantly enhance the navigational and strategic capabilities of DRL agents in 3D spaces. While currently limited to 2D projections in static worlds, future research could explore topological or graph-based maps to improve resilience against SLAM drift and better represent multi-story environments.

Summary updated

BibTeX
@misc{bhatti2016playing,
  author = {Shehroze Bhatti and Alban Desmaison and Ondrej Miksik and Nantas Nardelli and N. Siddharth and Philip H. S. Torr},
  title = {{Playing Doom with SLAM-Augmented Deep Reinforcement Learning}},
  year = {2016},
  eprint = {1612.00380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.00380},
}
Figure