Skip to content
/ SEAT Public

code for paper: "SEAT: Similarity Encoder by Adversarial Training for Detecting Model Extraction Attack Queries"

License

Notifications You must be signed in to change notification settings

grasses/SEAT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SEAT

This repository is an Pytorch implementation of paper: "SEAT: Similarity Encoder by Adversarial Training for Detecting Model Extraction Attack Queries".

Note: this is not the official implementation of SEAT, you can follow the paper here: https://dl.acm.org/doi/10.1145/3474369.3486863.

Illustration of detection schemes of SEAT.


Dependencies

The code requires dependencies that can be installed using the pip environment file provided:

pip install -r requirements.txt

Usage

Run main.py to fine-tune encoder and then evaluate SEAT.

For CIFAR10
python3 main.py --arch vgg16_bn --task cifar10

Result preview for CIFAR10:

Result for CIFAR10


For MNIST
python3 main.py --arch lenet --task mnist

Download fine-tuned VGG encoder here: https://drive.google.com/drive/folders/1RgeDjPNs9Tswn7hmkzBLLSl8mRJxBFm4?usp=sharing

License

This library is under the MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

About

code for paper: "SEAT: Similarity Encoder by Adversarial Training for Detecting Model Extraction Attack Queries"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages