Manuscript Offprint

arXiv:2610.24845

AgentSoV: Virtual Sensing for LLM Multi-Agent Systems via Stream of Variation

Congjing Zhang, Siyuan Xu, Yunfei Bai, Ke Ren, Xiaoning Qian, Shuai Huang

ABSTRACT

Large language model (LLM) multi-agent systems (MASs) solve complex tasks through interacting agents, yet their reliability is difficult to analyze because failures depend on both individual agents and how information and errors propagate across the system. Existing approaches largely treat this as post-hoc failure attribution, but do not provide a common model across heterogeneous MAS architectures or support broader analysis of information influence and observability. We introduce AgentSoV, a virtual-sensing framework that models MAS execution as a stochastic dynamic system through Stream of Variation (SoV). AgentSoV maps heterogeneous trajectories into diagnostic stages, constructs virtual measurements from observable outputs, and learns cross-stage variation propagation with a state-space model. Its representation is architecture-aware in stage dependencies yet architecture-agnostic in analytical language, supporting chain-structured, orchestration-based, and directed acyclic graph (DAG)-structured MASs. Without re-executing the MAS, AgentSoV supports three system-level analyses: failure attribution identifies where abnormal variation enters; stage-input influence quantifies how strongly intermediate inputs affect downstream outcomes; and virtual-sensor placement selects complementary observations under a monitoring budget. Experiments across multiple MAS architectures demonstrate a unified approach to fault localization, information influence, and observability. AgentSoV reframes agentic execution as a dynamic system to model rather than merely text to inspect, providing insights for MAS structure and component design.

1 INTRODUCTION

Large language model (LLM) multi-agent systems (MASs) solve complex tasks by distributing work across specialized agents (Li et al., 2024a; Yang et al., 2026a). These agents may plan, call tools, or verify one another's outputs. However, composing capable agents does not necessarily yield a reliable system. Failures can arise from individual agent errors, but also from system design and ineffective information exchange (Cemri et al., 2026). Intermediate outputs may have little effect on the final result or duplicate information already available elsewhere. They may also introduce erroneous variation that persists through subsequent interactions (Zhang et al., 2026d; Li et al., 2025). MAS reliability is therefore a system-level problem. Effective diagnosis should locate where a failure originates and trace how its effect propagates. It should also reveal which intermediate information matters to the outcome and which parts of the execution need to be observed.

A major line of work studies this problem through failure attribution: given a completed failed trajectory, identify the agent or execution step responsible for the failure (Zhang et al., 2026a). Who&When (Zhang et al., 2025) formalized agent- and step-level attribution over failure trajectories

∗^{*}Corresponding author.

from a large collection of MASs and let LLM judges inspect trajectories. Subsequent approaches improve particular parts of this pipeline by narrowing the scope before localization, training specialized failure tracers, refining trajectory inspection, or replacing direct judging with intervention, counterfactual replay, and spectrum analysis (Ma et al., 2026; Yeh et al., 2026; Li et al., 2026c). For example, on the Who&When benchmark, SDBL (Sun et al., 2026) reports step-level accuracy up to 27.78% on the handcrafted subset and 33.33% on the automatically generated subset, and AgenTracer (Zhang et al., 2026a) reports up to 20.68% and 42.86%, respectively. These results represent substantial progress, but they also illustrate that fine-grained MAS diagnosis remains difficult. Additional related work is in Appendix A.

More fundamentally, many existing approaches are not architecture-invariant by construction. The meaning of an execution step depends on how the MAS is implemented. In an orchestration-based system, a step may represent an orchestrator-worker interaction, while in a directed acyclic graph (DAG)-structured workflow it may correspond to a node with multiple upstream parents. Methods that reason directly over these execution objects are therefore tied to the underlying trajectory format. Intervention-based methods may also require changes to the replay mechanism, while learned approaches may depend on a new training distribution (Zhang et al., 2026a). Replay-based methods further require access to a re-executable MAS and its environment (Yeh et al., 2026). Although such methods can be adapted across systems, their diagnostic representation remains closely coupled to the execution format. Most of these methods are also designed primarily for failure attribution. They answer where or by whom a failure was introduced, but do not provide a common model for broader system analysis. For example, they do not directly characterize how strongly variation persists downstream. They also do not determine which intermediate inputs or outputs are redundant, nor which should be monitored for effective diagnosis.

These questions suggest a different starting point: an MAS execution can be viewed as a stochastic dynamic system. This viewpoint has a close analogue in multistage manufacturing. Manufacturing systems are highly heterogeneous, i.e., different processes contain different machines, operations, and sensor layouts, yet state-space models provide a common abstraction in which a latent process state evolves across stages, process inputs affect that state, and measurements reveal only part of it. One representative framework is Stream of Variation (SoV), which models how variation introduced at one manufacturing stage propagates through downstream stages and appears in distributed measurements (Shi, 2006; Huang et al., 2000; Zhou et al., 2003). Once the process is represented in this form, concepts from control and systems theory become available: observability asks whether internal variation can be inferred from available measurements, diagnosability asks whether different variation sources can be distinguished, and sensor-design methods ask where measurements should be placed to make the process sufficiently informative for diagnosis. The value of this abstraction is not that every manufacturing process has the same dynamics, but that very different processes can be represented using the same language of stages, propagated state, inputs, disturbances, and measurements. We discuss a more detailed illustration in Section 2.1.

Building on this connection, we introduce AgentSoV, a virtual-sensing framework that models LLM MAS execution through SoV (Figure 1). AgentSoV maps an observed execution into a sequence of diagnostic stages, constructs process inputs and virtual measurements from observable execution information, and fits state-space dynamics that characterize cross-stage variation propagation. Once learned, the same compact model supports failure attribution, stage-input influence analysis, and virtual-sensor placement without requiring a separate diagnostic representation for each task. We instantiate this framework for chain-structured, orchestration-based, and DAG-structured MASs, demonstrating that the diagnostic mapping can change with the execution architecture while the underlying analytical framework remains the same. In summary, our contributions are: (1) we introduce AgentSoV, a virtual-sensing framework that represents LLM MAS execution as a multistage dynamic system using SoV, providing a common statistical language for modeling information and variation propagation; (2) we show that the resulting dynamics support multiple system-level analyses within a single model, including failure attribution, stage-input influence, and virtual-sensor placement; (3) we adapt AgentSoV to chain-structured, orchestration-based, and DAG-structured MASs, demonstrating that its diagnostic stages and dependencies can accommodate heterogeneous execution architectures without requiring a one-to-one reproduction of the underlying trajectory; and (4) we validate AgentSoV across these architectures, demonstrating effective diagnosis from a unified learned representation without re-executing the underlying MAS.

Figure

Figure 1: Schematic overview of AgentSoV. The upper panel shows the observed LLM MAS execution trajectory T. AgentSoV maps T into diagnostic stages S, constructs stage inputs u and virtual measurements y, and models cross-stage variation through SoV dynamics. The diagnostic mapping need not preserve the original execution one-to-one: multiple execution steps τ\tau may be grouped into a stage s according to their diagnostic role. The resulting representation supports three system-level analyses through different model quantities: disturbances z for failure attribution, stage inputs u for stage-input influence, and virtual measurements y for virtual-sensor placement.

References (81)