Abstract
Deep Neural Networks (DNNs) are increasingly deployed on edge devices for critical applications. While model architectures are often treated as proprietary secrets and a defense against adversarial attacks, this research demonstrates that hardware side-channels can leak these "blueprints." By monitoring memory bus traces and PCIe events, the authors propose a holistic extraction attack that reconstructs model layers, connectivity, and dimensions. The method achieves high accuracy across standard architectures like ResNet and VGG, ultimately tripling the success rate of subsequent adversarial attacks.
Introduction
Deep Neural Networks (DNNs) serve as the foundational technology for autonomous driving, facial recognition, and other sensitive applications. Consequently, model architectures are considered high-value intellectual property and a primary defense against malicious actors. Knowledge of a model's exact structure—its layer types, counts, and connectivity—enables the creation of highly effective adversarial inputs designed to deceive the AI.
Traditional "black-box" attacks attempt to infer these structures by analyzing input-output pairs. However, these methods are computationally intensive and struggle with the complexity of modern architectures like ResNet or DenseNet. This paper introduces a "holistic" approach that bypasses software-level defenses by "listening" to the hardware's behavior during execution to extract architectural hints.
Methodology: The Extraction Pipeline
The proposed attack utilizes a three-step reverse-engineering pipeline that exploits information leakage from the GPU and PCIe bus.
1. Run-time Layer Sequence Identification
A single DNN layer, such as a convolution, is typically decomposed into numerous smaller GPU kernels. The authors treat these kernel execution patterns as "phonemes" in a language. Using a Sequence-to-Sequence model (LSTM with a Connectionist Temporal Classification (CTC) decoder)—a technique standard in automatic speech recognition—they map noisy, high-frequency hardware events back into a coherent sequence of neural network layers.
2. Layer Topology Reconstruction
To determine the connectivity between layers, such as identifying "shortcut" connections in ResNet, the researchers monitor Read-After-Write (RAW) memory patterns. By observing when a specific layer reads data previously written by another, the entire computational graph's data flow can be mapped.
3. Dimension Size Estimation
Finally, the total volume of data transferred across the memory bus is used to estimate specific parameters, including channel numbers and feature map dimensions. This is formulated as a constraint-satisfaction problem based on the mathematical requirements of standard neural network operations.
Experimental Evaluation
The attack was trained using hardware execution features from 8,500 random computational graphs recorded via Nvidia's nvprof tool. Evaluation was performed on industry-standard architectures, including VGG16/19, ResNet34/101/152, Inception, and Nasnet_large.
The system demonstrated remarkable precision, achieving a Label Error Rate (LER) below 0.07 for the ResNet family. This indicates near-perfect identification of layers even in complex 152-layer networks. Furthermore, the attack proved robust against environmental noise, maintaining effectiveness even with 30% random jitter in hardware measurements.
Impact on Adversarial Security
The primary danger of model extraction is the subsequent facilitation of adversarial attacks. In tests using the ImageNet dataset, a standard adversarial attack with no prior knowledge of the model architecture achieved a success rate of 14.6% to 25.5%. After extracting the architecture using the proposed method, the success rate surged to 75.9%.
Conclusion and Future Work
This research highlights a significant vulnerability in the "Cloud Training, Edge Inference" model. Because many edge devices share identical models, compromising one physical device allows an attacker to potentially compromise an entire product line.
While the attack currently requires physical access for bus snooping or DMA capabilities, it underscores the need for hardware-level defenses. Potential mitigations include Oblivious RAM (ORAM) to hide memory access patterns, though its 10x performance overhead remains a barrier for real-time applications. Future work may involve "Dummy Read/Write" operations or graph-level optimizations in system stacks like TVM to obfuscate execution patterns.
Summary updated