利用稀疏优化漏洞,从大模型服务中窃取输入文本
SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels
- 通过神经元权重访问侧信道构建激活探针
- 在多种模型上实现>0.95的BLEU分数还原
- 适合关注模型安全与隐私的研究者
现代大语言模型存在激活稀疏性,即对特定输入只激活部分神经元。研究者利用此特性优化服务系统,跳过未激活神经元的权重访问与计算。但此类优化引入了依赖输入的权重访问模式,可能通过侧信道泄露信息。本文提出SparSEEty攻击,利用稀疏优化系统引入的输入相关权重访问,先通过侧信道构建神经元激活探针,再反演激活轨迹重建输入文本,形成端到端的令牌提取攻击。我们在受Intel TDX可信虚拟机保护的LLM服务系统上实现了该攻击,解决了三个关键挑战:(i)结合TDX暴露的多种侧信道构建神经元激活探针;(ii)降低推理时监控开销以保持隐蔽性;(iii)准确将部分二值激活痕迹逆向为文本。评估表明,SparSEEty在多个模型和数据集上均可稳定重构提示词与回复词,平均BLEU分数超过0.95,监控开销仅为3.7%至7.2%。
原文摘要 · Abstract (English)
Modern large language models (LLMs) exhibit activation sparsity, wherein only a subset of their neurons is activated for given input tokens. Researchers have leveraged this property to optimize LLM serving systems by omitting weight accesses and computations pertaining to inactive neurons. Unfortunately, however, such optimizations create input-dependent weight accesses, which can be leaked over side channels. We present SparSEEty, a new token extraction attack that exploits input-dependent neuron weight accesses introduced by sparsity-exploiting LLM serving systems. SparSEEty first constructs a neuron-activation oracle using neuron weight access side channels during LLM inference, and then inverts the activation traces to reconstruct the input tokens, forming an end-to-end token extraction attack. We instantiate SparSEEty against an LLM serving system protected inside an Intel TDX confidential virtual machine (CVM), addressing three key challenges: (i) constructing a neuron-activation oracle using a combination of side channels exposed by CVMs, (ii) reducing inference-time overheads of neuron activation monitoring for covertness, and (iii) accurately inverting partial binary activation traces back to tokens. Our evaluation shows that SparSEEty can reconstruct both prompt and response tokens with consistently high BLEU scores (>0.95) across various models and datasets, while incurring monitoring overheads of 3.7% to 7.2%.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。