CipherFlow: Compiling AI Programs for Efficient Cryptographically Secure Inference
Hedong Zhang, Mengxin Zheng, Qian Lou
Key points
From the paper's conclusion- 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.
Abstract
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$\times$ speedup on BERT-base and over 22$\times$ 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM InferencearXiv · 2026
- Felid: A Flexible and Efficient Design for Transformer Fine-Tuning over Encrypted DataarXiv · 2026
- MOAI: Module-Optimizing Architecture for non-interactive secure transformer InferencearXiv · 2026
- AscendFHE: Efficient Fully Homomorphic Encryption on Ascend NPUsarXiv · 2026
- An Open-Source End-to-End FHE Implementation for Privacy-Preserving Llama 3 8B InferencearXiv · 2026
- A Survey of CKKS-Based Neural Network Inference: Technical Mechanisms and Network-Level Execution PlanningCryptography · 2026