Introduction
By 2016, Deep Reinforcement Learning (RL) had demonstrated remarkable success in mastering 2D environments, most notably the Atari 2600 suite. However, transitioning these successes to 3D environments like the classic first-person shooter Doom introduced a significant leap in complexity. This research investigates the application of state-of-the-art RL algorithms to navigate and compete in 3D spaces directly from raw pixel input, highlighting the unique challenges posed by partial observability and sparse rewards.
The Challenge of 3D Environments
Unlike 2D games where the entire game state is often visible on a single screen, 3D environments are inherently partially observable. An agent only perceives what is within its field of vision; it cannot see what is behind a wall or behind its own back. This requires the agent to maintain some form of internal state or memory to navigate effectively. Furthermore, the agent must contend with complex physics, a large pixel-based state space, and the "credit assignment" problem, where the reward for a specific action—such as firing a weapon—may be delayed or infrequent.
Methodological Approach
The study compares two prominent Deep RL architectures to evaluate their effectiveness in this high-speed 3D setting:
- Deep Q-Network (DQN): A value-based method that utilizes a Convolutional Neural Network (CNN) to estimate the value of specific actions. It employs a "replay memory" to store and revisit past experiences, which helps stabilize the training process.
- Asynchronous Advantage Actor-Critic (A3C) with LSTM: A policy-based method that runs multiple agents in parallel to decorrelate data. This specific implementation incorporates a Long Short-Term Memory (LSTM) layer, providing the agent with a recurrent memory to help mitigate the issues of partial observability.
To make the computational requirements tractable, several preprocessing steps were implemented. The original 160x120 color frames were downsampled to 80x60 grayscale images. The researchers utilized Frame Stacking, providing the agent with a history of the last six frames to allow for the perception of motion. Additionally, the action space was reduced to seven core actions—including moving, turning, and attacking—to accelerate the learning process.
Experimental Setup: ViZDoom
Experiments were conducted using the ViZDoom platform, focusing on the DeathMatch task. The environment consisted of a large central hall connected to four side rooms containing essential resources such as health packs, ammunition, and superior weaponry (e.g., the rocket launcher). The agent's primary goal was to survive and eliminate enemies, receiving a +1 reward for each kill.
Behavioral Insights and Emergent Strategies
The training process revealed several fascinating emergent behaviors and technical trade-offs:
- The "Wall-Sliding" Strategy: Agents unexpectedly developed a technique of walking backward against walls at an angle. This "sliding" allowed them to move toward side rooms and resources while maintaining a defensive posture against potential threats.
- History vs. Delta Frames: While the researchers tested "delta frames" (sending only the pixel differences between frames), they found that simple frame stacking was more effective. The neural networks were capable of naturally learning to compute these differences if they were beneficial for the policy.
- The Memory Gap: Despite the inclusion of an LSTM layer in the A3C architecture, agents still struggled with long-term spatial memory. If an enemy moved out of the field of view, the agent frequently "forgot" the threat until it was attacked from behind.
- Combat Personalities: The two algorithms developed distinct styles. DQN agents were generally "trigger-happy," firing frequently, whereas LSTM-A3C agents were more conservative, occasionally failing to take clear shots.
Performance Evaluation
Both DQN and LSTM-A3C successfully learned foundational behaviors, including basic navigation and spatial awareness. The agents learned to avoid obstacles and showed a clear tendency to aim toward enemies. However, their precision remained limited; aiming often involved an oscillatory motion across the target rather than a steady lock.
Ultimately, within the 20-epoch training limit, neither algorithm achieved human-level mastery. While the agents could survive and secure kills, they did not reach the high-scoring performance of skilled human players. This underscores that 3D environments require significantly more training time and more precise hyperparameter tuning than their 2D counterparts.
Discussion and Future Directions
The study identifies several bottlenecks for future research. The current "action repeat" mechanism—where an action is held for multiple frames—likely hindered aiming precision. Future iterations might explore variable action repeats to allow for finer motor control. Furthermore, the lack of high-level tactical planning suggests that Hierarchical Reinforcement Learning may be necessary. By splitting tasks between a high-level "manager" (setting strategic goals) and a low-level "worker" (executing movement and combat), agents might better navigate the complex, multi-room layouts of 3D environments.
Summary updated