Revealing CNN Architectures via Side-Channel Analysis in Dataflow-based Inference Accelerators
Hansika Weerasena, Prabhat Mishra
TL;DR
This work addresses the privacy risk of architecture leakage from CNNs deployed on dataflow-based edge accelerators. It introduces a memory-based side-channel attack that exploits inherent data reuse in weight-stationary and output-stationary dataflows to recover CNN structures and parameters layer-by-layer. The authors demonstrate full architectural recovery for Lenet, AlexNet, VGG-16, and YOLOv2, both in simulation and on FPGA hardware, highlighting concrete parameter extractions for Conv, FC, and pooling layers and discussing mitigations. The results emphasize the practical threat of side-channel leakage in edge inference and motivate defenses that obscure memory-access patterns in dataflow accelerators.
Abstract
Convolutional Neural Networks (CNNs) are widely used in various domains, including image recognition, medical diagnosis and autonomous driving. Recent advances in dataflow-based CNN accelerators have enabled CNN inference in resource-constrained edge devices. These dataflow accelerators utilize inherent data reuse of convolution layers to process CNN models efficiently. Concealing the architecture of CNN models is critical for privacy and security. This article evaluates memory-based side-channel information to recover CNN architectures from dataflow-based CNN inference accelerators. The proposed attack exploits spatial and temporal data reuse of the dataflow mapping on CNN accelerators and architectural hints to recover the structure of CNN models. Experimental results demonstrate that our proposed side-channel attack can recover the structures of popular CNN models, namely, Lenet, Alexnet, VGGnet16, and YOLOv2.
