CryptoLight: An Electro-Optical Accelerator for Fully Homomorphic Encryption

Mengxin Zheng, Qian Lou, Fan Chen, Lei Jiang, Yongxin Zhu

Introduction

Fully Homomorphic Encryption (FHE) is widely regarded as the "holy grail" of data privacy, enabling computation on encrypted data without the need for decryption. Despite its transformative potential for secure cloud computing, FHE remains computationally prohibitive. A single "bootstrapping" operation—a necessary maintenance step to refresh noise levels in ciphertexts—can take several seconds on a standard CPU. This paper introduces CryptoLight, a novel electro-optical (EO) accelerator designed to overcome the fundamental hardware bottlenecks that currently limit FHE performance.

The Challenges of Encrypted Computing

The researchers identify two primary constraints in existing electronic accelerators, such as GPUs and ASICs:

  1. Narrow Datapaths: FHE utilizes polynomials with massive integer coefficients, often hundreds of bits long. Standard electronic hardware struggles to process these wide bit-widths efficiently, requiring data to be broken into smaller chunks.
  2. The "Memory Wall" of Matrix Transpositions: To multiply large polynomials, FHE relies on the Number Theoretic Transform (NTT). Computing an NTT at scale requires frequent matrix transpositions, which generate massive volumes of on-chip memory traffic and slow down the entire system.

The CryptoLight Architecture

CryptoLight addresses these issues by combining the speed of light-based computing with a specialized memory architecture. The design is a hybrid electro-optical system that leverages the best of both worlds: optical speed for heavy mathematics and electronic control for stability.

512-bit Electro-Optical Computing Units (CUs)

Unlike traditional electronics, where ripple-carry adders become slower as they get wider, optical logic can maintain ultra-fast speeds across wide bit-widths. CryptoLight features a 512-bit EO datapath, including a novel pipelined optical array multiplier and a modular reduction unit based on the Montgomery algorithm. This allows the system to process large coefficients in a single pass.

In-SPM Transpose Units (TUs)

To solve the memory bottleneck, the authors integrated Transpose Units directly into the eDRAM-based scratchpad memory (SPM). These units are placed at the junctions of the memory's "H-tree" (internal wiring structure). By using a recursive transposition algorithm, the TUs can flip matrices "in place" within the memory banks. This effectively makes the matrix transposition "free" in terms of external bus traffic, eliminating the need to shuffle data back and forth between the processor and memory.

Evaluation and Results

The paper evaluates CryptoLight using Sapphire-Sim, a cycle-accurate FHE accelerator simulator. The hardware was tested against standard operations from the CKKS scheme, including ciphertext multiplication (FMUL), rotation (FROT), and bootstrapping (FBOT). Performance was compared against state-of-the-art ASIC-based FHE accelerators, specifically CraterLake and BTS.

The simulation results indicate that CryptoLight dramatically outperforms existing silicon-based solutions:

  • Latency Reduction: On average, CryptoLight reduces FHE application latency by over 94.4%. Specifically, it is 96% faster than BTS for core operations like FMUL and FBOT.
  • Energy Efficiency: The system reduces energy consumption by more than 95% on average. Compared to BTS, the energy reduction for ciphertext operations is a staggering 98.8%.
  • Throughput: The 512-bit datapath enables the processing of large FHE coefficients without the fragmentation required by traditional accelerators.

Limitations and Future Directions

As an architectural study based on cycle-accurate simulations, CryptoLight faces several real-world implementation challenges. Physical optical computing must contend with signal attenuation (loss of light strength), thermal sensitivity, and the physical footprint of optical components on a chip. Furthermore, while the current design handles 64K-element NTTs, future FHE schemes may require even larger scales, testing the limits of the hierarchical TU architecture.

Despite these challenges, CryptoLight demonstrates that optical computing is uniquely suited for the massive bit-widths of FHE, providing a potential path toward practical, real-time encrypted computing.

Summary updated

BibTeX
@inproceedings{zheng2022cryptolight,
  author = {Mengxin Zheng and Qian Lou and Fan Chen and Lei Jiang and Yongxin Zhu},
  title = {{CryptoLight: An Electro-Optical Accelerator for Fully Homomorphic Encryption}},
  booktitle = {NANOARCH},
  year = {2022},
  doi = {10.1145/3565478.3572544},
}
Figure