Giter Club home page Giter Club logo

dpneurifyfv.jl's Introduction

DPNeurifyFV

Neural network verification based on input splitting and forward propagation of symbolic intervals with fresh variables.

Installation

Note: DPNeurifyFV is currently only supported for x86 architectures.

Open the Julia REPL in this directory and type

  • ] to open the Julia package manager
  • add https://github.com/sisl/NeuralVerification.jl#0d9be34 (adds NeuralVerification.jl to the environment, but pinned to a specific commit)
    • at least use the pinned version, until this issue with the installation of NeuralVerification.jl is resolved
  • add https://github.com/sisl/NeuralPriorityOptimizer.jl and follow the installation instructions on their repo
    • install Gurobi (academic licenses are free)
    • type install Gurobi
    • (to use all features of NeuralPriorityOptimizer, you also need to install Mosek, however, this is not necessary for DPNeurifyFV or the experimental evaluation.)
  • add LazySets
  • add https://github.com/phK3/DPNeurifyFV.jl

Examples

In order to maximize the first output of the ACAS_1_1 network over the input region defined by the first property of the ACAS-Xu benchmark suite run

using NeuralVerification, DPNeurifyFV

input_set, output_set = DPNeurifyFV.get_acas_sets(1)

acas = read_nnet("./networks/ACASXU_experimental_v2a_1_1.nnet")

params = DPNeurifyFV.PriorityOptimizerParameters(max_steps=5000, print_frequency=100, stop_frequency=1, verbosity=2)
optimize_linear_deep_poly(acas, input_set, [1.,0,0,0,0], params, solver=DPNFV(method=:DeepPolyRelax, max_vars=15), concrete_sample=:BoundsMaximizer, split=DPNeurifyFV.split_important_interval)

Further examples can be found in ./example_notebook.ipynb.

Reproducing Experiments

To reproduce the experiments in the paper, open the Julia REPL in this directory and type

  • ] to open the package manager
  • activate . (to activate the DPNeurifyFV environment)
  • press backspace to leave the package manager
  • type include("experiments/run_experiments.jl") to start verification of the ACAS Xu benchmark set using DPNeurifyFV
    • timeouts etc. can be changed in the script
  • type include("experiments/zope_experiments.jl") to start verification with ZoPE
  • to reproduce the results for NNENUM,

dpneurifyfv.jl's People

Contributors

phk3 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sergedurand

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.