mlsanityData to 14 Oct 2026

Securing Neural Networks with Knapsack Optimization

arXiv 2304.10442 ↗First posted 20 Apr 2023cs.CVcited by 1

Not on the map. Why?

Abstract (arXiv)

MLaaS Service Providers (SPs) holding a Neural Network would like to keep the Neural Network weights secret. On the other hand, users wish to utilize the SPs' Neural Network for inference without revealing their data. Multi-Party Computation (MPC) offers a solution to achieve this. Computations in MPC involve communication, as the parties send data back and forth. Non-linear operations are usually the main bottleneck requiring the bulk of communication bandwidth. In this paper, we focus on ResNets, which serve as the backbone for many Computer Vision tasks, and we aim to reduce their non-linear components, specifically, the number of ReLUs. Our key insight is that spatially close pixels exhibit correlated ReLU responses. Building on this insight, we replace the per-pixel ReLU operation with a ReLU operation per patch. We term this approach 'Block-ReLU'. Since different layers in a Neural Network correspond to different feature hierarchies, it makes sense to allow patch-size flexibility for the various layers of the Neural Network. We devise an algorithm to choose the optimal set of patch sizes through a novel reduction of the problem to the Knapsack Problem. We demonstrate our approach in the semi-honest secure 3-party setting for four problems: Classifying ImageNet using ResNet50 backbone, classifying CIFAR100 using ResNet18 backbone, Semantic Segmentation of ADE20K using MobileNetV2 backbone, and Semantic Segmentation of Pascal VOC 2012 using ResNet50 backbone. Our approach achieves competitive performance compared to a handful of competitors. Our source code is publicly available: https://github.com/yg320/secure_inference.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 26 of its 52 references that are in the map. First posted on arXiv 20 Apr 2023.

Builds on

26 of 52 references.

References · 26

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
  3. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
  4. 2017Rethinking Atrous Convolution for Semantic Image Segmentationcited by 2,161
  5. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 2,031
  6. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,492
  7. 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 702
  8. 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 442
  9. 2017Population Based Training of Neural Networkscited by 367
  10. 2018Gazelle: A Low Latency Framework for Secure Neural Network Inferencecited by 193
  11. 2015The Power of Depth for Feedforward Neural Networkscited by 183
  12. 2020FALCON: Honest-Majority Maliciously Secure Framework for Private Deep Learningcited by 74
14 more
  1. 2018Chameleon: A Hybrid Secure Computation Framework for Machine Learning Applicationscited by 67
  2. 2019CrypTFlow: Secure TensorFlow Inferencecited by 61
  3. 2016Depth-Width Tradeoffs in Approximating Natural Functions with Neural Networkscited by 59
  4. 2021DeepReDuce: ReLU Reduction for Fast Private Inferencecited by 50
  5. 2022Structural Pruning via Latency-Saliency Knapsackcited by 41
  6. 2020CryptoNAS: Private Inference on a ReLU Budgetcited by 40
  7. 2022Selective Network Linearization for Efficient Private Inferencecited by 31
  8. 2018Coreset-Based Neural Network Compressioncited by 27
  9. 2018FALCON: A Fourier Transform Based Approach for Fast and Secure Convolutional Neural Network Predictionscited by 20
  10. 2020Knapsack Pruning with Inner Distillationcited by 20
  11. 2021Circa: Stochastic ReLUs for Private Deep Learningcited by 16
  12. 2021Blind Faith: Privacy-Preserving Machine Learning using Function Approximationcited by 10
  13. 2019Crypto-Oriented Neural Architecture Designcited by 5
  14. 2021Reducing ReLU Count for Privacy-Preserving CNN Speedupcited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.