NeurObfuscator: A Full-stack Obfuscation Tool to Mitigate Neural Architecture Stealing

Jingtao Li, Zhezhi He, Adnan Siraj Rakin, Deliang Fan, Chaitali Chakrabarti · DOI

TL;DR

This paper introduces NeurObfuscator, a novel tool that obfuscates neural network architectures to prevent intellectual property theft via architecture stealing attacks. By employing a suite of "obfuscating knobs" and a genetic algorithm, NeurObfuscator can significantly alter a model's architecture while maintaining its functionality and incurring minimal performance overhead.

What Problem Does This Paper Address?

The deployment of deep neural networks (DNNs) is increasingly threatened by "neural architecture stealing" attacks. These attacks aim to extract the sensitive architectural details of a DNN, such as the sequence and dimensions of its layers, often through side-channel information leakage (e.g., timing, memory access patterns) during inference. This stolen architecture can then be used to reconstruct a functionally similar model, which can be exploited for various malicious purposes, including launching more effective adversarial attacks. Existing countermeasures often involve hardware modifications, which are costly and impractical for existing systems. This paper addresses the need for a software-based solution that can effectively obfuscate DNN architectures without significant performance degradation.

Methods

NeurObfuscator employs a two-pronged approach: sequence obfuscation and dimension obfuscation.

  • Obfuscating Knobs: The core of the tool lies in a set of eight "obfuscating knobs" that manipulate the DNN execution flow at different stages:
  • Scripting Phase: Layer widening, layer branching, dummy addition, layer deepening, layer skipping, and kernel widening. These techniques modify layer parameters, introduce new layers, or duplicate existing ones.
  • Graph Optimization Phase: Selective fusion, which controls how operators are merged.
  • Scheduling Phase: Schedule modification, which alters how operations are executed on the hardware.
  • Genetic Algorithm (GA): To find the optimal combination of these knobs for maximum obfuscation under a given latency budget, NeurObfuscator utilizes a genetic algorithm. The GA searches for a set of obfuscation configurations that maximize an obfuscation metric (Layer Error Rate for sequence, Dimension Error Rate for dimension) while keeping the inference latency within a user-defined budget.
  • Evaluator: A crucial component is the "Evaluator," which simulates an attacker's perspective. It uses pre-trained LSTM predictors (for sequence obfuscation) and Random Forest regressors (for dimension obfuscation) to estimate how well an attacker could reconstruct the original architecture from the obfuscated model's execution trace.

Datasets

The paper evaluates NeurObfuscator on standard image classification datasets:

  • CIFAR-10: Used for training and evaluating obfuscated models like VGG-11, VGG-13, ResNet-20, and ResNet-32.
  • ImageNet: Used for training and evaluating obfuscated models like VGG-19, ResNet-18, and MobileNet-V2.

The paper also describes the generation of a large dataset of randomly generated neural network architectures (6,000 for CIFAR-10 and 6,000 for ImageNet) to train the attacker's prediction models.

Key Insights and Ideas

  • Software-Only Obfuscation: This work pioneers a purely software-based approach to DNN architecture obfuscation, making it applicable to a wide range of existing deployments without hardware changes.
  • Orthogonal Obfuscation Goals: Sequence and dimension obfuscation are treated as largely independent problems, allowing for specialized knob sets and optimization strategies for each.
  • Genetic Algorithm for Optimal Trade-offs: The use of a GA is key to navigating the complex search space of obfuscation knob combinations, effectively balancing obfuscation strength with performance overhead.
  • Side-Channel Attack Simulation: The "Evaluator" component, which simulates attacker capabilities using trained predictors, provides a realistic assessment of the obfuscation's effectiveness against real-world stealing attacks.
  • Knob Effectiveness Varies: Not all obfuscation knobs are equally effective. Layer branching and selective fusion show strong potential for sequence obfuscation, while schedule modification is particularly potent for dimension obfuscation.

Key Results

  • Sequence Obfuscation: NeurObfuscator can obfuscate a ResNet-18 ImageNet model to achieve a 2.44 Layer Error Rate (LER), equivalent to a 44-layer difference in architecture, with only a 2% increase in overall latency.
  • Dimension Obfuscation: For a single convolution layer (64 input, 128 output channels), obfuscation can result in the layer being extracted as having 207 input and 93 output channels with a mere 2% latency overhead.
  • Individual Knob Performance: Layer branching and selective fusion were found to be more effective for sequence obfuscation than layer deepening or skipping, especially when considering latency overhead.
  • Combined Knob Performance: The combined effect of multiple knobs, orchestrated by the GA, significantly outperforms individual knobs in achieving higher obfuscation.

Limitations and Future Work

  • Hardware Substrates: The current implementation is primarily designed for GPU devices. The authors plan to extend NeurObfuscator to other hardware platforms like FPGAs and ASICs.
  • End-to-End Performance Evaluation: While the paper demonstrates obfuscation effectiveness, it suggests future work on evaluating the end-to-end performance, including accuracy of models trained on obfuscated architectures and the success rate of transfer adversarial attacks.
  • Attack Scenario Assumption: The evaluation assumes an attacker with access to accurate trace information. The impact of noisy traces, which are more common in real-world scenarios, could be further investigated.

Summary updated

BibTeX
@inproceedings{li2021neurobfuscator,
  author = {Jingtao Li and Zhezhi He and Adnan Siraj Rakin and Deliang Fan and Chaitali Chakrabarti},
  title = {{NeurObfuscator: A Full-stack Obfuscation Tool to Mitigate Neural Architecture Stealing}},
  booktitle = {HOST},
  year = {2021},
  doi = {10.1109/host49136.2021.9702279},
}
Figure