nnv

所属分类:人工智能/神经网络/深度学习
开发工具:matlab
文件大小:1912514KB
下载次数:17
上传日期:2023-04-28 21:38:12
上 传 者sh-1993
说明:  神经网络验证软件工具
(nnv,Neural Network Verification Software Tool)

文件列表:
.codeoceandatasets (11, 2023-04-29)
code (0, 2023-04-29)
code\LICENSE (1071, 2023-04-29)
code\images (0, 2023-04-29)
code\images\ACASXu.png (9854, 2023-04-29)
code\images\ACC.png (135905, 2023-04-29)
code\images\ACCreachSet.png (73947, 2023-04-29)
code\images\EBS.png (36711, 2023-04-29)
code\images\EBreachSet.png (58236, 2023-04-29)
code\images\SafeInitCondition.png (79103, 2023-04-29)
code\images\counterInputSet.png (77565, 2023-04-29)
code\images\falsifyTrace.png (61979, 2023-04-29)
code\images\reachSetP4.png (177888, 2023-04-29)
code\images\reachSetP4s.png (212882, 2023-04-29)
code\images\sigmoidReachSet.png (56197, 2023-04-29)
code\images\verificationTime.png (40355, 2023-04-29)
code\images\vgg16.png (278264, 2023-04-29)
code\images\vgg19_counter_example.png (2038051, 2023-04-29)
code\images\vgg19_exact_range.png (437725, 2023-04-29)
code\nnv (0, 2023-04-29)
code\nnv\F.info (887, 2023-04-29)
code\nnv\F.mat (1755377, 2023-04-29)
code\nnv\dep_requirements.txt (306, 2023-04-29)
code\nnv\engine (0, 2023-04-29)
code\nnv\engine\F.info (888, 2023-04-29)
code\nnv\engine\F.mat (1755379, 2023-04-29)
code\nnv\engine\adjust_glpk.m (527, 2023-04-29)
code\nnv\engine\c_libs (0, 2023-04-29)
code\nnv\engine\c_libs\set (0, 2023-04-29)
code\nnv\engine\c_libs\set\star (0, 2023-04-29)
code\nnv\engine\c_libs\set\star\a.out (12584, 2023-04-29)
code\nnv\engine\c_libs\set\star\star.c (2982, 2023-04-29)
code\nnv\engine\cora (0, 2023-04-29)
code\nnv\engine\hyst (0, 2023-04-29)
... ...

# nnv Matlab Toolbox for Neural Network Verification This toolbox implements reachability methods for analyzing neural networks, particularly with a focus on closed-loop controllers in autonomous cyber-physical systems (CPS). # related tools and software This toolbox makes use of the neural network model transformation tool ([nnmt](https://github.com/verivital/nnmt)) and for closed-loop systems analysis, the hybrid systems model transformation and translation tool ([HyST](https://github.com/verivital/hyst)), and the COntinuous Reachability Analyzer ([CORA](https://github.com/TUMcps/CORA)). # execution without installation: nnv can be executed online without installing Matlab or other dependencies through [CodeOcean](https://www.codeocean.com) via the following CodeOcean capsules: * CAV 2020 ImageStar paper version: https://doi.org/10.24433/CO.3351375.v1 * CAV 2020 Tool paper version: https://doi.org/10.24433/CO.0221760.v1 * Earliest version: DOI 10.24433/CO.1314285.v1: https://doi.org/10.24433/CO.1314285.v1 # Installation: 1) Install Matlab (2022b or newer) with at least the following toolboxes: Computer Vision Control Systems Deep Learning Image Processing Optimization Parallel Computing Statistics and Machine Learning Symbolic Math System Identification 1.a) Install the following support package Deep Learning Toolbox Converter for ONNX Model Format (https://www.mathworks.com/matlabcentral/fileexchange/67296-deep-learning-toolbox-converter-for-onnx-model-format) Note: Support packages can be installed in MATLAB's HOME tab > Add-Ons > Get Add-ons, search for the support package using the Add-on Explorer and click on the Install button. 2) Clone or download the nnv toolbox from (https://github.com/verivital/nnv) Note: to operate correctly, nnv depends on other tools (CORA, NNMT, HyST, onnx2nnv), which are included as git submodules. As such, you must clone recursively, e.g., with the following: git clone --recursive https://github.com/verivital/nnv.git 3) Open matlab, then go to the directory where nnv exists on your machine, then run the `install.m` script located at /nnv/ Note: if you restart Matlab, rerun either install.m or startup_nnv.m, which will add the necessary dependencies to the path; you alternatively can run savepath after installation to avoid this step after restarting Matlab, but this may require administrative privileges 4) To run verification for convolutional neural networks (CNNs) on VGG16/VGG19, you may need additional support packages installed: 4-1) https://www.mathworks.com/matlabcentral/fileexchange/61733-deep-learning-toolbox-model-for-vgg-16-network 4-2) https://www.mathworks.com/help/deeplearning/ref/vgg19.html 5) To run MATLAB's neural network verification comparison, an additional support package is needed: 5-1) https://www.mathworks.com/matlabcentral/fileexchange/118735-deep-learning-toolbox-verification-library # uninstallation: 1) Open matlab, then go to `/nnv/` and execute the `uninstall.m` script # running tests and examples Go into the `tests/examples` folders to execute the scripts for testing/analyzing examples. # Demo Video A recent video demonstration of NNV is available. [![Alt text](https://img.youtube.com/vi/fLcEwPae5C4/0.jpg)](https://www.youtube.com/watch?v=fLcEwPae5C4) # Features 1) NNV can compute and visualize the exact reachable sets of feedforward nerual networks with ReLU/Saturation activation functions. The computation can be accelerated using parallel computing in Matlab. The computed reachable set can be used for safety verification of the networks.
Vertical view of a generic example of the ACAS Xu benchmark set
Exact reachable set of a ACAS Xu network
Verification time (VT) can be reduced by increasing the number of cores (N)
Reachable set of a ACAS Xu network with different methods
2) NNV can construct and visualize the complete counter inputs of feedforward neural networks with ReLU/Saturation activation functions.
A Complete Set of Counter Inputs of a ACASXu network
3) NNV can compute and visualize the over-approximate reachable sets of feedforward neural networks with Tanh, Sigmoid activation functions.
Reachable set of a network with Sigmoid activation functions
4) NNV can compute and visualize the reachable sets of neural network control systems, i.e., systems with plant + neural network controllers which can be used to verify or falsify safety properties of the systems.
Neural Network Adaptive Cruise Control System
Reachable set of the neural network adaptive cruise control system
A fasification trace of the neural network adaptive cruise control system
Advaced Emergency Braking System with Reinforcement Controller
Reachable set of the advanced emergency braking system with reinforcement controller
Safe initial condition of the advanced emergency braking system with reinforcement controller
5) Convolutional Neural Networks: nnv supports robustness verification for large convolutional neural networks such as VGG16, VGG19 under adversarial attacks (FGSM, DeepFoll, etc.)
VGG16 under adversarial attacks
VGG19 exact output ranges corresponding to FGSM adversarial attack
nnv generates counter examples for VGG19 corresponding to FGSM adversarial attack
# Contributors * [Hoang-Dung Tran (main developer)](https://scholar.google.com/citations?user=_RzS3uMAAAAJ&hl=en) * [Diego Manzanas Lopez](https://scholar.google.com/citations?user=kgpZCIAAAAAJ&hl=en) * [Weiming Xiang](https://scholar.google.com/citations?user=Vm_7JP8AAAAJ&hl=en) * [Stanley Bak](http://stanleybak.com/) * [Patrick Musau](https://scholar.google.com/citations?user=C2RS3i8AAAAJ&hl=en) * Xiaodong Yang * [Luan Viet Nguyen](https://luanvietnguyen.github.io) * [Taylor T. Johnson](http://www.taylortjohnson.com) # References The methods implemented in nnv are based upon or used in the following papers: * Hoang-Dung Tran, Patrick Musau, Diego Manzanas Lopez, Xiaodong Yang, Luan Viet Nguyen, Weiming Xiang, Taylor T.Johnson, "NNV: A Tool for Verification of Deep Neural Networks and Learning-Enabled Autonomous Cyber-Physical Systems", 32nd International Conference on Computer-Aided Verification (CAV), 2020. [http://taylortjohnson.com/research/tran2020cav_tool.pdf] * Diego Manzanas Lopez, Taylor T. Johnson, Stanley Bak, Hoang-Dung Tran, Kerianne Hobbs, "Evaluation of Neural Network Verification Methods for Air to Air Collision Avoidance", In AIAA Journal of Air Transportation (JAT), 2022 [http://www.taylortjohnson.com/research/lopez2022jat.pdf] * Diego Manzanas Lopez, Patrick Musau, Nathaniel Hamilton, Taylor T. Johnson, "Reachability Analysis of a General Class of Neural Ordinary Differential Equations", In 20th International Conference on Formal Modeling and Analysis of Timed Systems (FORMATS), 2022 [http://www.taylortjohnson.com/research/lopez2022formats.pdf] * Hoang-Dung Tran, Neelanjana Pal, Patrick Musau, Xiaodong Yang, Nathaniel P. Hamilton, Diego Manzanas Lopez, Stanley Bak, Taylor T. Johnson, "Robustness Verification of Semantic Segmentation Neural Networks using Relaxed Reachability", In 33rd International Conference on Computer-Aided Verification (CAV), Springer, 2021. [http://www.taylortjohnson.com/research/tran2021cav.pdf] * Hoang-Dung Tran, Stanley Bak, Weiming Xiang, Taylor T.Johnson, "Towards Verification of Large Convolutional Neural Networks Using ImageStars", 32nd International Conference on Computer-Aided Verification (CAV), 2020. [http://taylortjohnson.com/research/tran2020cav.pdf] * Stanley Bak, Hoang-Dung Tran, Kerianne Hobbs, Taylor T. Johnson, "Improved Geometric Path Enumeration for Verifying ReLU Neural Networks", In 32nd International Conference on Computer-Aided Verification (CAV), 2020. [http://www.taylortjohnson.com/research/bak2020cav.pdf] * Hoang-Dung Tran, Weiming Xiang, Taylor T.Johnson, "Verification Approaches for Learning-Enabled Autonomous Cyber-Physical Systems", The IEEE Design & Test 2020. [http://www.taylortjohnson.com/research/tran2020dandt.pdf] * Hoang-Dung Tran, Patrick Musau, Diego Manzanas Lopez, Xiaodong Yang, Luan Viet Nguyen, Weiming Xiang, Taylor T.Johnson, "Star-Based Reachability Analsysis for Deep Neural Networks", The 23rd International Symposium on Formal Methods (FM), Porto, Portugal, 2019, Acceptance Rate 30%. . [http://taylortjohnson.com/research/tran2019fm.pdf] * Hoang-Dung Tran, Feiyang Cei, Diego Manzanas Lopez, Taylor T.Johnson, Xenofon Koutsoukos, "Safety Verification of Cyber-Physical Systems with Reinforcement Learning Control", The International Conference on Embedded Software (EMSOFT), New York, October, 2019. Acceptance Rate 25%. [http://taylortjohnson.com/research/tran2019emsoft.pdf] * Hoang-Dung Tran, Patrick Musau, Diego Manzanas Lopez, Xiaodong Yang, Luan Viet Nguyen, Weiming Xiang, Taylor T.Johnson, "Parallelzable Reachability Analsysis Algorithms for FeedForward Neural Networks", In 7th International Conference on Formal Methods in Software Engineering (FormaLISE), 27, May, 2019 in Montreal, Canada, Acceptance Rate 28%. [http://taylortjohnson.com/research/tran2019formalise.pdf] * Weiming Xiang, Hoang-Dung Tran, Taylor T. Johnson, "Output Reachable Set Estimation and Verification for Multi-Layer Neural Networks", In IEEE Transactions on Neural Networks and Learning Systems (TNNLS), 2018, March. [http://taylortjohnson.com/research/xiang2018tnnls.pdf] * Weiming Xiang, Hoang-Dung Tran, Taylor T. Johnson, "Reachable Set Computation and Safety Verification for Neural Networks with ReLU Activations", In In Submission, IEEE, 2018, September. [http://www.taylortjohnson.com/research/xiang2018tcyb.pdf] * Weiming Xiang, Diego Manzanas Lopez, Patrick Musau, Taylor T. Johnson, "Reachable Set Estimation and Verification for Neural Network Models of Nonlinear Dynamic Systems", In Unmanned System Technologies: Safe, Autonomous and Intelligent Vehicles, Springer, 2018, September. [http://www.taylortjohnson.com/research/xiang2018ust.pdf] * Reachability Analysis and Safety Verification for Neural Network Control Systems, Weiming Xiang, Taylor T. Johnson [https://arxiv.org/abs/1805.09944] * Weiming Xiang, Patrick Musau, Ayana A. Wild, Diego Manzanas Lopez, Nathaniel Hamilton, Xiaodong Yang, Joel Rosenfeld, Taylor T. Johnson, "Verification for Machine Learning, Autonomy, and Neural Networks Survey," October 2018, [https://arxiv.org/abs/1810.01***9] * Specification-Guided Safety Verification for Feedforward Neural Networks, Weiming Xiang, Hoang-Dung Tran, Taylor T. Johnson [https://arxiv.org/abs/1812.06161] * Diego Manzanas Lopez, Patrick Musau, Hoang-Dung Tran, Taylor T.Johnson, "Verification of Closed-loop Systems with Neural Network Controllers (Benchmark Proposal)", The 6th International Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH2019). Montreal, Canada, 2019. [http://taylortjohnson.com/research/lopez2019arch.pdf] * Diego Manzanas Lopez, Patrick Musau, Hoang-Dung Tran, Souradeep Dutta, Taylor J. Carpenter, Radoslav Ivanov, Taylor T.Johnson, "ARCH-COMP19 Category Report: Artificial Intelligence / Neural Network Control Systems (AINNCS) for Continuous and Hybrid Systems Plants", 3rd International Competition on Verifying Continuous and Hybrid Systems (ARCH-COMP2019), The 6th International Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH2019). Montreal, Canada, 2019. [http://taylortjohnson.com/research/lopez2019archcomp.pdf] # Acknowledgements This work is supported in part by the [DARPA Assured Autonomy](https://www.darpa.mil/program/assured-autonomy) program.

近期下载者

相关文件


收藏者