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

FHEmem: A Processing In-Memory Accelerator for Fully Homomorphic Encryption

Minxuan Zhou, Yujin Nam, Pranav Gangwar, Weihong Xu, Arpan Dutta, Chris Wilkerson, Rosario Cammarota, Saransh Gupta, Tajana RosingIEEE Trans. Emerg. Top. Comput 2023

Introduction

Fully Homomorphic Encryption (FHE) represents a paradigm shift in data privacy, enabling computation on encrypted data without decryption. However, the practical adoption of FHE schemes like CKKS is hindered by a massive "data explosion." Encrypted polynomials with tens of thousands of coefficients result in working sets that dwarf traditional cache sizes, leading to a severe "memory wall" where data movement between memory and logic becomes the primary performance bottleneck.

The Memory Wall in FHE

Current FHE accelerators, including high-end ASICs, struggle with off-chip bandwidth limitations. As shown in Figure 1, the working set for homomorphic multiplication (HMult) can reach hundreds of megabytes, and the required off-chip bandwidth to sustain high throughput can exceed 100 TB/s—orders of magnitude beyond the capabilities of modern memory interfaces like HBM.

Figure 1: (a) Working set sizes for HMult and (b) off-chip bandwidth requirements for various throughput levels.

FHEmem: Processing In-Memory Architecture

To overcome this bottleneck, we propose FHEmem, a Processing In-Memory (PIM) accelerator that integrates specialized logic directly into High Bandwidth Memory (HBM). FHEmem shifts the paradigm from "moving data to logic" to "moving logic to data."

Near-Mat Processing

The core of FHEmem is the integration of Near-Mat Units (NMUs). Unlike radical PIM designs that modify DRAM sense amplifiers, FHEmem places logic adjacent to DRAM mats, as illustrated in Figure 5. This approach maintains compatibility with standard DRAM manufacturing while providing massive internal bandwidth.

Figure 5: Comparison of DRAM bank architectures, from standard designs to the proposed Near-Mat/Near-buffer PIM structures.

The NMUs utilize bit-serial arithmetic, which, despite a lower per-unit speed, allows for millions of parallel operations across the HBM stack. To further optimize performance, FHEmem employs Montgomery-friendly moduli with low Hamming weights, reducing the number of addition steps required for modular reduction.

Specialized Interconnects and Software Co-design

FHEmem introduces a hierarchy of interconnects to handle complex data movement patterns required for operations like the Number Theoretic Transform (NTT) and automorphisms:

  • Horizontal Data Links (HDLs) and Vertical Master Data Lines (MDLs) facilitate efficient intra-bank movement.
  • An Inter-bank Chain enables data exchange between banks without utilizing external channels.

A specialized software mapping framework manages a load-save pipeline, breaking large FHE programs into fine-grained stages to maximize internal link utilization and minimize slow off-chip transfers.

Key Results

Evaluated against state-of-the-art FHE ASICs like SHARP and CraterLake, FHEmem demonstrates significant improvements:

  • Performance: Achieves a 4.0× speedup across real-world workloads including HELR and ResNet-20.
  • Energy Efficiency: Delivers a 6.9× improvement in energy efficiency by eliminating costly off-chip data movement.
  • Throughput: Provides an effective 64-bit multiplication throughput of approximately 637 TB/s.

Conclusion

FHEmem addresses the fundamental memory bottleneck of FHE by leveraging the massive internal bandwidth of HBM through a practical Near-Mat PIM architecture. By co-designing hardware logic with Montgomery-friendly mathematics and specialized interconnects, FHEmem paves the way for efficient, privacy-preserving cloud computing.

Summary updated

BibTeX
@article{zhou2023fhemem,
  author = {Minxuan Zhou and Yujin Nam and Pranav Gangwar and Weihong Xu and Arpan Dutta and Chris Wilkerson and Rosario Cammarota and Saransh Gupta and Tajana Rosing},
  title = {{FHEmem: A Processing In-Memory Accelerator for Fully Homomorphic Encryption}},
  journal = {IEEE Trans. Emerg. Top. Comput.},
  year = {2023},
}
Figure