NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

APACHE: A Processing-Near-Memory Architecture for Multi-Scheme Fully Homomorphic Encryption

Lin Ding, Song Bian, Penggao He, Yan Xu, Gang Qu, Jiliang ZhangarXiv 2024 · DOI

Introduction

Fully Homomorphic Encryption (FHE) represents the "holy grail" of data privacy, enabling computation on encrypted data without ever requiring decryption. However, the practical adoption of FHE is hindered by extreme computational overhead. Modern applications often utilize "multi-scheme" FHE, combining different mathematical approaches (e.g., TFHE for logic and CKKS for arithmetic) to handle complex tasks like private machine learning.

Existing hardware accelerators struggle with this multi-scheme reality due to two primary factors: the Memory Wall, where massive evaluation keys create I/O bottlenecks, and Low Hardware Utilization, where fixed-function units remain idle when switching between different mathematical schemes.

The Memory Wall Challenge

FHE operators are exceptionally data-hungry. Moving gigabyte-sized evaluation keys from off-chip memory to a processor creates a bottleneck that often dwarfs the actual computation time. As shown in the analysis of various FHE operators, there is a stark contrast between data-heavy operations and computation-heavy ones.

Figure 1: I/O load versus pipeline length for various FHE operators, highlighting the massive data requirements of Key Switching (KS) operations compared to bootstrapping.

Operators like Private Key Switching (PrivKS) and Public Key Switching (PubKS) exhibit extremely high I/O loads (approaching 10,000 GB/s) with relatively short pipeline lengths. In contrast, bootstrapping operations involve longer pipelines but significantly lower I/O requirements. Traditional architectures fail to optimize for both simultaneously.

The APACHE Architecture

To address these bottlenecks, the authors propose APACHE, a Processing-Near-Memory (PNM) architecture that shifts the paradigm from bringing data to the processor to bringing the processor to the data. APACHE implements a unique three-level memory hierarchy:

  1. External I/O Level: Standard system communication.
  2. Near-Memory Computing (NMC) Level: Logic integrated directly onto the DIMM module to handle complex mathematical operations like Number Theoretic Transforms (NTT).
  3. In-Memory Computing (IMC) Level: Simple logic, such as accumulation adders, built directly into the DRAM die to handle data-heavy Key Switching operations.
Figure 5: The APACHE architecture overview, showing (a) the scheduling and DIMM modules, (b) the modified DRAM for Key Switching, and (c) the internal bank structure with integrated adders.

By placing Key Switching logic inside the DRAM, APACHE bypasses the narrow I/O bus for the most data-intensive tasks. Meanwhile, the NMC module handles the complex math, ensuring that the most expensive hardware units (the NTT units) remain highly utilized.

Key Innovations and Results

Beyond its memory hierarchy, APACHE introduces Reconfigurable Functional Units (FUs). These units can be split or merged to handle different bit-widths, allowing the same hardware to support multiple FHE schemes with over 90% utilization. A flexible interconnect topology further ensures that simple arithmetic operations do not stall complex pipelines.

Evaluations against high-profile benchmarks (including Lola MNIST and HE³DB) demonstrate that APACHE achieves:

  • 10.6x to 35.5x speedup over state-of-the-art ASIC accelerators like F1 and Alchemist.
  • 315,000x reduction in required I/O bandwidth for specific TFHE operators.
  • 4597x improvement in execution time for encrypted database queries compared to CPU-based systems.

Conclusion

APACHE successfully mitigates the Memory Wall and utilization issues inherent in multi-scheme FHE. By integrating reconfigurable logic into a layered memory hierarchy, it makes complex privacy-preserving computations significantly more practical. Future work will focus on physical prototyping to validate thermal management and developing high-level compilers to simplify developer access to this near-memory architecture.

Summary updated

BibTeX
@misc{ding2024apache,
  author = {Lin Ding and Song Bian and Penggao He and Yan Xu and Gang Qu and Jiliang Zhang},
  title = {{APACHE: A Processing-Near-Memory Architecture for Multi-Scheme Fully Homomorphic Encryption}},
  year = {2024},
  eprint = {2404.15819},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.15819},
}
Figure