Abstract
Object detection models are increasingly deployed via Machine Learning as a Service (MLaaS), making them prime targets for model extraction attacks. Unlike image classifiers, object detectors are difficult to protect because attackers utilize in-distribution data, rendering traditional out-of-distribution detection methods ineffective. We present OSD (Object detector Steal Detection), the first defense framework specifically tailored for object detection. OSD monitors feature space coverage to identify suspicious query patterns and employs a proactive confirmation module that subtly perturbs results to verify malicious intent. Our experiments across multiple architectures (YOLOv3, YOLOv5, YOLOv7, and Fast-RCNN) and diverse datasets demonstrate that OSD achieves over 95% detection accuracy with minimal latency overhead, identifying attackers well before they can successfully clone the victim model.
Introduction
Model extraction attacks represent a significant threat to the intellectual property of AI developers. In these attacks, an adversary queries a high-quality "victim" model, collects the outputs, and uses the resulting dataset to train a "substitute" model that mimics the original's logic. While defense mechanisms for image classification are well-studied, object detection remains vulnerable. The core challenge lies in the fact that attackers must use realistic, in-distribution images to obtain meaningful bounding box results, making it nearly impossible to distinguish them from legitimate power users through simple query analysis.
The OSD Framework
OSD addresses this challenge through a two-stage defense pipeline: Feature Space Coverage Analysis and a Proactive Confirmation Module.
1. Feature Space Coverage Analysis
To extract a detector's full logic, an attacker must query a diverse range of data. OSD uses a Contrastive Encoder to map every incoming query into a high-dimensional feature space. By maintaining anchor points that represent the model's functional space, OSD tracks the growth rate of a user's "coverage." While a benign user (e.g., an autonomous vehicle) typically queries a narrow distribution of data (roads and highways), an attacker systematically explores the entire feature space. If a user's coverage grows too rapidly, they are flagged as suspicious.
2. Proactive Confirmation
Once a user is flagged, OSD enters a confirmation phase. Rather than blocking the user immediately, the system applies subtle perturbations to the bounding boxes of large objects in the returned results. This "trap" exploits the scale-decoupling nature of Feature Pyramid Networks (FPNs). A benign human user is unlikely to change their behavior based on these subtle shifts. However, an attacker training a substitute model will find their clone performing poorly on large objects. To compensate, the attacker's training loop will naturally shift to query fewer large objects. OSD detects this shift in the query distribution to confirm the attack with high confidence.
Efficiency and Implementation
Real-time MLaaS environments require defenses with extremely low latency. Calculating high-dimensional similarity for every query is computationally expensive. To solve this, OSD utilizes IPCA* (an optimized Incremental Principal Component Analysis) to reduce data dimensionality without losing critical feature information.
As shown in the comparison above, IPCA* provides a superior balance of storage efficiency and computational speed compared to standard t-SNE or raw embedding storage. This optimization allows OSD to operate with less than a 20% increase in total system latency.
Key Results and Conclusion
OSD was evaluated against a wide array of datasets, including COCO, nuImages, and AI-TOD. The framework consistently achieved detection accuracy (ACC) scores exceeding 95%, with false positive rates (FPR) maintained between 0-5%. Crucially, OSD provides early detection; attackers are often identified before their substitute models reach even 10% of the victim model's accuracy. By leveraging the unique architectural properties of object detectors—specifically feature space coverage and scale decoupling—OSD provides a robust, architecture-agnostic shield for commercial AI APIs.
Summary updated