[Paper Review] Neural Network Model Extraction Attacks in Edge Devices by Hearing Architectural Hints
This paper presents a novel side-channel attack that extracts neural network architectures from edge devices by analyzing off-chip memory bus traffic and PCIe events on GPU platforms. Using speech recognition-inspired techniques like LSTM-CTC, it reconstructs layer types, connectivity, and dimensions with high accuracy, increasing adversarial attack success rates from 14.6–25.5% to 75.9%.
As neural networks continue their reach into nearly every aspect of software operations, the details of those networks become an increasingly sensitive subject. Even those that deploy neural networks embedded in physical devices may wish to keep the inner working of their designs hidden -- either to protect their intellectual property or as a form of protection from adversarial inputs. The specific problem we address is how, through heavy system stack, given noisy and imperfect memory traces, one might reconstruct the neural network architecture including the set of layers employed, their connectivity, and their respective dimension sizes. Considering both the intra-layer architecture features and the inter-layer temporal association information introduced by the DNN design empirical experience, we draw upon ideas from speech recognition to solve this problem. We show that off-chip memory address traces and PCIe events provide ample information to reconstruct such neural network architectures accurately. We are the first to propose such accurate model extraction techniques and demonstrate an end-to-end attack experimentally in the context of an off-the-shelf Nvidia GPU platform with full system stack. Results show that the proposed techniques achieve a high reverse engineering accuracy and improve the one's ability to conduct targeted adversarial attack with success rate from 14.6\%$\sim$25.5\% (without network architecture knowledge) to 75.9\% (with extracted network architecture).
Motivation & Objective
- To address the critical security gap in protecting DNN model architectures deployed on edge devices, especially in GPU-based systems with complex system stacks.
- To overcome the limitations of black-box model extraction attacks that require excessive computational resources and fail on complex architectures like ResNet and DenseNet.
- To demonstrate that architectural information leaks through hardware-side channels—specifically, off-chip memory access patterns and PCIe events—enabling efficient and accurate model reconstruction.
- To show that reconstructed architectures significantly improve the success rate of targeted adversarial attacks, thereby exposing a critical vulnerability in edge AI security.
Proposed method
- Snoops off-chip memory address traces and PCIe events from an off-the-shelf GPU platform during DNN inference execution.
- Applies Long Short-Term Memory with Connectionist Temporal Classification (LSTM-CTC) to identify layer boundaries and classify layer types (e.g., ReLU, Convolution) from temporal memory access sequences.
- Uses inter-layer temporal association and memory access pattern analysis to infer layer connectivity and topological structure.
- Employs data volume constraints and memory access volume estimation to deduce layer-specific dimensions (e.g., feature map size, kernel size).
- Leverages empirical knowledge of common DNN architectures as priors to guide and refine the reconstruction process.
- Validates the reconstructed model by comparing it with the original network and using it to generate adversarial examples.
Experimental results
Research questions
- RQ1Can neural network architectures be reconstructed from noisy, imperfect off-chip memory traces on GPU platforms?
- RQ2To what extent do hardware-side channel signals (memory access patterns and PCIe events) reveal architectural details such as layer types, connectivity, and dimensions?
- RQ3How effective is the proposed method in reconstructing complex DNN architectures like ResNet and DenseNet from system-level execution traces?
- RQ4How much does architectural reconstruction improve the success rate of adversarial attacks compared to black-box attacks without such knowledge?
- RQ5Can speech recognition-inspired techniques like LSTM-CTC be effectively adapted to reverse-engineer DNN execution patterns on general-purpose GPUs?
Key findings
- The proposed method achieves high accuracy in reconstructing DNN architectures from off-chip memory traces on a standard GPU platform, even with complex system stacks and optimizations.
- The reconstruction success rate enables adversarial attack success to increase from 14.6% to 25.5% (without architecture knowledge) to 75.9% (with extracted architecture).
- Memory access patterns and PCIe events contain sufficient architectural information to identify layer types, sequence, and connectivity, despite data reuse, scheduling, and address translation complexities.
- The use of LSTM-CTC for layer boundary detection and type classification significantly improves the accuracy of architectural reconstruction compared to heuristic or statistical methods.
- The attack is effective on real-world models including ResNet and DenseNet, demonstrating that even state-of-the-art models are vulnerable to system-level side-channel leakage.
- The results show that hardware-side channels on general-purpose GPUs are a viable and powerful vector for model extraction, undermining the security of the widely used 'cloud training, edge inference' paradigm.
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.