AscendFHE:在昇腾NPU上高效实现全同态加密
AscendFHE: Efficient Fully Homomorphic Encryption on Ascend NPUs
AscendFHE 是面向昇腾NPU的CKKS后端,协同矩阵引擎与向量核完成自举和加密推理。在昇腾910B3上,其自举较基于Vector的Cheddar昇腾移植版加速4.61倍,ResNet-20、BERT-base和Llama 3 8B的加密推理加速1.59倍至2.00倍。方案采用均衡字节编码与精确模重构减少向量运算,并按下一算子输入格式打包中间结果以避免冗余传输。
arXiv:2611.29301v1 Announce Type: cross Abstract: Fully homomorphic encryption enables cloud servers to run neural networks on encrypted inputs. In CKKS, inference requires costly arithmetic on high-degree polynomials. On Ascend neural processing units, preparing operands and reconstructing intermediate results add to this cost, while limited local memory constrains parallel execution. We present AscendFHE, a CKKS backend that coordinates Ascend's matrix engines and vector cores for bootstrapping and encrypted inference. It uses balanced-byte encoding and exact modular reconstruction to reduce vector work and packs intermediate results in the next operator's input format to avoid redundant transfers. Its two-task pipeline reuses shared buffers after their last read to overlap matrix and vector execution within the local memory budget. On Ascend 910B3, AscendFHE achieves a 4.61$\times$ bootstrapping speedup and 1.59$\times$--2.00$\times$ encrypted-inference speedups across ResNet-20, BERT-base, and Llama 3 8B over our Vector-based Ascend port of Cheddar.
来源:arXiv (Robotics + Hardware + Signal) · arxiv.org