arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.23641cs.CR
收藏

基于核的ReLU近似用于同态加密兼容的隐私保护深度学习模型

Kernel-Based ReLU Approximation for Homomorphic Encryption-Compatible Privacy-preserving Deep Learning Models

Hellenic Mediterranean University(希腊地中海大学);Research Center "ATHENA"(阿瑞纳研究中心)

Dimitrios Sygletos, Dimitra Papatsaroucha, Marios Choudetsanakis, Ilias Politis, Evangelos K. Markakis

AI总结:

提出一种基于核的ReLU近似方法,使用二次多项式实现低乘法深度,支持同态加密下的隐私保护深度学习,并在预训练LLM的token嵌入上验证了近似保真度。

摘要:

随着AI技术中的隐私问题日益突出,同态加密(HE)提供了一种在加密数据上执行计算而无需在操作过程中解密的方法。然而,HE仅限于加法和乘法,使得非线性函数无法以其原始形式兼容。随着大型语言模型(LLMs)的广泛使用,这一限制变得更加关键,其中激活函数(如修正线性单元ReLU)的非线性给隐私保护自然语言处理(NLP)环境中的部署带来了挑战。本文提出了一种基于核的ReLU近似方法,使其能够在HE受限的环境中使用,从而为支持隐私保护的LLMs迈出了关键一步。受Jackson定理启发,使用二次多项式近似一个模仿ReLU的光滑核函数,以实现低乘法深度。所提出的方法直接在预训练LLM的token嵌入上进行训练和评估,并在从模拟和标记数据到深度学习及Transformer模型的各种场景中进行了评估。结果显示,近似保真度有所提高,支持该方法在各种任务中用于安全且隐私保护的推理。

英文摘要:

As privacy concerns in AI technologies continue to grow, Homomorphic Encryption (HE) offers a way to perform computations on encrypted data without the need of decryption during operations. However, HE is limited to addition and multiplication, making non-linear functions incompatible in their original form. This limitation has become more critical with the widespread use of Large Language Models (LLMs), where the non-linearity of activation functions such as the Rectified Linear Unit (ReLU) poses challenges for deployment in privacy-preserving Natural Language Processing (NLP) settings. This paper proposes a kernel-based approximation of ReLU, enabling its use within HE-constrained settings and thus contributing a critical step toward supporting privacy-preserving LLMs. A smooth kernel-based function, mimicking ReLU, is approximated using a second-degree polynomial, inspired by Jackson's theorem, to achieve low multiplicative depth. The proposed method is trained and assessed directly on token embeddings from pre-trained LLMs and evaluated in various scenarios, from simulated and tokenized data to deep learning and transformer models. Results show improved approximation fidelity, supporting the method's suitability for secure and privacy-preserving inference in various tasks.

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

↑