TL;DR
This paper introduces XBOOT, a novel framework for CKKS homomorphic encryption that significantly reduces the computational cost of XOR operations. By cleverly integrating automated overflow handling into the bootstrapping process, XBOOT enables "free" XOR gates, leading to substantial performance improvements in applications like AES and Rasta transciphering.
What Problem Does This Paper Address?
The CKKS (Cheon-Kim-Kim-Song) scheme is a powerful tool for approximate homomorphic encryption, enabling computations on encrypted data. However, it traditionally struggles with exact computations, particularly those involving Boolean circuits. While prior work like BLEACH extended CKKS to handle Boolean operations, it did so by simulating XOR gates using expensive multiplications (specifically, $(a-b)^2$). This approach becomes a significant bottleneck in applications with many XOR operations, such as symmetric cipher transciphering. The paper addresses the challenge of efficiently evaluating Boolean circuits within CKKS, specifically aiming to reduce the high cost associated with XOR gates.
Methods
The core innovation of XBOOT lies in its "lazy reduction" technique for handling XOR operations. Instead of directly computing XOR via multiplication, XBOOT simulates it using homomorphic addition ($a+b$). The potential overflows generated by these additions are not immediately resolved but are instead managed through a carefully designed CKKS modulus chain and scale factors. This allows the overflow to be naturally handled during the CKKS bootstrapping phase, effectively extracting the XOR result with minimal additional computational cost.
Key components of the XBOOT framework include:
- Automated Overflow in CKKS: This technique leverages the inherent modular arithmetic of CKKS and its bootstrapping process. By allowing intermediate results to exceed the modulus, the overflow behavior is used to isolate the least significant bit (LSB), which corresponds to the XOR result.
- Modulus and Scale Management: Precise control over the modulus chain and scaling factors is crucial to ensure that the LSB is correctly aligned with the most significant bit (MSB) of the modulus during the bootstrapping process, enabling automated overflow handling.
- BatchXBOOT: An optimization that packs two ciphertexts into a single complex number ciphertext, reducing the number of XBOOT calls by half for certain operations.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- XOR gates don't have to be expensive in CKKS: The paper demonstrates that by rethinking how overflows are handled, XOR operations can be made nearly free within the CKKS framework, challenging the assumption that they are inherently costly.
- Bootstrapping as a natural overflow handler: The authors cleverly leverage the existing CKKS bootstrapping mechanism not just for noise reduction but also to automatically resolve the overflows created by their "free XOR" approach.
- Enabling new applications: The efficiency gains from XBOOT unlock the practical feasibility of homomorphic evaluation for complex Boolean circuits, such as those found in modern symmetric ciphers, which were previously computationally prohibitive.
Key Results
- AES Transciphering: XBOOT achieves a throughput exceeding 256 KB per 236 seconds, representing a 5x latency improvement and a 2.5x throughput improvement over the state-of-the-art BLEACH-based method.
- Rasta Transciphering: XBOOT enables Rasta-CKKS transciphering at over two kilobytes per second, which is more than 10x faster than the baseline without XBOOT.
- Reduced Multiplication Depth: For AES, XBOOT reduces the multiplication depth per round from 9 to 3, significantly improving efficiency.
- Parameter Optimization: XBOOT allows for reduced ring degrees and modulus sizes while maintaining 128-bit security, further enhancing efficiency.
Limitations and Future Work
- Limitations of BLEACH: The paper notes that the noise cleaning function used in BLEACH ($h_1(x) = 3x^2 - 2x^3$) is only compatible with Boolean values and not integer values. This means that for circuits primarily composed of AND gates with few XOR gates, XBOOT might not offer a significant advantage over standard BLEACH.
- Future Work: The authors suggest that XBOOT's compatibility with downstream tasks can be further demonstrated. They also mention the potential for using the META-BTS bootstrapping method for even higher precision requirements. The paper also opens avenues for applying XBOOT to other FHE-friendly ciphers that utilize matrices operations.
Summary updated