[ICLR 2026] A Framework for LLM-based Multi-Agent Reinforced Training and Inference
Python
560
1,470 commits
updated Aug 20, 2026
MARTI is an open-source framework for training LLM-based Multi-Agent Systems (MAS) with Reinforcement Learning (RL). It enables powerful, scalable, and adaptive workflows by combining centralized multi-agent interactions with distributed policy training. MARTI supports both built-in graph-based workflows and popular third-party multi-agent frameworks.
MARTI-v2 extends the framework with tree search-augmented RL for complex reasoning tasks like code generation. By integrating multi-agent tree search, MARTI-v2 enables efficient multi-turn exploration with adaptive node expansion and refinement, allowing agents to systematically explore solution spaces and discover high-quality reasoning trajectories. The framework also incorporates advanced RL training techniques (GSPO loss for sequence-level optimization, TIS correction for vLLM sampling mismatch, dynamic data filtering, overlong buffer for token penalty) to support ultra-long sequences up to 32K tokens and heterogeneous multi-agent training.
We hope that MARTI not only advances reasoning capabilities beyond those of individual large language models or reasoning models, but also fosters collective intelligence as a step toward general artificial intelligence.
MARTI-v2 extends the framework with tree search-augmented reinforcement learning for complex reasoning tasks like code generation. By integrating multi-agent tree search with advanced RL techniques, MARTI-v2 enables efficient multi-step exploration with adaptive node expansion and refinement, allowing agents to systematically explore solution spaces and discover high-quality reasoning trajectories.
The framework has been adapted to the latest OpenRLHF infrastructure, incorporating state-of-the-art RL training techniques for heterogeneous multi-agent training.
Figure 1: Overview of Core Components of MARTI-v2
Key Features:
We designed the MARTI framework following the principle of centralized multi-agent interaction with distributed policy training, where all agent interactions and reward allocation occur centrally while policy training is distributed across individual agents. As illustrated in Figure 1, MARTI comprises three core modules: Multi-Agent World, Centralized Rewarding, and Single Agent Trainer.
Figure 2: Overview of Core Components of MARTI
Key Features:
Additionally, building on single-agent RL frameworks like OpenRLHF and verl, MARTI supports the vLLM v1 Engine and a Hybrid Engine to enable fast and efficient training.
git clone https://github.com/TsinghuaC3I/MARTI.git
cd MARTI
pip install -r requirements.txt
Follow the setup instructions for dependencies, including OpenRLHF, Ray, and vLLM.
MARTI-v2 introduces tree search-augmented reinforcement learning training (MARS²) for complex reasoning tasks like code generation.
Key Features:
# Minimum hardware requirement: approximately 8×80G GPUs
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Single-agent MCTS training
# See the script for more training examples
bash examples/mars2/run_train_single_mcts.sh
# Minimum hardware requirement: approximately 8×80G GPUs per agent
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Multi-agent MCTS training
# See the script for more training examples
bash examples/mars2/run_train_multi_mcts.sh
We introduce asynchronous tool use and workflow support for both single-agent and multi-agent RL pipelines. These features make our framework more modular, efficient, and scalable for a variety of RL scenarios.
Supported Workflows:
# Minimum hardware requirement: approximately 8×80G GPUs
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Train asynchronous multi-turn code RL
bash examples/single-agent/run_train_code_async.sh
# Train asynchronous multi-turn math RL
bash examples/single-agent/run_train_math_async.sh
# Minimum hardware requirement: approximately 8×80G GPUs per agent
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Mixture-of-Agents
bash examples/multi-agent/run_train_chain.sh
# Multi-agent Debate
bash examples/multi-agent/run_train_mad.sh
# Chain-of-agents (MathChat)
bash examples/multi-agent/run_train_mathchat.sh
# Review-RL
bash examples/reviewrl/run_train_reviewrl_async.sh
We employ the MARTI-v2 framework to train reasoning models, specifically Qwen3-8B, Qwen3-14B, AreaL-boba-2-8B, AreaL-boba-2-14B, and DeepCoder-14B. For multi-agent reinforcement learning, we employ a cluster configuration consisting of 3 nodes, each equipped with 8 H200 GPUs, allocating one full node per agent.
We evaluate MARTI-v2 on the LCB code generation benchmark under both single-agent and multi-agent settings compared to baseline methods. As shown in Figure 3 and Figure 4, our experiments demonstrate that:
Figure 3: Experimental results of single-agent MCTS and baseline methods on LCB benchmarks
Figure 4: Pass@1 results of multi-agent MCTS and baseline methods on LCB benchmarks
MARTI is developed primarily based on OpenRLHF. We would like to express our gratitude to the developers of OpenRLHF, as well as to the teams behind vLLM, Ray, DeepSpeed, and TreeQuest for their invaluable contributions.
For the full list of contributors, please refer to the author list in the citation. We are also deeply grateful to everyone who engaged in discussions and provided valuable feedback throughout the development of this project.
For issues or inquiries:
If you use MARTI in your research, please cite the project:
@inproceedings{
zhang2026marti,
title={{MARTI}: A Framework for Multi-Agent {LLM} Systems Reinforced Training and Inference},
author={Kaiyan Zhang and Kai Tian and Runze Liu and Sihang Zeng and Xuekai Zhu and Guoli Jia and Yuchen Fan and Xingtai Lv and Yuxin Zuo and Che Jiang and Yuru wang and Jianyu Wang and Ermo Hua and Xinwei Long and Junqi Gao and Youbang Sun and Zhiyuan Ma and Ganqu Cui and Ning Ding and Biqing Qi and Bowen Zhou},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=E7jZqo0A50}
}
@article{wang2026marti,
title={MARTI-MARS $\^{} 2$: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generation},
author={Wang, Shijie and Li, Pengfei and Fu, Yikun and Liu, Kaifeng and Li, Fangyuan and Liu, Yang and Sun, Xiaowei and Li, Zonglin and Zhao, Siyao and Zhao, Jian and others},
journal={arXiv preprint arXiv:2602.07848},
year={2026}
}
MARTI © 2025 Tsinghua University & Shanghai AI Lab. All rights reserved.
(top 30 of 82)
Python
100.0%
[ICLR 2026] A Framework for LLM-based Multi-Agent Reinforced Training and Inference
Python
560
1,470 commits
updated Aug 20, 2026
MARTI is an open-source framework for training LLM-based Multi-Agent Systems (MAS) with Reinforcement Learning (RL). It enables powerful, scalable, and adaptive workflows by combining centralized multi-agent interactions with distributed policy training. MARTI supports both built-in graph-based workflows and popular third-party multi-agent frameworks.
MARTI-v2 extends the framework with tree search-augmented RL for complex reasoning tasks like code generation. By integrating multi-agent tree search, MARTI-v2 enables efficient multi-turn exploration with adaptive node expansion and refinement, allowing agents to systematically explore solution spaces and discover high-quality reasoning trajectories. The framework also incorporates advanced RL training techniques (GSPO loss for sequence-level optimization, TIS correction for vLLM sampling mismatch, dynamic data filtering, overlong buffer for token penalty) to support ultra-long sequences up to 32K tokens and heterogeneous multi-agent training.
We hope that MARTI not only advances reasoning capabilities beyond those of individual large language models or reasoning models, but also fosters collective intelligence as a step toward general artificial intelligence.
MARTI-v2 extends the framework with tree search-augmented reinforcement learning for complex reasoning tasks like code generation. By integrating multi-agent tree search with advanced RL techniques, MARTI-v2 enables efficient multi-step exploration with adaptive node expansion and refinement, allowing agents to systematically explore solution spaces and discover high-quality reasoning trajectories.
The framework has been adapted to the latest OpenRLHF infrastructure, incorporating state-of-the-art RL training techniques for heterogeneous multi-agent training.
Figure 1: Overview of Core Components of MARTI-v2
Key Features:
We designed the MARTI framework following the principle of centralized multi-agent interaction with distributed policy training, where all agent interactions and reward allocation occur centrally while policy training is distributed across individual agents. As illustrated in Figure 1, MARTI comprises three core modules: Multi-Agent World, Centralized Rewarding, and Single Agent Trainer.
Figure 2: Overview of Core Components of MARTI
Key Features:
Additionally, building on single-agent RL frameworks like OpenRLHF and verl, MARTI supports the vLLM v1 Engine and a Hybrid Engine to enable fast and efficient training.
git clone https://github.com/TsinghuaC3I/MARTI.git
cd MARTI
pip install -r requirements.txt
Follow the setup instructions for dependencies, including OpenRLHF, Ray, and vLLM.
MARTI-v2 introduces tree search-augmented reinforcement learning training (MARS²) for complex reasoning tasks like code generation.
Key Features:
# Minimum hardware requirement: approximately 8×80G GPUs
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Single-agent MCTS training
# See the script for more training examples
bash examples/mars2/run_train_single_mcts.sh
# Minimum hardware requirement: approximately 8×80G GPUs per agent
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Multi-agent MCTS training
# See the script for more training examples
bash examples/mars2/run_train_multi_mcts.sh
We introduce asynchronous tool use and workflow support for both single-agent and multi-agent RL pipelines. These features make our framework more modular, efficient, and scalable for a variety of RL scenarios.
Supported Workflows:
# Minimum hardware requirement: approximately 8×80G GPUs
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Train asynchronous multi-turn code RL
bash examples/single-agent/run_train_code_async.sh
# Train asynchronous multi-turn math RL
bash examples/single-agent/run_train_math_async.sh
# Minimum hardware requirement: approximately 8×80G GPUs per agent
# Add path setting in scripts
ROOT_DIR="/path/to/MARTI"
MODEL_DIR="/path/to/models"
# Mixture-of-Agents
bash examples/multi-agent/run_train_chain.sh
# Multi-agent Debate
bash examples/multi-agent/run_train_mad.sh
# Chain-of-agents (MathChat)
bash examples/multi-agent/run_train_mathchat.sh
# Review-RL
bash examples/reviewrl/run_train_reviewrl_async.sh
We employ the MARTI-v2 framework to train reasoning models, specifically Qwen3-8B, Qwen3-14B, AreaL-boba-2-8B, AreaL-boba-2-14B, and DeepCoder-14B. For multi-agent reinforcement learning, we employ a cluster configuration consisting of 3 nodes, each equipped with 8 H200 GPUs, allocating one full node per agent.
We evaluate MARTI-v2 on the LCB code generation benchmark under both single-agent and multi-agent settings compared to baseline methods. As shown in Figure 3 and Figure 4, our experiments demonstrate that:
Figure 3: Experimental results of single-agent MCTS and baseline methods on LCB benchmarks
Figure 4: Pass@1 results of multi-agent MCTS and baseline methods on LCB benchmarks
MARTI is developed primarily based on OpenRLHF. We would like to express our gratitude to the developers of OpenRLHF, as well as to the teams behind vLLM, Ray, DeepSpeed, and TreeQuest for their invaluable contributions.
For the full list of contributors, please refer to the author list in the citation. We are also deeply grateful to everyone who engaged in discussions and provided valuable feedback throughout the development of this project.
For issues or inquiries:
If you use MARTI in your research, please cite the project:
@inproceedings{
zhang2026marti,
title={{MARTI}: A Framework for Multi-Agent {LLM} Systems Reinforced Training and Inference},
author={Kaiyan Zhang and Kai Tian and Runze Liu and Sihang Zeng and Xuekai Zhu and Guoli Jia and Yuchen Fan and Xingtai Lv and Yuxin Zuo and Che Jiang and Yuru wang and Jianyu Wang and Ermo Hua and Xinwei Long and Junqi Gao and Youbang Sun and Zhiyuan Ma and Ganqu Cui and Ning Ding and Biqing Qi and Bowen Zhou},
booktitle={The Fourteenth International Conference on Learning Representations},
year={2026},
url={https://openreview.net/forum?id=E7jZqo0A50}
}
@article{wang2026marti,
title={MARTI-MARS $\^{} 2$: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generation},
author={Wang, Shijie and Li, Pengfei and Fu, Yikun and Liu, Kaifeng and Li, Fangyuan and Liu, Yang and Sun, Xiaowei and Li, Zonglin and Zhao, Siyao and Zhao, Jian and others},
journal={arXiv preprint arXiv:2602.07848},
year={2026}
}
MARTI © 2025 Tsinghua University & Shanghai AI Lab. All rights reserved.
(top 30 of 82)
Python
100.0%