Split-LLM 训练中的隐私泄露:返回的梯度使诱饵失效
研究论文 · 2026/09/09
本文对两节点拆分LLM训练系统进行了系统安全案例研究,发现其隐私评估虽通过,但存在未测试的可观察通道。受信任本地节点(TLN)向不受信任云节点(UCN)发送受保护的激活,UCN返回输出,TLN持有私有损失并返回输出梯度。UCN接收的帧混合了真实行和诱饵行,损失忽略诱饵,因此其梯度恰好为零,零的模式揭示了真实行。通过预定的协议测量,包括已知强度的泄漏注入、打乱标签的对照和预设阈值,九次种子运行中,零模式在每帧中识别出真实行(每次运行4096/4096)。对帧内容的攻击比常数猜测基线多恢复约每百个token一个(+0.65至+1.50个百分点),而打乱对照无恢复。第二组运行在保持模型质量在预算内的配置上重复了此结果,表明该发现并非仅存在于不切实际的设置中。在两个数据集上,所有此类运行均通过前向通道隐私检查和质量检查,但一旦包含返回梯度,则未通过同一检查。对梯度每行进行裁剪和加噪可关闭泄漏,代价是约0.01 nats的留出交叉熵。但系统并非因此安全:五类攻击(包括跨训练步骤累积观察的攻击)从未被测量。
该文通过严谨的案例研究揭示了一个此前被忽视的隐私漏洞,其方法(预注册协议、对照实验)具有方法论价值,且结果对实际部署的拆分学习系统有重要警示意义。
We present a systems-security case study of a two-node split-LLM training system whose privacy evaluation passed while leaving an observable channel untested. The Trusted Local Node (TLN) sends protected activations to the Untrusted Cloud Node (UCN), the UCN returns its output, and TLN, holding the private loss, returns the output gradient. The frame the UCN receives mixes real rows with decoys, and the loss ignores the decoys. Their gradients are exactly zero, so the pattern of zeros reveals which rows were real. We measure it with a protocol fixed in advance: a leak injected at known strength to prove the instrument can see one, a shuffled-label control to prove it does not report absent leaks, and a threshold set before the runs. Across nine seeds, the zeros identified the real rows on every frame, 4,096 of 4,096 per run. An attack on the frame contents recovered about one extra token per hundred over a constant-guess baseline (+0.65 to +1.50 percentage points); the shuffled controls recovered nothing. A second set of runs repeated this on a configuration that keeps model quality within budget, so the finding is not confined to a setting nobody would deploy. On both datasets, every such run passed the forward-channel privacy check and the quality check, yet failed that same check once the returned gradient was included. Clipping and noising each row of the gradient closed the leak for about 0.01 nats of held-out cross-entropy. The system is not thereby safe: five classes of attack, including those accumulating observations across training steps, were never measured.