Compiler-Guided Polynomial-Level Parallelism for FHE-Encrypted Machine Learning Inference
Abstract
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.
// Source
Authors: Zijian Duan, Zuoyan Zhang, Tao Dai, Zhihong Liang, Jie Zhao
Institutions: Hunan University, China Southern Power Grid (China)