基于核方法的ReLU近似:面向同态加密兼容的隐私保护深度学习模型 Kernel-Based ReLU Approximation for Homomorphic Encryption-Compatible Privacy-preserving Deep Learning Models 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-22
👁️ 预览文献
💡 AI 中文简介
同态加密只能做加法和乘法,无法直接计算ReLU等非线性激活函数,这给隐私保护的大模型推理带来困难。本文提出用核方法先把ReLU平滑化,再用二次多项式近似,从而降低乘法深度、适配同态加密。方法直接在预训练大模型的词元嵌入上训练和评估,覆盖模拟数据、深度学习与Transformer模型等场景,结果显示近似精度更好,可用于安全隐私推理。
领域隐私保护机器学习 / 同态加密与深度学习
适合谁读需要一定专业背景(了解同态加密、神经网络激活函数与多项式近似)
核心贡献1. 提出基于核方法的ReLU平滑化技术,将非光滑ReLU转化为更易被多项式逼近的平滑函数;2. 结合Jackson定理用二次多项式近似,在保证低乘法深度的同时提升近似保真度,兼容同态加密约束。
关键数据采用二次多项式近似,实现低乘法深度;在模拟数据、词元化数据、深度学习及Transformer模型等多种场景下评估,近似保真度优于文献中其他近似方法,并在明文与加密环境下保持有竞争力的性能。
推荐理由想让大模型在加密数据上跑推理?这篇把ReLU'磨平'再多项式化,兼顾隐私与精度,值得一读。
关键词["ReLU近似", "隐私保护推理", "大语言模型", "同态加密", "深度学习"]

原文摘要

查看英文原文摘要

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.