Abstract
The model extraction attack is an attack pattern aimed at stealing well-trained machine learning models' functionality or privacy information. With the gradual popularization of AI-related technologies in daily life, various well-trained models are being deployed. As a result, these models are considered valuable assets and attractive to model extraction attackers. Currently, the academic community primarily focuses on defense for model extraction attacks in the context of classification, with little attention to the more commonly used task scenario of object detection. Therefore, we propose a detection framework targeting model extraction attacks against object detection models in this paper. The framework first locates suspicious users based on feature coverage in query traffic and uses an active verification module to confirm whether the identified suspicious users are attackers. Through experiments conducted in multiple task scenarios, we validate the effectiveness and detection efficiency of the proposed method.
Introduction
Machine Learning as a Service (MLaaS) has made high-performance object detection models widely accessible via APIs. However, this accessibility introduces a significant vulnerability: model extraction attacks. In these scenarios, an adversary queries the victim model's API with a large volume of data, collects the outputs (bounding boxes and labels), and uses this information to train a "substitute" model that mimics the original's functionality.
While defenses like watermarking or differential privacy exist for classification tasks, they often degrade performance or fail to detect attacks during the query phase. Object detection presents unique challenges due to its complexity, involving multiple objects, varying scales, and post-processing steps. This paper introduces OSD (Object detector Steal Detection), a framework designed to be both accurate and efficient for real-world deployment.
Methodology: The OSD Framework
OSD operates in two distinct stages: Anomaly Query Detection and Proactive Confirmation.
1. Feature Space Coverage Analysis
The framework's core premise is that attackers must "cover" the victim model's functional space to build a high-fidelity clone. Legitimate users typically query data within a narrower distribution. OSD utilizes a contrastive encoder to map queries into a high-dimensional feature space. By tracking the growth rate of a user's "coverage" relative to predefined anchor points, OSD identifies users exploring the feature space too broadly or rapidly. To maintain efficiency, the authors developed IPCA*, an optimized Incremental Principal Component Analysis method that reduces dimensionality with minimal overhead.
2. Proactive Confirmation Module
To minimize false positives, OSD employs a second verification step for suspicious users. The system introduces subtle random perturbations to the bounding boxes of large objects in the API results. Because attackers use these results for training, their subsequent queries will exhibit a measurable drop in performance or a shift in distribution for those specific object types. Benign users, who do not use the results for training, remain unaffected.
Results and Discussion
OSD demonstrated high efficacy across diverse scenarios, including general object detection (COCO), self-driving (nuImages), and aerial imagery (AI-TOD). As shown in the performance table below, the framework consistently achieved detection accuracy (ACC) above 90%, often reaching 100% for certain configurations, while maintaining a low False Positive Rate (FPR), typically below 5%.
Key findings include:
- Early Detection: OSD identifies attackers before they can collect enough data to train a functional substitute.
- Efficiency: The computational overhead remains under 20%, making it suitable for high-speed MLaaS APIs.
- Robustness: The system remains effective even against adaptive attacks where adversaries attempt to mask their intent by adding background noise to their query sequences.
Conclusion
OSD represents a significant step forward in protecting object detection models. By treating model stealing as a geometric coverage problem and utilizing proactive verification, it offers a robust defense that balances accuracy with operational efficiency. Future work will address potential Sybil attacks and further refine the user experience to ensure perturbations remain imperceptible to legitimate users.
Summary updated