arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.09532cs.CR
收藏

BoMaNet:整个神经网络的布尔掩码

BoMaNet: Boolean Masking of an Entire Neural Network

Anuj Dubey, Rosario Cammarota, Aydin Aysu

摘要:

最近关于从具有物理侧信道攻击的推理引擎窃取机器学习(ML)模型的工作迫切需要有效的侧信道防御。本工作提出了第一个$\textit{fully-masked}$神经网络推理机的设计。掩蔽使用安全多方计算来将秘密分割成随机份额并将秘密相关计算的统计关系去相关到边信道(例如,功率消耗)。在这项工作中,我们构建安全的硬件原语来屏蔽$\textit{all}$的线性和非线性操作的神经网络。我们通过将每个加法转换为XOR和“与”门的序列以及通过增强Trichina的安全布尔掩码风格来解决掩码整数加法的挑战。我们改进了传统的Trichina的“与”门,增加了流水线元件,以更好地抗毛刺,我们架构的整个设计,以维持每周期1掩蔽加法的吞吐量。我们在Xilinx Spartan-6(XC 6SLX 75)FPGA上实现了所提出的安全推理引擎。结果表明,掩蔽引起的延迟开销为3.5%,面积开销为5.9 $\times$。最后,我们证明了具有2 M迹线的掩蔽设计的安全性。

英文摘要:

Recent work on stealing machine learning (ML) models from inference engines with physical side-channel attacks warrant an urgent need for effective side-channel defenses. This work proposes the first $\textit{fully-masked}$ neural network inference engine design. Masking uses secure multi-party computation to split the secrets into random shares and to decorrelate the statistical relation of secret-dependent computations to side-channels (e.g., the power draw). In this work, we construct secure hardware primitives to mask $\textit{all}$ the linear and non-linear operations in a neural network. We address the challenge of masking integer addition by converting each addition into a sequence of XOR and AND gates and by augmenting Trichina's secure Boolean masking style. We improve the traditional Trichina's AND gates by adding pipelining elements for better glitch-resistance and we architect the whole design to sustain a throughput of 1 masked addition per cycle. We implement the proposed secure inference engine on a Xilinx Spartan-6 (XC6SLX75) FPGA. The results show that masking incurs an overhead of 3.5\% in latency and 5.9$\times$ in area. Finally, we demonstrate the security of the masked design with 2M traces.

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

↑