arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2503.19142cs.CRcs.LG
收藏

被认为有害的激活函数:通过受控信道恢复神经网络权重

Activation Functions Considered Harmful: Recovering Neural Network Weights through Controlled Channels

School of Computer Science University of Birmingham(计算机科学学院 英国伯明翰大学);School of Computer Science Durham University(计算机科学学院 唐斯大学)

Jesse Spielman, David Oswald, Mark Ryan, Jo Van Bulck

AI总结:

本研究发现特权攻击者可利用神经网络激活函数的输入相关内存访问模式,借助SGX-Step框架从Intel SGX飞地中窃取模型参数,实验验证了攻击有效性,并指出需加强机器学习实现的侧信道验证。

摘要:

随着高风险机器学习应用越来越多地部署在不可信的终端用户或云环境中,保护预训练模型参数对于维护知识产权和用户隐私至关重要。硬件隔离飞地(enclave)领域的最新进展,尤其是Intel SGX,有望为机器学习应用的内部状态提供安全保障,即便面对已被攻破的操作系统也能生效。但我们的研究表明,拥有特权的软件攻击者可以利用常见神经网络激活函数中依赖输入的内存访问模式,从SGX飞地中提取机密权重和偏置。\n我们的攻击借助SGX-Step框架(一种指令级单步追踪框架)获取无噪声的、指令粒度的页面访问轨迹。在一项针对使用Tensorflow Microlite库构建的11输入回归网络的案例研究中,我们实现了第一层所有权重和偏置的完整恢复,并且在特定条件下可部分恢复更深层的参数。我们提出的新型攻击技术每个输入每个权重仅需20次查询,即可获取第一层所有权重和偏置,平均绝对误差低于1%,性能优于已有的模型窃取攻击。\n此外,更广泛的生态系统分析显示,主流机器学习框架中(无论是直接实现还是通过底层数学库调用)普遍存在带有依赖输入的内存访问模式的激活函数。我们的研究结果揭示了在SGX飞地中部署机密模型的局限性,同时强调需要对机器学习实现进行更严格的侧信道验证,类似于安全密码库所采用的审查工作。

英文摘要:

With high-stakes machine learning applications increasingly moving to untrusted end-user or cloud environments, safeguarding pre-trained model parameters becomes essential for protecting intellectual property and user privacy. Recent advancements in hardware-isolated enclaves, notably Intel SGX, hold the promise to secure the internal state of machine learning applications even against compromised operating systems. However, we show that privileged software adversaries can exploit input-dependent memory access patterns in common neural network activation functions to extract secret weights and biases from an SGX enclave. Our attack leverages the SGX-Step framework to obtain a noise-free, instruction-granular page-access trace. In a case study of an 11-input regression network using the Tensorflow Microlite library, we demonstrate complete recovery of all first-layer weights and biases, as well as partial recovery of parameters from deeper layers under specific conditions. Our novel attack technique requires only 20 queries per input per weight to obtain all first-layer weights and biases with an average absolute error of less than 1%, improving over prior model stealing attacks. Additionally, a broader ecosystem analysis reveals the widespread use of activation functions with input-dependent memory access patterns in popular machine learning frameworks (either directly or via underlying math libraries). Our findings highlight the limitations of deploying confidential models in SGX enclaves and emphasise the need for stricter side-channel validation of machine learning implementations, akin to the vetting efforts applied to secure cryptographic libraries.

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

↑