CipherFlow home GitHub
NeurIPS 2026 · Apache-2.0

CipherFlow: Compiling AI Programs for Efficient Cryptographically Secure Inference

CipherFlow takes a high-level AI computation graph, available cryptographic primitives, and a target hardware and network configuration to construct a latency-optimized hybrid secure inference plan.

Programming usability. AI developers and data scientists express model computations while the compiler selects HE/MPC operators, conversions, state alignment, and ciphertext maintenance.

Execution efficiency. MicroBench profiles deployment costs; state-expanded planning jointly optimizes feasible execution decisions; and BlockFold scales planning across branched Transformer graphs.

Model graphs, HE/MPC primitives, and CPU/GPU and network profiles enter CipherFlow. MicroBench, state-expanded planning, and BlockFold produce a latency-optimized hybrid secure plan with conversions and HE refresh.
CipherFlow at a glance. Model graphs, cryptographic primitives, and hardware/network profiles inform a latency-optimized HE–MPC plan with conversions and HE maintenance.
CipherFlowInteractive demoPlan BERT-base for your server and network
Server
RTT 40 ms
The planblock 1 of 12, top to bottom · hover or tap an operator

Plans by cipherflow.compile with the paper's profiles (HE: NEXUS; MPC: SHAFT, two parties and a trusted dealer). Latency is the whole 12-block model, estimated from measured costs.

Open full Plan explorer
Results

Performance

16.5×

speedup on BERT-base over state-of-the-art static hybrid placements (BumbleBee, BOLT, BLB)

22×

speedup on ViT, measured on commodity CPU and GPU platforms in the NeurIPS 2026 evaluation

vs static strategies
vs other compilers
Compare with
Citation

Cite CipherFlow

Hedong Zhang, Mengxin Zheng, and Qian Lou. CipherFlow: Compiling AI Programs for Efficient Cryptographically Secure Inference.

Read the paper · Download BibTeX

@inproceedings{zhang2026cipherflow,
  title     = {{CipherFlow}: Compiling {AI} Programs for Efficient Cryptographically Secure Inference},
  author    = {Zhang, Hedong and Zheng, Mengxin and Lou, Qian},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS)},
  year      = {2026},
  url       = {https://loopleap-lab.github.io/CipherFlow/assets/cipherflow-paper.pdf}
}