These codes are for VGG16 on CIFAR10 with SNL. These codes search for the potential boundary in our Algorithm 1's Phase I.
Dependency:
- Install kornia by: pip install kornia
- Install ptflops by: pip install ptflops
- Create the forlder './checkpoints/' and put the model there.
- This attack requires 100GiB RAM.
To perform the Distillation-Based Inverse Network Attack (DINA):
-
run "dina_generate_training_set.py" to generate required feature maps through command: python dina_generate_training_set.py
-
run "dina_find_boundary.py" to find the boundary python dina_find_boundary.py
-
The potential boundary is returned. You could also check the results in './dina_log_search_boundary.txt'