arXiv:2609.11613cs.CRSep 2026

Manuscript Offprint

arXiv:2609.11613

PHAT: PHotonic Accelerator for TFHE

Guowei Yang, Farbin Fayza, Beren Aydoğan, Carlos A. Ríos Ocampo, Ayse K. Coskun, Ajay Joshi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Guowei Yang 1^{1}, Farbin Fayza 1^{1}, Beren Aydoğan 1^{1}, Carlos A. Ríos Ocampo 2^{2}, Ayse K. Coskun 1^{1}, Ajay Joshi 1^{1}

1^{1}Boston University, Boston, USA 2^{2}University of Maryland, College Park, USA

Abstract—Fully Homomorphic Encryption (FHE) enables secure computation on encrypted data, making it a promising solution for privacy-preserving applications in the cloud. Among various FHE schemes, FHE over the Torus (TFHE) stands out due to its support for arbitrary operations. However, its high computation and communication overhead, particularly in the Fast Fourier Transform (FFT) operations required during bootstrapping, limits its practicality for real-world applications. Conventional electronic accelerators struggle to achieve sufficient throughput due to the limitations of technology scaling and the memory-wall problem.

To address these challenges, we propose PHAT 1^{1}, a PHotonic Accelerator for TFHE leveraging Optically-addressed Phase-Change Memory (OPCM). OPCM-based processing-in-memory systems offer high computation and communication throughput, making them well-suited for accelerating FFT operations in TFHE. However, directly mapping FFT to OPCM presents challenges such as high-precision analog computation and the high latency and energy cost of programming OPCM cells. To overcome these challenges, we introduce a novel electro-photonic accelerator architecture optimized for TFHE, featuring OPCM-based FFT units, a twiddle-stationary dataflow tailored for OPCM, and a scheduling mechanism to maximize the utilization of the FFT units. PHAT delivers 2.14×−5.10×2.14 \times -5.10 \times speedup across four real-world TFHE workloads against the state-of-the-art ASIC accelerator. Our approach significantly enhances the performance of TFHE applications, paving the way for practical and efficient homomorphic encryption in cloud computing.

I. INTRODUCTION

The rapid adoption of cloud computing has transformed the way individuals and organizations store, process, and share data. Artificial Intelligence (AI) companies routinely leverage cloud-based infrastructure to perform large-scale computations, train Machine Learning (ML) models, and deploy ML services. However, this reliance on cloud computing raises significant data privacy concerns, as sensitive information, such as medical records and financial transactions, is often processed on remote cloud servers managed by third-party cloud providers. Traditional encryption methods can protect data in storage and in transit, but the data needs to be decrypted when processed in the cloud, exposing sensitive information to adversaries [11]. As a result, there is a growing need for protecting data during processing. Alternative approaches for protecting data during computation, such as secure multi-party computation (MPC) and trusted execution environments (TEE), have also been explored. However, MPC incurs significant communication overhead [23], and TEE rely on hardware trust assumptions that may be vulnerable to side-channel attacks [8], highlighting the need for a non-interactive, cryptographic solution.

Fully Homomorphic Encryption (FHE) is a cryptographic technique that performs computations directly on encrypted data without requiring decryption [11]. This property allows sensitive information to remain secure throughout the computation process, making FHE a promising solution for privacy-preserving applications in cloud computing. Over the years, researchers have developed several FHE schemes, including BGV [6], BFV [26], CKKS [9], and FHE over the Torus (TFHE) [13]. Compared to other FHE schemes, TFHE supports not only linear arithmetic operations but also Boolean logic and lookup table (LUT)-based operations [14], making it well-suited for general-purpose computing tasks [42]. Its ability to handle high-throughput, non-linear operations also makes it particularly effective for ML applications.

Despite its security guarantee, TFHE is computationally expensive, making it impractical for real-world applications. For example, a 32-bit integer multiplication takes only a few clock cycles on a typical CPU (a few nanoseconds at 2 GHz), but the same operation takes over 200 ms when executed under TFHE on a CPU [3]. Researchers explore various solutions to accelerate TFHE on conventional electronic systems, including CPU [12], [66], GPU [2], [15], [20], [66], FPGA [43], [57], [63], and ASIC [37], [49], [50]. While these solutions offer substantial speedups compared to baseline CPU implementations, they still fall short of the performance required for practical deployment. This is because they are fundamentally constrained by the significant computational overhead and high data movement costs associated with TFHE's large ciphertexts. To further alleviate these bottlenecks, researchers have explored Processing-in-Memory (PiM) systems built on digital electronic technologies such as SRAM [51], [56], DRAM [47], [67], and Resistive RAM (ReRAM) [33], [46]. Although these PiM architectures help reduce data movement overhead, their computational throughput for TFHE workloads remains orders of magnitude lower than that of cleartext operations.

Phase Change Memory (PCM) is a promising solution for PiM systems as it consumes lower power and provides higher throughput than PiM systems based on other technologies [28]. Moreover, the multi-level capability of a PCM cell achieves higher communication and computation throughput compared to a 1 bit/cell storage in DRAM or SRAM; e.g., a PCM cell can store up to 6 bits/cell [58] and perform analog computation on multi-bit data [28]. PCM

1^{1}“Phat” is a slang term meaning excellent, cool, or very good.

cells can be accessed and manipulated using either electrical or optical signals. Electrically-addressed PCM (EPCM) [38] offers higher storage density but offers lower throughput [44] than Optically-addressed PCM (OPCM). OPCM-based PiM systems can achieve exceptionally high compute densities(up to 162 TOPS/mm² [28]), making them particularly attractive for TFHE acceleration due to their fast computation and high-bandwidth communication capabilities.

TFHE ensures data security by adding noise to ciphertexts during encryption [13]. However, as we perform operations on the ciphertexts, the noise level increases. The noise in ciphertexts must stay within a threshold determined by the security parameters; otherwise, the underlying message will be corrupted. To support computations of arbitrary depth, TFHE employs bootstrapping—a computationally intensive operation that resets ciphertext noise. The main performance bottleneck in TFHE is this bootstrapping procedure, primarily due to its heavy reliance on Fast Fourier Transform (FFT) computations [37], [49]. Bootstrapping contributes to 99% of the run time of a TFHE gate on CPU [37], and our experiments show that FFT and inverse FFT (IFFT) consume about 90% of the TFHE bootstrapping time on a modern CPU (Intel Xeon Gold 6426Y). Therefore, this paper focuses on accelerating the FFT operations during the bootstrapping of TFHE.

Although OPCM offers high computation throughput and energy efficiency [28], directly mapping TFHE to OPCM faces challenges. First, FFT in TFHE usually requires double-precision floating point arithmetic [66], which is difficult to achieve with a single OPCM cell. Second, programming (writing to) OPCM cells requires very high energy and time (on the order of nanojoules and hundreds of nanoseconds [27]), which could make it prohibitively expensive for real-world applications [61]. To solve these problems and fully utilize OPCM's potential for accelerating TFHE, this paper proposes microarchitecture, architecture, and dataflow optimizations for TFHE acceleration.

Specifically, our contributions are as follows:

• Photonic TFHE Accelerator Architecture: We propose PHAT, a photonic TFHE accelerator based on OPCM. OPCM is a non-volatile device with PiM capabilities that enables efficient computation. To the best of our knowledge, PHAT is the first TFHE accelerator that leverages OPCM technology.

• OPCM-Based FFT Unit Microarchitecture: We design a novel FFT unit tailored for TFHE workloads, utilizing the PiM capability and high computational throughput of OPCM. Our architecture introduces a new OPCM array structure optimized for efficient execution of FFT butterfly operations. To meet TFHE's high-precision requirements, we develop a multi-word photonic multiplier that overcomes the precision limitations of individual OPCM cells.

• Twiddle-Stationary Dataflow: We introduce a twiddle-stationary dataflow optimized for our OPCM-based

Figure

Fig. 1. OPCM cell.

FFT unit. Exploiting OPCM’s non-volatility and PiM properties, this dataflow assigns each twiddle factor to fixed hardware units and schedules butterfly operations accordingly. We further propose techniques to mitigate access imbalance among twiddle factors and improve FFT hardware utilization.

We evaluate PHAT on both TFHE bootstrapping and real-world ML workloads using common TFHE parameters and compare its performance against prior CPU, GPU, and ASIC-based accelerators. Our results show that PHAT is 1.41×−1.80×1.41 \times -1.80 \times faster than the state-of-the-art (SOTA) ASIC accelerator across four bootstrapping parameter sets. On real-world ML workloads, PHAT delivers 2.14×−5.10×2.14 \times -5.10 \times speedup across four TFHE workloads against the best-performing ASIC accelerator.

References (65)