arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.17613

MAS-Gate: Unlocking Multi-Agent System Lifecycle via Node-Centric Quantification

Hehai Lin, Zixuan Wang, Ming Yan, Peidong Wang, Shilei Cao, Minzhi Li, Bosheng Ding, Juepeng Zheng, Chengwei Qin

ABSTRACT

Large language model (LLM)-based multi-agent systems (MAS) can solve complex problems beyond the reach of a single agent by decomposing tasks and coordinating complementary capabilities. Despite extensive research on MAS, existing work largely focuses on specific aspects or individual phases of their development and operation, resulting in fragmented perspectives with objectives and signals that are difficult to reconcile across these different settings. To bridge these disconnected perspectives, we conceptualize MAS development and operation as a three-phase lifecycle spanning design-time orchestration before execution, runtime intervention during execution, and post-hoc attribution after execution, and introduce MAS-Gate, a unified node-centric quantification applicable across these phases. Modeling each execution as a directed acyclic graph, MAS-Gate combines within-node utility, which estimates a node's contribution through changes in reference-answer likelihood, with inter-node strength, which approximates semantic uptake and potential downstream reach. We adapt this shared quantification to three objectives: providing a structure-aware dense reward for Orchestrator training, training an Editor to act on execution prefixes using paired rewards from completed edited and unedited trajectories, and supplying risk-ranked nodes as auxiliary evidence for LLM-based post-hoc attribution. Experiments spanning interaction environments, knowledge-intensive multi-hop question answering, general reasoning, and post-hoc attribution demonstrate that MAS-Gate improves workflow construction, targeted runtime editing, and LLM-assisted error localization over corresponding phase-specific baselines. Together, these results establish MAS-Gate as a unified structural interface for improving MAS generation, dynamic editing, and error attribution throughout the lifecycle.

1 INTRODUCTION

Multi-agent systems (MAS) have emerged as an effective way to improve the performance of large language models (LLMs) on complex tasks (Ke et al., 2025a; Huang et al., 2026; Tran et al., 2025; Lin et al., 2026a; Jwalapuram et al., 2026; Yu et al., 2026). By decomposing a problem, assigning specialized roles, and coordinating intermediate results, an MAS can elicit complementary capabilities that are difficult to obtain from a single model invocation (Yang et al., 2026; Lin et al., 2026b; Chen et al., 2024; Cemri et al., 2026). This potential has motivated research on many aspects of MAS, including workflow construction, topology search, model routing, communication pruning, and failure diagnosis in multi-agent executions (Zhang et al., 2025c; Zhuge et al., 2024; Yue et al., 2025; Liu et al., 2023). Despite this breadth, existing methods remain largely siloed, with most optimizing or analyzing a particular phase through a phase-specific objective, representation, or heuristic (Hu et al., 2025; Ke et al., 2025b). This specialization produces signals tailored to individual objectives, with limited correspondence across orchestration, intervention, and attribution (Qi et al., 2026).

∗^{*}Equal contribution

†^{\dagger}Corresponding to chengweiqin@hkust-gz.edu.cn

Figure

(a) One Unified Node-centric Quantification for MAS Lifecycle

(b) One HotpotQA Trace: Reasoning with Node-aligned Quantification

Figure 1: Overview of MAS-Gate. (a) Unified node-centric quantification combines within-node utility and inter-node strength to measure node impact across the MAS lifecycle. (b) A HotpotQA trace illustrates how node impact scores distinguish useful contributions from erroneous reasoning.

To organize these phase-specific objectives, we define the MAS lifecycle as an integrated framework spanning the initial construction of an MAS, its dynamic adjustment during execution, and the attribution of failures after execution (Li et al., 2024; Qi et al., 2026). Specifically, Before execution (design-time orchestration), the goal is to construct an effective MAS by organizing its agents and their interactions (Fan et al., 2025; Ruan et al., 2026). During execution (runtime intervention), the goal is to monitor the partial trajectory and selectively adjust the active MAS, e.g., adding or removing sub-agents, replacing an agent, or rerouting dependencies without regenerating the entire workflow. After execution (post-hoc attribution), the goal is to analyze the completed wrong execution and identify the components responsible for its failure (Xia et al., 2026; Zhu et al., 2025). Existing research has concentrated primarily on the first and third phases, whereas runtime intervention remains comparatively underexplored. Some systems respond to execution failures by regenerating or refining the entire MAS (Wang et al., 2026a), but we focus on using the accumulated trajectory to selectively and dynamically adjust the continuation of an active multi-agent execution.

In this paper, we introduce MAS-Gate, a unified node-centric quantification that provides a common formulation for the distinct objectives of the MAS lifecycle. Following previous works (Zhuge et al., 2024), we model the MAS as a directed acyclic graph to expose dependencies among agent computations. Each node represents a sub-agent, and each directed edge records which upstream outputs are available to a later sub-agent. MAS-Gate then quantifies two complementary properties of this execution through a Node-Centric Quantification. First, within-node utility UiU_i quantifies the change in reference-answer likelihood induced by incorporating node ii's output, serving as a proxy for its contribution to task progress. Second, inter-node strength KiK_i combines estimated semantic uptake with potential downstream reach. The resulting node impact Ii=Ui(1+Ki)I_i = U_i(1 + K_i) integrates these complementary perspectives while preserving local utility when Ki=0K_i = 0. Figure 1(a) summarizes this quantification, while Figure 1(b) illustrates how the resulting node impact scores reflect the quality of a HotpotQA trace. In this example, the initial step correctly identifies the song and receives a positive impact score, whereas subsequent steps pursue incorrect film and director associations and fail to recover the correct answer, receiving negative scores. MAS-Gate thus distinguishes a useful intermediate contribution from erroneous reasoning within the same failed execution.

We evaluate the same MAS-Gate quantification across all three phases of the MAS lifecycle. For design-time orchestration, we combine mean node impact with terminal correctness as a dense reward to train an Orchestrator, improving the initial MAS workflow construction ability. For runtime intervention, we train an Editor to condition on the current MAS graph and accumulated execution trace, applying targeted adjustments to the remaining workflow after each node completes and before its output propagates downstream. For post-hoc error attribution, we derive risk scores from node utility and inter-node strength to rank the top-k suspicious steps or agents as auxiliary evidence for an LLM localizer. The localizer retains access to the complete execution trajectory and is free to identify candidates beyond the supplied ranking.

Across experiments, Qwen3-8B (Team, 2025) serves as the backbone for training the Orchestrator and Editor, Qwen3-30B-A3B-Instruct-2507 serves as the frozen sub-agent model for sub-task execution and within-node utility UiU_i quantification, and bge-m3-zeroshot-v2.0 (Laurer et al., 2023) provides the entailment scores used to quantify inter-node strength KiK_i. The evaluation covers interaction environment, multi-hop question answering, general reasoning, and post-hoc error attribution, with the first three task families supporting the design-time and runtime studies and the last supporting the attribution experiment. MAS-Gate outperforms existing orchestration baselines in task performance and generalization, and improves failure localization over direct LLM-based attribution. Beyond these established settings, our runtime intervention study demonstrates that targeted adjustments to an active MAS can improve execution outcomes without reconstructing the entire workflow, supporting dynamic intervention as an effective means of refining multi-agent execution. Together, these findings support the use of a common quantification mechanism to guide distinct objectives across the MAS lifecycle. Our contributions are as follows:

• We formulate the MAS lifecycle as a unified framework encompassing design-time orchestration, runtime intervention, and post-hoc attribution, connecting different existing MAS research.

• We introduce MAS-Gate, a unified node-centric quantification method that combines within-node utility and inter-node strength, providing a shared quantitative signal that can be adapted across all three lifecycle phases.

• We evaluate MAS-Gate across interactive environments, multi-hop question answering, general reasoning, and failure attribution, demonstrating gains over existing baselines in orchestration and failure localization, as well as the effectiveness of targeted intervention during execution.

References (62)