arXiv:2410.11182cs.LGcs.AI2024-10EMNLP被引 18

保护本地大模型隐私,兼顾安全与可定制性

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

  • 只加密模型底层几层,利用安全环境抵御窃取攻击
  • 实测显示70亿参数模型在4层保护下攻击成功率低于5%
  • 适合需数据私密且不愿暴露模型的机构使用

隐私敏感用户需将大语言模型(LLMs)部署于自有基础设施以保护私有数据并实现定制化。然而本地环境漏洞可能导致未经授权访问及模型被盗。现有针对小模型的研究仅保护输出层,但对大模型无效。本文发现:(1) 针对受保护顶层的查询式蒸馏攻击可复现功能等效的模型副本;(2) 保护相同数量的底层层(过渡层之前)比保护顶层提供更强防护,且定制化性能相当;(3) 保护层数量在安全性与定制灵活性间存在权衡。基于此,提出SOLID框架,通过在安全环境中加密少量底层层,并引入高效度量方法优化最优保护层数。五种模型(1.3B至70B参数)的实验表明,SOLID优于基线,在保护与下游定制之间取得更好平衡。

原文摘要 · Abstract (English)

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.

大模型部署隐私保护模型安全可信计算

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。