Litcius/Paper detail

Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs

Sangpyo Kim, Wonkyung Jung, Jaiyoung Park, Jung Ho Ahn

202064 citationsDOIOpen Access PDF

Abstract

Homomorphic encryption (HE) draws huge attention as it provides a way of privacy-preserving computations on encrypted messages. Number Theoretic Transform (NTT), a specialized form of Discrete Fourier Transform (DFT) in the finite field of integers, is the key algorithm that enables fast computation on encrypted ciphertexts in HE. Prior works have accelerated NTT and its inverse transformation on a popular parallel processing platform, GPU, by leveraging DFT optimization techniques. However, these GPU-based studies lack a comprehensive analysis of the primary differences between NTT and DFT or only consider small HE parameters that have tight constraints in the number of arithmetic operations that can be performed without decryption. In this paper, we analyze the algorithmic characteristics of NTT and DFT and assess the performance of NTT when we apply the optimizations that are commonly applicable to both DFT and NTT on modern GPUs. From the analysis, we identify that NTT suffers from severe main-memory bandwidth bottleneck on large HE parameter sets. To tackle the main-memory bandwidth issue, we propose a novel NTT-specific on-the-fly root generation scheme dubbed on-the-fly twiddling (OT). Compared to the baseline radix-2 NTT implementation, after applying all the optimizations, including OT, we achieve 4.2× speedup on a modern GPU.

Topics & Concepts

Homomorphic encryptionComputer scienceBottleneckBandwidth (computing)EncryptionComputationTheoretical computer scienceDiscrete Fourier transform (general)AlgorithmSpeedupKey (lock)Transformation (genetics)Field (mathematics)Parallel computingScheme (mathematics)Finite fieldCryptographyPublic-key cryptographyMathematicsInverseComputational complexity theoryArithmeticGraphicsFourier transformTime complexityCryptography and Data SecurityCoding theory and cryptographyCryptography and Residue Arithmetic