SHIP: A Shallow and Highly Parallelizable CKKS Bootstrapping Algorithm

Jung Hee Cheon, Guillaume Hanrot, Jongmin Kim, Damien Stehlé

TL;DR

This paper introduces SHIP, a novel and highly parallelizable bootstrapping algorithm for the CKKS fully homomorphic encryption scheme. SHIP significantly reduces the multiplicative depth required for bootstrapping, enabling the first CKKS bootstrapping of full-dimensional vectors at a ring degree of N=2^13, achieving a substantial reduction in latency compared to existing methods.

What Problem Does This Paper Address?

Fully Homomorphic Encryption (FHE) schemes like CKKS allow computations on encrypted data, but the "bootstrapping" process, which is necessary to refresh ciphertexts and allow for further computations, is computationally expensive and time-consuming. Specifically, CKKS bootstrapping, while offering high throughput for computations, suffers from a significant latency due to its deep homomorphic multiplicative depth. This depth requirement necessitates large moduli and ring degrees, further increasing the computational cost. Existing methods either sacrifice throughput for lower latency (like DM/CGGI) or remain too slow for many practical applications. The authors aim to bridge this gap by developing a CKKS bootstrapping algorithm that is both shallow (low multiplicative depth) and highly parallelizable, leading to significantly reduced latency without compromising throughput.

Methods

The core innovation of SHIP lies in its shallow homomorphic multiplicative depth. Instead of relying on homomorphic Discrete Fourier Transforms (DFTs) at high moduli, SHIP employs a novel approach that leverages "blind rotations." This technique, inspired by DM/CGGI bootstrapping, allows for homomorphic rotation of encrypted data by an amount determined by an encrypted secret key.

Key techniques include:

  • Blind Rotations: SHIP utilizes a primitive called "BlindRot" which homomorphically rotates encrypted data by a secret index. This is achieved through two main methods:
  • Column Method: This method uses plaintext-ciphertext multiplications and is efficient for cleartext inputs but scales linearly with the size of the encrypted index.
  • Mux Method: This method uses key-switching operations and is more sequential but scales logarithmically with the size of the encrypted index.
  • Hybrid Method: SHIP combines these two methods to leverage their respective advantages, using the column method for initial rotations and the mux method for subsequent ones.
  • Masking: To efficiently compute the necessary intermediate values for blind rotations, SHIP employs masks. These masks are derived from the secret key and are crucial for the correctness of the algorithm.
  • Shallow Depth: By avoiding high-modulus homomorphic DFTs, SHIP significantly reduces the number of homomorphic operations required, leading to a much shallower circuit. This allows for bootstrapping at smaller ring degrees (e.g., N=2^13) while maintaining security.
  • High Parallelizability: The algorithm is designed to be highly parallelizable, with a significant portion of the computation (specifically, the blind rotations) being independent and executable in parallel. This is a key factor in achieving low latency on multi-core processors.

Datasets

Not discussed in the paper. The paper focuses on algorithmic development and experimental evaluation using synthetic parameters.

Key Insights and Ideas

  • Depth is Key: The paper strongly emphasizes that reducing the homomorphic multiplicative depth is paramount for achieving practical CKKS bootstrapping. SHIP's success hinges on this insight, allowing it to operate at smaller ring degrees.
  • Blind Rotations are Powerful: The adaptation and combination of blind rotation techniques from other FHE schemes prove to be a highly effective strategy for shallow CKKS bootstrapping.
  • Parallelism is Crucial for Latency: The authors demonstrate that high-grain parallelism, enabled by the algorithm's structure, is essential for achieving low latency on modern multi-core architectures.
  • Trade-offs in Blind Rotation Methods: The paper highlights the distinct advantages and disadvantages of the column and mux methods for blind rotations, and proposes a hybrid approach to balance these trade-offs.

Key Results

  • First N=2^13 CKKS Bootstrapping: SHIP achieves the first CKKS bootstrapping of full-dimensional cleartext vectors at a ring degree of N=2^13, a significant advancement.
  • Reduced Latency:
    • For real-valued cleartext vectors at N=2^13, SHIP achieves a latency of 215ms on a 32-core CPU, which is 2.5x lower than the HEaaN library's best observed latency.
  • For binary cleartext vectors, the latency is further reduced to 174ms, outperforming previous state-of-the-art methods.
  • High Multi-core Scalability: SHIP exhibits excellent multi-core scalability, achieving speedups of up to 18.1x with 32 cores, significantly outperforming the baseline CKKS bootstrapping method.
  • Shallow HE-depth: SHIP reduces the homomorphic multiplicative depth from over 12 HE-levels in state-of-the-art CKKS bootstrapping to just 6 HE-levels.

Limitations and Future Work

  • Heuristic Theorem: The main theoretical result (Theorem 1) is presented as heuristic, lacking a formal error analysis. The authors acknowledge that a rigorous proof is needed.
  • "Half" Bootstrap: The described algorithm is a "half" bootstrap, meaning it doesn't fully explain how to convert back from slot-encoding to coefficient-encoding for subsequent bootstrapping. This conversion can be achieved using S2C, but it adds complexity.
  • Parameter Optimization: The optimal choice of parameters for the hybrid blind rotation method needs to be determined experimentally, depending on the relative costs of different homomorphic operations.
  • Future Work: The authors suggest exploring further optimizations, such as using smaller word sizes or alternative modulus systems, to achieve even lower latency. They also mention the possibility of extending the approach to small integers beyond bits.

Summary updated

BibTeX
@article{cheon2025ship,
  author = {Jung Hee Cheon and Guillaume Hanrot and Jongmin Kim and Damien Stehlé},
  title = {{SHIP: A Shallow and Highly Parallelizable CKKS Bootstrapping Algorithm}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}

Loading related content...

Figure