Skip to main content
QUICK REVIEW

[Paper Review] Does Fully Homomorphic Encryption Need Compute Acceleration?

Leo de Castro, Rashmi Agrawal|arXiv (Cornell University)|Dec 13, 2021
Cryptography and Data SecurityComputer Science25 citations
TL;DR

The paper analyzes the bootstrapping step in CKKS-based Fully Homomorphic Encryption, showing memory bandwidth is the major bottleneck and that compute acceleration offers limited gains; it proposes cache-friendly optimizations and a memory-aware parameter tuning tool, concluding memory improvements are essential for practicality.

ABSTRACT

Fully Homomorphic Encryption (FHE) allows arbitrarily complex computations on encrypted data without ever needing to decrypt it, thus enabling us to maintain data privacy on third-party systems. Unfortunately, sustaining deep computations with FHE requires a periodic noise reduction step known as bootstrapping. The cost of the bootstrapping operation is one of the primary barriers to the wide-spread adoption of FHE. In this paper, we present an in-depth architectural analysis of the bootstrapping step in FHE. First, we observe that secure implementations of bootstrapping exhibit a low arithmetic intensity (<1 Op/byte), require large caches (>100 MB), and are heavily bound by the main memory bandwidth. Consequently, we demonstrate that existing workloads observe marginal performance gains from the design of bespoke high-throughput arithmetic units tailored to FHE. Second, we propose several cache-friendly algorithmic optimizations that improve the throughput in FHE bootstrapping by enabling up to 3.2x higher arithmetic intensity and 4.6x lower memory bandwidth. Our optimizations apply to a wide range of structurally similar computations such as private evaluation and training of machine learning models. Finally, we incorporate these optimizations into an architectural tool which, given a cache size, memory subsystem, the number of functional units and a desired security level, selects optimal cryptosystem parameters to maximize the bootstrapping throughput. Our optimized bootstrapping implementation represents a best-case scenario for compute acceleration of FHE. We show that despite these optimizations, bootstrapping continues to be bottlenecked by main memory bandwidth. We propose new research directions to address the underlying memory bottleneck. In summary, our answer to the titular question is: yes, but only after addressing the memory bottleneck!

Motivation & Objective

  • Characterize the performance bottlenecks of FHE bootstrapping on memory systems.
  • Assess the feasibility of purely compute-based acceleration for CKKS FHE operations.
  • Develop cache-friendly and memory-aware optimizations to improve bootstrapping throughput.
  • Provide an architectural tool to select cryptosystem parameters that maximize throughput under memory constraints.
  • Demonstrate that memory bottlenecks, not compute, dominate end-to-end FHE workloads and outline future research directions.

Proposed method

  • Benchmark a range of CKKS operations from primitives to end-to-end applications to assess compute-to-memory balance.
  • Analyze memory bandwidth and working-set requirements for secure FHE primitives.
  • Propose cache-friendly domain-specific memory optimizations and algorithmic improvements to increase arithmetic intensity.
  • Develop memory-aware cryptosystem parameter selection to maximize bootstrapping throughput.
  • Integrate optimizations into an architectural tool that, given hardware and security constraints, outputs optimal parameters.

Experimental results

Research questions

  • RQ1What are the memory and bandwidth requirements of CKKS FHE primitives and bootstrapping?
  • RQ2Can compute-focused optimizations meaningfully increase FHE throughput, or is memory bandwidth the true bottleneck?
  • RQ3How can cache-conscious techniques and RNS-based arithmetic improve arithmetic intensity in FHE?
  • RQ4What parameter tuning strategies maximize bootstrapping throughput under security constraints?

Key findings

  • All CKKS/FHE operations exhibit low arithmetic intensity (<1 Op/byte).
  • Working-set sizes exceed typical LLC capacities, making bootstrapping and related work memory-bound.
  • Cache-friendly domain-specific optimizations can yield up to 3.2x higher arithmetic intensity and 4.6x lower memory bandwidth for bootstrapping.
  • Even with optimized parameters, bootstrapping remains the bottleneck, pointing to memory bandwidth as the fundamental limit.
  • An architectural tool can select cryptosystem parameters to maximize bootstrapping throughput under given hardware and security constraints.
  • The study argues that secure FHE requires approaches addressing memory bottlenecks beyond compute acceleration.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.