CS Paper Radar

DuetFHE: Compiling Dual-Lane Nonlinear Circuits for Complex-Packed CKKS Inference

Ke Changke, Jian Wang, Xuan Xu, Jiqiang Liu

cs.CR ·submitted 2026-11-22 09:38 UTC · v1

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.

Comment
4 pages, 1 figure, 2 tables

Closest papers

Nearest neighbours by meaning across the whole index.

AscendFHE: Efficient Fully Homomorphic Encryption on Ascend NPUs

cs.CR cs.AR ·2026-11-22 ·Honghui You, Haoping Yang, Wenzhe Wang, Lei Ju
similarity 0.66
Abstract

Fully homomorphic encryption enables cloud servers to run neural networks on encrypted inputs. In CKKS, inference requires costly arithmetic on high-degree polynomials. On Ascend neural processing units, preparing operands and reconstructing intermediate results add to this cost, while limited local memory constrains parallel execution. We present AscendFHE, a CKKS backend that coordinates Ascend's matrix engines and vector cores for bootstrapping and encrypted inference. It uses balanced-byte encoding and exact modular reconstruction to reduce vector work and packs intermediate results in the next operator's input format to avoid redundant transfers. Its two-task pipeline reuses shared buffers after their last read to overlap matrix and vector execution within the local memory budget. On Ascend 910B3, AscendFHE achieves a 4.61$\times$ bootstrapping speedup and 1.59$\times$--2.00$\times$ encrypted-inference speedups across ResNet-20, BERT-base, and Llama 3 8B over our Vector-based Ascend port of Cheddar.

0.16

GPU-Accelerated Non-Interactive Encrypted Neural Network Training with Batched Diagonal Packing

cs.CR cs.LG ·2026-11-09 ·Kentaro Mihara
code/data similarity 0.65
Abstract · 12 pages. Research preprint. Code and evidence: https://github.com/kenmaro3/ckks-train

Training a neural network under homomorphic encryption requires transposes, batch reductions, optimizer updates, and repeated refreshes in addition to forward matrix products. We combine rectangular diagonal packing, feature-major SIMD mini-batch lanes, baby-step giant-step evaluation, and compact optimizer state in an MIT-licensed Rust CKKS implementation. Its CUDA path keeps training and bootstrap ciphertext arithmetic on the GPU, while retaining host key generation and client operations. In a matched 100-update experiment on the main non-interactive MNIST model, device-resident bootstrapping reduces training time from 14,268.295 to 293.075 seconds, a $48.68\times$ ratio against our CPU implementation, with exactly equal decoded parameters and predictions. Including setup and final evaluation gives a $40.67\times$ ratio. A separate GPU run completes ten passes over 4,800 images in 2,967.095 seconds and achieves 90.35% test accuracy versus 90.41% for its plaintext twin. These are single-initialization results; exact CPU/GPU parameter agreement is verified at 100 updates, not for the full 1,000-update run. Earlier completed CPU runs support a larger-batch key-switch advantage and baseline-batch accuracy within the registered tolerance, but the baseline-batch normalized key-switch target is missed. The released ReBoot baseline does not meet the common security-estimator threshold, and its full-setting CPU time is unmeasured. We therefore distinguish measured acceleration of our implementation from conditional layout comparisons and do not claim unconditional superiority over ReBoot.

0.45

High Throughput Meets Low Latency: CKKS Functional Bootstrapping on GPUs

cs.CR cs.DC ·2026-11-23 ·Carlos Agulló-Domingo, Carlo Pascoe, Óscar Vera-López, Andreea Alexandru, Ahmad Al Badawi +2 more
similarity 0.65
Abstract · 36 pages, no figures

Functional (programmable) bootstrapping extends the bootstrapping operation of Fully Homomorphic Encryption (FHE) to evaluate an arbitrary function while refreshing a ciphertext. This capability was a unique feature of scalar CGGI/DM cryptosystems for many years until it was recently added to the toolset of vectorized FHE schemes, with CKKS being the most promising option both in terms of throughput (amortized time) and functionality. Previous work showed that CKKS functional bootstrapping outperforms CGGI/DM functional bootstrapping in terms of throughput by two to three orders of magnitude, but still loses in latency on CPU by two to three orders of magnitude. We present an optimized GPU implementation of CKKS functional bootstrapping that closes the latency gap. Our implementation supports evaluating functions over both small integers (as in CGGI/DM) and real numbers (unique to CKKS), which we call discrete-CKKS and continuous-CKKS functional bootstrapping, respectively.

0.19

TurboFHE: An Efficient and Scalable Multi-GPU Framework for Homomorphic LLM Inference

cs.CR ·2026-11-22 ·Honghui You, Haoping Yang, Wenzhe Wang, Lei Ju
similarity 0.63
Abstract

Fully homomorphic encryption (FHE) enables privacy-preserving large language model inference but remains computationally intensive. Existing multi-GPU FHE inference systems rely on expert-crafted parallelization plans that generalize poorly across hardware platforms and applications. We present \fwName, a framework that automatically compiles CKKS inference programs into efficient multi-GPU executables. Its compiler can split different nodes of the same computation graph at the ciphertext and polynomial level. Guided by a measurement-based performance model, its hardware-aware planner jointly optimizes task partitioning, placement, operand residency, and transfer scheduling. %Critical-path-guided rewrites extract shared computation and restructure homomorphic sums. Its backend then generates optimized GPU kernels and executes plans using CUDA graphs and selective point-to-point transfers. \fwName adapts its plans to diverse hardware configurations and FHE inference algorithms for large-scale models. On a single A100 GPU, \fwName achieves a $24.5\times$ speedup over THOR's reported BERT-Base inference latency. For Cerium's Llama-3-8B workload, \fwName outperforms Cerium's expert-crafted plans by $1.14\times$, $1.16\times$, and $1.24\times$ on 2, 4, and 8 RTX PRO~6000 GPUs, respectively. On A100 GPUs, \fwName achieves $98.0\%$, $91.8\%$, and $79.3\%$ parallel efficiency for the same workload on 2, 4, and 8 GPUs, respectively.

0.24

A Combined Streaming FPGA Architecture for Client-Side CKKS Encoding and Encryption

cs.CR cs.AR ·2026-10-19 ·Joseph Kurina, Bogdan Pasca, Suleyman Demirsoy, Sunwoong Kim
published similarity 0.62
Abstract · Accepted to the International Conference on Field Programmable Technology (FPT) 2026

Homomorphic encryption allows a computing service to process encrypted data, but the client must first encode and encrypt its inputs. Sharing hardware between floating-point encoding and modular encryption reduces area but requires those transform roles to execute at different times. We present a streaming FPGA architecture for CKKS encoding and encryption that computes the shared floating-point encoding transform once and performs the integer transforms for six residue moduli in parallel. Dedicated transform pipelines exchange intermediate results on chip rather than through off-chip memory. DSP Builder generates the transform RTL, and Altera HLS IP Gen compiler compiles the surrounding SYCL pipeline into IP integrated with DMA and control logic in an accelerator functional unit. At polynomial degree N = 8192, the Altera Agilex 7 implementation delivers 5,143 complete ciphertexts per second at 471 MHz. One SEAL-Embedded CPU worker on the same workstation delivers 113 ciphertexts per second for real-valued inputs using all 4,096 slots. Measurements cover prepared-input computation through complete ciphertext construction, including FPGA submission and output delivery.

0.24

TUTTI: Parallel CKKS Bootstrapping in under 3 ms on CPU

cs.CR ·2026-11-09 ·Robin Köstler, Antonio Guimarães
similarity 0.59
Abstract

This paper introduces TUTTI, a new CKKS bootstrapping procedure that outperforms previous low-latency solutions in multi-threaded latency for any number of messages and, most notably, has a lower latency than TFHE when bootstrapping a single one. Our bootstrapping builds upon SPRU (CK, TCHES 2027), improving it with new methods for exploiting parallelism and increasing the number of messages, as well as with a refined security analysis, of independent interest, of the block-binary secret keys of LMSS (AsiaCCS 2023). TUTTI bootstraps 4096 real-number messages in 46 to 83.4 ms on 192 threads to restore 1 to 9 multiplicative levels, outperforming SHIP (CHKS, Eurocrypt 2025) by a factor of up to 3 on the same machine. Unlike SHIP, TUTTI gains immediately from bootstrapping fewer messages, with a 256-message bootstrapping taking just 15 to 34 ms on 32 threads. For a single message, TUTTI takes 4.6 ms on 32 threads, whereas TFHE-rs needs 7.3 ms for a 4-bit bootstrapping on the same machine and thread count. We show that this advantage persists across different architectures: on an Apple M5 Pro laptop (ARM), TUTTI takes 2.4 ms on 14 threads, against 4.5 ms for TFHE-rs. Differences between CKKS and lightweight schemes such as TFHE remain on several fronts, from functionality to key sizes and security assumptions, but our work shows that multi-threaded latency is no longer one of them, closing a long-standing gap in the practical FHE literature.

0.34

End-to-End NTT on FPGA for FHE Acceleration

cs.CR cs.AR ·2026-11-02 ·Mohamed Allam, Thomas Spendlhofer, Hugo Sanz-González, Antonio J. Peña
similarity 0.58
Abstract

Fully homomorphic encryption (FHE) enables privacy-preserving computation on encrypted data without decryption. Despite its strong security guarantees, FHE incurs substantial computational and memory overhead. In FHE-based deep learning inference, on average 63% of the CPU time is spent on the number theoretic transform (NTT) and its inverse (INTT), which reduce the complexity of polynomial multiplication from $O(N^2)$ to $O(N \log N)$. Prior FPGA works follow two approaches: accelerating entire FHE schemes, which yields significant speedups but ties them to specific parameters and algorithms, or accelerating only the NTT, which applies across schemes, algorithms, and libraries. Most FPGA NTT designs require interconnects that grow with parallelism and utilize significant resources, which complicates routing on multi-die FPGAs. Additionally, to the best of our knowledge, end-to-end NTT acceleration within an FHE context has so far been left unexplored. We design a fully unrolled, delay-commutator streaming NTT/INTT kernel, and floorplan it across the three dies of an AMD Alveo V80. At 400 MHz, the kernel transforms a polynomial of $2^{16}$ coefficients every 5.12 $μ$s, the highest throughput among FPGA designs at this size. Offloaded end to end, it is up to 22x faster than the CPU per transform. We integrate the kernel into the Lattigo FHE library and evaluate it end to end. With 128-bit secure parameters, it accelerates core FHE operations, such as key switching and bootstrapping, by 1.8-2.2x, and neural network inference by 1.8-2.1x.

0.06

Fiona: Accelerating FHE Inference with Packing-Aware Ternary Weights

cs.LG ·2026-09-28 ·Yiteng Peng, Zhibo Liu, Dongwei Xiao, Shuai Wang
similarity 0.57
Abstract

Fully homomorphic encryption (FHE) enables neural network inference directly on encrypted inputs, but it remains orders of magnitude slower than plaintext in- ference. Applying the server's plaintext weights to encrypted activations involves plaintext-ciphertext multiplications (PMult) and accounts for more than half of inference time in recent systems. Ternary quantization can replace these multipli- cations with additions and subtractions, but the savings rarely materialize under packed execution. A single PMult applies a weight group fixed by the packing layout and can be avoided only when all its weights share the same ternary value. Ternarizing all groups, however, largely degrades accuracy. We present FIONA, an offline optimizer that selectively ternarizes weights within a given packing layout based on the estimated effect of ternary conversion on the model's performance. FIONA encourages a shared ternary value within each weight group and retains full-precision weights for sensitive groups, so ternar- ized and full-precision paths coexist within a layer. It then compiles these hybrid operators exactly, applying common scaling factors once to accumulated inputs and reusing sums across outputs. Weight ternarization can also narrow the input ranges of downstream polynomials. FIONA fits lower-degree replacements under a cumulative accuracy budget, reducing multiplicative depth and bootstrapping. On VGG11, ViT, and BERT, FIONA reduces PMult operations by 53.4-79.5% and accelerates end-to-end encrypted inference by 2.38x, 1.68x, and 1.84x, re- spectively, with less than 1% accuracy loss across all three models.

0.30