arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.11182cs.LGcs.AIcs.CR
收藏

本地部署大语言模型的中庸之道:在不牺牲模型机密性的前提下保护隐私

A Middle Path for On-Premises LLM Deployment: Preserving Privacy Without Sacrificing Model Confidentiality

Shanghai Jiao Tong University(上海交通大学);National University of Defense Technology(国防科技大学);Chinese University of Hong Kong (Shenzhen)(香港中文大学(深圳));Tsinghua University(清华大学)

Hanbo Huang, Yihan Li, Bowen Jiang, Bo Jiang, Lin Liu, Ruoyu Sun, Zhuotao Liu, Shiyu Liang

AI总结:

本文提出SOLID框架,通过安全保护少量底层并优化层数权衡,在本地部署中平衡模型机密性与定制化,实验验证其优于基线。

摘要:

隐私敏感型用户要求在其自身基础设施(本地部署)内运行大型语言模型(LLM),以保护私有数据并实现定制化。然而,本地环境中的漏洞可能导致未经授权的访问和潜在的模型窃取。为解决此问题,先前针对小模型的研究探索了在硬件安全设备内仅保护输出层,以平衡模型机密性与定制化。然而,该方法无法有效保护LLM。在本文中,我们发现:(1)针对受保护顶层发起的基于查询的蒸馏攻击能够生成受害模型的功能等效副本;(2)在保护相同层数的情况下,过渡层之前的底层相比顶层能提供更强的抗蒸馏攻击保护,且对定制化性能的影响相当;(3)受保护层数在保护与定制化灵活性之间形成权衡。基于这些见解,我们提出了SOLID,一种新颖的部署框架,它在安全环境中保护少量底层,并引入一种高效指标,通过确定理想的隐藏层层数来优化这一权衡。在五个模型(参数规模从1.3B到70B)上的大量实验表明,SOLID优于基线方法,在保护与下游定制化之间实现了更好的平衡。

英文摘要:

Privacy-sensitive users require deploying large language models (LLMs) within their own infrastructure (on-premises) to safeguard private data and enable customization. However, vulnerabilities in local environments can lead to unauthorized access and potential model theft. To address this, prior research on small models has explored securing only the output layer within hardware-secured devices to balance model confidentiality and customization. Yet this approach fails to protect LLMs effectively. In this paper, we discover that (1) query-based distillation attacks targeting the secured top layer can produce a functionally equivalent replica of the victim model; (2) securing the same number of layers, bottom layers before a transition layer provide stronger protection against distillation attacks than top layers, with comparable effects on customization performance; and (3) the number of secured layers creates a trade-off between protection and customization flexibility. Based on these insights, we propose SOLID, a novel deployment framework that secures a few bottom layers in a secure environment and introduces an efficient metric to optimize the trade-off by determining the ideal number of hidden layers. Extensive experiments on five models (1.3B to 70B parameters) demonstrate that SOLID outperforms baselines, achieving a better balance between protection and downstream customization.

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

↑