WorksEngineering
Conformal Koopman Certificates for Nonlinear Multi-Agent Consensus on Time-Evolving Graphs
Abstract
Robot fleets must often agree on a shared value before they act, over wireless networks that change as the robots move. Their supervisor needs a deadline: the number of communication rounds after which the fleet has agreed with a stated probability. Today it comes from simulation plus a safety margin, with an open probability of being met. We certify it. Our method, conformal Koopman certification, rests on one observation: averaged over the random network changes, the expected behaviour of the fleet evolves linearly, for any nonlinearity of the agents. The decay rate of this linear evolution gives the shape of the deadline. One remaining constant is calibrated from 200 short test runs by conformal prediction, a statistical method that turns any predictor into a guarantee that holds with a user-chosen probability. The certified deadline holds for every agreement tolerance at once and for any error in the estimated rate. The same linear model predicts the value the fleet will agree on and certifies how much corruption of the exchanged messages the collective decision absorbs. For 60 simulated robots the certified deadline was met in all 500 test runs against a 90% target and exceeded the slowest run by 16%. The classical worst-case bound exceeds that run by more than 160 orders of magnitude, a linearised deadline is missed in up to 26% of runs, and direct conformal calibration costs 80 times more simulation per tolerance.
Introduction
Fleets of tens to hundreds of robots are moving from laboratories to warehouses, farms and search missions. Before such a fleet acts, its robots often have to agree on a shared value, for example on how to split a search area, by exchanging messages over a wireless network that changes as they move. The supervisor needs a deadline: the number of communication rounds after which the fleet has agreed with a stated probability. A deadline below the true convergence time makes the fleet act on a split opinion; a deadline far above it wastes mission time. In current practice the deadline comes from simulation runs plus a safety margin, and the probability that the fleet meets it remains open.
Two tools have matured that make such a certificate possible. Koopman operator methods represent a nonlinear system by a linear operator acting on functions of its state [1, 2], and they now come with data-driven estimators that converge [citep}[3], [4]] and spectra that can be verified [5]. Conformal prediction (CP) turns any predictor into a guarantee that holds with a user-chosen probability, from finite data and for any data distribution [12, 13], and it has recently entered control for certifying stability and safety [15, 16, 17].
A deadline of the form disagreement decays geometrically needs a decay rate and the constant in front of it. Classical spectral theory gives the rate for linear teams on a fixed network. A real fleet is nonlinear, because actuators saturate, and its network switches at random, so its rate must come from a linear description of a nonlinear random system. The constant is open even for linear teams: the available bound, the condition number of an eigenvector matrix, inflates the deadline 1.9 to 3.2 times in our tests (Section III). Each tool alone covers one half of the problem: Koopman methods give the shape of the decay and leave its constant open, and CP gives a constant with a guarantee and needs a shape to extrapolate across tolerances. We state three requirements, made formal in Problem 1. (R1) Coverage: the fleet meets the deadline with probability at least , for a miscoverage level chosen by the user. (R2) Length: the deadline stays close to the largest convergence time. (R3) Reuse: one calibration serves every agreement tolerance. Existing methods meet two of the three. Worst-case ergodicity bounds [7, 6, 8, 9] meet R1 and R3, with deadlines above rounds for 60 agents. Spectral analysis of a linearised model meets R2 and R3, and its deadline is missed in up to 26% of runs, because saturation slows the true fleet. Direct CP on observed convergence times meets R1 and R2, and every tolerance needs a new calibration that costs 80 times more simulation. Conformal robustness of learned Lyapunov and barrier certificates [15, 16, 17] certifies one fixed configuration of one system, and a fleet needs a time-to-agreement.
Our idea (Figure 1) is to let each tool supply the half that the other leaves open. The annealed Koopman operator, which averages the dynamics over the random switching, is linear for any agent nonlinearity, and its spectrum gives the decay rate. CP then calibrates the single constant from 200 runs of 50 rounds. The calibration score is measured against the estimated rate, so an estimation error lengthens the deadline and leaves the guarantee intact. To our knowledge, this is the first deadline certificate for nonlinear consensus on randomly switching networks that holds with a stated probability from finite data. The primary contributions are:
Figure 1. Conformal Koopman certification on network 1. EDMD (extended dynamic mode decomposition) fits the annealed Koopman operator, which gives the decay rate and the decision eigenfunction; conformal calibration gives the remaining constant. Decision panel: schematic, flip rates from Section IV-3.
the conformal Koopman deadline (Theorem 1, Corollary 1), which meets R1 to R3 for any switching distribution and any accuracy of the estimated operator;
the conformal decision certificate (Theorem 2), a certified margin of the collective decision against corruption of the transmitted data, derived from the eigenfunction of the same operator at eigenvalue one; it corrects a nominal margin that worst-case perturbations exceed in 13.3% of test cases;
an evaluation against the four methods above on one metric per requirement: coverage (R1), deadline length relative to the slowest run (R2) and calibration cost (R3);
a test that detects spurious near-unit eigenvalues, which dictionary enrichment creates and which lengthen the deadline 29-fold.
Preliminaries and Problem Formulation
Notation
; and are the reals and ; is the Euclidean norm of a vector and the matrix norm it induces, the Frobenius norm, the supremum norm of a vector or a function and the operator norm it induces; is the condition number of an invertible matrix ; the transpose; the all-ones vector; the identity; the th basis vector; the diagonal matrix with diagonal ; the Kronecker product; the ceiling; the natural logarithm; the sign; the gradient in ; probability; expectation; the mean of . A hat marks a quantity estimated from data; the same symbol alone is the true quantity.
Acronyms: EDMD (extended dynamic mode decomposition), i.i.d. (independent and identically distributed). Baselines: W (worst-case ergodicity), L (linearised spectral), K (Koopman spectral with ), CP (direct conformal prediction); ours is CK (conformal Koopman).
Agent team on a time-evolving graph
Definition 1 (Markov-modulated agent team). agents hold beliefs , which form the team belief . A topology mode labels the communication graph active at the current step, with weighted adjacency matrix , zero diagonal and directed Laplacian . Its entry is the influence of agent on agent . With step size , one communication round in mode maps belief to
We write . At step the belief is and the mode . The modes form an irreducible aperiodic Markov chain, independent of , with transition matrix , , and stationary distribution , . The joint state is .
Each agent moves toward its current neighbours, which change at random; this random sequence of graphs is the switching process. The coupling makes the pull of a neighbour saturate as the belief difference grows, so (1) is linear only near consensus. Progress is measured by the disagreement , the distance of the team belief from its mean . For a tolerance the convergence time
is the first round at which the initial disagreement has shrunk by the factor . We write , with the common value of all beliefs. The mode keeps switching, so for an observable we write whenever this limit exists.
Remark 1. In general the Laplacians have different left null vectors, so is a random variable that depends on the switching sequence as well as on . Statements about the collective decision therefore concern .
The annealed Koopman operator
Definition 2 (Annealed Koopman operator). For bounded observables , that is, bounded functions of the
joint state, define
Lemma 1. is linear, positive, satisfies and for the constant function on , and its eigenvalues lie in the closed unit disc.
Proof. As a conditional expectation, (3) is linear and positive in and maps constants to themselves, so and . Positivity gives , so , and the spectral radius of a contraction is at most one. □
The team is nonlinear, and is a linear contraction. Its subdominant eigenvalue , of largest modulus strictly inside the unit disc, sets the rate at which the fleet forgets an initial disagreement.
EDMD
We estimate by EDMD [3], [4]. Let hold the eigenvectors of the -averaged Laplacian for its eigenvalues of smallest modulus. The slow collective coordinates form a diffusion-map embedding [11]. Let be the row vector of the monomials in up to degree . The mode-indexed dictionary is a row vector of observables; we call the lift dimension, the size of the linear model. Stack the rows at all observed states into a data matrix, also written , and at their successor states into . The estimate , minimised over all matrices , is the matrix of on the span of the dictionary: it maps the coefficient vector of an observable to that of . Its subdominant eigenvalue gives the estimated decay rate .
Remark 2. Linearise with . On linear observables , , the annealed operator acts as the matrix , whose subdominant modulus we compute in closed form; it defines baseline .
Split conformal prediction
Let be calibration samples, here trajectories, and a new sample. A nonconformity score grows as a sample departs from a model. For a miscoverage level the conformal quantile is
where are the calibration scores sorted in increasing order and for . It is the -quantile of the calibration scores together with the score of , not yet observed and counted as ; for and it is the 181st smallest score.
Lemma 2 (Split CP [12], [14]). If are exchangeable, that is, their joint distribution is invariant under permutations, then , for any dynamics.
Problem formulation
Problem 1. Given trajectory data from (1), with , , accessible only through data, construct: (i) a deadline with for a new trajectory (R1), for any switching distribution and any accuracy of the estimated model, that stays close to the largest convergence time (R2) and holds for all at once from one calibration (R3); (ii) a radius such that, if the slow coordinates sent at time zero are corrupted by a perturbation with , the sign of , the majority decision the team will reach, stays the same with probability at least .
Conformal Koopman Certificates
The constant C
Proposition 1. Let be a -invariant subspace of observables vanishing on the consensus manifold , with the spectral radius of the restriction . Then there is with for all , where is the -fold composition of , . For a diagonalisable finite-dimensional compression with eigenvector matrix one may take .
Proof. With the compression , the diagonal matrix of its eigenvalues, on . □
Proposition 1 is the classical route. On our instances ranged from 56.8 to 190.8, which inflates the deadline to 1.87 to 3.24 times the observed worst case. Setting is common; it replaces the theorem by an assumption. We calibrate .
Conformal Koopman deadline
Fix a burn-in , the number of initial rounds treated as transient, and a calibration horizon . For a trajectory we instantiate the nonconformity score of Section II-E as
the smallest constant for which the estimated envelope holds along for .
Assumption 1 (Exchangeability). The scores of the calibration trajectories and of a new trajectory are exchangeable. This holds when initial beliefs and initial modes are drawn i.i.d. from one fixed distribution, for example the one used at commissioning.
Assumption 2 (Post-transient dominance). With probability one, for all .
Assumption 2 lets a calibration on -round trajectories cover tolerances reached many rounds later. It reflects that the sample-path decay rate of a randomly switching system is in general strictly smaller than the annealed rate ; Section IV checks it empirically.
Theorem 1 (Conformal Koopman deadline). Let be the conformal quantile (4) of the scores (5) over calibration trajectories. Define
Under Assumption 1, a new trajectory satisfies
If Assumption 2 also holds, then (7) extends to all , and for every with .
Proof. The score (5) is a measurable function of a trajectory, so Assumption 1 and Lemma 2 give , which is the event in (7). Under Assumption 2 the maximum over equals the supremum over , so the envelope extends. On that event, as soon as , that is, by (6), for .
Corollary 1 (Simultaneity in ). The conclusion of Theorem 1 holds jointly over all admissible , that is, all with : .
Proof. All these statements follow from the single event (7).
Remark 3 (Estimation error is absorbed). The coverage guarantee of Theorem 1 holds for every value of , at any distance from . The same appears in (5) and (6), so any error in is absorbed by : it lengthens the deadline and leaves R1 intact, independently of eigenvalue perturbation bounds [18].
Conformal decision certificate
Lemma 3. If is an eigenfunction with that varies with , then is a bounded martingale and . Since approaches the consensus manifold, equals up to an affine normalisation.
Proof. is the martingale property. Boundedness and martingale convergence give the first claim, and restriction to the consensus manifold the second.
Physically, is the weighted opinion that the switching dynamics conserve in expectation: the answer the team is committed to at time zero. The binary decision is . For perturbations of the transmitted coordinates , write for the joint state with initial belief . The nominal first-order radius
is the distance of the estimated functional from its decision boundary in units of its slope; the argument distinguishes it from the decay rate .
Theorem 2 (Conformal robustness radius). Let be the true decision functional, with affinely normalised to it. Let be calibration initial states with scores and conformal quantile . Set . Then, to first order in and under Assumption 1,
Proof. The score is the estimation error of at in units of its slope. By Lemma 2, with probability at least , . The reverse triangle inequality and (8) give , so . To first order, , which is strictly smaller than for , so the sign is kept. This is (9).
Numerical Results
We simulate a fleet of agents that switches at random among communication graphs, keeping the current one with probability , with step size . One round is one exchange of messages; at 20 rounds per second, 100 rounds take 5 s. Initial beliefs are i.i.d. , so two agents start a mean distance apart, where pulls 28% less than its linearisation; the initial mode is uniform on . A network is one draw of the graphs, each linking every ordered pair of agents independently with probability , so that each agent hears from about six others, with a weight uniform on . EDMD uses slow coordinates and degree (lift ) and 400 runs of 120 steps; CK uses , , and calibration runs. We ran every experiment on three independent networks, so that no conclusion rests on one draw; Table I and Figure 2 show network 1. On network 1 the fitted decay rate (0.965 and 0.958 on networks 2 and 3) removes about 4% of the remaining disagreement per round, so the disagreement halves every 17.5 rounds, or 0.9 s. The calibrated constant (0.629, 0.696) means that in 90% of calibration runs the disagreement stayed below 62% of the Koopman prediction with from round 20 to 50.
| method | cov. | cov. | cov. | cov. | calibration steps | ||||
| observed max | 44 | 90 | 118 | 165 | |||||
| W | at every (deterministic) | 0 | |||||||
| L | 32 | 73.8 | 64 | 85.2 | 95 | 82.8 | 121 | 83.2 | 0 |
| K | 59 | 100 | 117 | 100 | 175 | 100 | 233 | 100 | |
| CP | 35 | 92.0 | 67 | 93.0 | 101 | 95.0 | 132 | 94.8 | |
| CK | 46 | 100 | 104 | 100 | 163 | 100 | 221 | 100 |
Table I. Certified deadlines (rounds) and coverage (%), network 1.
Figure 2. (a) Convergence times at and the four data-driven deadlines. (b) Certified deadline against tolerance; CK tracks the observed maximum from one calibration. (c) Coverage against the nominal 90% level; L falls below it.
We compare our deadline (CK) with four alternatives. The worst-case bound W assumes that each agent always listens to its neighbours as little as the model allows. For belief differences up to , six standard deviations, the coupling keeps at least the fraction of the linear pull, so with smallest edge weight every positive weight in the averaging (1) is at least . Every graph of our networks is rooted (one agent reaches all others along directed edges), and any rooted graphs with self-loops compose to a graph in which one agent reaches all others directly [10]. Every block of rounds therefore shrinks the spread by at least the factor , with , for every switching sequence, and the guaranteed deadline , of order , exceeds rounds. L and K evaluate (6) with in place of , using the rate of the linearised team and the fitted rate , giving and ; CP takes the conformal quantile of the convergence times of the calibration runs, giving .
When the fleet agrees
1) When the fleet agrees: Table I and Figure 2 compare the deadlines on 500 test runs at tolerances from (disagreement reduced tenfold) to (ten-thousandfold). Observed max is the convergence time of the slowest run; coverage (cov.) is the percentage of runs that had agreed by the deadline, with target 90%. At the slowest run agreed by round 90. L allows action at round 64 (3.2 s), and in 14.8% of runs, about one mission in seven, the fleet would act on a split opinion. CK allows action at round 104 (5.2 s), 14 rounds after the slowest run; these 2 s beyond L buy the 90% guarantee.
The deadline of L comes early because L assumes that the pull between two agents grows in proportion to their disagreement. In the real fleet the pull saturates, so early in a run, when beliefs differ widely, the fleet converges more slowly than L predicts: L halves the disagreement every 9.5 rounds (; 0.944 and 0.935 on networks 2 and 3), the fitted rate every 17.5. The effect depends on the network: across tolerances L covered 73.8% to 85.2% of runs on network 1, 99.0% to 99.8% on network 2 and 90.6% to 95.8% on network 3, and L itself leaves open which case applies. K, the fitted rate with an assumed , met the target here, with a deadline 34% above the slowest run at , against 5% for CK. CP meets the target (90.2% to 95.2%) with the shortest deadlines among the methods that do, at a cost: each calibration run must continue until the fleet reaches the target tolerance, here 4000 rounds (3.3 min), so CP needs simulated rounds per tolerance and a new calibration whenever the mission lowers its tolerance. CK needs rounds once (200 runs of 2.5 s) and reads every deadline from (6). CK met its deadline in 99.6% to 100% of runs on all three networks. Its envelope was crossed at some round in 7.0% to 13.4% of runs, close to the 10% the calibration allows; these mid-run crossings delayed agreement past the deadline in at most 0.4% of runs. All observations were consistent with Assumption 2.
Larger fleets
2) Larger fleets: Table II and Figure 3(a) repeat the test for to 240 agents, with 150 test runs each at and about six neighbours per agent (edge probability $6/N$). is the slowest run; violation of K and coverage of L are the percentage of runs that missed and that met . The linear model keeps the same 63 basis functions at every size, because the lift dimension depends only on and ; fitting takes 144 to 162 ms and calibration the same rounds, so certifying 240 robots costs as much as certifying 20. The deadline grows from 94 rounds at to 164 at (peak 170 at $N=160): with six neighbours per agent, a message needs more hops to cross a larger fleet. Coverage of L rises from 69.3% to 100%: in a larger fleet each agent hears neighbours on both sides of its own belief, their pulls partly cancel, the differences stay small, and saturation fades. The same linearised computation thus gives a deadline that every run meets at and 30.7% of runs miss at , and L itself leaves open which case applies. CK takes its rate and constant from runs of the actual, saturating fleet, so Theorem 1 holds in both cases, where saturation matters () and where it fades ().
Figure 3. (a) Deadlines and EDMD fit time against team size. (b) Decision flips under worst-case perturbation at the nominal radius (8) and at the conformal radius of Theorem 2, which flipped no decision in either case.
| lift | violation of K (%) | coverage of L (%) | fit (ms) | |||||
| 20 | 63 | 0.9520 | 94 | 54 | 69 | 0.0 | 69.3 | 144 |
| 60 | 63 | 0.9579 | 108 | 64 | 76 | 0.0 | 88.0 | 148 |
| 100 | 63 | 0.9719 | 162 | 85 | 89 | 0.0 | 97.3 | 144 |
| 160 | 63 | 0.9732 | 170 | 104 | 106 | 0.0 | 99.3 | 159 |
| 240 | 63 | 0.9722 | 164 | 101 | 98 | 0.0 | 100.0 | 162 |
Table II. Scaling in team size at .
How much corruption the decision absorbs
3) How much corruption the decision absorbs: The fleet’s decision is the sign of its predicted final value: whether it will settle above or below zero. The predictor comes from the linear model. Eigenvalue one of also belongs to the constant function (Lemma 1), which predicts the same outcome for every start, and Lemma 3 needs an eigenfunction that varies with . Each eigenvector of gives an eigenfunction with constant, linear and quadratic parts; since for the linearised team the outcome is a weighted average of the initial beliefs, we took the one with eigenvalue nearest one among those dominated by the linear part (eigenvalue 1.0003 compressed, 1.0002 full). We scaled it against Monte-Carlo averages of the final value over 50 switching sequences per start, calibrated Theorem 2 on 40 starts and tested on 30 others, corrupting the transmitted data by exactly the margin in the most harmful direction, , which moves the prediction fastest toward zero.
With five transmitted coordinates (, lift 63), the nominal margin (8) flipped the decision in 13.3% of test cases. The certified margin averaged 0.482 against a nominal 1.108 (43.5%), in belief units, and flipped zero decisions (Figure 3(b)). With all 60 coordinates (, lift 183) the nominal margin flipped 6.7%; the certified one, 0.525 against 0.778 (67.5%), flipped zero. Two facts limit the margin.
In 6.7% of cases the predicted decision already differed from the true one before any corruption, the residual that Theorem 2 allows. And the error of comes from the coordinates themselves: tripling the data, or enlarging the dictionary from to , kept it between 28% and 42%, against a Monte-Carlo error of 0.6%. Physically, which agents dominate the outcome depends on graph details that five collective coordinates average out (Remark 1).
Larger dictionaries and spurious slow patterns
A larger dictionary can mislead the fit. With polynomials of degree 1 and 2 the deadline at was 107 and 117 rounds. With degree 3 (lift 138) the fit reported an eigenvalue at 0.99864, a pattern that would take about 740 rounds (37 s) to fade, and the deadline jumped to 3393 rounds. The real fleet settles within 100 rounds (5 s), so this pattern is an artefact that degree-3 terms mimic on the finite data. The warning sign is the condition number of the eigenvector matrix, which measures how much errors in move the computed eigenvalues: it rose sevenfold, from 168 to 1168. We recommend the largest dictionary before jumps; residual-based spectral verification [5] offers a remedy with guarantees. By Remark 3 such an artefact lengthens the deadline and leaves R1 intact.
Conclusion
From one calibration on 50-round trajectories, conformal Koopman certification gives deadlines for every tolerance and decision margins, at 1/80 of the calibration cost of direct conformal prediction, independent of team size. Three questions remain open: the guarantee is marginal, that is, it holds on average over initial conditions; Assumption 2 awaits a proof; and mobile teams induce state-dependent switching, which breaks the product structure of (3).
References
- [1]B. O. Koopman, “Hamiltonian systems and transformation in Hilbert space,” Proc. Nat. Acad. Sci., vol. 17, no. 5, pp. 315–318, 1931.pubmed.ncbi.nlm.nih.gov/16577368
- [2]I. Mezić, “Spectral properties of dynamical systems, model reduction and decompositions,” Nonlinear Dyn., vol. 41, pp. 309–325, 2005.DOI
- [3]M. O. Williams, I. G. Kevrekidis, and C. W. Rowley, “A data-driven approximation of the Koopman operator: extending dynamic mode decomposition,” J. Nonlinear Sci., vol. 25, pp. 1307–1346, 2015.
- [4]M. Korda and I. Mezić, “On convergence of extended dynamic mode decomposition to the Koopman operator,” J. Nonlinear Sci., vol. 28, pp. 687–710, 2018.DOI
- [5]M. J. Colbrook and A. Townsend, “Rigorous data-driven computation of spectral properties of Koopman operators for dynamical systems,” Commun. Pure Appl. Math., vol. 77, no. 1, pp. 221–283, 2024.arxiv.org/abs/2111.14889
- [6]R. Olfati-Saber and R. M. Murray, “Consensus problems in networks of agents with switching topology and time-delays,” IEEE Trans. Autom. Control, vol. 49, no. 9, pp. 1520–1533, 2004.
- [7]A. Jadbabaie, J. Lin, and A. S. Morse, “Coordination of groups of mobile autonomous agents using nearest neighbor rules,” IEEE Trans. Autom. Control, vol. 48, no. 6, pp. 988–1001, 2003.
- [8]W. Ren and R. W. Beard, “Consensus seeking in multiagent systems under dynamically changing interaction topologies,” IEEE Trans. Autom. Control, vol. 50, no. 5, pp. 655–661, 2005.DOI
- [9]A. Nedić and A. Ozdaglar, “Distributed optimization over time-varying directed graphs,” IEEE Trans. Autom. Control, vol. 60, no. 3, pp. 601–615, 2015.
- [10]M. Cao, A. S. Morse, and B. D. O. Anderson, “Reaching a consensus in a dynamically changing environment: a graphical approach,” SIAM J. Control Optim., vol. 47, no. 2, pp. 575–600, 2008.DOI
- [11]R. R. Coifman and S. Lafon, “Diffusion maps,” Appl. Comput. Harmon. Anal., vol. 21, no. 1, pp. 5–30, 2006.DOI
- [12]V. Vovk, A. Gammerman, and G. Shafer, Algorithmic Learning in a Random World. New York, NY, USA: Springer, 2005.
- [13]A. N. Angelopoulos and S. Bates, “A gentle introduction to conformal prediction and distribution-free uncertainty quantification,” 2021, arXiv:2107.07511.arxiv.org/abs/2107.07511
- [14]R. F. Barber, E. J. Candès, A. Ramdas, and R. J. Tibshirani, “Conformal prediction beyond exchangeability,” Ann. Statist., vol. 51, no. 2, pp. 816–845, 2023.
- [15]T.-W. Hsu and H. Tsukamoto, “Statistical guarantees in data-driven nonlinear control: conformal robustness for stability and safety,” IEEE Control Syst. Lett., vol. 9, pp. 997–1002, 2025.DOI
- [16]L. Lindemann, Y. Zhao, X. Yu, G. J. Pappas, and J. V. Deshmukh, “Formal verification and control with conformal prediction,” 2024, arXiv:2409.00536.arxiv.org/abs/2409.00536
- [17]K. Y. Chee, M. A. Hsieh, and G. J. Pappas, “Uncertainty quantification for learning-based MPC using weighted conformal prediction,” in Proc. IEEE CDC, 2023, pp. 342–349.DOI
- [18]F. L. Bauer and C. T. Fike, “Norms and exclusion theorems,” Numer. Math., vol. 2, pp. 137–141, 1960.DOI


