arXiv:2604.06297cs.CRcs.LG2026-04

提出可重构大批次长序列数据的新型攻击,突破现有方法局限。

FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs

  • 通过梯度分解利用秩亏与子空间结构,高效提取关键信息。
  • 在多种模型架构下实现高精度重建,支持大批次和长序列输入。
  • 适用于参数高效微调场景,适合关注联邦学习隐私风险的研究者。

随着大型语言模型(LLMs)对私有数据依赖加剧,结合参数高效微调(PEFT)的联邦学习(FL)因其隐私与效率优势备受关注。尽管FL具备隐私保护能力,但已有研究揭示共享梯度仍可能泄露私有数据。然而,现有方法主要针对全参数训练,仅能重建小批量、短序列数据,且在使用PEFT时效果显著下降。为全面评估联邦LLM的实际攻击面,本文提出FedSpy-LLM,一种可扩展且通用的数据重建攻击,能够在更大批次、更长序列条件下,跨多种模型架构(包括编码器型、解码器型及编码器-解码器型)实现高质量重建,即使在部署PEFT时也有效。核心在于一种新颖的梯度分解策略,利用梯度的秩亏性与子空间结构,在保持关键信号的同时实现高效令牌提取。该方法有效缓解了PEFT带来的巨大零空间带来的挑战。此外,通过迭代对齐部分序列梯度与完整序列梯度,确保重建序列中令牌顺序准确。

原文摘要 · Abstract (English)

Given the growing reliance on private data in training Large Language Models (LLMs), Federated Learning (FL) combined with Parameter-Efficient Fine-Tuning (PEFT) has garnered significant attention for enhancing privacy and efficiency. Despite FL's privacy benefits, prior studies have shown that private data can still be extracted from shared gradients. However, these studies, mainly on full-parameter model training, are limited to reconstructing small batches, short input sequences, and specific model architectures, such as encoder-based or decoder-based models. The reconstruction quality becomes even worse when dealing with gradients from PEFT methods. To fully understand the practical attack surface of federated LLMs, this paper proposes FedSpy-LLM, a scalable and generalizable data reconstruction attack designed to reconstruct training data with larger batch sizes and longer sequences while generalizing across diverse model architectures, even when PEFT methods are deployed for training. At the core of FedSpy-LLM is a novel gradient decomposition strategy that exploits the rank deficiency and subspace structure of gradients, enabling efficient token extraction while preserving key signal components at scale. This approach further mitigates the reconstruction challenges introduced by PEFT's substantial null space, ensuring robustness across encoder-based, decoder-based, and encoder-decoder model architectures. Additionally, by iteratively aligning each token's partial-sequence gradient with the full-sequence gradient, FedSpy-LLM ensures accurate token ordering in reconstructed sequences.

联邦学习数据泄露梯度攻击大模型安全

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