MoRAgent: Parameter Efficient Agent Tuning with Mixture-of-Roles

Jing Han, Binwei Yan, Tianyu Guo, Zheyuan Bai, Mengyu Zheng, Hanting Chen, Ying Nie

Introduction

Large Language Models (LLMs) are increasingly deployed as autonomous agents capable of reasoning and tool use. However, optimizing these models for agentic tasks presents a significant challenge. Full-parameter fine-tuning (SFT) is computationally prohibitive and risks "catastrophic forgetting" of general knowledge. Conversely, standard Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA often fall short because agentic behavior requires a diverse set of skills—logical planning, precise tool invocation, and conversational summarization—that are difficult to compress into a single low-rank update.

The MoRAgent Framework

To address these limitations, the authors introduce MoRAgent, a framework based on the Mixture-of-Roles (MoR) architecture. MoRAgent decomposes the complex agent workflow into three specialized roles:

  1. Reasoner: Analyzes queries and plans steps (e.g., deciding to call an API).
  2. Executor: Formulates specific tool calls or code (e.g., identifying function parameters).
  3. Summarizer: Synthesizes results into natural language for the user.
Figure 1: The MoRAgent workflow decomposing a user query into Reasoner, Executor, and Summarizer roles.

Mixture-of-Roles Architecture

The MoR architecture replaces a single global LoRA with specialized LoRA groups for each role. A Role-Aware Gate dynamically activates the appropriate role group based on the current step in the conversation. Within each group, Token-Aware Routers select the most relevant LoRAs for the specific input token.

Figure 2: The Mixture-of-Roles (MoR) architecture integrated into the Transformer block, featuring role-aware gating and token-aware routing.

To prevent redundancy among LoRAs, the framework employs an Orthogonal Loss, encouraging each adaptation to capture unique features, and an Auxiliary Balance Loss to ensure uniform utilization of the parameter capacity during training.

Experimental Evaluation

The researchers evaluated MoRAgent across several benchmarks, including StableToolBench, the Berkeley Function Calling Leaderboard (BFCL), and mathematical reasoning tasks (GSM8K, MATH). Training data was synthesized using a multi-role pipeline involving GPT-4o for data enrichment and DeepSeek-V3 for quality filtering.

Key Results

MoRAgent demonstrated performance gains comparable to or exceeding full-parameter fine-tuning while using significantly fewer resources:

  • Tool Use: On Llama-3.2-1B, MoRAgent improved the StableToolBench "Depth-First Search" pass rate by 44.5% while adding only 0.16B trainable parameters.
  • Function Calling: Average accuracy on BFCL increased by 50.1% for Llama-3.2-1B and 17.9% for Phi-3.5-mini.
  • Reasoning: On Qwen2.5-1.5B-Coder, the method achieved a 13.8% improvement on GSM8K and a 12.0% improvement on MATH compared to baseline methods.

Analysis and Insights

A critical finding was the importance of Capacity Allocation. Experiments revealed that the Reasoner and Executor roles are more complex and benefit from higher LoRA counts (increased capacity), whereas the Summarizer role is relatively simpler and requires fewer parameters. Furthermore, the Orthogonal Loss proved essential; without it, specialized LoRAs tended to learn redundant patterns, negating the benefits of the multi-role structure.

Conclusion

MoRAgent offers a scalable and efficient path for tuning LLM agents. By separating "thinking" from "doing" through role decomposition and specialized parameter updates, it achieves high performance with minimal computational overhead. Future work may explore further role granularity and integration with other PEFT techniques like DoRA (Weight-Decomposed Low-Rank Adaptation).

Summary updated

BibTeX
@inproceedings{han2025moragent,
  author = {Jing Han and Binwei Yan and Tianyu Guo and Zheyuan Bai and Mengyu Zheng and Hanting Chen and Ying Nie},
  title = {{MoRAgent: Parameter Efficient Agent Tuning with Mixture-of-Roles}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rdeDanrYEj},
}
Figure