[Paper Review] DeepObfuscation: Securing the Structure of Convolutional Neural Networks via Knowledge Distillation
This paper proposes DeepObfuscation, a novel method to protect convolutional neural networks (CNNs) from structural piracy by simulating their deep feature extractors with a shallow, sequential convolutional block using knowledge distillation. The approach preserves accuracy while making reverse engineering infeasible, as the obfuscated model is both more efficient and resistant to fine-tuning and transfer learning attacks.
This paper investigates the piracy problem of deep learning models. Designing and training a well-performing model is generally expensive. However, when releasing them, attackers may reverse engineer the models and pirate their design. This paper, therefore, proposes deep learning obfuscation, aiming at obstructing attackers from pirating a deep learning model. In particular, we focus on obfuscating convolutional neural networks (CNN), a widely employed type of deep learning architectures for image recognition. Our approach obfuscates a CNN model eventually by simulating its feature extractor with a shallow and sequential convolutional block. To this end, we employ a recursive simulation method and a joint training method to train the simulation network. The joint training method leverages both the intermediate knowledge generated by a feature extractor and data labels to train a simulation network. In this way, we can obtain an obfuscated model without accuracy loss. We have verified the feasibility of our approach with three prevalent CNNs, i.e., GoogLeNet, ResNet, and DenseNet. Although these networks are very deep with tens or hundreds of layers, we can simulate them in a shallow network including only five or seven convolutional layers. The obfuscated models are even more efficient than the original models. Our obfuscation approach is very effective to protect the critical structure of a deep learning model from being exposed to attackers. Moreover, it can also thwart attackers from pirating the model with transfer learning or incremental learning techniques because the shallow simulation network bears poor learning ability. To our best knowledge, this paper serves as a first attempt to obfuscate deep learning models, which may shed light on more future studies.
Motivation & Objective
- To address the growing threat of deep learning model piracy, where attackers reverse-engineer or steal well-designed, expensive-to-train CNN architectures.
- To protect the structural integrity of deep learning models, especially the complex feature extractors in state-of-the-art CNNs like GoogLeNet, ResNet, and DenseNet.
- To develop an obfuscation technique that preserves inference accuracy while minimizing structural leakage to attackers.
- To enhance model security against transfer learning and incremental learning attacks by degrading the fine-tuning capability of the obfuscated model.
- To establish a new paradigm in deep learning security by introducing structural obfuscation, a first-of-its-kind approach in the field.
Proposed method
- The method employs a recursive simulation process: first simulating individual inception blocks, then recursively simulating the entire simulated feature extractor in successive rounds.
- A joint training method is used to train the simulation network, leveraging both intermediate feature maps from the original model and the final data labels as supervisory signals.
- The simulation network is a shallow, sequential convolutional block with only five to seven layers, designed to be structurally simple and inherently poor at fine-tuning.
- Knowledge distillation is applied by aligning the intermediate activations of the original model with those of the simulation network, ensuring functional equivalence without structural similarity.
- The training process iteratively refines the simulation network to match the original model’s behavior across all layers, preserving accuracy.
- The obfuscated model is deployed as a standalone, efficient network that mimics the original’s inference output but hides its internal architecture.
Experimental results
Research questions
- RQ1Can a deep CNN’s complex feature extractor be accurately simulated by a shallow, sequential convolutional network without accuracy loss?
- RQ2Does the obfuscated model remain resilient to transfer learning and incremental learning attacks due to its limited learning capacity?
- RQ3To what extent does the recursive simulation and joint training method preserve the functional behavior of the original model during obfuscation?
- RQ4How effective is the obfuscation in preventing reverse engineering of the original model’s architecture?
- RQ5Can the obfuscated model be more efficient than the original while maintaining or improving inference speed?
Key findings
- The obfuscated models achieved inference accuracy identical to the original models on CIFAR-100 and STL-10 datasets, with no measurable accuracy degradation.
- The obfuscated models were more efficient than the original models, with fewer parameters and faster inference due to their shallow architecture.
- The simulation network, with only five to seven layers, successfully emulated the behavior of deep networks like GoogLeNet, ResNet-18, and DenseNet-121.
- Fine-tuning experiments showed that the obfuscated models had significantly reduced learning ability, making them resistant to parameter piracy via incremental learning.
- Transfer learning experiments demonstrated that the obfuscated models performed poorly when fine-tuned on new tasks, confirming their resistance to model stealing via transfer learning.
- The recursive simulation and joint training approach enabled high-fidelity functional mimicry of complex architectures while preserving structural obscurity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.