Model-Guardian: Protecting against Data-Free Model Stealing Using Gradient Representations and Deceptive Predictions
Yunfei Yang, Xiaojun Chen, Yuexin Xuan, Zhendong Zhao
TL;DR
This work tackles data-free model stealing in MLaaS by introducing Model-Guardian, a defense that combines a gradient-based Data-Free Model Stealing Detector (DFMS-Detector) with Deceptive Predictions (DPreds). DFMS-Detector learns to identify synthetic-query artifacts by transforming inputs into gradients and training an ensemble of binary detectors, enhancing generalization across diverse GANs and diffusion models. DPreds perturbs the probabilities returned to malicious queries to disrupt clone-model training while preserving benign accuracy, and the system can terminate further access if malicious queries exceed a threshold. Extensive experiments on CIFAR-10/100 and ImageNet across seven attacks and multiple generative models demonstrate state-of-the-art performance, strong generalization, and minimal impact on legitimate users, offering a practical defense for MLaaS deployments against data-free threats.
Abstract
Model stealing attack is increasingly threatening the confidentiality of machine learning models deployed in the cloud. Recent studies reveal that adversaries can exploit data synthesis techniques to steal machine learning models even in scenarios devoid of real data, leading to data-free model stealing attacks. Existing defenses against such attacks suffer from limitations, including poor effectiveness, insufficient generalization ability, and low comprehensiveness. In response, this paper introduces a novel defense framework named Model-Guardian. Comprising two components, Data-Free Model Stealing Detector (DFMS-Detector) and Deceptive Predictions (DPreds), Model-Guardian is designed to address the shortcomings of current defenses with the help of the artifact properties of synthetic samples and gradient representations of samples. Extensive experiments on seven prevalent data-free model stealing attacks showcase the effectiveness and superior generalization ability of Model-Guardian, outperforming eleven defense methods and establishing a new state-of-the-art performance. Notably, this work pioneers the utilization of various GANs and diffusion models for generating highly realistic query samples in attacks, with Model-Guardian demonstrating accurate detection capabilities.
