[Paper Review] Dataflow-Oriented Classification and Performance Analysis of GPU-Accelerated Homomorphic Encryption
This paper shows that the best GPU optimization strategy for CKKS homomorphic encryption depends on CKKS parameter configuration and GPU architecture, with performance differences up to 1.98x across strategies.
Fully Homomorphic Encryption (FHE) enables secure computation over encrypted data, but its computational cost remains a major obstacle to practical deployment. To mitigate this overhead, many studies have explored GPU acceleration for the CKKS scheme, which is widely used for approximate arithmetic. In CKKS, CKKS parameters are configured for each workload by balancing multiplicative depth, security requirements, and performance. These parameters significantly affect ciphertext size, thereby determining how the memory footprint fits within the GPU memory hierarchy. Nevertheless, prior studies typically apply their proposed optimization methods uniformly, without considering differences in CKKS parameter configurations. In this work, we demonstrate that the optimal GPU optimization strategy for CKKS depends on the CKKS parameter configuration. We first classify prior optimizations by two aspects of dataflows which affect memory footprint and then conduct both qualitative and quantitative performance analyses. Our analysis shows that even on the same GPU architecture, the optimal strategy varies with CKKS parameters with performance differences of up to 1.98 $ imes$ between strategies, and that the criteria for selecting an appropriate strategy differ across GPU architectures.
Motivation & Objective
- Motivate and quantify how CKKS parameter configurations impact memory footprint and GPU performance for CKKS acceleration.
- Classify existing GPU optimization strategies for CKKS into a two-axis dataflow taxonomy.
- Evaluate how different CKKS parameters and GPU architectures affect the optimal optimization strategy.
- Provide insights toward parameter-aware and architecture-aware CKKS acceleration on GPUs.
Proposed method
- Classify CKKS optimization strategies along two axes: digit-level parallelism (DigitSerial vs DigitParallel) and output granularity (OutputBulk vs OutputChunked).
- Define four dataflow strategies: DSOB, DPOB, DSOC, DPOC, and map prior work to this taxonomy.
- Use qualitative memory-footprint analysis to relate CKKS parameters to cache behavior and stalls.
- Apply the GCoM GPU performance model to link memory-footprint changes to overall execution stalls.
- Conduct quantitative experiments across CKKS parameter grids (N, L, dnum) and multiple GPUs (RTX 6000 Ada, RTX 4090, A100, RTX 2080 Ti) to compare the four strategies.
- Analyze stall components (ComData, MemData, ComStruct, MemStruct, NoC, DRAM) and kernel-launch overhead.
Experimental results
Research questions
- RQ1Does the optimal GPU optimization strategy for CKKS vary with CKKS parameter configurations?
- RQ2How do CKKS parameters (N, L, dnum) influence memory footprint and cache behavior for different dataflow strategies?
- RQ3Do GPU architectures alter which CKKS-parameter-aware strategy is most effective?
- RQ4What magnitude of performance difference can arise between strategies across parameter settings and GPUs?
- RQ5Can we derive guidelines for parameter- and architecture-aware optimization of CKKS on GPUs?
Key findings
- The optimal optimization strategy varies with CKKS parameters, with performance differences up to 1.98x between strategies on the same GPU.
- CKKS parameters significantly affect memory footprint and cache behavior, influencing which strategy is best.
- On different GPUs, the criteria for selecting the best strategy differ, and the footprint relative to L2 cache capacity guides strategy choice.
- DPOB often yields the best execution time for many CKKS parameter settings on A100 and RTX 2080 Ti, while DSOC is generally less favorable due to higher kernel-launch overhead.
- For larger CKKS parameter sets, DPOB can become the worst choice, while DPOC or DSOC may be preferable depending on architecture and parameter mix.
- The study advocates CKKS-parameter-aware and GPU-architecture-aware optimization to unlock additional performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.