Compiler-Guided Polynomial-Level Parallelism for FHE-Encrypted Machine Learning Inference
While compiling machine learning (ML) inference workloads encrypted by fully homomorphic encryption (FHE) has converged on a staged lowering strategy that translates ML computation graphs into ciphertext polynomial programs, polynomial-level parallelism remains underexplored and is typically confined to hard-coded FHE libraries. We introduce CRISP, a compiler-reasoned inter-stage safe parallelization approach that trades runtime SIMD vectorization for compile-time OpenMP parallelism. CRISP enables polynomial-level parallelization while preserving both data dependences and domain-specific cryptographic invariants, ensuring correctness across compilation stages and safety under inter-stage lowering and transformation. CRISP also coordinates compile-time parallelization with polynomial-level fusion, enabling optimization compositions that previously required manual implementation within FHE libraries. We implement CRISP within ANT-ACE, an end-to-end compiler for FHE-encrypted ML inference, and evaluate it on an Intel multi-core CPU platform. Experimental results demonstrate that CRISP enables effective compile-time parallelism, achieving a 2.65× mean speedup on polynomial-level operations, a mean execution-time reduction of 5.63% on ML operators, and an average 137-second reduction in end-to-end ML inference latency.
Authors
- Tao Dai (ORCID: https://orcid.org/0000-0002-3111-3724)
- Zhihong Liang (ORCID: https://orcid.org/0000-0001-8118-753X)
- Zuoyan Zhang (ORCID: https://orcid.org/0009-0005-2615-2541)
- Jie Zhao
- Zijian Duan
Institutions
- Hunan University (CN)
- China Southern Power Grid (China) (CN)
Publication Details
- Journal
- International Journal of Parallel Programming
- Published
- 2026-11-26
- DOI
- https://doi.org/10.1007/s10766-026-00838-2
- Primary Topic
- Parallel Computing and Optimization Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00