CBNN: 3-Party Secure Framework for Customized Binary Neural Networks Inference
Benchang Dong, Zhili Chen, Xin Chen, Shiwen Wei, Jie Fu, Huifa Li
TL;DR
CBNN tackles the challenge of private and efficient inference for binarized neural networks by designing a three-party secure computation framework where data, model, and a helper collaborate to evaluate customized BNNs without leaking inputs or weights. The approach converts standard BNNs into MPC-friendly models using knowledge distillation and separable convolutions, paired with RSS-based secret sharing and a novel MSB-extraction activation to minimize non-linear protocol overhead. It introduces secure primitives, including a 3-party OT protocol and fixed-point truncation, plus BN/activation fusion and maxpooling optimizations to reduce rounds and communication. Experimental results on MNIST and CIFAR-10 demonstrate competitive accuracy with lower communication and latency in both LAN and WAN settings, highlighting CBNN’s practical impact for privacy-preserving machine learning on real workloads.
Abstract
Binarized Neural Networks (BNN) offer efficient implementations for machine learning tasks and facilitate Privacy-Preserving Machine Learning (PPML) by simplifying operations with binary values. Nevertheless, challenges persist in terms of communication and accuracy in their application scenarios. In this work, we introduce CBNN, a three-party secure computation framework tailored for efficient BNN inference. Leveraging knowledge distillation and separable convolutions, CBNN transforms standard BNNs into MPC-friendly customized BNNs, maintaining high utility. It performs secure inference using optimized protocols for basic operations. Specifically, CBNN enhances linear operations with replicated secret sharing and MPC-friendly convolutions, while introducing a novel secure activation function to optimize non-linear operations. We demonstrate the effectiveness of CBNN by transforming and securely implementing several typical BNN models. Experimental results indicate that CBNN maintains impressive performance even after customized binarization and security measures
