Skip to main content
QUICK REVIEW

[Paper Review] ELF: An Extensive, Lightweight and Flexible Research Platform for Real-time Strategy Games

Yuandong Tian, Qucheng Gong|arXiv (Cornell University)|Jul 4, 2017
Reinforcement Learning in RoboticsComputer Science15 references58 citations
TL;DR

ELF provides a lightweight, flexible RTS research platform with three environments (Mini-RTS, Capture the Flag, Tower Defense), enabling end-to-end RL training at high throughput and is open-sourced.

ABSTRACT

In this paper, we propose ELF, an Extensive, Lightweight and Flexible platform for fundamental reinforcement learning research. Using ELF, we implement a highly customizable real-time strategy (RTS) engine with three game environments (Mini-RTS, Capture the Flag and Tower Defense). Mini-RTS, as a miniature version of StarCraft, captures key game dynamics and runs at 40K frame-per-second (FPS) per core on a Macbook Pro notebook. When coupled with modern reinforcement learning methods, the system can train a full-game bot against built-in AIs end-to-end in one day with 6 CPUs and 1 GPU. In addition, our platform is flexible in terms of environment-agent communication topologies, choices of RL methods, changes in game parameters, and can host existing C/C++-based game environments like Arcade Learning Environment. Using ELF, we thoroughly explore training parameters and show that a network with Leaky ReLU and Batch Normalization coupled with long-horizon training and progressive curriculum beats the rule-based built-in AI more than $70\%$ of the time in the full game of Mini-RTS. Strong performance is also achieved on the other two games. In game replays, we show our agents learn interesting strategies. ELF, along with its RL platform, is open-sourced at https://github.com/facebookresearch/ELF.

Motivation & Objective

  • Create a research-oriented platform that is extensive, lightweight, and flexible for real-time strategy (RTS) RL research.
  • Provide an RTS engine with multiple environments and high simulation speed (e.g., Mini-RTS at 40K FPS per core).
  • Support flexible environment-agent communication topologies and integration with existing C/C++ game environments.
  • Enable end-to-end training of RL agents against built-in AIs and study training dynamics, including curriculum learning and hierarchical command structures.
  • Offer an open-source framework to accelerate RL research in RTS and related domains.

Proposed method

  • Propose a producer-consumer architecture with C++-based game simulation and Python RL backend for batched experience processing.
  • Support flexible environment-model topologies (one-to-one, many-to-one, one-to-many) and multi-model batching for efficient training.
  • Provide a unified interface to host various games (e.g., RTS, Atari via adapters) and enable both raw pixel inputs and internal game data.
  • Incorporate baseline RL methods (e.g., A3C, Policy Gradient, Q-learning, TRPO) in a Python-based RL backend.
  • Investigate curriculum training and longer temporal horizons, plus network architectures with Leaky ReLU and Batch Normalization for improved performance.
  • Demonstrate end-to-end training in Mini-RTS and evaluate against built-in AIs across multiple games.
  • Explore planning with Monte-Carlo Tree Search (MCTS) and compare with RL baselines.

Experimental results

Research questions

  • RQ1Can end-to-end RL agents trained with ELF defeat built-in rule-based AIs in full RTS games under partial information?
  • RQ2How do architectural choices (Leaky ReLU, BatchNorm) and training settings (long horizon, curriculum) affect performance in RTS tasks?
  • RQ3What is the impact of different frame-skips, history lengths, and topology configurations on learning efficiency and generalization?
  • RQ4How does ELF compare to existing RTS environments in throughput and flexibility for rapid RL experimentation?
  • RQ5Can planning methods (MCTS) approach RL performance under complete information within this platform?

Key findings

  • ELF enables end-to-end training of RTS agents that can beat built-in AIs in Mini-RTS more than 70% of the time under certain curricula and network choices.
  • Mini-RTS runs at 40K FPS per CPU core, enabling training a full-game bot in one day on a single machine with modest hardware.
  • A network with Leaky ReLU and Batch Normalization, combined with long-horizon training and progressive curriculum, improves win rates relative to baselines.
  • Curriculum training significantly enhances performance and robustness when training against diverse opponents or when fine-tuning across opponent types.
  • MCTS can achieve competitive win rates with complete information, though it is slower than trained RL AI, illustrating complementary planning vs learning approaches.
  • ELF supports flexible, multi-topology RL experiments and demonstrates strong performance across all three RTS environments (Mini-RTS, Capture the Flag, Tower Defense).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.