Skip to main content
QUICK REVIEW

[Paper Review] BoMaNet: Boolean Masking of an Entire Neural Network

Anuj Dubey, Rosario Cammarota|arXiv (Cornell University)|Jun 16, 2020
Physical Unclonable Functions (PUFs) and Hardware SecurityComputer Science70 references6 citations
TL;DR

This paper proposes BoMaNet, the first fully-masked neural network inference engine that defends against power-based side-channel attacks using Boolean masking at the gate level. It achieves first-order security with only 3.5% latency overhead and 5.9× area overhead on an FPGA, by designing novel masked primitives for linear and non-linear operations, including a pipelined masked adder with one-cycle throughput and secure masked LUTs for BNNs.

ABSTRACT

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 $ extit{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 $ extit{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$ imes$ in area. Finally, we demonstrate the security of the masked design with 2M traces.

Motivation & Objective

  • To address the growing threat of physical side-channel attacks on machine learning models, particularly model stealing via power analysis.
  • To design a fully-masked neural network accelerator that protects all operations—linear and non-linear—against side-channel leakage.
  • To overcome the challenge of masking integer arithmetic, especially addition, in neural network inference hardware.
  • To implement a secure, high-throughput masked inference engine on an FPGA for practical evaluation and validation.
  • To demonstrate first-order security using TVLA with up to 2 million power traces.

Proposed method

  • The authors use Boolean masking based on secure multi-party computation to split secrets into random shares, decorrelating side-channel leakage from secret-dependent computations.
  • They convert integer addition into a sequence of XOR and AND gates using Trichina’s masking style, with pipelined AND gates for improved glitch resistance.
  • A novel 20-bit masked full adder is designed with feedback and pipelining to sustain one masked addition per cycle despite multi-cycle computation.
  • The design includes masked look-up tables (LUTs) for non-linear operations like ReLU and softmax, and a masked maximum-finding unit for output layer confidence selection.
  • The entire system is modularly built from low-level primitives (e.g., Trichina’s AND gates) and pipelined to maintain high throughput.
  • The implementation targets a binarized neural network (BNN) for area efficiency and is deployed on a Xilinx Spartan-6 FPGA for evaluation.

Experimental results

Research questions

  • RQ1Can a fully-masked neural network inference engine be designed to protect all linear and non-linear operations from side-channel leakage?
  • RQ2How can integer addition be securely masked in hardware using only Boolean logic, avoiding sign-bit leakage?
  • RQ3What is the performance and area overhead of masking an entire neural network compared to an unmasked baseline?
  • RQ4Can the masked design maintain high throughput despite the complexity of masked arithmetic and multi-cycle operations?
  • RQ5Is the masked design first-order secure against differential power analysis up to 2 million traces?

Key findings

  • The proposed BoMaNet achieves first-order security against power-based side-channel attacks, with no detectable leakage in TVLA evaluations using up to 2 million power traces.
  • The masked design incurs only a 3.5% increase in inference latency compared to the unmasked baseline on a Xilinx Spartan-6 FPGA.
  • The area overhead of the masked design is 5.9× that of the unmasked design, demonstrating a practical trade-off between security and resource usage.
  • The masked adder architecture supports one masked addition per cycle through pipelining and feedback, enabling high throughput despite multi-cycle computation.
  • The design successfully masks critical operations such as weighted summations, ReLU, and maximum selection, which are essential in BNN inference.
  • The evaluation reveals that capturing 2 million traces took one week due to high sampling rates and large trace sizes, highlighting the challenge of large-scale side-channel testing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.