arXiv:2510.23034cs.CRcs.AI2025-10

用物理不可克隆函数保护内存计算中的二值化神经网络

Efficient and Encrypted Inference using Binarized Neural Networks within In-Memory Computing Architectures

  • 用物理不可克隆函数生成密钥,加密权重后存入交叉阵列
  • 推理时直接在加密权重上进行,准确率低于15%(无密钥)
  • 实现轻量级全同态加密,兼顾安全与低延迟

二值化神经网络(BNNs)因其极低的计算资源需求而广泛应用于各类场景。近期研究发现,将BNN参数映射到新兴非易失性存储技术(如交叉阵列架构)可显著提升推理性能,优于传统CMOS实现。然而,为防止模型盗用,通常需在运行时对参数加密解密,这带来显著计算开销,违背了内存计算中计算与存储一体化的核心理念。本文提出一种针对内存计算框架中BNN参数的安全保护策略:利用物理不可克隆函数(PUF)生成密钥,在存储前对模型参数进行变换;推理时直接在加密权重上执行,实现了近乎全同态加密(FHE)的效果,且运行时开销极小。分析表明,无密钥情况下推理准确率降至15%以下,充分验证了该方案在保障安全性的同时维持了计算效率。

原文摘要 · Abstract (English)

Binarized Neural Networks (BNNs) are a class of deep neural networks designed to utilize minimal computational resources, which drives their popularity across various applications. Recent studies highlight the potential of mapping BNN model parameters onto emerging non-volatile memory technologies, specifically using crossbar architectures, resulting in improved inference performance compared to traditional CMOS implementations. However, the common practice of protecting model parameters from theft attacks by storing them in an encrypted format and decrypting them at runtime introduces significant computational overhead, thus undermining the core principles of in-memory computing, which aim to integrate computation and storage. This paper presents a robust strategy for protecting BNN model parameters, particularly within in-memory computing frameworks. Our method utilizes a secret key derived from a physical unclonable function to transform model parameters prior to storage in the crossbar. Subsequently, the inference operations are performed on the encrypted weights, achieving a very special case of Fully Homomorphic Encryption (FHE) with minimal runtime overhead. Our analysis reveals that inference conducted without the secret key results in drastically diminished performance, with accuracy falling below 15%. These results validate the effectiveness of our protection strategy in securing BNNs within in-memory computing architectures while preserving computational efficiency.

二值化网络内存计算硬件安全全同态加密

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。