Playing FPS Games with Deep Reinforcement Learning

Guillaume Lample, Devendra Singh Chaplot

Abstract

Advances in deep reinforcement learning have allowed autonomous agents to perform well on Atari games, often outperforming humans, using only raw pixels to make their decisions. However, most of these games take place in 2D environments that are fully observable to the agent. In this paper, we present the first architecture to tackle 3D environments in first-person shooter games, that involve partially observable states. Typically, deep reinforcement learning methods only utilize visual input for training. We present a method to augment these models to exploit game feature information such as the presence of enemies or items, during the training phase. Our model is trained to simultaneously learn these features along with minimizing a Q-learning objective, which is shown to dramatically improve the training speed and performance of our agent. Our architecture is also modularized to allow different models to be independently trained for different phases of the game. We show that the proposed architecture substantially outperforms built-in AI agents of the game as well as humans in deathmatch scenarios.

Introduction

While Deep Q-Networks (DQN) have mastered 2D Atari games, 3D First-Person Shooters (FPS) like Doom present a much steeper challenge. Unlike most Atari games, FPS environments are partially observable: the agent only sees what is directly in front of it, requiring a "memory" of the world to act optimally. Furthermore, FPS games require a diverse set of skills—navigating a map, collecting items, and tactical combat—all while dealing with sparse rewards. In a deathmatch, a "frag" (kill) is a rare event. If an agent only learns from kills, it might spend hours wandering aimlessly before receiving any feedback. This research aims to bridge the gap between simple 2D environments and the complex, high-dimensional reality of 3D navigation and combat.

Methodology

The proposed architecture is built on a Deep Recurrent Q-Network (DRQN), which incorporates an LSTM (Long Short-Term Memory) layer to handle the temporal dependencies of a partially observable world. Two key innovations were introduced:

1. Game Feature Augmentation (Co-training)

To accelerate visual learning, the model is augmented to exploit game feature information (e.g., presence of enemies or items) during training. The convolutional layers are forced to predict these features via a secondary supervised learning task (cross-entropy loss) while simultaneously learning the Q-function. This "guides" the vision system to focus on relevant objects much faster than trial-and-error alone. Sharing the convolutional kernels between the feature detection task and the Q-learning task was found to be critical for performance.

The DRQN architecture with game feature augmentation, showing the shared convolutional layers and the secondary feature prediction branch.

2. Modular Architecture

The agent is split into two specialized modules:

  • Navigation Network: A DQN trained to explore the map and collect items.
  • Action Network: A DRQN (with feature augmentation) trained specifically for combat.

A high-level logic controller switches between them: if the Action Network detects an enemy, it takes over; otherwise, the Navigation Network explores. This "divide and conquer" approach prevents the agent from becoming passive (e.g., "camping") and ensures proactive exploration. The team also employed reward shaping, providing small intermediate rewards for picking up items or penalties for losing health, to provide a denser learning signal.

Results and Discussion

The agent was evaluated using the ViZDoom platform in both limited and full deathmatch scenarios. A critical finding was that vision is often the bottleneck in 3D RL; co-training with game features acts as a "hint" that drastically accelerates the training of convolutional layers.

Performance comparison (Kill/Death ratio) across different training configurations, highlighting the significant impact of game features and update frequency on agent performance.

Key performance metrics include:

  • Human-Level Performance: In multiplayer deathmatch scenarios, the agent achieved a K/D (Kill/Death) ratio of 1.33, significantly higher than the average human score of 0.49.
  • Navigation Efficacy: In "Full Deathmatch" tests on unknown maps, the modular agent achieved a K/D of 6.94, compared to 3.12 for an agent without a dedicated navigation module.
  • Training Efficiency: The co-trained model reached 90% enemy detection accuracy within just a few hours, providing a stable foundation for reinforcement learning.

Conclusion

This modular DRL approach successfully tackles the challenges of 3D FPS environments. While the agent is highly effective at combat, its navigation remains basic, and it struggles with verticality (e.g., stairs or enemies at different elevations). Future work will explore integrating more advanced RL techniques, such as Dueling Architectures or Prioritized Replay, and expanding the action space to allow for more complex tactical maneuvering.

Summary updated

BibTeX
@inproceedings{lample2017playing,
  author = {Guillaume Lample and Devendra Singh Chaplot},
  title = {{Playing FPS Games with Deep Reinforcement Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=H1NXp6gOZr},
}
Figure