From Few to More: Large-Scale Dynamic Multiagent Curriculum Learning

Weixun Wang, Tianpei Yang, Yong Liu, Jianye Hao, Xiaotian Hao, Yujing Hu, Yingfeng Chen, Changjie Fan, Yang Gao

Presented at AAAI-20, this research introduces a framework for scaling multiagent reinforcement learning (MARL) to large-scale systems by progressively increasing the number of agents involved in a task.

The Challenge of Scaling Multiagent Systems

Reinforcement learning in multiagent systems (MAS) often suffers from the "curse of dimensionality." As the number of agents increases, the state-action space explodes, and environmental dynamics become increasingly stochastic. Training agents from scratch in large-scale scenarios frequently leads to poor performance or a complete failure to converge.

While Curriculum Learning (CL)—the practice of training on simpler tasks before tackling the target task—is a proven strategy in single-agent RL, applying it to MAS is technically difficult. Most neural network architectures require a fixed input size. If an agent is trained to coordinate in a 5-vs-5 battle, the observation vector for a 15-vs-15 battle will have a different dimension, making standard weight transfer or "model reloading" impossible.

The DyMA-CL framework scales tasks by increasing the number of agents, transferring curriculum knowledge across stages.

Dynamic Multiagent Curriculum Learning (DyMA-CL)

The authors propose DyMA-CL, which enables agents to master large-scale coordination by starting with small-scale scenarios and progressively scaling up. This approach relies on two main components: a flexible architecture and robust transfer mechanisms.

1. Dynamic Agent-number Network (DyAN)

To solve the fixed-input problem, the authors designed DyAN. Instead of using standard fully connected layers for all observations, DyAN utilizes a Graph Neural Network (GNN) component.

  • The network treats other agents in the environment as "nodes."
  • It learns a representation for each observed agent and then uses an aggregation operator (such as SUM, MAX, or MEAN) to combine them into a single feature vector.
  • Because the aggregation step is independent of the number of inputs, the same network can process observations whether there are 5 agents or 50.

2. Knowledge Transfer Mechanisms

The paper explores three ways to pass knowledge from one stage of the curriculum to the next, ensuring that agents do not have to "re-learn" basic coordination in every new stage.

Three transfer mechanisms: (a) Buffer Reuse, (b) Curriculum Distillation, and (c) Model Reload (enabled by DyAN).
  • Buffer Reuse: Samples from the experience replay buffers of previous (smaller) tasks are used as "expert demonstrations" to guide the current task.
  • Curriculum Distillation: Uses Kullback-Leibler (KL) divergence to encourage the current policy to stay close to the previously learned (smaller-scale) policy.
  • Model Reload: Directly initializing the weights of the current task with the weights from the previous task. This is the most direct method and is made possible by the flexible DyAN architecture.

Experimental Evaluation

The researchers evaluated DyMA-CL on two challenging large-scale environments:

  1. StarCraft II (SMAC): Micromanagement scenarios involving "Immortals." The curriculum scaled from 5-vs-5 to 10-vs-10 and finally to the target 15-vs-15 task.
  2. MAgent: A many-agent grid-world battlefield. The curriculum involved five stages, scaling from 10-vs-10 up to 50-vs-50.

Key Results

  • Performance Jumpstart: In the 15-vs-15 SMAC task, vanilla IQL and VDN (learning from scratch) achieved a 0% win rate. In contrast, DyMA-CL with Model Reload achieved high win rates and significantly higher average rewards.
  • Transfer Efficiency: Model Reload was found to be the most effective transfer mechanism. It outperformed both Distillation and Buffer Reuse in terms of final performance and learning speed.
  • The Power of SUM: In the GNN architecture, the SUM aggregation operator outperformed MAX and MEAN. Visualizations showed that SUM better preserves the "density" and "count" of agents, allowing the network to distinguish between different tactical situations more clearly.

Conclusion and Future Work

DyMA-CL demonstrates that knowledge gained from a few agents can be effectively transferred to battles involving many more, significantly outperforming learning from scratch. While the current curriculum was designed manually, future research will focus on the automatic generation of curricula—determining the optimal "step size" for adding agents and deciding exactly when to transition to the next stage without human intervention.

Summary updated

BibTeX
@inproceedings{wang2020from,
  author = {Weixun Wang and Tianpei Yang and Yong Liu and Jianye Hao and Xiaotian Hao and Yujing Hu and Yingfeng Chen and Changjie Fan and Yang Gao},
  title = {{From Few to More: Large-Scale Dynamic Multiagent Curriculum Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6221},
}
Figure