MACPruning: Dynamic Operation Pruning to Mitigate Side-Channel DNN Model Extraction
Ruyi Ding, Cheng Gongye, Davis Ranney, Aidong Adam Ding, Yunsi Fei
TL;DR
MACPruning introduces a lightweight, DNN-aware defense against EM side-channel based model extraction by randomly deactivating input pixels (RPAM) and pruning corresponding MAC operations, leveraging the inherent robustness of DNNs to input variation. It further improves resilience via IaPAM, which preserves critical input pixels while allowing randomness elsewhere, achieving strong leakage suppression with minimal accuracy loss. The authors derive a theoretical mitigation strength $R$ and its empirical analogue ${\hat{R}}$, validate them on real MCU measurements for MNIST and CIFAR-10, and demonstrate favorable overhead compared to masking or shuffling. An adaptive-attack analysis yields upper bounds on leakage and shows that $R$ remains large for practical settings, implying robust protection of early layers where parameter leakage would otherwise be most feasible. Overall, MACPruning provides a practical, efficient approach to protect DNN IP on edge devices against SCA-based parameter extraction.
Abstract
As deep learning gains popularity, edge IoT devices have seen proliferating deployment of pre-trained Deep Neural Network (DNN) models. These DNNs represent valuable intellectual property and face significant confidentiality threats from side-channel analysis (SCA), particularly non-invasive Differential Electromagnetic (EM) Analysis (DEMA), which retrieves individual model parameters from EM traces collected during model inference. Traditional SCA mitigation methods, such as masking and shuffling, can still be applied to DNN inference, but will incur significant performance degradation due to the large volume of operations and parameters. Based on the insight that DNN models have high redundancy and are robust to input variation, we introduce MACPruning, a novel lightweight defense against DEMA-based parameter extraction attacks, exploiting specific characteristics of DNN execution. The design principle of MACPruning is to randomly deactivate input pixels and prune the operations (typically multiply-accumulate-MAC) on those pixels. The technique removes certain leakages and overall redistributes weight-dependent EM leakages temporally, and thus effectively mitigates DEMA. To maintain DNN performance, we propose an importance-aware pixel map that preserves critical input pixels, keeping randomness in the defense while minimizing its impact on DNN performance due to operation pruning. We conduct a comprehensive security analysis of MACPruning on various datasets for DNNs on edge devices. Our evaluations demonstrate that MACPruning effectively reduces EM leakages with minimal impact on the model accuracy and negligible computational overhead.
