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.
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.
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