This event has passed.
COSIC seminar – Can GPUs be instrumental for accelerating advanced cryptographic algorithms such as homomorphic encryption? – Erkay Savaş (Sabancı University)
June 14, 2023
Homomorphic encryption (HE) is a cryptosystem that allows secure processing of encrypted data. Since overly involved arithmetic operations of HE schemes are amenable to concurrent computation, GPU devices can be instrumental in facilitating the practical use of HE in real world applications thanks to their superior parallel processing capacity. In this talk, we report our recent GPU implementation of the Number Theoretic Transform (NTT), which is the most time- and resource-consuming operation used for ring multiplication in many HE functions. While processor-bound operations such as fast modular arithmetic affects the overall performance of an HE application, data transfer operations become a more determining performance factor especially as large amount of data is involved in the computations. This is, indeed, the case in HE schemes, where arithmetic over vectors or matrices of large degree polynomials are implemented. Our implementation fully utilizes the exceptional parallel processing capability of GPU devices and minimizes the kernel functions calls, each of which requires accessing slow global memory. It makes efficient use of the GPU memory hierarchy and computes 128 NTT operations for ring dimension of $2^{14} only in 176.1 µs on RTX~3060Ti GPU. The implementation also improves the performance of the homomorphic operations of the BFV scheme. For one ciphertext multiplication, for the ring dimension $2^{14}$ and the modulus bit size of $438$, our GPU implementation offers 63.4 times speedup over the SEAL library running on a high-end CPU. Finally, we implement a privacy-preserving application that classifies encrypted genome data for tumor types and achieves speedups of $42.98$ and $5.7$ over CPU implementations using single and 16 threads, respectively. Our results indicate that GPU implementations can facilitate the deployment of homomorphic cryptographic libraries in real-world privacy-preserving applications.


