Skip to content
/ SAME Public

Official code for the AAAI-2024 paper "SAME: Sample Reconstruction Against Model Extraction Attacks"

Notifications You must be signed in to change notification settings

xythink/SAME

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code for SAME: Sample-reconstruction Against Model Extraction Attacks

Requirements

  1. PyTorch >= 1.13.1
  2. torchvision
  3. numpy
  4. sklearn
  5. scipy

Evaluate SAME defense on MNIST dataset

python evaluate_main.py --exp_id main-mnist --model conv3 --dataset mnist --dataset_ood kmnist --proxyset emnist_digits --budget 4000 --attacker knockoff --defenders 'SAME' >> evaluate_main_mnist.log

Evaluate SAME defense on MNIST dataset

python evaluate_main.py --exp_id main-cifar10 --model res18 --dataset cifar10 --dataset_ood imagenet_tiny --proxyset cifar100 --budget 10000 --attacker knockoff --defenders 'SAME' >> evaluate_main_cifar10.log

About

Official code for the AAAI-2024 paper "SAME: Sample Reconstruction Against Model Extraction Attacks"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages