TL;DR
This paper introduces XBOOT, a novel framework for the CKKS homomorphic encryption scheme that significantly reduces the computational cost of XOR operations. By cleverly integrating XOR computations into the existing bootstrapping process, XBOOT achieves "free" XOR gates, leading to substantial performance improvements in applications like AES and Rasta cipher transciphering.
What Problem Does This Paper Address?
Homomorphic encryption (HE) allows computations on encrypted data, but it's notoriously computationally expensive. The CKKS scheme is efficient for approximate computations but struggles with exact operations, especially those involving binary circuits. A key bottleneck for binary operations in CKKS is the XOR gate, which traditionally requires a costly multiplication. While the BLEACH method improved CKKS for binary operations by representing bits as real numbers, it still incurred a multiplication cost for each XOR gate. This limitation made complex binary circuits, like those found in cryptographic ciphers, impractical for HE. The paper aims to address this by enabling almost "free" XOR gates within the CKKS framework, thereby unlocking new possibilities for HE applications involving extensive binary computations.
Methods
The core innovation of XBOOT is a "lazy reduction" technique. Instead of directly computing XOR using expensive multiplications, XBOOT simulates XOR operations using cheaper homomorphic additions. The potential overflows from these additions are deferred to the CKKS bootstrapping phase. The framework carefully manages the modulus chain and scale factors to ensure that these overflows are handled correctly during bootstrapping, effectively extracting the XOR result without additional computational cost. This approach integrates seamlessly with the existing CKKS bootstrapping procedure, making the XOR operations nearly free.
Datasets
Not discussed in the paper.
Key Insights and Ideas
- "Free" XOR Gates: The most significant insight is the realization that XOR operations can be transformed into additions, with overflows managed during bootstrapping. This fundamentally changes the cost model for binary circuits in CKKS.
- Lazy Reduction: Deferring overflow management to bootstrapping is a clever way to leverage existing HE mechanisms and avoid introducing new, costly operations.
- Transciphering as a Killer App: The paper effectively demonstrates the impact of XBOOT on AES and Rasta transciphering, showcasing real-world performance gains.
- Balancing Latency and Throughput: The comparison with TFHE-based methods highlights the trade-offs between latency and throughput, with XBOOT excelling in the latter for large-scale computations.
Key Results
- AES Transciphering: XBOOT achieves a throughput of 256KB per 236 seconds, a 5x latency improvement and 2.5x throughput improvement over the state-of-the-art. It reduces the multiplication depth per AES round from 9 to 3.
- Rasta Transciphering: XBOOT enables Rasta-CKKS transciphering at over two kilobytes per second, more than 10x faster than the baseline without XBOOT. This is a significant improvement, as Rasta involves a very large number of XOR gates.
- Parameter Optimization: The framework allows for reduced ring degrees and modulus sizes while maintaining 128-bit security, further enhancing efficiency.
Limitations and Future Work
- Scenarios with Few XOR Gates: The paper acknowledges that for circuits primarily composed of AND gates with very few XOR gates, XBOOT might not offer a significant advantage over BLEACH.
- Noise Management: While XBOOT integrates with bootstrapping for noise cleaning, it relies on this existing mechanism, which can still be computationally intensive.
- Future Work: The authors suggest exploring further optimizations and applications of XBOOT in other areas involving Boolean circuits. The paper also opens avenues for investigating the compatibility of XBOOT with other HE schemes or for more complex cryptographic primitives.
Summary updated