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

Introduction

Reinforcement Learning (RL) research has historically been constrained by a "Goldilocks" problem regarding environment selection. Classic benchmarks like the Atari Learning Environment are increasingly viewed as too simplistic or deterministic for modern algorithms. Conversely, professional-grade games such as Dota 2 or StarCraft II offer immense complexity but demand computational resources far beyond the reach of most academic laboratories. Furthermore, many existing simulators are closed-source or lack the stochasticity inherent in real-world physical interactions.

To bridge this gap, we introduce Google Research Football (GRF), a high-performance, open-source 3D RL environment based on association football. GRF provides a complex, stochastic, multi-agent simulation that is challenging yet accessible, running efficiently on standard hardware.

The Football Engine

At the core of GRF is the Football Engine, a highly optimized C++ simulator based on GameplayFootball. It simulates a full 11v11 match adhering to standard rules, including fouls, offsides, and cards.

State Representations and Action Space

The environment offers three primary state representations to cater to different research needs:

  • Pixels: Raw 1280x720 RGB frames, providing the most "natural" but computationally intensive input.
  • Super Mini Map (SMM): Binary matrices representing player and ball positions, balancing training speed with spatial information.
  • Floats: A 115-dimensional vector containing coordinates and game states, suitable for non-convolutional architectures.

The action space consists of 19 discrete actions, covering movement, passing (short and long), shooting, and sprinting. To prevent agents from simply memorizing sequences, the engine incorporates "sticky actions"—where movement continues until explicitly stopped—and introduces physical randomness in outcomes like shot accuracy.

Datasets and Benchmarks

GRF is designed to support a variety of research tasks through two main components: the Football Benchmarks and the Football Academy.

Figure 4: Examples of different game scenarios in GRF, including (a) Kickoff, (b) Yellow card issuance, and (c) Corner kick setups.

The Football Benchmarks consist of full 11v11 games against a built-in AI with three difficulty tiers: Easy, Medium, and Hard. Complementing these are the Football Academy scenarios—11 "unit tests" ranging from simple tasks like scoring on an empty goal to complex tactical situations like defending a hard counter-attack.

Key Insights and Experimental Results

Experimental evaluations using state-of-the-art algorithms like IMPALA and PPO yielded several critical insights:

  • Reward Shaping: Learning from sparse "Scoring" rewards (goals) is exceptionally difficult. The "Checkpoint" reward, which incentivizes moving the ball into the opponent's territory, proved essential for initial training.
  • The Power of Raw Data: While SMM initially provided faster training, agents trained on raw pixels eventually achieved superior performance, reinforcing the "Bitter Lesson" that learned features often outperform hand-engineered ones.
  • Multi-Agent Dynamics: Training agents to control multiple players initially slows convergence but ultimately leads to higher performance through emergent coordination.

Performance and Scalability

A primary design goal for GRF was computational efficiency. The engine is capable of massive throughput, allowing for rapid iteration even in resource-constrained settings.

Figure 6: Throughput of the Football Engine in million steps per day as a function of the number of concurrent environments.

As shown in Figure 6, the engine scales effectively with hardware, reaching approximately 140 million steps per day on a single hexacore machine. Despite this high throughput, the "Hard" benchmark remains a significant challenge for current RL agents, providing substantial headroom for future algorithmic improvements.

Conclusion

Google Research Football provides a versatile platform for advancing RL in complex, multi-agent domains. While current baselines can solve simpler scenarios, achieving professional-level "team play" and sophisticated tactical coordination remains an open challenge. Future research directions include exploring model-based RL within the engine's physics and developing more granular difficulty curricula.

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