Reconstructing Training Data from Adapter-based Federated Large Language Models

Silong Chen, Yuchuan Luo, Guilin Deng, Yi Liu, Ming Xu, Shaojing Fu, Xiaohua Jia

TL;DR

Federated Large Language Models (FedLLMs) using adapters are thought to be more private due to training only a small subset of parameters. This paper demonstrates that this assumption is false, introducing a novel attack (UTR) that can reconstruct training data with near-perfect accuracy even in large batch settings. This highlights a fundamental privacy-efficiency trade-off in adapter-based FedLLMs.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a model without sharing their raw data, preserving privacy. Large Language Models (LLMs) are powerful but computationally expensive to train. Adapter-based FedLLMs offer a solution by freezing the LLM backbone and training only small, lightweight adapter modules. This significantly reduces computational and communication overhead, making LLMs more accessible in federated settings. A common belief is that this parameter-efficient approach, by limiting the number of updated parameters, inherently enhances privacy by reducing the information leaked through gradients. However, this paper questions this assumption, investigating whether these adapter-based FedLLMs are truly secure against gradient inversion attacks (GIAs), which aim to reconstruct private training data from shared gradients.

Methods

The paper introduces a novel Gradient Inversion Attack (GIA) called Unordered-word-bag-based Text Reconstruction (UTR), specifically designed for adapter-based FedLLMs. UTR tackles three core challenges:

  • Low-dimensional gradients: Adapters update only a small fraction of parameters, leading to sparse gradients. UTR bypasses traditional gradient vector fitting methods by inferring token presence directly from attention patterns in the frozen LLM layers.
  • Frozen backbone: The LLM's core parameters are not updated, meaning attackers only see gradients from adapters, not the entire model's knowledge. UTR exploits the low-rank properties of adapter gradients to estimate sentence inversion within this limited subspace.
  • Combinatorially large reconstruction spaces: Reconstructing discrete text from continuous gradients is challenging. UTR enforces semantic coherence through constrained greedy decoding guided by language priors, significantly reducing the search space.

UTR operates in two stages:

  1. Word Bag Inference: Infers an unordered set of vocabulary tokens present in the client's input by leveraging gradients from the embedding adapter and the frozen embedding layer.
  2. Data Inference: Assembles these tokens into coherent text sequences using a constrained search guided by grammatical, semantic, and contextual filters, and then verifies candidate sentences using gradients from layer adapters.

Datasets

The paper uses the following datasets for evaluation:

  • COLA (Corpus of Linguistic Acceptability): Evaluates grammatical correctness.
  • SST (Stanford Sentiment Treebank): Evaluates sentiment analysis.
  • Rotten Tomatoes (RT): Evaluates document-level sentiment.

Key Insights and Ideas

  • Adapter-based FedLLMs are NOT inherently more private: Contrary to popular belief, the parameter-efficient nature of adapters creates new, exploitable leakage channels, making them vulnerable to sophisticated GIAs.
  • Frozen LLM backbones are a double-edged sword: While they reduce computational load, they also hide crucial information that traditional GIAs rely on. UTR cleverly circumvents this by focusing on adapter gradients and frozen attention layers.
  • Unidirectional attention poses a higher risk: The paper suggests that the unidirectional attention mechanism common in generative LLMs might lead to more significant information leakage.
  • UTR is model-agnostic: The attack targets the adapter modules, making it effective across various LLM architectures and adapter configurations.

Key Results

  • Near-perfect reconstruction: UTR achieves ROUGE-1/2 scores of >99% even with large batch sizes (up to 128), significantly outperforming existing SOTA baselines like LAMP and DAGER.
  • Robustness to batch size: UTR maintains high accuracy even when reconstructing entire batches of data, a setting where prior GIAs fail.
  • Defense effectiveness:
    • Differential Privacy (DP): Provides a strong defense, rendering the attack nearly impenetrable at higher noise levels, but significantly degrades model utility.
  • Gradient Pruning (GP): Offers a heuristic and brittle defense, failing to securely safeguard data without severely impacting model performance.
  • Computational efficiency: UTR demonstrates significantly lower computational overhead compared to methods like FILM, achieving substantial speedups.
  • Impact of adapter settings: A larger reductionfactor (smaller adapter dimension) improves privacy but reduces attack performance, highlighting a direct trade-off. Higher solver tolerance (atol) improves attack robustness across batch sizes.

Limitations and Future Work

  • Model Utility Degradation with DP: While DP is an effective defense, it severely impacts the model's performance, making it impractical for real-world applications.
  • Brittle Nature of GP: Gradient Pruning is not a robust defense, as it can be bypassed with minimal impact on attack success while still degrading model utility.
  • Computational Constraints: Experiments were limited to using only the first two Transformer layers due to GPU memory constraints, which might not fully represent the behavior of larger models.
  • Future Work: The paper suggests that understanding the fundamental limits of information leakage from single gradient updates is crucial for developing effective privacy-performance trade-offs and designing provably resilient countermeasures. Further research into more practical and effective defense mechanisms is warranted.

Summary updated

BibTeX
@inproceedings{chen2026reconstructing,
  author = {Silong Chen and Yuchuan Luo and Guilin Deng and Yi Liu and Ming Xu and Shaojing Fu and Xiaohua Jia},
  title = {{Reconstructing Training Data from Adapter-based Federated Large Language Models}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792182},
}
Figure