[Paper Review] Gray-box Adversarial Testing for Control Systems with Machine Learning Component
This paper proposes a gray-box adversarial testing framework for control systems with recurrent neural network (RNN) controllers using gradient-based optimal control search. By leveraging system linearizations at operating points, it efficiently explores the input space to generate adversarial inputs that falsify system-level Signal Temporal Logic (STL) properties, significantly outperforming black-box methods like uniform random sampling and simulated annealing in finding counterexamples.
Neural Networks (NN) have been proposed in the past as an effective means for both modeling and control of systems with very complex dynamics. However, despite the extensive research, NN-based controllers have not been adopted by the industry for safety critical systems. The primary reason is that systems with learning based controllers are notoriously hard to test and verify. Even harder is the analysis of such systems against system-level specifications. In this paper, we provide a gradient based method for searching the input space of a closed-loop control system in order to find adversarial samples against some system-level requirements. Our experimental results show that combined with randomized search, our method outperforms Simulated Annealing optimization.
Motivation & Objective
- To address the challenge of testing and verifying safety-critical control systems with neural network components, especially those with complex, non-linear dynamics.
- To develop a scalable and efficient method for generating adversarial inputs that violate system-level specifications expressed in Signal Temporal Logic (STL).
- To overcome the limitations of black-box testing methods, which often fail to discover falsifying inputs in complex control systems with RNNs.
- To enable falsification of systems with RNNs—previously difficult to analyze due to their sequential and memory-dependent behavior—using gradient-based local search.
- To integrate local gradient descent with global optimization strategies to improve convergence and robustness in adversarial test generation.
Proposed method
- The method uses analytical linearizations of the closed-loop system at operating points to compute gradient descent directions without requiring sensitivity matrices or numerical approximations.
- It formulates the adversarial input search as an optimal control problem, applying gradient-based local search to minimize system robustness with respect to STL specifications.
- The framework combines the local gradient descent with global samplers (e.g., uniform random sampling or simulated annealing) to balance exploration and exploitation in the input space.
- The approach is applicable to systems with RNNs that have smooth activation functions, leveraging the structure of Simulink models for block-wise linearization.
- The method does not require full model or network architecture knowledge, relying only on available linearization data from standard model-based design tools.
- It extends prior work by searching directly in the infinite-dimensional space of input functions, rather than parameterizing inputs with a finite set of parameters.
Experimental results
Research questions
- RQ1Can gradient-based local search improve the effectiveness of adversarial test generation for control systems with RNN controllers?
- RQ2How does the integration of local gradient descent with global optimization strategies affect falsification performance compared to black-box methods?
- RQ3To what extent can the proposed method detect adversarial inputs that violate system-level STL specifications in complex, nonlinear control systems?
- RQ4Does the method scale effectively with increasing network depth and system state dimensionality?
- RQ5Can the framework successfully falsify systems where traditional black-box testing methods fail?
Key findings
- The proposed method (UR+GD and SA+GD) successfully found adversarial examples in all 50 runs of the steam condenser case study, whereas pure uniform random sampling (UR) and simulated annealing (SA) failed to find any falsifications.
- The average minimum robustness value dropped to -0.0018 (UR+GD) and -0.0016 (SA+GD), indicating successful violation of the STL specification, while UR and SA only reached 0.0843 and 0.0503, respectively.
- The average execution time was reduced to 15.78 seconds (UR+GD) and 13.07 seconds (SA+GD), compared to the 60-second time limit, with less than 90 simulations on average.
- The method demonstrated scalability, maintaining performance even when the number of layers and states in the RNN and system models were increased.
- The combination of local gradient descent with global sampling significantly outperformed standalone global methods, proving essential for detecting falsifying inputs in complex systems.
- The framework successfully reduced system robustness from 0.20633 (with constant input) to 0.00030222 using the optimal input, demonstrating effective adversarial input generation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.