Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ BMF Public

[ECAI' 25] PyTorch implementation of Bi-level Mean Field: Dynamic Grouping for Large-Scale MARL

Notifications You must be signed in to change notification settings

Chreer/BMF

Open more actions menu

Repository files navigation

[ECAI 2025] Bi-level Mean Field: Dynamic Grouping for Large-Scale MARL

arXiv

Official codebase for the paper Bi-level Mean Field: Dynamic Grouping for Large-Scale MARL.

Overview

BMF

Abstract: Large-scale Multi-Agent Reinforcement Learning (MARL) often suffers from the curse of dimensionality, as the exponential growth in agent interactions significantly increases computational complexity and impedes learning efficiency. To mitigate this, existing efforts that rely on Mean Field (MF) simplify the interaction landscape by approximating neighboring agents as a single mean agent, thus reducing overall complexity to pairwise interactions. However, these MF methods inevitably fail to account for individual differences, leading to aggregation noise caused by inaccurate iterative updates during MF learning. In this paper, we propose a Bi-level Mean Field (BMF) method to capture agent diversity with dynamic grouping in large-scale MARL, which can alleviate aggregation noise via bi-level interaction. Specifically, BMF introduces a dynamic group assignment module, which employs a Variational AutoEncoder (VAE) to learn the representations of agents, facilitating their dynamic grouping over time. Furthermore, we propose a bi-level interaction module to model both inter- and intra-group interactions for effective neighboring aggregation. Experiments across various tasks demonstrate that the proposed BMF yields results superior to the state-of-the-art methods.

Installation

We install dependencies based on MAgent.

Please execute the following command:

git clone git@github.com:geek-ai/MAgent.git
cd MAgent

sudo apt-get install cmake libboost-system-dev libjsoncpp-dev libwebsocketpp-dev

bash build.sh
export PYTHONPATH=$(pwd)/python:$PYTHONPATH

Running experiments

Training

You can train the model using the following command.

python train.py

And the default hyperparameters is in file config.yaml.

Citation

If you find this work useful for your research, please cite our paper:

@inproceedings{zheng2025BMF,
  title     = {Bi-level Mean Field: Dynamic Grouping for Large-Scale MARL},
  author    = {Zheng, Yuxuan and Zhou, Yihe and Xu, Feiyang and Song, Mingli and Liu, Shunyu},
  booktitle = {European Conference on Artificial Intelligence},
  year      = {2025},
}

Contact

Please feel free to contact me via email (zyxuan@zju.edu.cn) if you are interested in my research :)

About

[ECAI' 25] PyTorch implementation of Bi-level Mean Field: Dynamic Grouping for Large-Scale MARL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.