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

在机密计算环境中评估DeepSeek模型的性能

Evaluating the Performance of the DeepSeek Model in Confidential Computing Environment

Ben Dong, Qian Wang

AI总结:

针对LLM在云环境中的安全问题,本研究首次在基于英特尔TDX的TEE机密计算环境中评估DeepSeek模型,通过基准测试纯CPU、CPU-GPU混合及TEE实现的性能,为隐私保护AI的高效安全部署提供指导。

摘要:

大型语言模型(LLMs)在云环境中的应用日益广泛,引发了关于模型机密性和数据隐私的关键安全担忧。由可信执行环境(TEEs)支持的机密计算为缓解这些风险提供了有前景的解决方案。然而,现有的主要基于CPU的TEE实现难以高效支持LLM推理和训练的资源密集型特性。本研究首次在启用TEE的机密计算环境中评估DeepSeek模型,具体使用英特尔信任域扩展(TDX)。我们的研究对DeepSeek在纯CPU、CPU-GPU混合和基于TEE的实现中的性能进行了基准测试。对于较小的参数集(如DeepSeek-R1-1.5B),TDX实现在安全环境中执行计算时优于CPU版本,突显了在资源受限系统上高效部署LLM模型同时确保安全性的潜力。不同模型大小的GPU与CPU性能比平均为12,较小模型的比率更低。此外,我们提供了关于优化CPU-GPU机密计算解决方案以实现可扩展且安全的AI部署的基础见解和指导。我们的研究结果有助于隐私保护AI的发展,为在机密计算环境中高效且安全的LLM推理铺平了道路。

英文摘要:

The increasing adoption of Large Language Models (LLMs) in cloud environments raises critical security concerns, particularly regarding model confidentiality and data privacy. Confidential computing, enabled by Trusted Execution Environments (TEEs), offers a promising solution to mitigate these risks. However, existing TEE implementations, primarily CPU-based, struggle to efficiently support the resource-intensive nature of LLM inference and training. In this work, we present the first evaluation of the DeepSeek model within a TEE-enabled confidential computing environment, specifically utilizing Intel Trust Domain Extensions (TDX). Our study benchmarks DeepSeek's performance across CPU-only, CPU-GPU hybrid, and TEE-based implementations. For smaller parameter sets, such as DeepSeek-R1-1.5B, the TDX implementation outperforms the CPU version in executing computations within a secure environment. It highlights the potential for efficiently deploying LLM models on resource-constrained systems while ensuring security. The overall GPU-to-CPU performance ratio averages 12 across different model sizes, with smaller models exhibiting a lower ratio. Additionally, we provide foundational insights and guidance on optimizing CPU-GPU confidential computing solutions for scalable and secure AI deployments. Our findings contribute to the advancement of privacy-preserving AI, paving the way for efficient and secure LLM inference in confidential computing environments.

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

↑