TL;DR
MoRSE (Mixture of Role-Subtask Experts) is a new multi-agent framework that solves the "redundancy problem" in LLM systems by specializing agents at both the structural and parameter levels. By combining a dynamic task-decomposition graph with a mixture of specialized LoRA experts and a novel hierarchical RL optimization method (HGRPO), MoRSE significantly outperforms existing multi-agent baselines in complex code generation and scientific computing tasks.
What Problem Does This Paper Address?
Large Language Model (LLM)-based Multi-Agent Systems (MAS) have become a popular way to tackle complex, multi-step tasks. Usually, this involves "prompt-level differentiation"—telling one agent it’s a "coder" and another it’s a "reviewer."
However, the authors identify a major bottleneck: insufficient inter-agent heterogeneity. Even when given different prompts, agents often produce redundant, highly correlated outputs that fail to capture the specialized nuances required for complex subtasks. The authors demonstrate that different roles (like "merging context" vs. "executing code") actually require parameter adaptations in different mathematical subspaces of the model. A single shared model, or even a single fixed LoRA adapter, cannot effectively cover all these specialized needs simultaneously.
Methods
The MoRSE framework consists of three tightly coupled components:
- ToMAS (Task-Oriented Multi-Agent System): Instead of a static pipeline, MoRSE decomposes a high-level task into a Directed Acyclic Graph (DAG) of subtasks. Each node in the graph is assigned a specific (role, subtask) pair. Roles (e.g., Merger, Executor) define the agent's function, while subtasks are natural-language descriptions of the specific work to be done.
- MoLE (Mixture of Role-Subtask LoRA Experts): To achieve parameter-level specialization, the system uses a dual-factorized pool of LoRA experts. For every agent call, the system activates one role expert and a subset of subtask experts. The subtask experts are selected by a prototype-based semantic router that maps the natural language subtask description to the most relevant experts in the pool.
- HGRPO (Hierarchical Group-Relative Policy Optimization): Training a router and experts together is notoriously unstable because a bad routing decision can make a high-quality expert receive a low reward. HGRPO introduces a two-layer credit assignment to decouple these. It calculates a "within-route" advantage to update the experts (comparing candidates within the same expert combination) and a "cross-route" advantage to update the router (comparing different expert combinations).
Datasets
The authors evaluated MoRSE on two challenging code-generation benchmarks:
- SRDD: Contains 1,200 software-requirement descriptions across 40 application categories.
- SciCode: A scientific computing benchmark with 80 complex problems (decomposed into 338 subproblems) spanning domains like Physics, Math, and Biology.
Crucially, they performed Out-of-Distribution (OOD) testing by withholding entire categories (e.g., training on Physics/Math but testing on Chemistry/Biology) to see if the specialized subtask skills could generalize.
Key Insights and Ideas
- The Redundancy Deficit: The paper proves that prompt-level MAS often collapses into redundancy. As shown in Figure 1, standard methods like MacNet actually amplify agent-output similarity, whereas MoRSE's structural decomposition successfully disperses agent outputs.
- Subspace Mismatch: Through subspace analysis (Figure 2), the authors show that different roles and subtask clusters require adaptations in distinct, non-overlapping directions within the LLM's parameter space. This provides the theoretical "why" for using a Mixture of Experts approach.
- Decoupling Quality from Routing: The "aha moment" for optimization is that you shouldn't blame an expert for a bad result if the router sent it the wrong task. HGRPO’s two-layer credit assignment mathematically reduces gradient variance, leading to much more stable training compared to standard GRPO.
Key Results
MoRSE was tested across three different backbones: Qwen3-4B, Llama-3.1-8B, and Gemma-4-31B.
- Performance Boost: On the SRDD benchmark using Qwen3-4B, MoRSE achieved an ECI Product of 0.360, significantly higher than the base model (0.286) and multi-agent baselines like ChatChain (0.264) and MacNet (0.261).
- Generalization: MoRSE showed strong OOD generalization. In SciCode, it improved the "Step Pass" rate by +7.19% over the untrained baseline, indicating that the learned subtask experts capture reusable skills that apply to new scientific domains.
- Ablation Success: Ablation studies confirmed that MoLE and HGRPO are both necessary; removing the hierarchical credit assignment (HGRPO) caused the training surrogate to crash, proving its role in stabilizing the system.
Limitations and Future Work
- Domain Specificity: The current evaluation is focused heavily on code generation and scientific computing. The authors note that broader task families still need to be tested.
- Expert Pool Scaling: The subtask-expert pool size was kept small (4 experts) for these experiments. Scaling this pool could further improve coverage for diverse, "heavy-tailed" subtask distributions.
- Role Taxonomy: The study primarily used two roles (execute and merge). Future work could involve finer-grained roles like reviewer, reasoner, or refiner.
- Multi-modality: The authors suggest that the framework is a natural fit for multi-modal settings, where different subtasks could route to modality-specific experts (e.g., vision vs. text).
Summary updated