Abstract
Cartesian Genetic Programming (CGP) has previously shown capabilities in image processing tasks by evolving programs with a function set specialized for computer vision. A similar approach can be applied to Atari playing. Programs are evolved using mixed type CGP with a function set suited for matrix operations, including image processing, but allowing for controller behavior to emerge. While the programs are relatively small, many controllers are competitive with state of the art methods for the Atari benchmark set and require less training time. By evaluating the programs of the best evolved individuals, simple but effective strategies can be found.
Introduction
Deep Reinforcement Learning (DRL) is currently the gold standard for mastering Atari games. However, models like DQN or A3C are essentially "black boxes," making it nearly impossible to interpret the logic behind specific moves. Furthermore, these models are computationally expensive and require vast amounts of training data. This paper investigates whether Cartesian Genetic Programming (CGP) can serve as a viable alternative by evolving small, interpretable programs that map high-dimensional visual data (pixels) directly to discrete game actions.
Methods
The researchers utilized a specialized version of CGP designed to handle "mixed types," allowing nodes to process both scalars and matrices.
Cartesian Genetic Programming (CGP)
Unlike traditional tree-based Genetic Programming, CGP represents programs as directed graphs of nodes. Each node performs a specific function and connects to previous nodes or inputs. The function set includes mathematical operations (e.g., addition, square root), statistical functions (e.g., mean, standard deviation), and list processing (e.g., vectorization, splitting).
Evolutionary Strategy
The study employed a (1 + $\lambda$) Evolutionary Algorithm. One "elite" program is preserved, and nine mutated offspring are generated each generation. If an offspring performs as well as or better than the parent, it becomes the new elite. This approach allows for the evolution of efficient controllers with a small number of active nodes, facilitating human readability.
Results
Across 61 different Atari 2600 games in the Arcade Learning Environment (ALE), the CGP approach proved highly competitive. It outperformed state-of-the-art methods, including various Deep Q-Learning flavors, on 8 games such as Asteroids, Defender, and Solaris.
Interpretability and Heuristics
A major finding was that evolution often discovers simple, repetitive "exploits" that yield high rewards. In Kung-Fu Master, the best evolved program ignored most of the screen, focusing on a simple loop of crouching punches and lateral movements.
In games like Boxing, the agents developed more reactive strategies, such as tracking the opponent's sprite to trap them. However, the authors noted that evolution can be "deceived" by local optima—strategies that gain decent scores without truly mastering game mechanics, such as hiding in a corner and firing repeatedly.
Conclusion
This research demonstrates that small, evolved programs can achieve human-level performance on complex visual tasks. The primary advantage of CGP over DRL is its inherent interpretability and computational efficiency. Future work may incorporate novelty search to prevent evolution from settling on simplistic, repetitive strategies, potentially leading to more robust and generalized intelligence.
Summary updated