8000 GitHub - uiuc-focal-lab/spectra
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

uiuc-focal-lab/spectra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick start

1. Environment Setup

Setup the environment by running

conda env create -f env.yml

If you have problem running this command, just run

conda create -n nn4syspec python==3.11

Then install the missing packages when running the following scripts.

2. Specification Generation

Note: You can replace the python3 with python in the following command if needed.

To generate specifications for ABR, run:

python3 src/optim_specs_abr.py

To generate specifications for CC, run:

python3 src/optim_specs_cc.py

Both the above scripts take a set of optional parameters. To see the list of parameters, run:

python3 src/optim_specs_abr.py --help

To get the support and confidence values for the generated specifications, run (<spec_file> is path of where the specifications are stored):

For ABR:

python3 src/test_optim_specs_abr.py <spec_file>

For CC:

python3 src/test_optim_specs_cc.py <spec_file>

To verify specifications, convert them to VNN-LIB format using the following command: For ABR:

python3 src/specs_2_vnnlib_abr.py <name_spec_file>

For CC:

python3 src/specs_2_vnnlib_cc.py <name_spec_file>

To verify the specifications, install alpha-beta CROWN https://github.com/Verified-Intelligence/alpha-beta-CROWN, and run the script: For ABR:

python3 src/run_abcrown_abr.py <model_name> --abcrown <alpha-beta-crown path>

Hint: The abcrown path is like xxx/complete_verifier/abcrown.py

For CC:

python3 src/run_abcrown_cc.py <model_name> --abcrown <alpha-beta-crown path>

Hint: The abcrown path is like xxx/complete_verifier/abcrown.py

We provide the network traces and training files for our Aurora implementation in Aurora/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0