SIRNN: A Math Library for Secure RNN Inference
Not on the map. Why?
Abstract (arXiv)
Complex machine learning (ML) inference algorithms like recurrent neural networks (RNNs) use standard functions from math libraries like exponentiation, sigmoid, tanh, and reciprocal of square root. Although prior work on secure 2-party inference provides specialized protocols for convolutional neural networks (CNNs), existing secure implementations of these math operators rely on generic 2-party computation (2PC) protocols that suffer from high communication. We provide new specialized 2PC protocols for math functions that crucially rely on lookup-tables and mixed-bitwidths to address this performance overhead; our protocols for math functions communicate up to 423x less data than prior work. Some of the mixed bitwidth operations used by our math implementations are (zero and signed) extensions, different forms of truncations, multiplication of operands of mixed-bitwidths, and digit decomposition (a generalization of bit decomposition to larger digits). For each of these primitive operations, we construct specialized 2PC protocols that are more communication efficient than generic 2PC, and can be of independent interest. Furthermore, our math implementations are numerically precise, which ensures that the secure implementations preserve model accuracy of cleartext. We build on top of our novel protocols to build SIRNN, a library for end-to-end secure 2-party DNN inference, that provides the first secure implementations of an RNN operating on time series sensor data, an RNN operating on speech data, and a state-of-the-art ML architecture that combines CNNs and RNNs for identifying all heads present in images. Our evaluation shows that SIRNN achieves up to three orders of magnitude of performance improvement when compared to inference of these models using an existing state-of-the-art 2PC framework.
Key facts. Cited by 28 papers in the map (data through 7 Oct 2026). Builds on 24 of its 120 references that are in the map. First posted on arXiv 10 May 2021.
Builds on
24 of 120 references.
References · 24
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 741
- 2018Gazelle: A Low Latency Framework for Secure Neural Network Inferencecited by 193
- 2018A generic framework for privacy preserving deep learningcited by 103
- 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 82
- 2018Chameleon: A Hybrid Secure Computation Framework for Machine Learning Applicationscited by 67
- 2019CrypTFlow: Secure TensorFlow Inferencecited by 61
- 2017CryptoDL: Deep Neural Networks over Encrypted Datacited by 56
- 2019XONN: XNOR-based Oblivious Deep Neural Network Inferencecited by 51
12 more
- 2017DeepSecure: Scalable Provably-Secure Deep Learningcited by 48
- 2019QUOTIENT: Two-Party Secure Neural Network Training and Predictioncited by 41
- 2019FastGRNN: A Fast, Accurate, Stable and Tiny Kilobyte Sized Gated Recurrent Neural Networkcited by 38
- 2019Glyph: Fast and Accurately Training Deep Neural Networks on Encrypted Datacited by 28
- 2018nGraph-HE: A Graph Compiler for Deep Learning on Homomorphically Encrypted Datacited by 24
- 2019Secure Evaluation of Quantized Neural Networkscited by 22
- 2019nGraph-HE2: A High-Throughput Framework for Neural Network Inference on Encrypted Datacited by 21
- 2020RNNPool: Efficient Non-linear Pooling for RAM Constrained Inferencecited by 21
- 2018Detecting Heads using Feature Refine Net and Cascaded Multi-Scale Architecturecited by 18
- 2019Secure Computation for Machine Learning With SPDZcited by 5
- 2013On Sound Compilation of Realscited by 4
- 2019ARM2GC: Succinct Garbled Processor for Secure Computationcited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 6; 2024: 10; 2025: 6; 2026: 3.
28 papers.
Sort:
- 2021Privacy-Preserving Machine Learning: Methods, Challenges and Directionscited by 58
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023A Survey of Trustworthy Federated Learning with Perspectives on Security, Robustness, and Privacycited by 24
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
- 2023AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHEcited by 15
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 15
- 2023East: Efficient and Accurate Secure Transformer Framework for Inferencecited by 9
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 9
- 2024SecFormer: Fast and Accurate Privacy-Preserving Inference for Transformer Models via SMPCcited by 7
- 2024Comet: A Communication-efficient and Performant Approximation for Private Transformer Inferencecited by 7
- 2025Activation Approximations Can Incur Safety Vulnerabilities Even in Aligned LLMs: Comprehensive Analysis and Defensecited by 7
- 2023Falcon: Accelerating Homomorphically Encrypted Convolutions for Efficient Private Mobile Network Inferencecited by 5
16 more
- 2024CryptoTrain: Fast Secure Training on Encrypted Datasetcited by 3
- 2022Tabula: Efficiently Computing Nonlinear Activation Functions for Secure Neural Network Inferencecited by 2
- 2024HEQuant: Marrying Homomorphic Encryption and Quantization for Communication-Efficient Private Inferencecited by 2
- 2023Compact: Approximating Complex Activation Functions for Secure Computationcited by 1
- 2024Pencil: Private and Extensible Collaborative Learning without the Non-Colluding Assumptioncited by 1
- 2024Ents: An Efficient Three-party Training Framework for Decision Trees by Communication Optimizationcited by 1
- 2024PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimizationcited by 1
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computationcited by 1
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inferencecited by 1
- 2024Spin: An Efficient Secure Computation Framework with GPU Accelerationcited by 0
- 2024Hawk: Accurate and Fast Privacy-Preserving Machine Learning Using Secure Lookup Table Computationcited by 0
- 2025An Efficient Private GPT Never Autoregressively Decodescited by 0
- 2025SecONNds: Secure Outsourced Neural Network Inference on ImageNetcited by 0
- 2025PrivGNN: High-Performance Secure Inference for Cryptographic Graph Neural Networkscited by 0
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimizationcited by 0
- 2026OptiPrime: Optimizing Private Inference through Protocol-Hardware Co-designcited by 0
- 2026OptiPrime: Optimizing Private Inference through Protocol-Hardware Co-design15 Sep 2026
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inference6 May 2026
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimization21 Feb 2026
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation24 Nov 2025
- 2025PrivGNN: High-Performance Secure Inference for Cryptographic Graph Neural Networks4 Nov 2025
- 2025SecONNds: Secure Outsourced Neural Network Inference on ImageNet13 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025CipherPrune: Efficient and Scalable Private Transformer Inference24 Feb 2025
- 2025Activation Approximations Can Incur Safety Vulnerabilities Even in Aligned LLMs: Comprehensive Analysis and Defense2 Feb 2025
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformers24 Nov 2024
- 2024PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimization12 Oct 2024
- 2024CryptoTrain: Fast Secure Training on Encrypted Dataset25 Sep 2024
16 more
- 2024Ents: An Efficient Three-party Training Framework for Decision Trees by Communication Optimization12 Jun 2024
- 2024Comet: A Communication-efficient and Performant Approximation for Private Transformer Inference24 May 2024
- 2024Hawk: Accurate and Fast Privacy-Preserving Machine Learning Using Secure Lookup Table Computation26 Mar 2024
- 2024Pencil: Private and Extensible Collaborative Learning without the Non-Colluding Assumption17 Mar 2024
- 2024Spin: An Efficient Secure Computation Framework with GPU Acceleration4 Feb 2024
- 2024HEQuant: Marrying Homomorphic Encryption and Quantization for Communication-Efficient Private Inference29 Jan 2024
- 2024SecFormer: Fast and Accurate Privacy-Preserving Inference for Transformer Models via SMPC1 Jan 2024
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE12 Oct 2023
- 2023Compact: Approximating Complex Activation Functions for Secure Computation9 Sep 2023
- 2023Falcon: Accelerating Homomorphically Encrypted Convolutions for Efficient Private Mobile Network Inference25 Aug 2023
- 2023East: Efficient and Accurate Secure Transformer Framework for Inference19 Aug 2023
- 2023A Survey of Trustworthy Federated Learning with Perspectives on Security, Robustness, and Privacy21 Feb 2023
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention25 Nov 2022
- 2022Tabula: Efficiently Computing Nonlinear Activation Functions for Secure Neural Network Inference5 Mar 2022
- 2021Privacy-Preserving Machine Learning: Methods, Challenges and Directions10 Aug 2021
- 2021Privacy-Preserving Machine Learning: Methods, Challenges and Directionscited by 58
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023A Survey of Trustworthy Federated Learning with Perspectives on Security, Robustness, and Privacycited by 24
- 2022MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attentioncited by 19
- 2023AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHEcited by 15
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformerscited by 15
- 2023East: Efficient and Accurate Secure Transformer Framework for Inferencecited by 9
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 9
- 2024SecFormer: Fast and Accurate Privacy-Preserving Inference for Transformer Models via SMPCcited by 7
- 2024Comet: A Communication-efficient and Performant Approximation for Private Transformer Inferencecited by 7
- 2025Activation Approximations Can Incur Safety Vulnerabilities Even in Aligned LLMs: Comprehensive Analysis and Defensecited by 7
- 2023Falcon: Accelerating Homomorphically Encrypted Convolutions for Efficient Private Mobile Network Inferencecited by 5
12 most cited of 28 All 28 (JSON)
- 2026OptiPrime: Optimizing Private Inference through Protocol-Hardware Co-design15 Sep 2026
- 2026On the (In-)Security of the Shuffling Defense in the Transformer Secure Inference6 May 2026
- 2026UFO: Unlocking Ultra-Efficient Quantized Private Inference with Protocol and Algorithm Co-Optimization21 Feb 2026
- 2025CrypTorch: PyTorch-based Auto-tuning Compiler for Machine Learning with Multi-party Computation24 Nov 2025
- 2025PrivGNN: High-Performance Secure Inference for Cryptographic Graph Neural Networks4 Nov 2025
- 2025SecONNds: Secure Outsourced Neural Network Inference on ImageNet13 Jun 2025
- 2025An Efficient Private GPT Never Autoregressively Decodes21 May 2025
- 2025CipherPrune: Efficient and Scalable Private Transformer Inference24 Feb 2025
- 2025Activation Approximations Can Incur Safety Vulnerabilities Even in Aligned LLMs: Comprehensive Analysis and Defense2 Feb 2025
- 2024Nimbus: Secure and Efficient Two-Party Inference for Transformers24 Nov 2024
- 2024PrivQuant: Communication-Efficient Private Inference with Quantized Network/Protocol Co-Optimization12 Oct 2024
- 2024CryptoTrain: Fast Secure Training on Encrypted Dataset25 Sep 2024
12 newest of 28 All 28 (JSON)