arXiv · 2611.29350
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 $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.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Ke Chang, Jian Wang, Xuan Xu, Jiqiang Liu. 2026-11-24. DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference. https://arxiv.science/abs/2611.29350
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.