足够好的LLM混淆(GELO)
Good-Enough LLM Obfuscation (GELO)
AI总结:
提出GELO协议,通过每批可逆混合隐藏状态,在共享加速器上保护LLM推理隐私,抵抗统计攻击,计算开销约20-30%。
摘要:
大型语言模型(LLM)越来越多地在共享加速器上提供服务,攻击者通过读取设备内存可以观察到KV缓存和隐藏状态,威胁开源模型的提示隐私。MPC和FHE等加密保护提供了强保证,但对于交互式推理仍然慢一到两个数量级,而静态混淆方案在模型已知后会在多轮统计攻击下失效。我们提出GELO(足够好的LLM混淆),一种轻量级的隐私保护推理协议,通过使用每批新鲜的可逆混合隐藏隐藏状态,限制来自不可信加速器观察的信息泄露。对于每个卸载的投影,TEE采样一个随机矩阵$A$,形成$U = AH$,将$U$和权重W卸载到加速器,然后在返回时应用$A^{-1}$,使得$A^{-1}((AH)W ) = HW$,输出不变。由于混合从不跨批次重用,攻击者只面临单批次盲源分离问题。我们分析信息泄露并引入两种实用防御:(i)非正交混合以掩盖Gram矩阵,以及(ii)正交混合加上一小部分高能量“屏蔽”向量以污染高阶统计量。在Llama-2 7B上,GELO精确保持float32输出,与低精度基线紧密匹配,并在受控卸载微基准测试中显示约20-30%的计算端开销;未优化的远程原型主要受传输开销影响,这促使更深入的服务器引擎集成。GELO抵抗ICA/BSS和锚辅助攻击;一个6000万参数的基于Transformer的解混攻击在强混合和屏蔽下也失败。
英文摘要:
Large Language Models (LLMs) are increasingly served on shared accelerators where an adversary with read access to device memory can observe KV caches and hidden states, threatening prompt privacy for open-source models. Cryptographic protections such as MPC and FHE offer strong guarantees but remain one to two orders of magnitude too slow for interactive inference, while static obfuscation schemes break under multi-run statistical attacks once the model is known. We present GELO (Good-Enough LLM Obfuscation), a lightweight protocol for privacy-preserving inference that limits information leakage from untrusted accelerator observations by hiding hidden states with fresh, per-batch invertible mixing. For each offloaded projection, the TEE samples a random matrix $A$, forms $U = AH$, offloads $U$ and weights W to the accelerator, and then applies $A^{-1}$ on return, so that $A^{-1}((AH)W ) = HW$ and outputs are unchanged. Because mixing is never reused across batches, the attacker faces only a single-batch blind source separation problem. We analyse information leakage and introduce two practical defences: (i) non-orthogonal mixing to mask Gram matrices, and (ii) orthogonal mixing augmented with a small fraction of high-energy "shield" vectors that pollute higher-order statistics. On Llama-2 7B, GELO preserves float32 outputs exactly, closely matches low-precision baselines, and shows about $20$--$30\%$ compute-side overhead in a controlled offload microbenchmark; an unoptimized remote prototype is dominated by transport overhead, motivating deeper serving-engine integration. GELO resists ICA/BSS and anchor-assisted attacks; a 60M-parameter transformer-based unmixing attack also fails under strong mixing and shielding.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。