arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.12579cs.CRcs.LG
收藏

空间DNN加速器的功率攻击

Power-Based Attacks on Spatial DNN Accelerators

The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Ge Li, Mohit Tiwari, Michael Orshansky

摘要:

随着基于DNN的应用的激增,DNN模型的机密性是一个重要的商业目标。空间加速器,并行化矩阵/向量运算,用于提高DNN计算的能量效率。最近,模型窃取攻击简单的加速器,无论是一个单一的处理元件或运行一个二进制化的网络,被证明使用的方法,从差分功率分析(DPA)攻击密码设备。本文研究了现实的空间加速器的脆弱性,使用一般的,8位,数字表示。我们研究了两种具有权重平稳的脉动阵列结构:(1)用于点积运算的3 $\times$ 1阵列,和(2)用于矩阵向量乘法的3 $\times$ 3阵列。两者都在SAKURA-G FPGA板上实现。我们表明,这两种架构最终是脆弱的。传统的DPA在1D阵列上完全成功,需要20K功率测量。然而,即使使用460K迹线,2D阵列也表现出更高的安全性。我们表明,这是因为2D阵列本质上需要多个MAC同时依赖于相同的输入。然而,我们发现,一种新的基于模板的DPA与多个剖析阶段是能够完全打破二维阵列,只有40K的痕迹。空间DNN加速器需要研究相应的对策。

英文摘要:

With proliferation of DNN-based applications, the confidentiality of DNN model is an important commercial goal. Spatial accelerators, that parallelize matrix/vector operations, are utilized for enhancing energy efficiency of DNN computation. Recently, model extraction attacks on simple accelerators, either with a single processing element or running a binarized network, were demonstrated using the methodology derived from differential power analysis (DPA) attack on cryptographic devices. This paper investigates the vulnerability of realistic spatial accelerators using general, 8-bit, number representation. We investigate two systolic array architectures with weight-stationary dataflow: (1) a 3 $\times$ 1 array for a dot-product operation, and (2) a 3 $\times$ 3 array for matrix-vector multiplication. Both are implemented on the SAKURA-G FPGA board. We show that both architectures are ultimately vulnerable. A conventional DPA succeeds fully on the 1D array, requiring 20K power measurements. However, the 2D array exhibits higher security even with 460K traces. We show that this is because the 2D array intrinsically entails multiple MACs simultaneously dependent on the same input. However, we find that a novel template-based DPA with multiple profiling phases is able to fully break the 2D array with only 40K traces. Corresponding countermeasures need to be investigated for spatial DNN accelerators.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑