Playing Atari with Six Neurons

Giuseppe Cuccu, Julian Togelius, Philippe Cudré-Mauroux

TL;DR

By decoupling image processing from decision-making, researchers have demonstrated that complex Atari games can be played at state-of-the-art levels using neural networks with as few as 6 to 18 neurons. This approach uses two orders of magnitude fewer parameters than standard deep reinforcement learning models, proving that while vision is hard, the underlying logic of many "complex" tasks is surprisingly simple.

What Problem Does This Paper Address?

In standard Deep Reinforcement Learning (DRL), a single, massive "end-to-end" neural network is responsible for two very different jobs:

  1. Perception: Turning raw pixels into meaningful features (e.g., "Where is the ball?").
  2. Policy: Deciding what to do based on those features (e.g., "Move left").

Because these tasks are intertwined, DRL models often require hundreds of thousands of parameters. This "black box" approach makes it nearly impossible to understand the actual complexity of the policy itself. Furthermore, large models are prone to overfitting and require massive computational resources. The authors ask: if we separate the vision from the logic, how small can the "brain" of an AI actually be?

Methods

The authors propose a system that splits the agent into two specialized components: a Compressor (the eyes) and a Controller (the brain).

  • Increasing Dictionary Vector Quantization (IDVQ): Unlike standard autoencoders that try to minimize "reconstruction error" (making the output look like the input), IDVQ focuses on "information inclusion." It builds a dictionary of visual "centroids" online. If a new observation contains information the current dictionary can't explain, it adds a new centroid.
  • Direct Residuals Sparse Coding (DRSC): This algorithm takes the raw image and encodes it into a compact binary string based on the IDVQ dictionary. It essentially says, "This frame contains features 1, 5, and 12."
  • Evolutionary Strategy (XNES): Instead of using backpropagation (gradient descent), the authors use a variation of Exponential Natural Evolution Strategies to train the controller. Crucially, they modified XNES to handle a "growing" input size, as the dictionary (and thus the input to the neural network) expands over time.
  • The Controller: A tiny, single-layer recurrent neural network (RNN) with no hidden layers. The number of neurons is strictly limited to the number of possible actions in the game (usually 6 to 18).

Datasets

The researchers evaluated their method using the Arcade Learning Environment (ALE), the gold standard for Atari 2600 benchmarks. They tested on a variety of games including:

  • Strategic games: Qbert, Space Invaders.
  • Action/Coordination games: Phoenix, Kangaroo, Demon Attack.
  • Navigation/Timing games: Frostbite, Seaquest.

The raw $210 \times 160$ RGB images were downsampled to $70 \times 80$ grayscale to reduce computational overhead.

Key Insights and Ideas

  • Policy Simplicity: The most striking "aha moment" is that Atari policies are computationally "thin." Once you have a good representation of the state, you don't need a "deep" network to decide the next move; a handful of neurons can do the job.
  • Reconstruction is a Distraction: Most unsupervised learning focuses on being able to redraw the input image perfectly. This paper argues that for RL, reconstruction doesn't matter. What matters is differentiation—being able to tell two different game states apart, even if your internal representation couldn't "draw" the scene.
  • The "Vision Bottleneck": The results suggest that the "Deep" in Deep RL is primarily there to handle the high dimensionality of vision, not the complexity of the game logic itself.

Key Results

The authors compared their "tiny" networks against heavyweights like HyperNeat and OpenAI’s Evolution Strategies.

  • Extreme Efficiency: While SOTA models often use ~906,000 connections, this method achieved comparable results with only ~3,000 connections.
  • Competitive Scores: On games like Qbert and Phoenix, the 6-neuron and 8-neuron models actually outperformed much larger, more complex architectures.
  • Hardware Accessibility: Because the models are so small, they were trained on a single 32-core machine with only 3GB of RAM per core, a fraction of the hardware typically used for DRL.

Limitations and Future Work

While the results are impressive, the authors acknowledge several constraints:

  • Short Horizons: To save time, game runs were capped at 1,000 frames. It is unclear if these tiny networks would maintain their edge in games requiring extremely long-term planning.
  • Feature Extraction Limits: The current IDVQ/DRSC method struggles with games that have many small, fast-moving parts (like Seaquest), which require a much larger dictionary than their reference machine could comfortably handle.
  • Static Features: Centroids are added but never refined or deleted. Future work could involve "pruning" the dictionary to keep the representation even more efficient.

The paper concludes that by challenging the "orthodoxy" of end-to-end deep learning, we can find more interpretable, efficient, and surprisingly simple solutions to complex problems.

Summary updated

BibTeX
@inproceedings{cuccu2019playing,
  author = {Giuseppe Cuccu and Julian Togelius and Philippe Cudré-Mauroux},
  title = {{Playing Atari with Six Neurons}},
  booktitle = {AAMAS},
  year = {2019},
  url = {https://openreview.net/forum?id=d7qtGYtLrs8},
}
Figure