CipherFlow: Compiling AI Programs for Efficient Cryptographically Secure Inference
Not on the map. Why?
Abstract (arXiv)
Cryptographically secure inference faces two practical challenges: making secure programming accessible to AI developers and data scientists, and achieving efficient execution across deployment environments. Developers must compose cryptographic primitives correctly, while performance depends on hardware, networks, and evolving ciphertext states. We present CipherFlow, a compiler framework that takes a high-level AI computation graph, available cryptographic primitives, and a target hardware and network configuration to generate an executable, latency-optimized secure inference program. CipherFlow automates cryptographic execution decisions through three techniques: MicroBench profiles deployment-specific primitive costs; state-expanded planning jointly optimizes homomorphic encryption (HE) and secure multi-party computation (MPC) placement, conversions, and ciphertext maintenance under cryptographic-state constraints; and BlockFold summarizes branched regions to scale planning to Transformer graphs. Evaluation using measured HE/MPC backend costs across CPU/GPU and network settings shows up to 16.5× speedup on BERT-base and over 22× on ViT compared with static hybrid placement baselines. CipherFlow separates model programming from cryptographic execution decisions, enabling developers to express AI computations while the compiler constructs efficient secure programs.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 33 of its 65 references that are in the map. Submitted 1 Nov 2026.
Builds on
33 of 65 references.
References · 33
- 2017Attention Is All You Needcited by 62,125
- 2022Transformers in Medical Imaging: A Surveycited by 251
- 2018Gazelle: A Low Latency Framework for Secure Neural Network Inferencecited by 196
- 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 135
- 2020CrypTFlow2: Practical 2-Party Secure Inferencecited by 84
- 2022MPCFormer: fast, performant and private Transformer inference with MPCcited by 75
- 2018Chameleon: A Hybrid Secure Computation Framework for Machine Learning Applicationscited by 68
- 2021Privacy-Preserving Machine Learning: Methods, Challenges and Directionscited by 61
- 2019SHE: A Fast and Accurate Deep Neural Network for Encrypted Datacited by 37
- 2021SIRNN: A Math Library for Secure RNN Inferencecited by 29
- 2021HEMET: A Homomorphic-Encryption-Friendly Privacy-Preserving Mobile Neural Network Architecturecited by 26
- 2019nGraph-HE2: A High-Throughput Framework for Neural Network Inference on Encrypted Datacited by 22
21 more
- 2023Primer: Fast Private Transformer Inference on Encrypted Datacited by 21
- 2023Orion: A Fully Homomorphic Encryption Framework for Deep Learningcited by 19
- 2025CipherPrune: Efficient and Scalable Private Transformer Inferencecited by 14
- 2024PrivCirNet: Efficient Private Inference via Block Circulant Transformationcited by 10
- 2025Breaking the Layer Barrier: Remodeling Private Transformer Inference with Hybrid CKKS and MPCcited by 9
- 2020AutoPrivacy: Automated Layer-wise Parameter Selection for Secure Neural Network Inferencecited by 8
- 2024BoostCom: Towards Efficient Universal Fully Homomorphic Encryption by Boosting the Word-wise Comparisonscited by 6
- 2024DataSeal: Ensuring the Verifiability of Private Computation on Encrypted Datacited by 6
- 2024Trinity: A General Purpose FHE Acceleratorcited by 5
- 2025Securing Transformer-based AI Execution via Unified TEEs and Crypto-protected Acceleratorscited by 5
- 2022MATCHA: A Fast and Energy-Efficient Accelerator for Fully Homomorphic Encryption over the Toruscited by 4
- 2025AttestLLM: Efficient Attestation Framework for Billion-scale On-device LLMscited by 4
- 2026CryptoGen: Secure Transformer Generation with Encrypted KV-Cache Reusecited by 4
- 2024OFHE: An Electro-Optical Accelerator for Discretized TFHEcited by 3
- 2025SoK: Can Fully Homomorphic Encryption Support General AI Computation? A Functional and Cost Analysiscited by 3
- 2025zkVC: Fast Zero-Knowledge Proof for Private and Verifiable Computingcited by 3
- 2026SecureRouter: Encrypted Routing for Efficient Secure Inferencecited by 3
- 2022CryptoLight: An Electro-Optical Accelerator for Fully Homomorphic Encryptioncited by 2
- 2026RobPI: Robust Private Inference against Malicious Clientcited by 2
- 2026EncFormer: Secure and Efficient Transformer Inference over Encrypted Datacited by 2
- 2026Efficient Arithmetic-and-Comparison Homomorphic Encryption with Space Switchingcited by 1
Built on by
Not cited yet.