SEAT: Similarity Encoder by Adversarial Training for Detecting Model Extraction Attack Queries
Open accessThe DOI matches its Crossref record; 46 of the 46 references it cites were found in a registry or an index.
Abstract
Given black-box access to the prediction API, model extraction attacks can steal the functionality of models deployed in the cloud. In this paper, we introduce the SEAT detector, which detects black-box model extraction attacks so that the defender can terminate malicious accounts. SEAT has a similarity encoder trained by adversarial training. Using the similarity encoder, SEAT detects accounts that make queries that indicate a model extraction attack in progress and cancels these accounts. We evaluate our defense against existing model extraction attacks and against new adaptive attacks introduced in this paper. Our results show that even against adaptive attackers, SEAT increases the cost of model extraction attacks by 3.8 times to 16 times.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures
![Figure 1 Illustration of detection schemes. Left: SD [7] measures 𝑟 avg, the average ℓ 2 distance to the 𝑘 nearest queries, and cancels the account if it is below some threshold. Right: SEAT counts the number of similar pairs (circled in green), i.e., pairs whose ℓ 2 distance is less than some threshold. Since similar pairs of queries in model extraction attacks do not necessarily form a single cluster, SEAT is better suited for detecting model extraction attacks.](https://figures.cochat.ai/paper-figures/7786ca03382b41fbaaedc48f47688dc7/seat-similarity-encoder-by-adversarial-training-for-detecting-model-extraction-figure-1.png)

Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2016) · 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2016.90 · Cited by 235,474 · cited 1×
“Both the victim and adversary use Resnet348x [16]; the victim model achieves 95.”
Very Deep Convolutional Networks for Large-Scale Image Recognition
Simonyan, K., & Zisserman, A. (2014) · arXiv · doi:10.48550/arxiv.1409.1556 · Cited by 114,148 · cited 5×
“The first configuration uses VGG16 with batch norm, the same as the victim’s architure, and the attacker adversarially trains the simialrity encoder using surrogate dataset CINIC10 that is close to CIFAR10.”
BackgroundInfluentialImageNet: A large-scale hierarchical image database
Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., & Fei-Fei, L. (2009) · 2009 IEEE Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2009.5206848 · Cited by 65,333 · cited 8×
“They include the subset of victim’s training set CIFAR10, and 8 other publicly available datasets of different complexity ([9, 10, 14, 25, 26, 33, 39, 47]).”
BackgroundMethodInfluentialBatch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
Ioffe, S., & Szegedy, C. (2015) · arXiv · doi:10.48550/arxiv.1502.03167 · Cited by 27,818 · cited 1×
“In all experiments for random sampling (RS) and JBA attacks, the victimmodel is VGG16 [43] with batch normalization [20].”
BackgroundLearning Multiple Layers of Features from Tiny Images
Krizhevsky, A. (2024) · doi:10.57702/zp44cu3g · Cited by 23,395
Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift
Ioffe, S. (2024) · arXiv (Cornell University) · doi:10.57702/o9raffed · Cited by 14,214
(2017) · Cited by 11,625
Towards Evaluating the Robustness of Neural Networks
Carlini, N., & Wagner, D. (2017) · 2017 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp.2017.49 · Cited by 8,859 · cited 2×
“In JBA-CW_l2, we use targeted CW l2 attack [5], with 150 steps and 5 binary search steps.”
MethodSelf-citationTowards Deep Learning Models Resistant to Adversarial Attacks
Madry, A., Makelov, A., Schmidt, L., Tsipras, D., & Vladu, A. (2017) · arXiv · doi:10.48550/arxiv.1706.06083 · Cited by 6,602 · cited 3×
“[22] proposed loss functions similar to those used by targeted and non-targeted Projected Gradient Descent attack (PGD)[29].”
MethodDimensionality Reduction by Learning an Invariant Mapping
Hadsell, R., Chopra, S., & LeCun, Y. (2006) · 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition - Volume 2 (CVPR'06) · doi:10.1109/cvpr.2006.100 · Cited by 5,336 · cited 1×
“Our contrastive loss function follows previous works that train a similarity encoder to recognize visually similar images [7, 15]:”
BackgroundLabeled Faces in the Wild: A Database forStudying Face Recognition in Unconstrained Environments
Huang, G. B., Mattar, M., Berg, T. L., & Miller, E. G. (2008) · HAL · Cited by 4,797
Generative Adversarial Networks
Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1406.2661 · Cited by 4,477
Douceur, J. R. (2002) · Lecture Notes in Computer Science · doi:10.1007/3-540-45748-8_24 · Cited by 4,419
Deep Residual Learning for Image Recognition
He, K., Zhang, X., Ren, S., & Sun, J. (2015) · arXiv · doi:10.48550/arxiv.1512.03385 · Cited by 4,196 · cited 1×
“Both the victim and adversary use Resnet348x [16]; the victim model achieves 95.”
Reading digits in natural images with unsupervised feature learning
Netzer, Y. (2024) · doi:10.57702/e7wwo0zk · Cited by 4,149
Practical Black-Box Attacks against Machine Learning
Papernot, N., McDaniel, P., Goodfellow, I., Jha, S., Celik, Z. B., & Swami, A. (2017) · Proceedings of the 2017 ACM on Asia Conference on Computer and Communications Security · doi:10.1145/3052973.3053009 · Cited by 3,495 · cited 3×
“Many existing model extraction attacks fall into the category of Jacobian-based Augmentation (JBA) attack [22, 37, 50].”
Background(2007) · CaltechAUTHORS (California Institute of Technology) · Cited by 2,274
Quattoni, A., & Torralba, A. (2009) · 2009 IEEE Conference on Computer Vision and Pattern Recognition · doi:10.1109/cvpr.2009.5206537 · Cited by 1,463 · cited 7×
“They include the subset of victim’s training set CIFAR10, and 8 other publicly available datasets of different complexity ([9, 10, 14, 25, 26, 33, 39, 47]).”
BackgroundInfluentialDecision-based adversarial attacks: Reliable attacks against black-box machine learning models
Brendel, W., Rauber, J., & Bethge, M. (2017) · arXiv · doi:10.48550/arxiv.1712.04248 · Cited by 1,018 · cited 1×
“Black-box adversarial example attacks [3, 6, 19, 32] send a sequence of queries to the victim model in order to craft adversarial examples.”
BackgroundDetection of traffic signs in real-world images: The German traffic sign detection benchmark
Houben, S., Stallkamp, J., Salmen, J., Schlipsing, M., & Igel, C. (2013) · The 2013 International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn.2013.6706807 · Cited by 972 · cited 2×
“In particular, to show that our detector maintains low FPR even when a user is sending naturally similar queries, we select 4 datasets: KaggleFrames 5 for video frames, GTSRB[17] for traffic sign recognition, LFW[18] for face recognition, and VGGFlower17 6 for flower recognition.”
MethodBlack-box Adversarial Attacks with Limited Queries and Information
Ilyas, A., Engstrom, L., Athalye, A., & Lin, J. (2018) · arXiv · doi:10.48550/arxiv.1804.08598 · Cited by 806 · cited 1×
“Black-box adversarial example attacks [3, 6, 19, 32] send a sequence of queries to the victim model in order to craft adversarial examples.”
BackgroundStealing Machine Learning Models via Prediction APIs
Tramèr, F., Zhang, F., Juels, A., Reiter, M. K., & Ristenpart, T. (2016) · arXiv · doi:10.48550/arxiv.1609.02943 · Cited by 796 · cited 3×
“[44] proposed an algorithm to extract shallow neural networks.”
BackgroundMethodLowd, D., & Meek, C. (2005) · Proceedings of the eleventh ACM SIGKDD international conference on Knowledge discovery in data mining · doi:10.1145/1081870.1081950 · Cited by 755 · cited 1×
“Other goals [21], such as obtaining high prediction agreement be-tween the victim model and the extracted model [8, 21, 22, 37, 44] or exactly recovering the victim’s weights [2, 4, 28, 31, 44], are not the focus of this paper.”
BackgroundHopSkipJumpAttack: A Query-Efficient Decision-Based Attack
Chen, J., Jordan, M. I., & Wainwright, M. J. (2020) · 2020 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp40000.2020.00045 · Cited by 718 · cited 1×
“Black-box adversarial example attacks [3, 6, 19, 32] send a sequence of queries to the victim model in order to craft adversarial examples.”
BackgroundFoolbox: A Python toolbox to benchmark the robustness of machine learning modelsPreprint
Rauber, J., Brendel, W., & Bethge, M. (2017) · arXiv (Cornell University) · doi:10.48550/arxiv.1707.04131 · Cited by 656
CINIC-10 is not ImageNet or CIFAR-10Preprint
Darlow, L. N., Crowley, E. J., Antoniou, A., & Storkey, A. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1810.03505 · Cited by 635 · cited 11×
“They include the subset of victim’s training set CIFAR10, and 8 other publicly available datasets of different complexity ([9, 10, 14, 25, 26, 33, 39, 47]).”
BackgroundInfluentialKnockoff Nets: Stealing Functionality of Black-Box Models
Orekondy, T., Schiele, B., & Fritz, M. (2019) · 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr.2019.00509 · Cited by 549 · cited 1×
“[34] proposed KnockoffNet, which uses an adaptive strategy to select samples to query.”
MethodLearning local feature descriptors with triplets and shallow convolutional neural networks
Balntas, V., Riba, E., Ponsa, D., & Mikolajczyk, K. (2016) · Procedings of the British Machine Vision Conference 2016 · doi:10.5244/c.30.119 · Cited by 529 · cited 1×
“[50] also proposed Feature Fool (FF), which constructs the loss function as the l2 distance between the original data x and augmented data x ′ plus a triplet margin loss [46].”
BackgroundTorchvision the machine-vision package of torch
Marcel, S., & Rodriguez, Y. (2010) · Proceedings of the 18th ACM international conference on Multimedia · doi:10.1145/1873951.1874254 · Cited by 416
Foolbox v0.8.0: A Python toolbox to benchmark the robustness of machine learning modelsPreprint
Rauber, J., Brendel, W., & Bethge, M. (2017) · arXiv (Cornell University) · Cited by 325
Uncovering social network Sybils in the wild
Yang, Z., Wilson, C., Wang, X., Gao, T., Zhao, B. Y., & Dai, Y. (2014) · ACM Transactions on Knowledge Discovery from Data · doi:10.1145/2556609 · Cited by 290
Prediction Poisoning: Towards Defenses Against DNN Model Stealing AttacksPreprint
Orekondy, T., Schiele, B., & Fritz, M. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1906.10908 · Cited by 164 · cited 3×
“Orekondy et al. [35] pro-pose prediction poisoning, which perturbs the prediction probabilities returned by the victim model.”
BackgroundMethodInfluentialRauber, J., Zimmermann, R., Bethge, M., & Brendel, W. (2020) · Journal of Open Source Software · doi:10.21105/joss.02607 · Cited by 158 · cited 3×
“JBA-PGD and JBA-CW_l2: We use PGD [29] and CW ℓ 2 attacks, as implemented by Foolbox3 [40, 41] in PyTorch [38].”
MethodCopycat CNN: Stealing Knowledge by Persuading Confession with Random Non-Labeled Data
Correia-Silva, J. R., Berriel, R. F., Badue, C., de Souza, A. F., & Oliveira-Santos, T. (2018) · 2018 International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn.2018.8489592 · Cited by 153 · cited 2×
“[8] proposed CopyCat, which randomly samples from datasets that may or may not be in the same problem domain as the victim, and queries the victim for these samples.”
BackgroundParsimonious Black-Box Adversarial Attacks via Efficient Combinatorial OptimizationPreprint
Moon, S., An, G., & Song, H. O. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1905.06635 · Cited by 149 · cited 1×
“Black-box adversarial example attacks [3, 6, 19, 32] send a sequence of queries to the victim model in order to craft adversarial examples.”
BackgroundCloudLeak: Large-Scale Deep Learning Models Stealing Through Adversarial Examples
Yu, H., Yang, K., Zhang, T., Tsai, Y.-Y., Ho, T.-Y., & Jin, Y. (2020) · Proceedings 2020 Network and Distributed System Security Symposium · doi:10.14722/ndss.2020.24178 · Cited by 130 · cited 4×
“Many existing model extraction attacks fall into the category of Jacobian-based Augmentation (JBA) attack [22, 37, 50 The augmentation algorithm is essential to the JBA attack (step 7, Algorithm 2), since the adversary relies on augmented data to explore some important properties ( i.e. decision…”
BackgroundMethodInfluentialActiveThief: Model Extraction Using Active Learning and Unannotated Public Data
Pal, S., Gupta, Y., Shukla, A., Kanade, A., Shevade, S., & Ganapathy, V. (2020) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v34i01.5432 · Cited by 121 · cited 1×
“[36] proposed the Uncertainty, K-center, DFAL, and DFAL+K-center strategies in their ActiveThief.”
MethodDefending Against Model Stealing Attacks With Adaptive Misinformation
Kariyappa, S., & Qureshi, M. K. (2020) · 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · doi:10.1109/cvpr42600.2020.00085 · Cited by 111
Practical Black-Box Attacks against Machine Learning
Papernot, N., McDaniel, P. D., Goodfellow, I., Jha, S., Celik, Z. B., & Swami, A. (2016) · arXiv (Cornell University) · doi:10.48550/arxiv.1602.02697 · Cited by 82 · cited 3×
“Many existing model extraction attacks fall into the category of Jacobian-based Augmentation (JBA) attack [22, 37, 50].”
BackgroundBlacklight: Scalable Defense for Neural Networks against Query-Based Black-Box AttacksPreprint
Li, H., Shan, S., Wenger, E., Zhang, J., Zheng, H.-T., & Zhao, B. Y. (2020) · arXiv · doi:10.48550/arxiv.2006.14042 · Cited by 74 · cited 2×
“An attacker could create multiple fake accounts [7, 11, 27, 49], and with enough fake accounts any defense could be circumvented, but we assume the cost of doing so scales with the number of fake accounts.”
BackgroundMethodCSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network InformationPreprint
Batina, L., Bhasin, S., Jap, D., & Picek, S. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1810.09076 · Cited by 66 · cited 1×
“Other goals [21], such as obtaining high prediction agreement between the victim model and the extracted model [8, 21, 22, 37, 44] or exactly recovering the victim’s weights [2, 4, 28, 31, 44], are not the focus of this paper.”
BackgroundAdversarial Manipulation of Deep Representations
Sabour, S., Cao, Y., Faghri, F., & Fleet, D. J. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1511.05122 · Cited by 60 · cited 2×
“Yu et al. [50] investigated using loss functions from the Carlini-Wagner ℓ 2 attack (CW_ ℓ 2 ) [5] and the Feature Adversary Attack[42].”
MethodExtraction of Complex DNN Models: Real Threat or Boogeyman?
Atli, B. G., Szyller, S., Juuti, M., Marchal, S., & Asokan, N. (2020) · Communications in computer and information science · doi:10.1007/978-3-030-62144-5_4 · Cited by 48
High Accuracy and High Fidelity Extraction of Neural Networks
Jagielski, M., Carlini, N., Berthelot, D., Kurakin, A., & Papernot, N. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1909.01838 · Cited by 48 · cited 2×
“Other attacks, such as functionally-equivalent extraction attacks [4, 21] and hardware side channel attacks [48], are out of the scope of this paper.”
BackgroundCache Telepathy: Leveraging Shared Resource Attacks to Learn DNN Architectures
Yan, M., Fletcher, C. W., & Torrellas, J. (2018) · arXiv (Cornell University) · doi:10.48550/arxiv.1808.04761 · Cited by 42 · cited 1×
“Other attacks, such as functionally-equivalent extraction attacks [4, 21] and hardware side channel attacks [48], are out of the scope of this paper.”
BackgroundFinite Sample Convergence Rates of Zero-Order Stochastic Optimization Methods
Wibisono, A. Y., Wainwright, M. J., Jordan, M. I., & Duchi, J. C. (2012) · neural information processing systems · Cited by 37
Research works printed but not linked: 7
- Nicholas Carlini, Matthew Jagielski, and Ilya Mironov. 2020. Cryptanalytic Extraction of Neural Network Models. arXiv:2003.04884 [cs.LG] · arXiv
- Steven Chen, Nicholas Carlini, and David Wagner. 2019. Stateful Detection of Black-Box Adversarial Attacks. arXiv:1907.05587 [cs.CR] · arXiv
- Mika Juuti, Sebastian Szyller, Samuel Marchal, and N. Asokan. 2019. PRADA: Protecting against DNN Model Stealing Attacks. arXiv:1805.02628 [cs.CR] · arXiv
- Sanjay Kariyappa, Atul Prakash, and Moinuddin K Qureshi. 2021. Protecting {DNN}s from Theft using an Ensemble of Diverse Models. In International Confer- ence on Learning Representations. https://openreview.net/forum?id=LucJxySuJcE
- Smitha Milli, Ludwig Schmidt, Anca D. Dragan, and Moritz Hardt. 2018. Model Reconstruction from Model Explanations. arXiv:1807.05185 [stat.ML] · arXiv
- Jean-Baptiste Truong, Pratyush Maini, Robert J. Walls, and Nicolas Papernot. 2021. Data-Free Model Extraction. arXiv:2011.14779 [cs.LG] · arXiv
- C. Wah, S. Branson, P. Welinder, P. Perona, and S. Belongie. 2011. The Caltech- UCSD Birds-200-2011 Dataset. Technical Report CNS-TR-2011-001. California Institute of Technology.
Cited by
I Know What You Trained Last Summer: A Survey on Stealing Machine Learning Models and Defences
Oliynyk, D., Mayer, R. L., & Rauber, A. (2023) · ACM Computing Surveys · doi:10.1145/3595292 · Cited by 260
“…[8] ✗ [8] ✓ [124] ✓ [125] ✓ [126] ✓ [127] ✓ [120] SMA-CNN (Knockoff)[3] ✓ [125] ✓ [128] ✓ [126] ✓ [127] ✓ [120] ✓ [46] SMA-RNN [5] ✓ [5] SMA-CNN (FeatureFool)[72] ✗ [72] ✓ [72] ✓ [124] SMA-CNN (DFME)[51] ✓ [124] ✓ [128] SMA-Encoder [85] ↘ [85] ∼ ↘ [85] ∼ ✓ [85] ↘ [85] ∼ this with an additional ≀ .”
BackgroundInfluentialAdversarial machine learning: a review of methods, tools, and critical industry sectors
Pelekis, S., Koutroubas, T., Blika, A., Berdelis, A., Karakolis, E., Ntanos, C., Spiliotis, E., & Askounis, D. (2025) · Artificial Intelligence Review · doi:10.1007/s10462-025-11147-4 · Cited by 113
StolenEncoder: Stealing Pre-trained Encoders in Self-supervised Learning
Liu, Y., Jia, J., Liu, H., & Gong, N. Z. (2022) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/3548606.3560586 · Cited by 73
“Defenses against classifier stealing attacks: Two popular categories of defenses against classifier stealing attacks include 1) detecting malicious/abnormal queries [46], [47], and 2) perturbing the confidence score vectors predicted by a target classifier for queries [17], [15], [24], [48].”
BackgroundMEGEX: Data-Free Model Extraction Attack Against Gradient-Based Explainable AI
Miura, T., Shibahara, T., & Yanai, N. (2024) · doi:10.1145/3665451.3665533 · Cited by 65
Liu, C., Chen, B., Shao, W., Zhang, W., Wong, K. K. L., & Zhang, Y. (2024) · IEEE Internet of Things Journal · doi:10.1109/jiot.2024.3377730 · Cited by 54
Metadata
- Authors
- Zhang, Z., Chen, Y., & Wagner, D.
- Affiliations
- University of California, Berkeley (US)
- Venue
- Proceedings of the 14th ACM Workshop on Artificial Intelligence and Security
- Publisher
- ACM
- Published
- 2021-11-15
- Pages
- 37-48
- OpenAlex
- W3208646583
- Semantic Scholar
- d167f82f1f1bec0dd173fe3173053eebddae05b8
- Cited by
- 37
- References
- 36
- Citations by year
- 2026: 4 · 2025: 13 · 2024: 7 · 2023: 9 · 2022: 4
- FWCI
- 2.31
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- Locations
- ACM Workshop on Artificial Intelligence and Security (AISec) (publishedVersion, cc-by)
- Funders
- Open Philanthropy Project
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Privacy-Preserving Technologies in Data
- Physical Sciences › Computer Science › Hardware and Architecture › Security and Verification in Computing
- Keywords
- model extraction attacks, black-box attacks, attack detection, adversarial training, adaptive attacks
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.