Skip to main content
QUICK REVIEW

[Paper Review] TLeague: A Framework for Competitive Self-Play based Distributed Multi-Agent Reinforcement Learning

Peng Sun, Jiechao Xiong|arXiv (Cornell University)|Nov 25, 2020
Reinforcement Learning in RoboticsComputer Science49 references12 citations
TL;DR

TLeague is a scalable, cloud-native framework for distributed competitive self-play multi-agent reinforcement learning, enabling high-throughput training across hybrid CPU-GPU clusters using a modular Actor-Learner-InferenceServer architecture. It achieves high throughput and reasonable scale-up—up to 2.8M frames per second—on benchmarks like StarCraft II and ViZDoom, supporting mainstream algorithms including PPO, V-trace, and PBT-based opponent sampling.

ABSTRACT

Competitive Self-Play (CSP) based Multi-Agent Reinforcement Learning (MARL) has shown phenomenal breakthroughs recently. Strong AIs are achieved for several benchmarks, including Dota 2, Glory of Kings, Quake III, StarCraft II, to name a few. Despite the success, the MARL training is extremely data thirsty, requiring typically billions of (if not trillions of) frames be seen from the environment during training in order for learning a high performance agent. This poses non-trivial difficulties for researchers or engineers and prevents the application of MARL to a broader range of real-world problems. To address this issue, in this manuscript we describe a framework, referred to as TLeague, that aims at large-scale training and implements several main-stream CSP-MARL algorithms. The training can be deployed in either a single machine or a cluster of hybrid machines (CPUs and GPUs), where the standard Kubernetes is supported in a cloud native manner. TLeague achieves a high throughput and a reasonable scale-up when performing distributed training. Thanks to the modular design, it is also easy to extend for solving other multi-agent problems or implementing and verifying MARL algorithms. We present experiments over StarCraft II, ViZDoom and Pommerman to show the efficiency and effectiveness of TLeague. The code is open-sourced and available at https://github.com/tencent-ailab/tleague_projpage

Motivation & Objective

  • Address the extreme data efficiency demands of competitive self-play multi-agent reinforcement learning (CSP-MARL), which often require billions of frames for convergence.
  • Enable large-scale, distributed training of MARL agents across heterogeneous clusters (CPUs and GPUs) to accelerate learning and reduce training time.
  • Provide a modular, extensible framework that supports standard Kubernetes deployment and is easily adaptable to new environments, algorithms, or opponent sampling strategies.
  • Achieve high training throughput and reasonable scale-up in distributed settings, making CSP-MARL more accessible for research and real-world applications.

Proposed method

  • Adopt an Actor-Learner-InferenceServer architecture to decouple environment interaction (data collection) from learning (gradient updates), enabling efficient parallelization.
  • Use a centralized opponent pool and parameter server to manage diverse opponent policies and model weights, supporting dynamic opponent sampling via PBT, Agent-Exploiter, or Fictitious Self-Play.
  • Implement policy gradient methods such as PPO and V-trace for value function and policy learning, with synchronous gradient updates via Horovod allreduce over TCP.
  • Support flexible neural network architectures, from simple feedforward to complex DAGs, using a modular design for easy integration of new models.
  • Leverage standard Kubernetes for orchestration, enabling cloud-native deployment on public or private cloud infrastructure with dynamic scaling.
  • Optimize data flow using blocking queues to balance actor and learner throughput, minimizing data lag and ensuring on-policy learning fidelity.

Experimental results

Research questions

  • RQ1Can a modular, distributed framework significantly reduce the wall-clock time required to train high-performance MARL agents in competitive self-play settings?
  • RQ2How effectively can a heterogeneous CPU-GPU cluster be utilized to scale up training throughput in multi-agent reinforcement learning?
  • RQ3To what extent does the framework support extensibility for new environments, RL algorithms, and opponent sampling strategies?
  • RQ4What level of throughput and scale-up can be achieved in real-world benchmarks like StarCraft II and ViZDoom using standard cloud infrastructure?
  • RQ5How does the framework maintain on-policy learning quality despite high data throughput and distributed training?

Key findings

  • TLeague achieved a peak throughput of 2.8 million frames per second (rfps) and 5.6 million frames per second (cfps) in the Dota 2 1v1 setting, with 192 GPUs and 60,000 CPU cores.
  • In the StarCraft II TStarBot-X setup, the framework sustained 4.2K cfps with 96 GPUs and 4,200 CPU cores, demonstrating strong scale-up on a single Zerg race game.
  • For ViZDoom, the framework achieved 8.2K cfps with 32 GPUs and 1,152 CPU cores, processing 17.5 in-game frames per second with frame-skip=2.
  • The framework showed reasonable scale-up across hundreds of GPUs and tens of thousands of CPU cores, with cfps/rfps ratios near 1.0 indicating minimal data lag and strong on-policy fidelity.
  • TLeague successfully trained agents that achieved strong performance on StarCraft II (zvz full game), ViZDoom (CIG 2016 track 1), and Pommerman (NeurIPS 2018 2vs2 competition), validating its effectiveness.
  • The open-source framework is production-ready and deployable on standard Kubernetes clusters, supporting integration with major cloud providers like Tencent Cloud.

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.