Google Research Football: A Novel Reinforcement Learning Environment

Karol Kurach, Anton Raichuk, Piotr Stanczyk, Michal Zajac, Olivier Bachem, Lasse Espeholt, Carlos Riquelme, Damien Vincent, Marcin Michalski, Olivier Bousquet, Sylvain Gelly

Abstract

Recent progress in the field of reinforcement learning has been accelerated by virtual learning environments such as video games, where novel algorithms and ideas can be quickly tested in a safe and reproducible manner. We introduce the Google Research Football Environment, a new reinforcement learning environment where agents are trained to play football in an advanced, physics-based 3D simulator. The resulting environment is challenging, easy to use and customize, and it is available under a permissive open-source license. In addition, it provides support for multiplayer and multi-agent experiments. We propose three full-game scenarios of varying difficulty with the Football Benchmarks and report baseline results for three commonly used reinforcement algorithms (IMPALA, PPO, and Ape-X DQN). We also provide a diverse set of simpler scenarios with the Football Academy and showcase several promising research directions.

Introduction

The progress of reinforcement learning (RL) is inextricably linked to the complexity and accessibility of the environments used for testing. Currently, researchers face a "Goldilocks" problem: many environments are either too simple (like Atari games, which are now solved in hours), too computationally expensive (like StarCraft II), or too predictable (deterministic simulators that allow for rote memorization).

To address these gaps, we present the Google Research Football Environment. This open-source, 3D physics-based simulator provides a stochastic, multi-agent setting that bridges the gap between simple arcade games and massive strategy simulations. It is designed to be computationally efficient while offering the strategic depth required to push the boundaries of modern RL algorithms.

The Football Engine

At the core of this environment is a highly optimized C++ simulator based on GameplayFootball. The engine handles standard football rules, including offsides, fouls, and cards, and is capable of running approximately 140 million steps per day on a standard hexacore machine.

State and Action Spaces

Researchers can interact with the environment through three distinct state representations:

  • Pixels: Raw 1280x720 RGB data.
  • Super Mini Map (SMM): Binary matrices representing player and ball positions.
  • Floats: A compact 115-dimensional vector of game coordinates.

The action space consists of 19 discrete actions, covering 8-directional movement, various passing techniques (short, long, high), shooting, and sprinting.

The Google Research Football environment supports a wide array of game states and standard football rules, such as kickoffs, yellow cards for fouls, and corner kicks.

Reward Shaping

To mitigate the "sparse reward" problem—where an agent may play for extended periods without scoring—we introduced Checkpoint rewards. This system provides a denser signal by rewarding agents for advancing the ball into the opponent's territory, facilitating more effective learning in complex scenarios.

Benchmarks and Academy

We provide two primary sets of tasks to evaluate RL agents:

  1. Football Benchmarks: Three 11v11 full-game scenarios against a rule-based AI of varying difficulty (Easy, Medium, and Hard).
  2. Football Academy: Eleven diverse "mini-games" designed for rapid iteration and unit testing, such as 3 vs 1 with Keeper and Corner kicks.

Results and Discussion

Our evaluation of state-of-the-art algorithms (PPO, IMPALA, and Ape-X DQN) revealed several key insights:

  • Stochasticity and Generalization: Unlike deterministic environments, the non-deterministic nature of our simulator prevents agents from succeeding through rote memorization, forcing the development of robust, generalizable policies.
  • The Impact of Visual Data: While hand-picked features ("Floats") allow for faster initial training, agents trained on raw pixels eventually achieved superior performance. This suggests that visual data captures subtle nuances, such as player orientation, that simplified vectors omit.
  • Multi-Agent Coordination: In the 3 vs 1 Academy scenario, agents successfully learned to coordinate passes to bypass defenders, demonstrating the environment's utility for studying emergent cooperative behavior.
A goal event in the simulator. Scoring is the primary reward, but agents often require shaped "checkpoint" rewards to learn the necessary sequences to reach this state in harder benchmarks.

Conclusion

While the Google Research Football Environment provides a robust new testbed, the "Hard" benchmark remains a significant challenge for current algorithms, highlighting the need for improved exploration strategies. Future work will focus on scaling self-play to develop professional-level strategies and further exploring decentralized multi-agent control within this complex, high-dimensional space.

Summary updated

BibTeX
@inproceedings{kurach2020google,
  author = {Karol Kurach and Anton Raichuk and Piotr Stanczyk and Michal Zajac and Olivier Bachem and Lasse Espeholt and Carlos Riquelme and Damien Vincent and Marcin Michalski and Olivier Bousquet and Sylvain Gelly},
  title = {{Google Research Football: A Novel Reinforcement Learning Environment}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.5878},
}
Figure