SMAClite: A Lightweight Environment for Multi-Agent Reinforcement Learning

Adam Michalski, Filippos Christianos, Stefano V. AlbrechtarXiv 2023 · DOI

Introduction

The StarCraft Multi-Agent Challenge (SMAC) has established itself as the primary benchmark for cooperative Multi-Agent Reinforcement Learning (MARL). However, its reliance on the full StarCraft II game engine introduces significant computational overhead and accessibility barriers. SMAClite is introduced as a lightweight, open-source Python alternative that replicates SMAC's core dynamics while drastically reducing resource requirements.

The Challenge of SMAC

While SMAC provides complex strategic scenarios, its "heavy" nature poses several problems:

  1. Resource Intensity: Running a AAA game engine for small combat simulations requires gigabytes of RAM and substantial CPU power.
  2. Inaccessibility: Customizing scenarios requires specialized knowledge of the proprietary StarCraft II map editor.
  3. Closed Source: The underlying engine's proprietary nature prevents researchers from inspecting or modifying core simulation logic.

The SMAClite Solution

SMAClite addresses these hurdles by decoupling the environment from the StarCraft II engine. Built using NumPy and Pygame, it offers a pure Python environment that maintains the strategic depth of the original benchmark.

Comparison between the original SMAC (left) and the lightweight SMAClite (right).

Key Technical Components

  • API Alignment: SMAClite meticulously aligns its action, state, observation, and reward APIs with the original SMAC to ensure it serves as a drop-in replacement.
  • Collision Avoidance: To replicate StarCraft II's navigation, the authors implemented the Optimal Reciprocal Collision Avoidance (ORCA) algorithm, enabling realistic unit interactions like body-blocking.
  • Performance Optimization: The environment includes a C++ addon (SMAClite_plus) via Cython to maximize execution speed.
  • Customization: Scenarios are defined via simple JSON files, allowing for easy creation of custom challenges.

Methodology and Evaluation

The researchers evaluated SMAClite across standard SMAC scenarios, including 3s5z (Stalkers and Zealots), MMM2 (Marines, Marauders, Medivacs), and corridor (Zealots vs. Zerglings). They also introduced a new bane_vs_bane scenario to test explosive unit interactions.

Internal 2D visualizations of SMAClite scenarios: corridor (left) and MMM2 (right).

Key Insights

  • Strategic Equivalence: A 2D grid-based abstraction successfully captures essential strategic elements like kiting, focus-firing, and positioning.
  • AI Simplification: The study revealed that SMAC's "very difficult" AI primarily uses simple scripted behaviors, which SMAClite replicates without the full game engine.
  • Zero-Shot Transfer: Agents trained in SMAClite demonstrate immediate performance gains when transferred to the full StarCraft II environment, validating the "lite" environment's fidelity.

Results

  • Efficiency: SMAClite achieves a 6x reduction in memory usage (~100 MB vs. ~600 MB RAM).
  • Speed: SMAClite_plus is up to 51% faster per timestep than the original SMAC in certain scenarios.
  • Consistency: Performance rankings of nine popular MARL algorithms (e.g., QMIX, MAPPO) remained consistent across both environments.

Conclusion and Future Work

SMAClite provides a high-fidelity, low-overhead alternative for MARL research. While current limitations include the lack of attack animations and projectile travel time, future updates aim to incorporate SMACv2 features and more complex pathfinding. By lowering the barrier to entry, SMAClite enables more accessible and efficient experimentation in multi-agent systems.

Source: Michalski et al., "SMAClite: A Lightweight Environment for Multi-Agent Reinforcement Learning" (2023).

Summary updated

BibTeX
@misc{michalski2023smaclite,
  author = {Adam Michalski and Filippos Christianos and Stefano V. Albrecht},
  title = {{SMAClite: A Lightweight Environment for Multi-Agent Reinforcement Learning}},
  year = {2023},
  eprint = {2305.05566},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.05566},
}
Figure