Sentry:动态验证机器学习工件的真实性
Sentry: Authenticating Machine Learning Artifacts on the Fly
AI总结:
针对机器学习开源工件易遭供应链攻击、现有验证方案开销高且不兼容GPU的问题,提出GPU框架Sentry,通过动态哈希签名验证工件真实性,实现数量级性能提升。
摘要:
机器学习系统愈发依赖由其他方创建或托管的开源工件,比如数据集和模型。对外部数据集与预训练模型的依赖会使系统面临供应链攻击风险——攻击者可在工件交付给终端用户前对其投毒。这类攻击之所以能够发生,是因为现有机器学习系统缺乏任何真实性验证机制。引入哈希、签名等密码学解决方案能够降低供应链攻击风险。然而,现有基于密码学技术的完整性验证框架在应用于最先进的机器学习工件时,会因工件规模庞大而产生显著开销,且与GPU平台不兼容。本文提出了Sentry,这是一种新型的基于GPU的框架,通过为数据集和模型实现密码学签名与验证功能,来校验机器学习工件的真实性。Sentry将开发者身份与签名绑定,并在工件加载到GPU内存时动态完成认证,因此能够兼容绕过CPU的GPU数据传输方案,比如NVIDIA GPUDirect。Sentry融入了Merkle树、格哈希等密码学哈希构造的GPU加速能力,还实现了内存优化与资源划分方案以实现高吞吐量性能。我们的评估结果表明,Sentry是为机器学习系统引入真实性保障的实用方案,其速度相较基于CPU的基线方案提升了数个数量级。
英文摘要:
Machine learning systems increasingly rely on open-source artifacts such as datasets and models that are created or hosted by other parties. The reliance on external datasets and pre-trained models exposes the system to supply chain attacks where an artifact can be poisoned before it is delivered to the end-user. Such attacks are possible due to the lack of any authenticity verification in existing machine learning systems. Incorporating cryptographic solutions such as hashing and signing can mitigate the risk of supply chain attacks. However, existing frameworks for integrity verification based on cryptographic techniques can incur significant overhead when applied to state-of-the-art machine learning artifacts due to their scale, and are not compatible with GPU platforms. In this paper, we develop Sentry, a novel GPU-based framework that verifies the authenticity of machine learning artifacts by implementing cryptographic signing and verification for datasets and models. Sentry ties developer identities to signatures and performs authentication on the fly as artifacts are loaded on GPU memory, making it compatible with GPU data movement solutions such as NVIDIA GPUDirect that bypass the CPU. Sentry incorporates GPU acceleration of cryptographic hash constructions such as Merkle tree and lattice hashing, implementing memory optimizations and resource partitioning schemes for a high throughput performance. Our evaluations show that Sentry is a practical solution to bring authenticity to machine learning systems, achieving orders of magnitude speedup over a CPU-based baseline.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。