LLM Collaboration With Multi-Agent Reinforcement Learning

Shuo Liu, Tianle Chen, Zeyu Liang, Xueguang Lyu, Christopher Amato
8/6/2025
60 citations
cs.AIcs.SE
rl

Official code: OpenMLRL/CoMLRL (263 stars, Python, BSD-3-Clause, last commit 2026-04-01).

Abstract

A large amount of work has been done in Multi-Agent Systems (MAS) for modeling and solving problems with multiple interacting agents. However, most LLMs are pretrained independently and not specifically optimized for coordination.

Show full abstract

Existing LLM fine-tuning frameworks rely on individual rewards, which require complex reward designs for each agent to encourage collaboration. To address these challenges, we model LLM collaboration as a cooperative Multi-Agent Reinforcement Learning (MARL) problem. We develop a multi-agent, multi-turn algorithm, Multi-Agent Group Relative Policy Optimization (MAGRPO), to solve it, building on current RL approaches for LLMs as well as MARL techniques. Our experiments on LLM writing and coding collaboration demonstrate that fine-tuning MAS with MAGRPO enables agents to generate high-quality responses efficiently through effective cooperation. Our approach opens the door to using other MARL methods for LLMs and highlights the associated challenges. Our code is available at https://github.com/OpenMLRL/CoMLRL.

View on arXivView PDF

Code Implementations(1)

OpenMLRL/CoMLRLOfficial100%
BSD-3-Clause

Open-Source Library for Fully Cooperative Multi-LLM Reinforcement Learning

26329PythonAug 22, 20258 months agoBSD-3-Clause
comlrlllm-collaborationmagrpomappomarl+7 more

Similar Papers

Cite this paper

@article{liu2025collaboration,
  title  = {LLM Collaboration With Multi-Agent Reinforcement Learning},
  author = {Shuo Liu and Tianle Chen and Zeyu Liang and Xueguang Lyu and Christopher Amato},
  year   = {2025},
  eprint = {2508.04652},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.04652v7}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.04652.svg)](https://codeofpaper.com/paper/2508.04652)

Discussion