Researchers propose using invertible neural networks to find provable forward invariant sets for AI control systemsToward AI Trustworthiness: Finding Analytically Proven Forward-Invariant Sets for AI-Controlled Systems
A given AI controller is mapped to a latent space via an invertible network, and α,β-CROWN is used to verify a hyperrectangular FIS; all 45 testbeds succeed, baseline is 0.
- Regulatory certification requires that a given AI controller have verifiable safety, and high nonlinearity makes forward invariant sets hard to find. If trajectories can be confined within a set disjoint from the unsafe set, initial states in that set can be certified.
- A normalized invertible network maps the discrete closed loop to a latent space, fixes a hypercube centered at the origin as the candidate, and trains the transformation with a deviation loss and a center loss. If α,β-CROWN confirms that the one-step image remains within the candidate, the authors prove that the candidate and its inverse image are FIS.
- On 45 given controllers across pendulum, cart pole, and PVTOL, this paper's success rate in finding FIS is 100%, while the rewritten Yang et al. baseline is 0%. The authors state that on 40/45 testbeds this paper takes less time; the PVTOL original-space FIS is much smaller than the preferred size.
- The authors state that computing the maximum feasible FIS given a forbidden set is beyond this paper and warrants a future paper; PVTOL only evaluates 5 due to computational budget. The evaluation covers 45 controllers across three application types, reporting success rate and FIS size, without reporting intersection with a specific F and Bed.
- Evaluated models
- Pendulum AI-controllerCart pole AI-controllerPVTOL AI-controller
- Benchmarks
- pendulum (Gymnasium)cart pole (Gymnasium)PVTOL
- Metrics
- success rate of finding FIStime costX0 FIS sizedimension-wise range sizedimension-wise center drift
The researchers propose a framework that uses invertible neural networks (INN) to transform the raw state space of AI control systems into a latent space, making rule-shaped forward invariant sets (FIS) more likely to exist, and then formally verifies them. The authors prove that, as long as verification passes, both the latent-space candidate set and its corresponding set transformed back to the original state space are analytically provable forward invariant sets; if this set excludes unsafe states, safety for initial states within it is guaranteed. Across 45 AI control systems on three representative control testbeds, the method finds certified forward invariant sets for all 45 systems, while an adapted state-of-the-art baseline finds none; it is faster on 40 of the 45 systems, and the centers of the obtained invariant sets roughly align with domain expert preferences.
Related events and news
1 events · 0 news mentions
- This event's paper
可逆神经网络为AI控制系统寻找可证明前向不变集
Paper analysis
What problem does this paper attempt to solve?
When the controller is given in advance, find an analytically provable forward invariant set for the AI control system.
The core problem is: given an AI controller in advance, how to find a provably forward-invariant set (FIS) such that trajectories stay within the set and do not intersect unsafe state sets.
- Certification scenario: The authors state that neural network controllers are used in nonlinear control problems that traditional control theory often handles poorly; aviation, autonomous driving, and surgical robotics often require certifiable trustworthiness due to regulations. When controllers are difficult to interpret or verify, the authors state certification bodies will not approve them.
- Role of FIS: An FIS is a subset of the state space such that any trajectory starting from any state within it remains within the subset forever. The authors state that if it does not intersect the unsafe set F, then trajectories starting inside the FIS do not intersect F, and institutions can trust the corresponding initial states.
- Existing gap: The authors state that finding an FIS is a known hard problem, harder with high nonlinearity. Yang et al. [14] jointly adjust the controller and Lyapunov function, not aimed at controllers given in advance (e.g., submitted by manufacturers for certification). α,β-CROWN can prove whether outputs on hyperrectangular input domains fall within a given polytope, but the authors state that for highly nonlinear systems, FISs are unlikely to be hyperrectangular.
- This paper proposes: Using an invertible network to map the original state space to a latent space, fixing a hyperrectangular candidate and training the transformation, then verifying with α,β-CROWN. The authors prove that when verification returns success, the candidate and its inverse image are both provably FISs.
What related research exists?
The authors place this paper in the certification scenario with a fixed controller, distinct from jointly training the controller and a Lyapunov function.
Write according to the comparisons in Section 2 and the introduction of the paper.
Invariant sets in traditional control
- LMI [22] [23] [24]: Classical method for finding FIS on linear systems. The paper points out that it requires purely linear dynamics and is not applicable to nonlinear AI control systems.
- Nonlinear system methods: Lyapunov indirect method, Zubov method, sum-of-squares programming, LaSalle invariance principle, Krasovskii method, variable gradient method. The paper states they assume linear, polynomial, or other analytically tractable closed-form dynamics; dynamics with neural networks are nonlinear, non-polynomial, and analytically intractable.
Using formal tools for neural networks
- SMT, MIP, HJ reachability, and SDP [36] [37] [38] [39]: Used to find FIS for neural networks. The paper states SMT, MIP, and HJ have scalability issues; SDP requires the network to be well approximated by smooth quadratic envelopes.
Controller tunable or already given
- Yang et al. [14]: The authors call it the then state-of-the-art method for finding FIS for AI control systems. It jointly trains the controller and Lyapunov function; if training succeeds, that function implies an FIS; the paper points out it is not designed for a controller given in advance.
- Harapanahalli et al. [40]: When the system is given in advance, it analytically proves whether a given parallelotope candidate is an FIS. The paper points out: if it fails to prove, it does not indicate how to find another candidate; this is a sufficient condition, not a method for actively searching for FIS.
Baseline and testbed
- Baseline: Modify Yang et al. [14] to prohibit modifying the controller during search. Plant models are from Gymnasium's pendulum and cart pole, and PVTOL from Yang et al.
The authors state that to their knowledge, no work in the literature addresses exactly the same problem; the difference from Yang et al. is that the controller is given in advance by the certification scenario, and an invertible network is used to transfer verification to a hyperrectangle in latent space.
How does the paper address this problem?
Fix a latent-space hyperrectangle, train a normalized invertible network, then use α,β-CROWN for one-step invariance verification.
Overall, Normalized INN (NINN) maps a given closed loop from the original space X0 to a latent space X1, fixes a hyperrectangular candidate and trains the transformation, then uses α,β-CROWN for analytical verification.
Discrete closed loop and the set to be found
- Object: The controller π is given in advance. The continuous plant is written as the derivative of x equals fplt(x, π(x)). The controller runs on a discrete computer, and the paper shifts the problem to the discrete closed loop under period δ, xd(k+1)=fcld(xd(k)), with zero-order hold execution.
- Discrete FIS: Starting from any xd(0) in Id, the discrete trajectory stays in Id forever. Proposition 2 states: if for every point in Id the next step is still in Id, then by induction Id is an FIS.
- Relation to continuous safety: The situation the authors discuss is that a discretization error bound Bed can be obtained from an execution bound Bad that does not depend on k; when the initial state is in Id, the continuous trajectory lies in the Minkowski sum of Id and Bed. The authors state that provable safety is that this sum is disjoint from F; when the system is inherently a discrete model, it is that Id is disjoint from F. For macroscopic physical objects, the authors state that when δ is sufficiently small Bed tends to empty, and one can empirically relax this to Id being disjoint from F. The authors state that the missing link is finding a hyperrectangular discrete FIS.
Latent-space candidate and NINN
- Bijection: NINN is the composition of a normalization layer Nnorm(μ, σ) and an invertible network (T, T^{-1}), giving a bijection between X0 and X1. μ and σ are given in advance. The authors state that they should correspond respectively to the center and the per-dimension radii of a preferred FIS in X0; if the safety set is a hyperrectangle, μ is its center and each component of σ is the corresponding half side length.
- Candidate fixed: In X1, take a hypercube centered at the origin. Id,1=C(Rfis) denotes that hypercube with ∞-norm radius equal to the preset constant Rfis; training does not change this set, only NINN. In experiments Rfis=1.0.
- "More regular": The authors define this as being able to find a hyperrectangular FIS in X1. The corresponding set in X0 is Id,0=T̃^{-1}(Id,1), whose shape is determined by the inverse transformation and need not be a hyperrectangle.
Training loss, sampling, and early stopping
- Deviation: Given a time horizon K, d* is the maximum amount by which a K-step trajectory exceeds a central hypercube, recorded as 0 if it does not exceed. The contraction radius Rshr=ρshr·Rfis, with ρshr∈(0,1]. The loss encourages points inside Id,1 to have d* equal to 0 relative to Rshr, and penalizes values greater than 0. The paper states that K can be chosen between 3 and 5 depending on compute; experiments use 3, with ρshr=0.995.
- Four subsets: interior points Zinr, boundary points Zb, adversarial points Zadv obtained by maximizing deviation relative to Rfis with PGD, and replay-region boundary points Zrep with large past deviations (Appendix A). The deviation loss weights the hardest fraction ρhrd of each subset and the whole set separately; the center loss encourages T̃^{-1}(0) to be close to μ. The total loss is the weighted sum of the two. The empirical weights the paper gives are wZinr=30, wZb=120, wZadv=80, wZrep=220, λ=0.15, wcen=5.
- Early stopping and replay: After several consecutive rounds in which all training points have d* equal to 0 relative to Rfis (not Rshr) and θstp is reached, sample Istp points with PGD; if they are still all 0 relative to Rfis, return early, otherwise reset the counter. Training for the full E rounds also returns the current NINN. The replay region stores at most Irep^max elements, sampling probability is proportional to historical deviation, and every Erep rounds the deviation is recomputed with the current network.
Verification and overall procedure
- Three steps: choose Id,1; train NINN with the above loss, thereby determining the closed loop fcld,1 in X1; call α_β_CROWN(f=fcld,1, X=Id,1, B=Id,1, Tmax). If it returns true, success; if false or unknown, failure. The paper does not describe an outer loop that changes Rfis and searches again after failure.
- Condition used by the theorem: ∀ x⃗∈ Id,1, fcld,1(x⃗)∈ Id,1. This is the one-step inclusion that α,β-CROWN establishes analytically when it returns true within the time limit; Theorem 1 accordingly states that Id,1 is an analytically provable hyperrectangular FIS on X1, and Id,0 is an analytically provable FIS on X0.
- Tool: α,β-CROWN requires the input domain to be a hyperrectangle and the output bound to be a polytope, and can handle various network layers and activations; on timeout it returns unknown. A hyperrectangle is also a polytope, so the candidate can serve as both the input domain and the output bound.
What experiments did the paper conduct?
On all 45 testbeds this paper finds an FIS, baseline is 0; the PVTOL original-space FIS is much smaller than the preferred size.
Experimental Setup
- Testbed: The plant models for pendulum and cart pole come from Gymnasium, and PVTOL comes from Yang et al. [14]. The state dimensions are 2, 4, and 6, and the actuation dimensions are 1, 1, and 2.
- Controllers under test: Using the reinforcement learning implementation of Stable Baselines3 (SB3), 20, 20, and 5 neural network controllers were trained respectively, for a total of 45. The number of internal neurons η: 128 for the first two, and 24 for PVTOL; the activation function is written as SB3 default. After training, the controllers are fixed and then connected back to the plant models.
- Baseline: A rewritten version of Yang et al. [14], where modifying the controller is prohibited during the search. The authors state that they did not change its source code, only the configuration to fix the controller, and two domain experts independently reviewed it. The ported plant models underwent same-input consistency checks.
- This paper's configuration: Table II. All three categories use Rfis=1.0, K=3, ρshr=0.995, ρhrd=0.25. μ and σ are set by domain experts. The training round limit E is 3000, 50000, and 100000. Tmax is set large enough that calls are not terminated due to hitting Tmax.
- Verification and metrics: Overall Procedure returns success, i.e., α,β-CROWN returns true for fcld,1 on Id,1. Runtime, the size of the FIS in X0 (Monte Carlo estimate), the size of each dimension's range, and the center drift are also reported. The paper does not report the number of repetitions for the same controller, nor does it use LLM review.
- Hardware: 32-core AMD Ryzen series CPU, 64 GB memory, NVIDIA GeForce RTX 4090 (24 GB VRAM).
Main Results
According to Table III:
Swipe horizontally to read the table
Application Number of controllers This paper's success rate Baseline success rate Pendulum 20 100% (20/20) 0% (0/20) Cart pole 20 100% (20/20) 0% (0/20) PVTOL 5 100% (5/5) 0% (0/5) - Success rate: The authors report that this paper found FIS on all 45 systems, while the baseline found none.
- Time: The main text does not give seconds. The authors state that on pendulum and cart pole, this paper's time is less than the baseline; on PVTOL, the baseline is smaller, and they state that this is partly because the baseline quickly confirms failure. The abstract states that on 40 of the 45, this paper's time is smaller. Fig. 3 is this comparison, with no readable endpoint values in the plain text.
- Comparison target: The authors state that the baseline's original method was not designed for a controller given in advance; the comparison here is against the version with controller modification prohibited.
Size of the FIS in X0
Only the FIS in the original space found by this paper is counted; the baseline has no FIS. The size is estimated with Monte Carlo: uniformly sample in a sufficiently large hyperrectangle C0, and multiply the proportion falling into Id,0 by the size of C0. The paper does not report the number of samples. The preferred size is based on the domain experts' μ and σ, assuming the preferred FIS is a hyperrectangle, taking the product of 2σ[i] for each dimension.
According to Table IV:
Swipe horizontally to read the table
Application min median mean max preferred Pendulum 0.929 1.307 1.288 1.308 1.800 Cart Pole 0.033 0.346 0.473 1.348 0.896 PVTOL 0.008 0.012 0.011 0.013 51.200 - The authors state that the sizes for pendulum and cart pole fluctuate between 3.7% and 150.4% of the preferred size.
- The authors state that PVTOL is only between 0.016% and 0.025% of the preferred size, and they believe this may be because the X0 FIS for PVTOL is highly nonlinear, while the preferred size is computed as a hyperrectangle.
- The authors state that a larger FIS means more choices for initial states; the institution trusts the system only when the initial state lies within the found FIS.
Per-Dimension Ranges and Center Drift
- Range: Table V gives the min, median, mean, max of each dimension's range, and the preferred range 2σ[i]. The authors state that each dimension's range fluctuates between 15.8% and 430.6% of the corresponding preferred value. In the table, for example, Cart Pole dimension 1 has max 3.014 and preferred 0.700; PVTOL dimension 3 has min 0.253 and preferred 1.600.
- Center: The values in Table VI are in units of 10^{-3}. The authors state that the center drift for each dimension is between −5.6% and 6.5% of the corresponding preferred range, and they believe the small drift may be related to the center loss; they also state that the centers roughly match the preferred centers set by the domain experts.
- Exceptions: The baseline has a success rate of 0 on all three categories. On PVTOL, this paper found an FIS, but the original-space size is very small relative to the preferred size; on this application, the authors state the baseline took less time.
Other Ablations and Analysis
- The paper does not report ablations on K, Rfis, ρshr, loss weights, or sampling scale.
- Table II: the number of interior and boundary point samples is 4096 for pendulum and cart pole, and 65536 for PVTOL; adversarial and replay samples are half of those.
- θstp is 3 (pendulum) or 5 (cart pole, PVTOL); Istp is 4096 or 16384; the replay overhaul period Erep is 25 for all.
- The authors state that the configuration other than μ and σ is best effort, and how to optimize it is beyond the scope of this paper (Section VI-A).
What are some points that can be further explored?
The authors leave the maximum feasible FIS for a given F as future work, and note that PVTOL was only evaluated on 5 cases.
Limitations and future directions noted by the authors
- Maximal feasible FIS: The authors write in Section VI-C that other evaluation metrics could exist; if the maximal feasible FIS were known, or further the maximal feasible FIS given a forbidden set F, existing metrics would be more relevant. Computing these quantities is a nontrivial problem beyond this paper's focus, which the authors say deserves multiple future papers. The authors position this paper as first providing a method that can find an FIS.
- Number of PVTOLs: The authors write in Section VI-C that due to limited compute budget, only 5 PVTOLs were evaluated instead of 20; they also state that the application-wise comparisons already reveal the important facts they wrote.
- Can the testbed be extended: The authors write in Section VI-C that the testbed can always be extended to more control applications, and state that pendulum, cart pole, and PVTOL are reasonable representatives as classic testbeds, with state dimensions 2 to 6, consistent with the dimension range of classic control in Gymnasium.
Experimental coverage
- Systems under test are pre-trained neural network controllers on pendulum, cart pole, and PVTOL, with counts 20, 20, 5 and state dimensions 2, 4, 6 (Table I, Section VI-A).
- The only comparison is Yang et al. [14], which forbids modifying the controller; plant models come from Gymnasium and Yang et al., controllers trained with SB3 (Section VI-A, VI-B).
- Reported are whether finding an FIS succeeds (Table III), time comparison (Fig. 3, no seconds in text), X0 FIS size (Table IV), and per-dimension ranges and center drift (Table V, VI).
- The paper does not report Monte Carlo sample sizes, repetitions per controller, intersections with a specific F, or numerical results for Bed or continuous trajectory safety; Section IV discusses Bed and F, but the result tables in Section VI do not give these quantities.
- Verifier is α,β-CROWN; Tmax is set large enough that no unknown results occur due to timeout in experiments (Section VI-B). Activation functions are only stated as SB3 default; the paper does not give specific function names.
Summarize the main content of the paper
Using a latent-space hyperrectangle plus analytical verification to find FIS for a given AI controller; all 45 testbeds succeed.
This paper addresses the certification scenario: the AI controller is given in advance, cannot be modified to construct a Lyapunov function, yet an analytically verifiable safety argument must still be provided.
- What to find: a forward invariant set. Future states starting from it remain in the set; the authors state that if it is disjoint from the unsafe set F, the certification body can trust the corresponding initial states. Directly finding a hyperrectangular invariant set in the original space has low chance, so first map the discrete closed loop to a latent space via a normalized invertible network.
- Approach: The latent-space candidate is fixed as a central hypercube of radius Rfis; training only changes the transformation. The deviation loss pushes K-step trajectories into a slightly smaller cube, and the center loss pulls the center of the original-space image toward the domain-expert-specified μ. If α,β-CROWN confirms that the one-step image remains within the candidate, the authors prove that the candidate and its inverse image are analytically provable FIS. Evaluation success corresponds to this discrete closed-loop conclusion; continuous safety also requires handling the discretization error bound Bed and F, and the experiment does not report this step.
- Results: On 45 systems (pendulum 20, cart pole 20, PVTOL 5), this paper's success rate in finding FIS is 100%, while the Yang et al. baseline that forbids modifying the controller is 0% (Table III). The authors state that on 40/45 testbeds this paper takes less time, and on PVTOL the baseline is faster. According to the authors' summary of Table IV, X0 FIS size relative to preference ranges from 3.7% to 150.4% for pendulum and cart pole, and 0.016% to 0.025% for PVTOL. The authors state that the found centers roughly match the preference.
- Authors' conclusion: This method can find analytically provable FIS for these given AI control systems, while the baseline cannot. The authors leave as future work the relative maximum feasible FIS and the maximum feasible FIS given F.