Playing Atari with few neurons

Giuseppe Cuccu, Julian Togelius, Philippe Cudré-MaurouxAuton. Agents Multi Agent Syst 2021 · DOI

Abstract

In Deep Reinforcement Learning (DRL), the dominant paradigm is end-to-end training of massive neural networks. This paper challenges this "black box" approach by demonstrating that complex Atari games can be mastered using recurrent neural networks (RNNs) with as few as 6 to 18 neurons. By explicitly decoupling visual feature extraction (the "Compressor") from decision-making (the "Controller"), the researchers achieve performance comparable to state-of-the-art neuroevolution methods while using two orders of magnitude fewer parameters. This work underscores the potential for extreme model compression and enhanced interpretability in reinforcement learning.

Introduction

Standard DRL models often entangle visual processing and policy logic within a single, massive architecture. This entanglement leads to significant inefficiencies, requiring hundreds of thousands of parameters to solve tasks with relatively simple underlying logic. Furthermore, it makes isolating and understanding the agent's decision-making process nearly impossible. This research investigates how small an agent's "brain" can be if visual processing is handled separately, prioritizing distinction over precise reconstruction.

Methodology

The proposed architecture consists of two primary components: a Compressor and a Controller. The Compressor acts as the agent's "eyes," transforming raw pixels into a sparse binary code, while the Controller serves as the "brain," mapping these codes to actions.

System architecture showing the decoupled Compressor and Controller.

The training loop involves an Optimizer that evolves the weights of the Controller based on the fitness scores achieved in the Environment.

The Compressor: IDVQ and DRSC

The vision system utilizes two novel unsupervised algorithms:

  1. Increasing Dictionary Vector Quantization (IDVQ): Unlike static methods, IDVQ builds a dictionary of visual features on the fly, growing as the agent encounters new scenes.
  2. Direct Residuals Sparse Coding (DRSC): This encodes game screens into sparse binary codes based on the IDVQ dictionary. It focuses on distinguishing between states rather than perfect image reconstruction, which is more efficient for policy learning.
The Increasing Dictionary Vector Quantization (IDVQ) algorithm.

The Controller: RNN and XNES

The Controller is a tiny, single-layer RNN. To manage the growing input size from the expanding IDVQ dictionary, the researchers used a modified Exponential Natural Evolution Strategies (XNES). New weights are initialized to zero when dimensionality increases, ensuring behavioral continuity during evolution.

Experimental Setup

The system was evaluated on 15 Atari 2600 games within the Arcade Learning Environment (ALE), including Qbert, Space Invaders, and Frostbite. These games were selected for their 2D perspectives, which align with the capabilities of the simplistic feature extractor.

Results and Discussion

The results demonstrate a remarkable level of parameter efficiency. While standard neuroevolution models use 600 to 3,000 neurons, this approach succeeded with only 6 to 18 neurons.

  • Competitive Performance: On Qbert, the 6-neuron model scored 1250, far exceeding the OpenAI ES baseline of 147.5. On FishingDerby, an 18-neuron model outperformed the average human score.
  • Interpretability: The extreme sparsity and small network size allow researchers to map specific visual features directly to agent actions, providing a level of transparency impossible in larger "black box" models.
  • Efficiency: Training typically takes only 2 to 3 hours on a standard 32-core CPU, bypassing the need for expensive GPU clusters.

Conclusion

This research proves that the strategic logic of many Atari games is surprisingly simple. By decoupling vision from policy, we can create highly efficient and interpretable agents. While the current feature extractor is sensitive to complex graphics and dynamic decorations, future work involving more robust encoders could further validate this decoupled philosophy. This approach also offers a promising avenue for studying overfitting, as smaller models are naturally more resistant to memorizing environmental noise.

Summary updated

BibTeX
@article{cuccu2021playing,
  author = {Giuseppe Cuccu and Julian Togelius and Philippe Cudré-Mauroux},
  title = {{Playing Atari with few neurons}},
  journal = {Auton. Agents Multi Agent Syst.},
  year = {2021},
  doi = {10.1007/s10458-021-09497-8},
}
Figure