Aceleración de transformaciones numéricas teóricas para criptografía homomórfica bootstrappable en GPUs
Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs
Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs
@misc{kim2020accelerating,
title = {Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs},
author = {Sangpyo Kim and Wonkyung Jung and Jaiyoung Park and Jung Ho Ahn},
year = {2020},
eprint = {2012.01968},
archivePrefix = {arXiv},
primaryClass = {cs.CR},
url = {https://arxiv.org/abs/2012.01968}
}
Kim, S., Jung, W., Park, J., & Ahn, J. H. (2020). Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.01968
KIM S, JUNG W, PARK J, et al. Accelerating Number Theoretic Transformations for Bootstrappable Homomorphic Encryption on GPUs[EB/OL]. (2020-12-03)[2026-11-29]. https://arxiv.org/abs/2012.01968.
Resumen
La criptografía homomórfica (HE) ha atraído una atención masiva al ofrecer una forma de realizar computaciones que preservan la privacidad sobre mensajes cifrados. La Transformada Numérica (NTT), una forma especializada de la Transformada Discreta de Fourier (DFT) en el campo finito de los enteros, es el algoritmo clave que habilita cálculos rápidos sobre cifrados en HE. Trabajos previos han acelerado la NTT y su transformación inversa en una plataforma popular de procesamiento paralelo, la GPU, aprovechando técnicas de optimización de DFT. Sin embargo, estos estudios basados en GPU carecen de un análisis exhaustivo de las diferencias principales entre NTT y DFT o solo consideran parámetros de HE pequeños que tienen restricciones estrictas en el número de operaciones aritméticas que pueden realizarse sin descifrado. En este trabajo, analizamos las características algorítmicas de NTT y DFT y evaluamos el rendimiento de NTT cuando aplicamos las optimizaciones comúnmente aplicables a ambas en GPUs modernas. De este análisis, identificamos que NTT sufre de un cuello de botella severo de ancho de banda de memoria principal en conjuntos grandes de parámetros de HE. Para abordar el problema del ancho de banda de memoria principal, proponemos un esquema novedoso de generación de raíces on-the-fly específico para NTT denominado on-the-fly twiddling (OT). En comparación con la implementación de radix-2 de NTT de línea base, después de aplicar todas las optimizaciones, incluyendo OT, logramos una aceleración de 4.2x en una GPU moderna.
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.2x speedup on a modern GPU.