Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

20 July 2026

17 Pages

Stability-Certified ResNN-Based Consensus Control for Multi-Agent Systems via Certificate-by-Construction Training

,
,
and
1
College of Computer and Information Engineering, Nanjing Tech University, Nanjing 211816, China
2
College of Electronic Countermeasures, National University of Defense Technology, Hefei 230031, China
*
Author to whom correspondence should be addressed.

Abstract

This paper develops a stability-certified distributed residual neural network (ResNN) controller for leaderless consensus of continuous-time first-order multi-agent systems over undirected connected graphs. Unlikeconventional linear protocols and post-training verification methods, the proposed framework combines nonlinear transient shaping with certificate feasibility throughout learning. Each agent uses relative state differences with neighboring agents and applies a shared ResNN policy composed of a linear diffusive backbone and a bias-free neural residual branch. A computable residual-gain bound yields a sufficient condition for global exponential consensus, with the certified rate determined by the backbone–residual gain margin and the algebraic connectivity of the graph. Spectral-norm projection and gain reparameterization preserve this condition after every training update. A complementary forward-Euler certificate provides an explicit step-size condition for exponentially convergent digital implementation. The controller is trained through differentiable closed-loop simulation using an objective that balances disagreement and control effort. Ournumerical results verify the certified decay bound, demonstrate competitive transient trade-offs against three baselines, and evaluate direct deployment across different graph topologies and network sizes.

1. Introduction

Distributed coordination of networked multi-agent systems (MASs) is a cornerstone of modern control, with applications in multi-robot teams, multi-UAV systems, and networked spacecraft [1,2,3,4]. Among various objectives, consensus and formation coordination provide canonical mechanisms for agreement, synchronization, and cooperative motion, and they admit scalable neighbor-based distributed control laws; see, e.g., [5,6,7,8,9,10]. Despite the mature solvability theory, achieving fast and well-shaped transients in practical networks remains nontrivial: fixed-form linear protocols often require careful gain/weight tuning [11], they can be conservative under uncertainties and delays [12,13], and they face an inherent disagreement–effort trade-off governed by a small set of parameters [14,15]. Related studies have also investigated adaptive event-triggered tracking and communication-efficient cooperative control [16,17,18].
Learning-enabled controllers, especially neural network (NN) policies, offer a powerful avenue to improve transient behavior and adapt to complex dynamics [19,20]. However, embedding NNs into feedback loops raises a central concern: while expressive, NN-induced nonlinear maps are difficult to analyze and may jeopardize closed-loop stability and robustness [21,22]. In addition, unconstrained training may violate safety constraints during exploration or become fragile in the presence of unmodeled perturbations [23,24].
These concerns have spurred extensive research on stability-guaranteed learning, where learning is coupled with explicit certificates, e.g., Lyapunov-based constructions and convex relaxations [21,22,25,26,27]. On the one hand, verification-oriented tools such as IQC/QC analysis can certify stability/robustness for feedback interconnections containing NN blocks [21,22,28]. On the other hand, Lipschitz-constrained architectures and spectral-norm regularization/normalization provide practical handles to control NN gains during training [29,30,31]. Existing stability-certified neural control methods either verify a trained controller using quadratic constraints or Lyapunov inequalities, or they incorporate stability conditions into controller learning [21,22,25,26,27]. Most of these methods focus on a single plant. For example, the neural observer in [32] combines a model-based observer with a neural correction term for an uncertain nonlinear system. These results do not directly guarantee consensus of a graph-coupled multi-agent closed loop or preserve certificate feasibility throughout training.
To address this gap, we propose a distributed ResNN controller composed of a linear diffusive backbone and a bias-free neural residual branch. Each agent applies the same policy to its local diffusive signal. A computable residual-gain bound yields a sufficient condition for global exponential consensus, whose certified rate depends on the backbone–residual gain margin and the algebraic connectivity of the graph. A complementary forward-Euler condition provides an explicit step-size bound for convergent digital implementation. Spectral-norm projection and gain reparameterization preserve the continuous-time certificate after each training update, while the digital-stability margin is checked before closed-loop rollouts. Global graph information is used only during offline training, whereas online execution requires only local relative-state information and the shared policy. Our numerical experiments compared the proposed controller with representative baselines, verified the certified decay bound, and examined direct deployment across different graph topologies and network sizes.
The main contributions are summarized as follows:
  • We propose a distributed ResNN consensus controller that combines a linear diffusive backbone with a bias-free neural residual branch. Unlike a fixed-gain linear protocol, the proposed policy provides state-dependent transient shaping while preserving the neighbor-based information pattern.
  • We derive a sufficient certificate for global exponential consensus, explicitly relating the certified rate to the backbone–residual gain margin and the algebraic connectivity of the graph. We also establish a forward-Euler step-size condition for exponentially convergent digital implementation.
  • We develop a certificate-by-construction training method that keeps the sufficient consensus condition satisfied after every optimization update. Spectral-norm projection bounds the residual gain, and gain reparameterization maintains a strictly positive certificate margin before the next closed-loop rollout.
The rest of this paper is organized as follows. Section 2 introduces notation and graph preliminaries; Section 3 formulates the problem and presents the ResNN-based controller; Section 4 establishes the consensus certificate; Section 5 describes the certificate-by-construction training procedure; and Section 6 and Section 7 present our numerical experiments and conclude the paper.

2. Preliminaries and Notation

2.1. Notation

Let R denote the set of real numbers and Z ≥ 0 denote the set of non-negative integers. For a scalar a ∈ R , | a | denotes its absolute value. For a vector v ∈ R n , ∥ v ∥ denotes the Euclidean norm. For a matrix M, ∥ M ∥ 2 denotes the spectral norm and M ⊤ denotes the transpose. For a symmetric matrix M, M ⪰ 0 ( M ≻ 0 ) means that M is positive semidefinite (positive definite). The identity matrix of dimension n is denoted by I n , and the all-one vector of dimension N is denoted by 1 N . For vectors v 1 , … , v N with compatible dimensions, define col ( v 1 , … , v N ) : = v 1 ⊤ , … , v N ⊤ ⊤ . Throughout the paper, the bracketed superscript [ l ] denotes a layer index (not a power).
A mapping f : R m → R p is (globally) Lipschitz if there exists ζ ≥ 0 such that
∥ f ( x ) − f ( y ) ∥ ≤ ζ ∥ x − y ∥ , ∀ x , y ∈ R m .
The (global) Lipschitz constant is defined by
Lip ( f ) : = inf ζ ≥ 0 : ∥ f ( x ) − f ( y ) ∥ ≤ ζ ∥ x − y ∥ , ∀ x , y ∈ R m .

2.2. Graph Theoretic Preliminaries

Consider an undirected weighted graph G = ( V , E , A ) with node set V = { 1 , … , N } , edge set E ⊆ V × V , and a symmetric adjacency matrix A = [ a i j ] satisfying a i j = a j i ≥ 0 and a i j > 0 if and only if ( i , j ) ∈ E . The neighbor set of agent i is N i : = { j ∈ V ∣ ( i , j ) ∈ E } . Let D = diag ( d 1 , … , d N ) be the degree matrix with d i : = ∑ j = 1 N a i j and define the Laplacian matrix L : = D − A .
For an undirected connected graph, L is symmetric and positive semi-definite with L 1 N = 0 . We denote its eigenvalues by 0 = λ 1 < λ 2 ≤ ⋯ ≤ λ N , where λ 2 is the algebraic connectivity and λ N is the largest Laplacian eigenvalue.

3. Problem Formulation and ResNN-Based Controller

Consider a leaderless multi-agent system consisting of N agents indexed by V = { 1 , … , N } . The communication topology is described by a graph G .
Assumption 1.
The graph G is undirected and connected.
Each agent is modeled as a first-order integrator:
x ˙ i ( t ) = u i ( t ) , i = 1 , … , N , t ≥ 0 ,
where x i ( t ) ∈ R is the agent state and u i ( t ) ∈ R is the control input.
Remark 1.
The first-order integrator model is adopted to present the certificate-by-construction mechanism in a transparent setting. Under this model, the effects of the residual-gain bound, the certified margin, and the graph connectivity can be isolated without introducing additional model-dependent conditions. Therefore, the present theoretical result should be interpreted as a foundational result for the proposed training principle rather than as a general certificate for arbitrary multi-agent dynamics. Extending the framework to higher-order, heterogeneous, or nonlinear agents requires a stabilizing model-based backbone and a residual branch whose gain can be incorporated into an appropriate Lyapunov or input–output stability condition. Such extensions generally lead to matrix-valued certificates rather than the scalar gain-dominance condition used in this paper.
Motivated by the backbone–residual decomposition used in the neural observer of [32], we parameterize the distributed controller by a residual neural network (ResNN) policy [33], denoted by π θ ( · ) , where θ collects the architecture hyperparameters and trainable parameters. Each agent computes the local diffusive signal
s i ( t ) = ∑ j ∈ N i a i j x j ( t ) − x i ( t )
and applies a shared policy
u i ( t ) = π θ s i ( t ) , i = 1 , … , N .
This information pattern is fully decentralized, since only relative state differences with neighboring agents are required online.
All agents share the same scalar policy map π θ : R → R , parameterized as
π θ ( v ) = k v + ϕ θ ^ ( v ) ,
where k ∈ R is a shortcut gain and ϕ θ ^ ( · ) is a bias-free multilayer perceptron (MLP) residual branch; see Figure 1. The ResNet-style skip connection makes the linear diffusive backbone explicit and isolates the learnable residual correction.
Figure 1. ResNN policy parameterization (3): a linear shortcut k v plus a bias-free MLP residual term ϕ θ ^ ( v ) .
Let σ : R → R denote the neuron activation, and assume σ ( 0 ) = 0 and Lip ( σ ) ≤ 1 . For any n ∈ Z ≥ 1 , define the componentwise lifting σ [ n ] : R n → R n by
σ [ n ] ( z ) : = col σ ( z 1 ) , … , σ ( z n ) , z ∈ R n .
The residual branch has Ω hidden layers with widths { n l } l = 1 Ω and scalar input/output n 0 = n Ω + 1 = 1 . Define h [ 0 ] = v , and for l = 1 , … , Ω ,
z [ l ] = W [ l ] h [ l − 1 ] , h [ l ] = σ [ n l ] ( z [ l ] ) ,
where W [ l ] ∈ R n l × n l − 1 . The output layer is linear,
ϕ θ ^ ( v ) = W [ Ω + 1 ]   h [ Ω ] , W [ Ω + 1 ] ∈ R 1 × n Ω .
No bias terms are used in any layer; together with σ ( 0 ) = 0 , this yields ϕ θ ^ ( 0 ) = 0 . The parameter set of the ResNN policy π θ ( · ) is
θ : = ( S , θ ^ , k ) = Ω , { n l } l = 0 Ω + 1 , W [ 1 ] , … , W [ Ω + 1 ] , k ,
where S : = Ω , { n l } l = 0 Ω + 1 denotes the architecture hyperparameters and θ ^ = { W [ l ] } l = 1 Ω + 1 collects the residual-branch weight matrices.
Assumption 2 (Residual gain bound).
The residual mapping ϕ θ ^ : R → R satisfies ϕ θ ^ ( 0 ) = 0 and there exists a constant β ≥ 0 such that
| ϕ θ ^ ( v ) | ≤ β | v | , ∀ v ∈ R .
Remark 2.
Assumption 2 is naturally satisfied by the bias-free network architecture adopted in this work. Specifically, we implement ϕ θ ^ ( · ) as a bias-free MLP with pointwise activations σ ( · ) obeying σ ( 0 ) = 0 and Lip ( σ ) ≤ 1 . In this case, the residual mapping satisfies the global gain bound
| ϕ θ ^ ( v ) | ≤ β ub ( θ ^ ) | v | , ∀ v ∈ R ,
with the computable estimate β ub ( θ ^ ) : = ∏ l = 1 Ω + 1 ∥ W [ l ] ∥ 2 . Therefore, (7) holds for any β ≥ β ub ( θ ^ ) . This bound is sufficient (not necessary) for Assumption 2, but it is computable and compatible with layerwise spectral control during training.
Stacking (2), the closed-loop dynamics of (1) can be written compactly as
x ˙ ( t ) = u ( t ) , u ( t ) = k s ( t ) + Φ θ ^ s ( t ) , s ( t ) = − L x ( t ) ,
where x ( t ) , u ( t ) , s ( t ) ∈ R N are stacked vectors x ( t ) = col x 1 ( t ) , … , x N ( t ) (similarly for u ( t ) and s ( t ) ), and
Φ θ ^ ( s ) : = col ϕ θ ^ ( s 1 ) , … , ϕ θ ^ ( s N )
denotes the componentwise application of the scalar residual map ϕ θ ^ ( · ) .
Define the consensus error for each agent as
δ i ( t ) : = x i ( t ) − 1 N ∑ j = 1 N x j ( t ) ,
and stack δ ( t ) = col δ 1 ( t ) , … , δ N ( t ) . Then
δ ( t ) = H x ( t ) , H : = I N − 1 N 1 N 1 N ⊤ .
Note that δ ( t ) = 0 if and only if x ( t ) ∈ span { 1 N } , i.e., consensus achievement.
Our objective is to design the shared ResNN policy (2) satisfying Assumption 2 such that the leaderless MAS (1) over the undirected connected graph in Assumption 1 achieves consensus, i.e.,
∥ δ ( t ) ∥ → 0 as t → ∞ ,
which is equivalent to pairwise agreement:
lim t → ∞ x i ( t ) − x j ( t ) = 0 , ∀ i , j ∈ V .
Remark 3.
The linear diffusive protocol u i ( t ) = k s i ( t ) is a classical scalable design that guarantees leaderless consensus over undirected connected graphs [5,6]. Nevertheless, its transient behavior is governed by a single scalar gain k: increasing k can accelerate disagreement attenuation but also increases actuation magnitude, leading to a limited disagreement–effort trade-off within the linear family. The residual policy (2) augments this backbone with a state-dependent correction ϕ θ ^ ( · ) driven by the same local diffusive signal, enabling richer transient shaping (e.g., stronger feedback far from consensus and milder inputs near agreement) while preserving fully decentralized execution. Importantly, our subsequent analysis shows that such transient improvements can be pursued without compromising provable consensus as long as the residual mapping satisfies a verifiable global gain bound and the backbone gain maintains a positive certificate margin.

4. Consensus Certificate and Stability Analysis

This section establishes a verifiable exponential-consensus certificate for the continuous-time closed loop (8) under Assumption 1.
Lemma 1
(Spectral bounds of the Laplacian quadratic form [8]). Under Assumption 1, for any x ∈ R N and δ = H x with H in (9), it holds that
λ 2 ∥ δ ∥ 2 ≤ x ⊤ L x ≤ λ N ∥ δ ∥ 2 .
Theorem 1 (Exponential-consensus certificate).
Consider the continuous-time MAS (1) over an undirected connected graph (Assumption 1), controlled by the distributed ResNN policy (2) with π θ ( v ) = k v + ϕ θ ^ ( v ) . Suppose Assumption 2 holds with some β ≥ 0 and choose
k > β .
Then global leaderless consensus is achieved. Moreover, the disagreement energy V ( x ) = 1 2 x ⊤ L x decays exponentially as
V x ( t ) ≤ exp − 2 ( k − β ) λ 2 t V x ( 0 ) , ∀ t ≥ 0 .
Proof. 
Recall from (8) that s ( t ) = − L x ( t ) and u ( t ) = k s ( t ) + Φ θ ^ ( s ( t ) ) . Under Assumption 2, for each component,
s i ϕ θ ^ ( s i ) ≥ − | s i | | ϕ θ ^ ( s i ) | ≥ − β | s i | 2 ,
and summing over i yields
s ⊤ Φ θ ^ ( s ) ≥ − β ∥ s ∥ 2 .
Consider the Lyapunov function
V ( x ) : = 1 2 x ⊤ L x ≥ 0 .
Along trajectories of (8),
V ˙ ( x ( t ) ) = x ( t ) ⊤ L x ˙ ( t ) = − s ( t ) ⊤ u ( t ) = − k ∥ s ( t ) ∥ 2 − s ( t ) ⊤ Φ θ ^ s ( t ) .
Using (15) gives
V ˙ ( x ( t ) ) ≤ − ( k − β ) ∥ s ( t ) ∥ 2 .
Next, note that ∥ s ( t ) ∥ 2 = ∥ L x ( t ) ∥ 2 = x ( t ) ⊤ L 2 x ( t ) and L 2 ⪰ λ 2 L for undirected connected graphs. Therefore,
∥ s ( t ) ∥ 2 = x ( t ) ⊤ L 2 x ( t ) ≥ λ 2 x ( t ) ⊤ L x ( t ) = 2 λ 2 V ( x ( t ) ) .
Combining (17) and (18) yields
V ˙ ( x ( t ) ) ≤ − 2 ( k − β ) λ 2 V ( x ( t ) ) .
Gronwall’s inequality gives (14), hence V ( x ( t ) ) → 0 exponentially. Finally, by Lemma 1, V ( x ( t ) ) → 0 implies ∥ δ ( t ) ∥ → 0 , establishing leaderless consensus.    □
Remark 4.
The certified rate in (14) depends on the margin ( k − β ) and the algebraic connectivity λ 2 . A larger margin or larger λ 2 yields a faster certified decay. In implementation, m = k − β ub measures the certified dominance of the linear backbone over the residual branch. A larger margin provides greater tolerance to residual-gain variation before the sufficient condition is lost.
Setting ϕ θ ^ ≡ 0 reduces (2) to the classical linear diffusive protocol u i ( t ) = k s i ( t ) , for which Theorem 1 recovers the standard exponential consensus result [5,6].

5. Certificate-by-Construction Training via Differentiable Simulation

This section presents a certificate-by-construction training procedure for the distributed ResNN controller (2), aimed at improving transient performance while enforcing the sufficient condition in Theorem 1 at every optimization iteration.

5.1. Certificate-by-Construction Parameterization

Recall that ϕ θ ^ is implemented as a bias-free MLP with pointwise activation σ ( · ) satisfying σ ( 0 ) = 0 and Lip ( σ ) ≤ 1 . Using (4) and (5), for any v , w ∈ R ,
∥ h [ l ] ( v ) − h [ l ] ( w ) ∥ = ∥ σ [ n l ] W [ l ] h [ l − 1 ] ( v ) − σ [ n l ] W [ l ] h [ l − 1 ] ( w ) ∥ ≤ Lip ( σ ) ∥ W [ l ] h [ l − 1 ] ( v ) − h [ l − 1 ] ( w ) ∥ ≤ ∥ W [ l ] ∥ 2 ∥ h [ l − 1 ] ( v ) − h [ l − 1 ] ( w ) ∥ ,
Iterating over l = 1 , … , Ω and applying the output layer yields
| ϕ θ ^ ( v ) − ϕ θ ^ ( w ) | ≤ ∥ W [ Ω + 1 ] ∥ 2 ∥ h [ Ω ] ( v ) − h [ Ω ] ( w ) ∥ ≤ ∥ W [ Ω + 1 ] ∥ 2 ∏ l = 1 Ω ∥ W [ l ] ∥ 2 | v − w | = ∏ l = 1 Ω + 1 ∥ W [ l ] ∥ 2 | v − w | .
Therefore, by defining
β ub ( θ ^ ) : = ∏ l = 1 Ω + 1 ∥ W [ l ] ∥ 2 ,
and taking w = 0 , we obtain the global gain bound
| ϕ θ ^ ( v ) | = | ϕ θ ^ ( v ) − ϕ θ ^ ( 0 ) | ≤ β ub ( θ ^ ) | v | , ∀ v ∈ R .
In particular, we enforce a certificate margin by construction. Theorem 1 requires k > β , where β is the (unknown) global gain bound of the residual map in Assumption 2. Since β is generally intractable to compute for a neural network, we work with the computable upper bound β ub ( θ ^ ) in (19) and maintain
k > β ub ( θ ^ )
at every optimization iteration. This is achieved by coupling a projection step that controls β ub ( θ ^ ) and a strictly feasible parameterization of k.
First, we parameterize the layerwise spectral-norm limits by
c l = c min + ( c max − c min ) sig ( ν l ) , l = 1 , … , Ω + 1 ,
where ν l are trainable scalars and 0 < c min < c max are to be chosen. In (21), sig ( · ) denotes the logistic sigmoid function,
sig ( z ) : = 1 1 + e − z , z ∈ R .
After each gradient update, we enforce the layerwise spectral-norm constraints by the following projection (spectral clipping) [29,30,31],
W [ l ] ← min 1 , c l ∥ W [ l ] ∥ 2 W [ l ] , l = 1 , … , Ω + 1 ,
so that ∥ W [ l ] ∥ 2 ≤ c l holds for all layers at every iteration. Then, given β ub ( θ ^ ) , we set
k ( κ ) = β ub ( θ ^ ) + ln 1 + e κ ,
which guarantees k ( κ ) − β ub ( θ ^ ) > 0 for all κ ∈ R .
The unconstrained variables κ and ν l are optimized directly, while (23) guarantees k > β ub ( θ ^ ) and (21) ensures c l ∈ ( c min , c max ) . Together with spectral projection, these parameterizations maintain certificate feasibility after each update.

5.2. Differentiable Simulation and Rollout Objective

We train the ResNN-based controller end-to-end via differentiable simulation of the continuous-time closed loop (8) over a finite horizon [ 0 , T ] . The rollout objective is defined as
L ( θ ^ , κ , ν ) : = E x ( 0 ) ∼ D J { x ( t ) , u ( t ) } t ∈ [ 0 , T ] ,
where J ( · ) encodes the desired transient performance criteria.
Remark 5.
The rollout functional J ( · ) can be tailored to different transient objectives (e.g., faster convergence, reduced actuation, or smoother inputs). Importantly, the proposed certificate-by-construction mechanism is agnostic to the specific choice of J ( · ) : it enforces the certified margin condition k > β ub ( θ ^ ) via gain parameterization and spectral projection, which in turn guarantees consensus under the sufficient condition of Theorem 1. For instance, one may use time-varying weights to emphasize early-time error reduction, add an input-variation penalty such as ∫ 0 T ∥ u ˙ ( t ) ∥ 2 d t to promote smoother actuation, or include a state-magnitude regularizer to discourage large excursions, e.g., ∫ 0 T ∥ x ( t ) ∥ 2 d t (or ∫ 0 T ∥ δ ( t ) ∥ 2 d t when only the disagreement component is penalized).
In implementation, we approximate (24) using a fixed-step forward-Euler scheme [34,35]. Let t m = m h and choose K such that T = K h . With x [ m ] ≈ x ( t m ) , the discretized closed loop is
x [ m + 1 ] = x [ m ] + h u [ m ] , u [ m ] = k s [ m ] + Φ θ ^ ( s [ m ] ) , s [ m ] = − L x [ m ] .
Although Theorem 1 guarantees exponential consensus in continuous time, the Euler implementation requires an additional step-size condition.
Proposition 1 (Forward-Euler implementation certificate).
Suppose that the residual branch satisfies | ϕ θ ^ ( v ) | ≤ β ub | v | for all v ∈ R and that k > β ub . Define the digital-stability margin
μ h ub : = k − β ub − h λ N 2 ( k + β ub ) 2 .
If μ h ub > 0 , equivalently,
0 < h < 2 ( k − β ub ) λ N ( k + β ub ) 2 ,
then the Euler-discretized closed loop (25) achieves exponential consensus. In particular,
V ( x [ m ] ) ≤ ρ h m V ( x [ 0 ] ) , ρ h : = 1 − 2 h μ h ub λ 2 ∈ [ 0 , 1 ) .
Proof. 
Using V ( x ) = 1 2 x ⊤ L x and (25), the one-step variation of V is
V ( x [ m + 1 ] ) − V ( x [ m ] ) = h x [ m ] ⊤ L u [ m ] + h 2 2 u [ m ] ⊤ L u [ m ] = − h s [ m ] ⊤ u [ m ] + h 2 2 u [ m ] ⊤ L u [ m ] .
The residual-gain bound gives − s [ m ] ⊤ u [ m ] ≤ − ( k − β ub ) ∥ s [ m ] ∥ 2 . Moreover, ∥ u [ m ] ∥ ≤ ( k + β ub ) ∥ s [ m ] ∥ and u [ m ] ⊤ L u [ m ] ≤ λ N ∥ u [ m ] ∥ 2 . Hence,
u [ m ] ⊤ L u [ m ] ≤ λ N ( k + β ub ) 2 ∥ s [ m ] ∥ 2 .
Substituting these bounds into (29) yields
V ( x [ m + 1 ] ) − V ( x [ m ] ) ≤ − h μ h ub ∥ s [ m ] ∥ 2 ,
where μ h ub is defined in (26). Since ∥ s [ m ] ∥ 2 = x [ m ] ⊤ L 2 x [ m ] ≥ 2 λ 2 V ( x [ m ] ) , (30) gives
V ( x [ m + 1 ] ) ≤ 1 − 2 h μ h ub λ 2 V ( x [ m ] ) .
It remains to verify that the coefficient in (31) lies in [ 0 , 1 ) . Define
ξ : = h λ N ( k + β ub ) 2 k − β ub .
Under (27), ξ ∈ ( 0 , 2 ) , and
0 < 2 h μ h ub λ 2 = λ 2 λ N k − β ub k + β ub 2 ξ ( 2 − ξ ) ≤ 1 .
Therefore, ρ h = 1 − 2 h μ h ub λ 2 ∈ [ 0 , 1 ) . Recursively applying (31) yields (28).    □
The step size h is chosen such that μ h ub > 0 . After each spectral projection, β ub and k are recomputed, and the digital-stability margin is verified before the next rollout. A positive margin guarantees exponential consensus of the Euler-discretized closed-loop trajectories, but it does not imply global convergence of the nonconvex training problem. The resulting certificate-by-construction training procedure is summarized in Algorithm 1.
Algorithm 1 Certificate-by-construction training via differentiable simulation
  1:
Input: Laplacian L, integration step h, horizon K  ( T = K h ) , weight γ , bounds ( c min , c max ) , and optimizer stepsize.
  2:
Initialize: weights θ ^ = { W [ l ] } l = 1 Ω + 1 and scalars κ and ν = { ν l } l = 1 Ω + 1 .
  3:
Compute { c l } l = 1 Ω + 1 via (21) and apply spectral clipping (22).
  4:
Compute β ub ( θ ^ ) and set k via (19) and (23).
  5:
Compute μ h ub via (26) and verify μ h ub > 0 .
  6:
for each training iteration do
  7:
    Compute { c l } l = 1 Ω + 1 , β ub ( θ ^ ) , and k.
  8:
    Sample a mini-batch of initial conditions x [ 0 ] ∼ D .
  9:
    for  m = 0 to K − 1  do
10:
         s [ m ] ← − L x [ m ] .
11:
         u [ m ] ← k s [ m ] + Φ θ ^ ( s [ m ] ) .
12:
         x [ m + 1 ] ← x [ m ] + h u [ m ] .
13:
    end for
14:
    Evaluate L ( θ ^ , κ , ν ) using (24).
15:
    Perform a tentative gradient update by backpropagating through the rollout.
16:
    Recompute { c l } l = 1 Ω + 1 and apply spectral clipping (22).
17:
    Recompute β ub ( θ ^ ) and update k.
18:
    Recompute μ h ub ; if μ h ub ≤ 0 , reject the tentative update and retain the previous feasible iterate.
19:
end for
20:
Output: projected weights θ ^ and shortcut gain k satisfying μ h ub > 0 .
Remark 6.
Algorithm 1 is consistent with the CTDE principle [36]. Let C ϕ : = ∑ l = 1 Ω + 1 n l n l − 1 denote the dominant cost of one ResNN forward pass. For a mini-batch of size B and rollout horizon K, differentiable simulation and backpropagation have complexity O B K ( | E | + N C ϕ ) under a sparse graph implementation. The residual-gain computation, spectral projection, digital-margin evaluation, and gain reparameterization are all performed offline. During online deployment, agent i only computes its local diffusive signal and evaluates the shared policy, with complexity O ( d i + C ϕ ) , where d i is its local degree. Thus, the proposed certificate mechanism introduces no online certification step and no additional communication overhead.

6. Numerical Experiments

For this section, we evaluated the transient behavior of the proposed ResNN-based consensus controller trained by the certificate-by-construction procedure in Section 5. All simulations implemented the decentralized control law, under which each agent uses only relative state information from its neighbors.

6.1. Experimental Setup

We considered the MAS (1) controlled by the distributed ResNN-based controller (2). We used a fixed undirected connected graph with N = 5 agents and unit edge weights, shown in Figure 2. Its Laplacian eigenvalues were λ 2 = 1.381966 and λ N = 4.618034 .
Figure 2. Communication topology used in simulations ( N = 5 , undirected, unit edge weights).
To instantiate the functional J ( · ) in (24), we used the quadratic disagreement–effort trade-off
J = ∫ 0 T 1 N ∥ δ ( t ) ∥ 2 + γ 1 N ∥ u ( t ) ∥ 2 d t ,
where γ ≥ 0 weights the control effort and δ ( t ) is defined in (9). We set γ by loss-scale normalization at initialization so that the disagreement and effort terms had comparable magnitudes, which yielded γ = 0.127842 .
We adopted the ResNN parameterization (3) with Ω = 2 hidden layers and widths ( n 0 , n 1 , n 2 , n 3 ) = ( 1 , 16 , 16 , 1 ) , using ReLU activations. The controller was trained for 2000 iterations following Algorithm 1, with the hyperparameters summarized in Table 1.
Table 1. Key hyperparameters used in Section 6.
The training loss stabilized, and the learned gain k maintained a strictly positive certified margin m = k − β ub , as shown in Figure 3.
Figure 3. Training diagnostics of the proposed certificate-by-construction method: (a) training loss versus iterations, smoothed over 20 iterations; (b) evolution of the shortcut gain k and residual-gain bound β ub . The certified margin m = k − β ub remained strictly positive throughout the training.

6.2. Baselines, Metrics, and Main Results

We compared the proposed ResNN-based controller against:
  • BL1 (Linear, same gain): u i ( t ) = k s i ( t ) , where k was exported by the proposed controller (Table 2).
  • BL2 (Linear, tuned gain): u i ( t ) = k lin s i ( t ) , where k lin was selected by grid search to minimize the same objective (33) on a validation set with ϕ θ ^ ≡ 0 ; we obtained k lin = 1.05 .
  • BL3 (Unconstrained ResNN): the same ResNN architecture and rollout objective were used, but both the spectral clipping step (22) and the margin-enforcing shortcut-gain parameterization (23) were removed.
Table 2. Certificate diagnostics of the proposed controller and baselines.
Consistent with (33), we evaluated the transient performance by the following metrics:
J x : = ∫ 0 T 1 N ∥ δ ( t ) ∥ 2 d t , J u : = ∫ 0 T 1 N ∥ u ( t ) ∥ 2 d t , J total : = J x + γ J u .
Here, J x quantifies the accumulated disagreement energy over [ 0 , T ] , J u quantifies the accumulated control effort, and J total is the loss-aligned composite score balancing disagreement and effort via γ . Table 2 summarizes the certificate diagnostics of the four controllers.
For the trained controller on the original graph, the selected step h = 0.001 gave μ h ub = 0.15599 > 0 . Therefore, by Proposition 1, the Euler-discretized closed-loop implementation is exponentially convergent.
Figure 4 compares the mean disagreement energy and the mean control effort over time. Table 3 reports the aggregate metrics (mean ± std over N test = 200 trials).
Figure 4. Transient responses under the proposed controller and baselines. Left: mean disagreement E 1 N ∥ δ ( t ) ∥ 2 versus time; Right: mean effort E 1 N ∥ u ( t ) ∥ 2 versus time.
Table 3. Summary of transient performance over [ 0 , T ] (mean ± std over N test = 200 trials). Best (smallest) values in each column are highlighted in bold.
Compared with BL1, the proposed controller reduced the control effort from 2.416 to 1.721 , although BL1 achieved a smaller disagreement cost. The proposed controller and BL2 attained nearly identical J total values, so no strict superiority over BL2 is claimed. Since BL2 is linear, β ub = 0 and its gain condition was trivially satisfied.
The certificate-related comparison was therefore made with BL3, which used the same ResNN architecture without spectral clipping or gain reparameterization. BL3 yielded k − β ub = − 3.1353 and was not certified, while also producing a larger disagreement cost and composite score. Thus, the main advantage of the proposed method is certificate-preserving nonlinear policy learning rather than a uniformly lower J total than every tuned linear controller.

6.3. Transient Trade-Off Shaping by Sweeping γ

We further demonstrated that the proposed framework can generate a family of controllers with different transient trade-offs by varying the effort weight γ in the instantiated objective (33). With the architecture and training procedure fixed, we re-trained a controller family Γ = { 0.25 γ , 0.5 γ , γ , 2 γ , 4 γ } and evaluated all the controllers on the same test set described in Section 6.1. All the controllers obtained in the γ sweep satisfied k > β ub and μ h ub > 0 .
Figure 5 shows that smaller γ yielded faster disagreement attenuation at the cost of larger effort, whereas larger γ reduced effort but slowed convergence, forming a clear Pareto-type trade-off.
Figure 5. Sweep over γ : mean disagreement energy and control effort curves.
Figure 6a visualizes the trade-off in the ( J u , J x ) plane, while Figure 6b–e shows representative state trajectories under different effort weights.
Figure 6. Transient trade-off shaping under different effort weights: (a) Pareto visualization of the γ sweep in the ( J u , J x ) plane; (b–e) representative state trajectories for 0.25 γ , 0.5 γ , 2 γ , and 4 γ , respectively.

6.4. Verification of the Certified Convergence Rate

To verify the certified convergence rate in Theorem 1, we used the original five-agent graph and trained controller. We defined the empirical mean normalized Lyapunov energy as
R V ( t ) : = 1 N test ∑ q = 1 N test V ( x ( q ) ( t ) ) V ( x ( q ) ( 0 ) ) , V ( x ) = 1 2 x ⊤ L x ,
where N test = 200 . Since β ub was a valid global gain bound for the residual branch, Theorem 1 could be applied with β = β ub , yielding R V ( t ) ≤ exp [ − 2 ( k − β ub ) λ 2 t ] . With k = 1.44006 , β ub = 1.26715 , and λ 2 = 1.381966 , the certified decay rate was 2 ( k − β ub ) λ 2 = 0.47791 . A logarithmic vertical axis was used to compare the simulated decay with this certified bound.
As shown in Figure 7, the simulated normalized Lyapunov energy R V ( t ) decayed faster than the certified exponential bound. This result indicates that the convergence-rate estimate in Theorem 1 is conservative while still providing a valid upper bound on the observed closed-loop decay.
Figure 7. Verification of the certified convergence rate under the trained controller. The blue curve shows the simulated normalized Lyapunov energy R V ( t ) . The black dashed curve shows the certified bound exp [ − 2 ( k − β ub ) λ 2 t ] , where 2 ( k − β ub ) λ 2 = 0.47791 .

6.5. Topology and Network-Size Sensitivity

To examine topology and network-size sensitivity, the controller trained on the original five-agent graph was directly deployed, without retraining or parameter adjustment, on unit-weight ring, star, and complete graphs with N = 5 , 10, and 20. The trained parameters remained k = 1.44006 and β ub = 1.26715 . All controller parameters and evaluation settings, except for the topology and network size, were kept unchanged. For each N, the initial states were sampled independently from the same componentwise distribution specified in Table 1.
For each configuration, Table 4 reports the algebraic connectivity λ 2 , the digital-stability margin μ h ub , the total cost J total , and the terminal normalized Lyapunov energy R V ( T ) . The performance indices are reported as mean ± standard deviation over 200 trials.
Table 4. Topology and network-size sensitivity of the trained controller. Results are reported as mean ± standard deviation over 200 trials.
Table 4 shows that μ h ub > 0 for all tested configurations. For ring graphs, the total cost and terminal normalized Lyapunov energy increased with N, consistent with the decrease in λ 2 . The star graphs yielded similar terminal normalized Lyapunov energies across the tested network sizes. The complete graphs achieved the smallest terminal normalized Lyapunov energies, although their total cost increased with network size. These results demonstrate direct deployment across the tested configurations rather than unrestricted large-scale scalability.

7. Conclusions

This paper proposes a stability-certified ResNN controller for leaderless consensus of first-order multi-agent systems. A computable residual-gain bound yields an exponential-consensus certificate whose rate depends on the gain margin and graph connectivity. A complementary forward-Euler condition guarantees convergent digital implementation.
Spectral projection, gain reparameterization, and digital-margin verification preserve certificate feasibility throughout training. Our numerical results verified the certified decay bound, demonstrated competitive disagreement–effort trade-offs, and showed direct deployment across the tested graph topologies and network sizes.
The current analysis was limited to first-order agents over fixed undirected graphs. Future work will consider more general dynamics, directed or switching graphs, disturbances, delays, and event-triggered communication.

Author Contributions

Conceptualization, M.L. and M.K.; methodology, M.L.; software, M.L. and J.W.; validation, M.L., J.W. and Y.Z.; formal analysis, M.L. and M.K.; investigation, M.L. and J.W.; resources, M.L. and M.K.; data curation, J.W. and Y.Z.; writing—original draft preparation, M.L.; writing—review and editing, M.L., M.K., J.W. and Y.Z.; visualization, J.W. and Y.Z.; supervision, M.L. and M.K.; project administration, M.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding. The APC was funded by the authors.

Data Availability Statement

The simulation data, trained controller parameters, and scripts used to generate the figures and tables are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Xu, L.; Su, Y.; Cai, H. Cooperative global K-exponential tracking control of multiple mobile robots. IEEE Trans. Autom. Control 2025, 70, 1214–1221. [Google Scholar] [CrossRef] [Scilit]
  2. Yu, X.; Su, R. Decentralized circular formation control of nonholonomic mobile robots under a directed sensor graph. IEEE Trans. Autom. Control 2023, 68, 3656–3663. [Google Scholar] [CrossRef] [Scilit]
  3. Mu, X.; Gu, Z.; Lu, Q. Memory-event-triggered consensus control for multi-UAV systems against deception attacks. ISA Trans. 2023, 139, 95–105. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Hu, W.; Li, Z.; Dai, M.Z.; Huang, T. Robust adaptive control for spacecraft attitude synchronization subject to external disturbances: A performance adjustable event-triggered mechanism. Int. J. Robust Nonlinear Control 2023, 33, 2392–2408. [Google Scholar] [CrossRef] [Scilit]
  5. Olfati-Saber, R.; Fax, J.A.; Murray, R.M. Consensus and Cooperation in Networked Multi-Agent Systems. Proc. IEEE 2007, 95, 215–233. [Google Scholar] [CrossRef] [Scilit]
  6. Ren, W.; Beard, R.W. Consensus Seeking in Multiagent Systems Under Dynamically Changing Interaction Topologies. IEEE Trans. Autom. Control 2005, 50, 655–661. [Google Scholar] [CrossRef] [Scilit]
  7. Mamoon, M.; Mustafa, G.; Iqbal, N.; Rehan, M.; Ahmed, I.; Khalid, M. An adaptive neural network approach for resilient leader-following consensus control of multi-agent systems under cyber-attacks. ISA Trans. 2025, 157, 20–34. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. Mesbahi, M.; Egerstedt, M. Graph Theoretic Methods in Multiagent Networks; Princeton University Press: Princeton, NJ, USA, 2010. [Google Scholar]
  9. Xie, K.; Zhao, X.; Chen, S.; Zhang, Z.; Zheng, Y. Distributed optimal consensus of nonlinear multi-agent systems under intermittent communication networks. ISA Trans. 2026, 169, 88–100. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  10. Zhang, J.; Zhang, H.; Sun, S. Adaptive Dynamic Event-Triggered Bipartite Time-Varying Output Formation Tracking Problem of Heterogeneous Multiagent Systems. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 12–22. [Google Scholar] [CrossRef] [Scilit]
  11. Xiao, L.; Boyd, S. Fast Linear Iterations for Distributed Averaging. Syst. Control Lett. 2004, 53, 65–78. [Google Scholar] [CrossRef] [Scilit]
  12. Li, Z.; Duan, Z.; Lewis, F.L. Distributed robust consensus control of multi-agent systems with heterogeneous matching uncertainties. Automatica 2014, 50, 883–889. [Google Scholar] [CrossRef] [Scilit]
  13. Zuo, Z.; Wang, C.; Ding, Z. Robust consensus control of uncertain multi-agent systems with input delay: A model reduction method. Int. J. Robust Nonlinear Control 2017, 27, 1874–1894. [Google Scholar] [CrossRef] [Scilit]
  14. Borrelli, F.; Keviczky, T. Distributed LQR Design for Identical Dynamically Decoupled Systems. IEEE Trans. Autom. Control 2008, 53, 1901–1912. [Google Scholar] [CrossRef] [Scilit]
  15. Zhang, H.; Hu, X. Consensus control for linear systems with optimal energy cost. Automatica 2018, 93, 83–91. [Google Scholar] [CrossRef] [Scilit]
  16. Hu, Z.; Ma, R. Adaptive event-triggered tracking control via switching functions. Automatica 2026, 185, 112813. [Google Scholar] [CrossRef] [Scilit]
  17. Liu, G.; Liang, H.; Wang, R.; Sui, Z.; Sun, Q. Adaptive Event-Triggered Output Feedback Control for Nonlinear Multiagent Systems Using Output Information Only. IEEE Trans. Syst. Man Cybern. Syst. 2025, 55, 7639–7650. [Google Scholar] [CrossRef] [Scilit]
  18. Zhang, D.; Meng, L.; Liang, L.; Qin, C.; Liu, D. Dynamic Event-Triggered Control for Human–Machine Cooperative Systems Based on Dynamic Authority Allocation. IEEE Trans. Syst. Man Cybern. Syst. 2026, 56, 3733–3744. [Google Scholar] [CrossRef] [Scilit]
  19. Levine, S.; Abbeel, P. Learning Neural Network Policies with Guided Policy Search under Unknown Dynamics. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 8–13 December 2014; Volume 27, pp. 1071–1079. [Google Scholar]
  20. Wu, H.; Fan, C.; Zhang, D. An innovative neural network architecture designed for industrial fault diagnosis with hierarchical adaptive attention mechanism. Process Saf. Environ. Prot. 2026, 205, 108162. [Google Scholar] [CrossRef] [Scilit]
  21. Yin, H.; Seiler, P.; Arcak, M. Stability Analysis Using Quadratic Constraints for Systems with Neural Network Controllers. IEEE Trans. Autom. Control 2022, 67, 1980–1987. [Google Scholar] [CrossRef] [Scilit]
  22. Fazlyab, M.; Morari, M.; Pappas, G.J. Safety Verification and Robustness Analysis of Neural Networks via Quadratic Constraints and Semidefinite Programming. IEEE Trans. Autom. Control 2022, 67, 1–15. [Google Scholar] [CrossRef] [Scilit]
  23. García, J.; Fernández, F. A Comprehensive Survey on Safe Reinforcement Learning. J. Mach. Learn. Res. 2015, 16, 1437–1480. [Google Scholar]
  24. de Souza, C.; Girard, A.; Tarbouriech, S. Event-triggered neural network control using quadratic constraints for perturbed systems. Automatica 2023, 157, 111237. [Google Scholar] [CrossRef] [Scilit]
  25. Berkenkamp, F.; Turchetta, M.; Schoellig, A.P.; Krause, A. Safe Model-Based Reinforcement Learning with Stability Guarantees. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30, pp. 908–918. [Google Scholar]
  26. Chow, Y.; Nachum, O.; Faust, A.; Dueñez-Guzmán, E.; Ghavamzadeh, M. Safe Policy Learning for Continuous Control. In Proceedings of the Conference on Robot Learning; PMLR: New York, NY, USA, 2021; Volume 155, pp. 801–821. [Google Scholar]
  27. Chang, Y.C.; Roohi, N.; Gao, S. Neural Lyapunov Control. In Proceedings of the Advances in Neural Information Processing Systems, Vancouver, BC, Canada, 8–14 December 2019; Volume 32, pp. 3240–3249. [Google Scholar]
  28. Megretski, A.; Rantzer, A. System Analysis via Integral Quadratic Constraints. IEEE Trans. Autom. Control 1997, 42, 819–830. [Google Scholar] [CrossRef] [Scilit]
  29. Gouk, H.; Frank, E.; Pfahringer, B.; Cree, M.J. Regularisation of Neural Networks by Enforcing Lipschitz Continuity. Mach. Learn. 2021, 110, 393–416. [Google Scholar] [CrossRef] [Scilit]
  30. Tsuzuku, Y.; Sato, I.; Sugiyama, M. Lipschitz-Margin Training: Scalable Certification of Perturbation Invariance for Deep Neural Networks. In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 2–8 December 2018; Volume 31, pp. 6542–6551. [Google Scholar]
  31. Miyato, T.; Kataoka, T.; Koyama, M.; Yoshida, Y. Spectral Normalization for Generative Adversarial Networks. In Proceedings of the International Conference on Learning Representations, Vancouver, BC, Canada, 30 April–3 May 2018. [Google Scholar]
  32. Chen, S.; Cai, S.; Chen, T.; Xu, C.; Chu, J. Neural Observer With Lyapunov Stability Guarantee for Uncertain Nonlinear Systems. IEEE Trans. Neural Netw. Learn. Syst. 2024, 35, 11527–11541. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  33. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep Residual Learning for Image Recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar] [CrossRef] [Scilit]
  34. Hairer, E.; Nørsett, S.P.; Wanner, G. Solving Ordinary Differential Equations I: Nonstiff Problems, 2nd ed.; Springer: Berlin/Heidelberg, Germany, 1993. [Google Scholar]
  35. Butcher, J.C. Numerical Methods for Ordinary Differential Equations, 3rd ed.; John Wiley & Sons: Chichester, UK, 2016. [Google Scholar]
  36. Lowe, R.; Wu, Y.; Tamar, A.; Harb, J.; Abbeel, P.; Mordatch, I. Multi-Agent Actor-Critic for Mixed Cooperative-Competitive Environments. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017; Volume 30, pp. 6379–6390. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.