Skip to main navigation Skip to search Skip to main content

FSSiBNN: FSS-Based Secure Binarized Neural Network Inference with Free Bitwidth Conversion

  • Peng Yang
  • , Zoe Lin Jiang*
  • , Jiehang Zhuang
  • , Junbin Fang
  • , Siu Ming Yiu
  • , Xuan Wang
  • *Corresponding author for this work
  • Harbin Institute of Technology Shenzhen
  • Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies
  • Jinan University
  • The University of Hong Kong

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Neural network inference as a service enables a cloud server to provide inference services to clients. To ensure the privacy of both the cloud server’s model and the client’s data, secure neural network inference is essential. Binarized neural networks (BNNs), which use binary weights and activations, are often employed to accelerate inference. However, achieving secure BNN inference with secure multi-party computation (MPC) is challenging because MPC protocols cannot directly operate on values of different bitwidths and require bitwidth conversion. Existing bitwidth conversion schemes expand the bitwidths of weights and activations, leading to significant communication overhead. To address these challenges, we propose FSSiBNN, a secure BNN inference framework featuring free bitwidth conversion based on function secret sharing (FSS). By leveraging FSS, which supports arbitrary input and output bitwidths, we introduce a bitwidth-reduced parameter encoding scheme. This scheme seamlessly integrates bitwidth conversion into FSS-based secure binary activation and max pooling protocols, thereby eliminating the additional communication overhead. Additionally, we enhance communication efficiency by combining and converting multiple BNN layers into fewer matrix multiplication and comparison operations. We precompute matrix multiplication tuples for matrix multiplication and FSS keys for comparison during the offline phase, enabling constant-round online inference. In our experiments, we evaluated various datasets and models, comparing our results with state-of-the-art frameworks. Compared with the two-party framework XONN (USENIX Security ’19), FSSiBNN achieves approximately 7× faster inference times and reduces communication overhead by about 577×. Compared with the three-party frameworks SecureBiNN (ESORICS ’22) and FLEXBNN (TIFS ’23), FSSiBNN is approximately 2.5× faster in inference time and reduces communication overhead by 1.3× to 16.4×.

Original languageEnglish
Title of host publicationComputer Security – ESORICS 2024 - 29th European Symposium on Research in Computer Security, Proceedings
EditorsJoaquin Garcia-Alfaro, Rafał Kozik, Michał Choraś, Sokratis Katsikas
PublisherSpringer Science and Business Media Deutschland GmbH
Pages229-250
Number of pages22
ISBN (Print)9783031708787
DOIs
StatePublished - 2024
Externally publishedYes
Event29th European Symposium on Research in Computer Security, ESORICS 2024 - Bydgoszcz, Poland
Duration: 16 Sep 202420 Sep 2024

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14982 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference29th European Symposium on Research in Computer Security, ESORICS 2024
Country/TerritoryPoland
CityBydgoszcz
Period16/09/2420/09/24

Keywords

  • Binarized neural network
  • Free bitwidth conversion
  • Function secret sharing
  • Secure neural network inference

Fingerprint

Dive into the research topics of 'FSSiBNN: FSS-Based Secure Binarized Neural Network Inference with Free Bitwidth Conversion'. Together they form a unique fingerprint.

Cite this