Digital Twins for Multi-Agent Systems: When to Trust, What to Change
Authors: Truc Nguyen Thi Le, Phuoc Nguyen T. H
Organizations: University of Information Technology, Ho Chi Minh City, VietNam · Vietnam National University Ho Chi Minh City, Ho Chi Minh City, Vietnam
Digital twins of agent networks need to flag unreliable forecasts and help users choose interventions. Both decisions depend on what happens over several steps: an error can spread through the network, and an edit whose trajectory is easy to predict may still yield a poor collective outcome. We ask when information about error propagation improves failure detection and whether a learned twin can select effective network edits despite imperfect forecasts. We propose Propagation-Aware Validation for Networked Digital Twins (PAV-Twin). Its monitor combines Jacobian-based propagation features with recent errors and ensemble disagreement to estimate the risk that a forecast exceeds an error threshold. Its planner simulates each candidate edit and ranks the edits by their predicted collective outcomes. In simulations, the monitor gained 0.13 in area under the precision-recall curve on larger oscillator networks with familiar topologies and 0.09 on larger networks with held-out topologies, relative to a graph baseline without propagation features. Gains were small in contractive consensus. Giving the graph baseline the same features narrowed the gap. In a separate planning study, ensemble simulation recovered about 99% of the possible improvement over random intervention selection in oscillators and nearly all of it in consensus. With a simplified oscillator twin, selecting by predicted outcome also gave lower regret than selecting by trajectory fidelity. These results show when propagation features help flag unreliable forecasts and why the quality of intervention choices should be measured directly.
Figures & tables
Figure 1: Collective digital twins support forecast reliability assessment and intervention planning.
Figure 2: PAV-Twin estimates collective forecast risk from the learned dynamics. The risk score can be used to select forecasts for re-observation.
Figure 3: Forecast reliability and intervention planning across simulated dynamics. (a) The largest Lyapunov exponent and spatial variance characterize the three dynamics families. (b) The AUPRC gain over the graph baseline varies with oscillator coupling and stays near zero in consensus. (c) The gain over the graph baseline shrinks when that baseline receives the same propagation features. (d) Ensemble-MPC has low regret in oscillators and consensus. Random-selection regret measures the steering gain available in each intervention menu.
Figure 4: Failure detection across network sizes and topologies (five seeds). (a) Oscillator AUPRC for the propagation-aware monitor, the graph baseline, and the residual-plus-ensemble baseline. (b) The same comparison in contractive consensus. (c) Per-split AUPRC gain over the graph baseline, with individual runs shown as points.
Dynamics
λ1 (per step)
Spatial var.
Regime
Consensus
−0.090±0.024
0.267
Contractive
Oscillators
−0.000±0.000
5.41
Marginally stable
CML
+0.185±0.056
0.040
Chaotic
Table 1: Largest Lyapunov exponent λ1 and spatial variance of the simulated dynamics.
Figure 5: Error amplification and failure detection under a controlled coupling sweep. (a) Empirical amplification is the ratio of collective rollout error to one-step error. The operator norm ∥Φ∥2 measures linearized amplification. (b) AUPRC gain over the graph baseline as a function of amplification. (c) One-step and collective rollout errors for oscillators and consensus.
Dynamics
Graph
Graph + propagation
Boosting + propagation
Oscillators
+0.091∗
+0.040
+0.022
CML
+0.087∗
+0.044
+0.186∗
Consensus
−0.008
+0.016
+0.072∗
Table 2: Mean AUPRC gain over each baseline across the two large-network splits (six seeds). Asterisks indicate paired 95% confidence intervals that exclude zero.
Figure 6: Intervention planning in simulated oscillators and consensus (five seeds). (a) Regret by planning method. (b) Fraction of the achievable steering gain recovered in oscillators. (c) Per-seed regret for selected methods.
Dynamics
Twin
Outcome
Fidelity
Random
Oscillators
Full
0.001
0.056
0.090
Oscillators
Simplified
0.019
0.173
0.090
Consensus
Full
0.000
0.023
0.043
Consensus
Simplified
0.000
0.000
0.043
Table 3: Intervention regret for outcome-based selection ( B ), fidelity-based selection ( C ), and random selection. Lower is better.
Regime (random regret)
Ensemble MPC
Simplified MPC
Ranker
Fidelity
Oscillators ( 0.127 )
0.0009
0.0355
0.0119
0.057
Consensus ( 0.056 )
0.0000
0.0001
0.0002
0.021
Chaotic CML ( 0.007 )
0.006
0.006
0.005
0.003
Periodic CML ( 0.002 )
0.001
0.001
0.001
0.001
Table 4: Mean planning regret in the five-seed study. The random regret in parentheses measures the steering gain available within each candidate menu.
Digital twins are often used to predict how a system would respond to an intervention. In systems with feedback, a twin must reproduce an equilibrium counterfactual, and a twin developed in one domain may fail after mechanisms change. We study when these predictions can be validated and transported. For equilibrium causal games, we give conditions on the mechanisms, equilibrium selection, and intervention design under which agreement with experimental distributions identifies the counterfactual of interest. We show why agreement of means and covariances is insufficient for distributional queries. We then introduce cyclic selection diagrams and derive criteria for direct reuse and for hybrid models that combine invariant source mechanisms with target information. An impossibility result constructs systems that agree under every experiment in a finite design but disagree on the target counterfactual, showing that validation requires structural assumptions. For linear models, we derive intervention requirements that depend on the mechanisms that changed, the observation model, and graph support. When point identification fails, we characterize the remaining range of query values. We also provide statistical tests for reconstructed means and covariances and illustrate the theory in synthetic feedback systems.
Faraz Dadgostari, Neda Nazemi
Department of Mechanical & Industrial Engineering, Montana State University · Gianforte School of Computing, Montana State University
Here, we explore the problem of error propagation mitigation in modular digital twins as a sequential decision process. Building on a companion study that used a Hidden Markov Model (HMM) to infer latent error regimes from surrogate-physics residuals, we develop a Markov Decision Process (MDP) in which the inferred regimes serve as states, corrective interventions serve as actions, and a scalar reward that takes into consideration the cost-benefit tradeoff between system fidelity and maintenance expense. The baseline transition matrix is extracted from the HMM-learned parameters. We then extend the formulation to a Partially Observable MDP (POMDP) that accounts for the imperfect nature of regime classification by maintaining a belief distribution updated via Bayesian filtering, with the HMM confusion matrix serving as the observation model. Both formulations are solved via dynamic programming and validated through Gillespie stochastic simulation. We then benchmark two model-free reinforcement learning algorithms, Q-learning and REINFORCE, to assess whether effective policies can be learned without explicit model knowledge. A systematic comparison of different intervention policies demonstrates that the MDP policy achieves the highest cumulative reward and fraction of time in nominal operation, while the POMDP recovers approximately 95% of MDP performance under realistic observation noise. Sensitivity analyses across observation quality, repair probability, and discount factor confirm the robustness of these conclusions, and the major gaps in the policy hierarchy are statistically significant at p<0.001. The gap between MDP and POMDP performance quantifies the value of information providing a principled criterion for investing in improved classification accuracy.
Annice Najafi, Shokoufeh Mirzaei
Department of Industrial and Manufacturing Engineering California State Polytechnic University, Pomona Pomona, CA, 91768, USA
Decentralised online learning enables runtime adaptation in cyber-physical multi-agent systems, but when operating conditions change, learned policies often require substantial trial-and-error interaction before recovering performance. To address this, we propose TwinLoop, a simulation-in-the-loop digital twin framework for online multi-agent reinforcement learning. When a context shift occurs, the digital twin is triggered to reconstruct the current system state, initialise from the latest agent policies, and perform accelerated policy improvement with simulation what-if analysis before synchronising updated parameters back to the agents in the physical system. We evaluate TwinLoop in a vehicular edge computing task-offloading scenario with changing workload and infrastructure conditions. The results suggest that digital twins can improve post-shift adaptation efficiency and reduce reliance on costly online trial-and-error.
Nan Zhang, Zishuo Wang, Shuyu Huang +4
Department of Computer Science and Engineering, Southern University of Science and Technology, Shenzhen, China · Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology, Shenzhen, China · Department of Informatics and Telecommunications, University of Thessaly, Lamia, Greece