arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.05930cs.CRcs.AI
收藏

筑牢你的根基:云端基础模型部署的实用隐私与安全防护

Fortify Your Foundations: Practical Privacy and Security for Foundation Model Deployments In The Cloud

ETH Zurich(苏黎世联邦理工学院);Intel Labs(英特尔实验室)

Marcin Chrapek, Anjo Vahldiek-Oberwagner, Marcin Spoczynski, Scott Constable, Mona Vij, Torsten Hoefler

AI总结:

针对云端基础模型面临的知识产权窃取、敏感信息泄露等风险,研究对比多种安全方案,证实可信执行环境(TEEs)可在安全、易用性与性能间实现平衡,且在Intel SGX/TDX中运行Llama2 7B/13B推理时开销低于10%,首次验证了TEEs防护基础模型的实用性。

摘要:

基础模型(Foundation Models, FMs)在自然语言处理等任务中展现出卓越性能,正被应用于越来越多的学科领域。尽管FMs通常基于大型公共数据集训练,但它们常被微调或集成到依赖私有数据的检索增强生成(Retrieval-Augmented Generation, RAG)系统中。这种对私有数据的访问权限,加之模型规模大、训练成本高的特点,加剧了知识产权被盗的风险。此外,多模态FMs可能会泄露敏感信息。在本研究中,我们梳理了FM的威胁模型,并探讨了各类防护方案(如基于机器学习的方法、可信执行环境(Trusted Execution Environments, TEEs))的实用性与全面性。我们证明,TEEs在强安全特性、易用性和性能之间实现了有效的平衡。具体而言,我们提出的方案在Intel SGX和Intel TDX中运行完整的Llama2 7B与13B推理流水线时,相比裸金属部署的性能开销低于10%。我们还分享了实现过程中的配置文件与实践见解。据我们所知,本研究首次证实了TEEs用于FM安全防护的可行性。

英文摘要:

Foundation Models (FMs) display exceptional performance in tasks such as natural language processing and are being applied across a growing range of disciplines. Although typically trained on large public datasets, FMs are often fine-tuned or integrated into Retrieval-Augmented Generation (RAG) systems, which rely on private data. This access, along with their size and costly training, heightens the risk of intellectual property theft. Moreover, multimodal FMs may expose sensitive information. In this work, we examine the FM threat model and discuss the practicality and comprehensiveness of various approaches for securing against them, such as ML-based methods and trusted execution environments (TEEs). We demonstrate that TEEs offer an effective balance between strong security properties, usability, and performance. Specifically, we present a solution achieving less than 10\% overhead versus bare metal for the full Llama2 7B and 13B inference pipelines running inside \intel\ SGX and \intel\ TDX. We also share our configuration files and insights from our implementation. To our knowledge, our work is the first to show the practicality of TEEs for securing FMs.

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

↑