DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference
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 -- 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 end-to-end speedup over the fastest tested EasyFHE batched baseline on both the RTX 5090 and RTX PRO 6000.
Create a lesson
Related papers
NPUFHE: An Efficient CKKS Execution System for Ascend NPUs
Shared title terminology · Ke Changke, Jian Wang, Xuan Xu et al.
TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference
Shared title terminology · Honghui You, Haoping Yang, Wenzhe Wang et al.
Understanding Membership Inference Attacks on EEG Models
Shared title terminology · Mehrdad Khodapanahandeh, Selin Unal, Berkay Kemal Balioglu et al.
GPU-Accelerated Secure Inference for Drug--Target Interaction Prediction
Shared title terminology · Sikha Pentyala, Steven Golob, Daniil Filienko et al.