arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.16080cs.CR
收藏

快速同态线性代数与BLAS

Fast Homomorphic Linear Algebra with BLAS

CryptoLab Inc.(CryptoLab公司);Seoul National University(首尔大学)

Youngjin Bae, Jung Hee Cheon, Guillaume Hanrot, Jai Hyun Park, Damien Stehlé

AI总结:

本文探讨了基于CKKS的同态线性代数与浮点明文线性代数的联系,利用BLAS优化,证明加密矩阵乘法效率损失仅为4-12倍。

摘要:

同态加密是一种允许在加密数据上进行计算的密码学范式,广泛应用于隐私保护的数据处理,尤其在AI领域。许多应用需要大量的线性代数计算(矩阵-向量乘积和矩阵-矩阵乘积)。线性代数计算的重要性远超同态代数,适用于科学计算的大多数领域。这种高适应性促成了1979年定义的BLAS(基本线性代数子程序)等高度优化的程序集。受同态线性代数的应用重要性和可高效实现的明文线性代数的启发,我们探索了基于CKKS的同态线性代数与浮点明文线性代数之间的联系。CKKS同态加密系统是这种设置中最自然的选择,因为它原生处理实数并提供大规模SIMD并行性。我们为矩阵-向量乘积、向量-向量乘积(适用于中等规模到大规模矩阵)提供了到其明文等效物的缩减。结合BLAS,我们证明CKKS基于的加密方阵乘法与双精度浮点方阵乘法之间的效率损失仅为4-12倍,具体取决于精确情况。

英文摘要:

Homomorphic encryption is a cryptographic paradigm allowing to compute on encrypted data, opening a wide range of applications in privacy-preserving data manipulation, notably in AI. Many of those applications require significant linear algebra computations (matrix-vector products, and matrix-matrix products). This central role of linear algebra computations goes far beyond homomorphic algebra and applies to most areas of scientific computing. This high versatility led, over time, to the development of a set of highly optimized routines, specified in 1979 under the name BLAS (basic linear algebra subroutines). Motivated both by the applicative importance of homomorphic linear algebra and the access to highly efficient implementations of cleartext linear algebra able to draw the most out of available hardware, we explore the connections between CKKS-based homomorphic linear algebra and floating-point plaintext linear algebra. The CKKS homomorphic encryption system is the most natural choice in this setting, as it natively handles real numbers and offers a large SIMD parallelism. We provide reductions for matrix-vector products, vector-vector products for moderate-sized to large matrices to their plaintext equivalents. Combined with BLAS, we demonstrate that the efficiency loss between CKKS-based encrypted square matrix multiplication and double-precision floating-point square matrix multiplication is a mere 4-12 factor, depending on the precise situation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑