DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference
Ke Changke, Jian Wang, Xuan Xu, Jiqiang Liu
Key points
From the paper's conclusion- For two-image AESPA ResNet-20 inference, it maintains packed execution across convolutions, square activations, and bootstrapping, achieving a $1.97\times$ end-to-end speedup over the fastest tested EasyFHE batched baseline on both the RTX 5090 and RTX PRO 6000.
Abstract
Complex packing in CKKS stores two real streams in the real and imaginary lanes of each slot. Direct squaring couples the lanes, while squaring them separately requires two ciphertext-ciphertext multiplications (HMults). DuetFHE is a GPU compiler that uses a phase transformation to square both lanes independently with one HMult. It reuses dual-lane squares in polynomial activations and the modular-reduction stage of CKKS bootstrapping. The compiler further plans ciphertext scales and reuses conjugates to sustain the complex-packed representation across stages. On a single RTX 5090, DuetFHE accelerates four polynomial activations by $1.60$--$1.79\times$ over direct evaluation on two real ciphertexts. For two-image AESPA ResNet-20 inference, it maintains packed execution across convolutions, square activations, and bootstrapping, achieving a $1.97\times$ end-to-end speedup over the fastest tested EasyFHE batched baseline on both the RTX 5090 and RTX PRO 6000.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- High Throughput Meets Low Latency: CKKS Functional Bootstrapping on GPUsarXiv · 2026
- NPUFHE: An Efficient CKKS Execution System for Ascend NPUsarXiv · 2026
- A Combined Streaming FPGA Architecture for Client-Side CKKS Encoding and EncryptionarXiv · 2026
- De Pace: Optimizing initial guesses for homomorphic reciprocal and square root evaluation with CKKSDiscover Artificial Intelligence · 2026
- A Survey of CKKS-Based Neural Network Inference: Technical Mechanisms and Network-Level Execution PlanningCryptography · 2026
- AscendFHE: Efficient Fully Homomorphic Encryption on Ascend NPUsarXiv · 2026