TL;DR
This paper introduces ProjRes, a novel and efficient membership inference attack (MIA) specifically designed for Federated Large Language Models (FedLLMs). ProjRes bypasses the limitations of existing MIAs by analyzing the projection residuals of hidden embeddings within the gradient subspace, achieving near-perfect accuracy and outperforming prior methods significantly, even under strong privacy defenses.
What Problem Does This Paper Address?
Federated Large Language Models (FedLLMs) enable collaborative fine-tuning of massive language models across multiple institutions without sharing raw data, addressing resource constraints and privacy concerns. However, the gradients exchanged during this process can still leak sensitive information. Existing MIAs, which aim to determine if a specific data point was used in training, are often ineffective against FedLLMs due to their unique characteristics: massive parameter scales, rapid convergence, and sparse, non-orthogonal gradients. This makes training shadow models computationally prohibitive and traditional MIA techniques unreliable. The paper addresses this gap by proposing a new MIA tailored for the specific challenges of FedLLMs.
Methods
The core of the proposed attack, ProjRes, lies in its novel approach to membership inference. Instead of relying on traditional signals like loss values or prediction confidence, ProjRes leverages the intrinsic relationship between a sample's hidden embeddings and the gradients uploaded by clients.
Here's a breakdown of the key steps:
- Sample Representation Construction: ProjRes extracts hidden embeddings of target samples by performing a forward pass through the model. These embeddings serve as rich representations of the input data.
- Semantic Space Mapping: It constructs a linear subspace from the gradients of the trainable components (e.g., adapters, LoRA modules) uploaded by clients. This subspace, denoted as S, implicitly encodes the semantic distribution learned from the client's data. The attack then computes the orthogonal projection of the sample's hidden embedding onto this subspace, yielding a reconstructed embedding,
f(x)rec. - Residual Computation and Membership Inference: The crucial step involves calculating the residual between the original embedding
f(x)and its reconstructed versionf(x)rec. The magnitude of this residual, measured by the L1-norm, quantifies how well the sample's semantic information is captured by the gradients. A small residual indicates that the sample's embedding aligns well with the gradient subspace, suggesting it was part of the training data. A threshold is then used to classify membership.
A key innovation is that ProjRes requires only a single round of gradient information from the target client, making it highly efficient and practical.
Datasets
The paper evaluates ProjRes on four standard text datasets:
- CoLA-1.1 (COLA): Grammar verification.
- Yelp-tip (Yelp): Sentiment analysis.
- SST-5 (SST): Sentiment analysis.
- IMDB v1 (IMDB): Sentiment analysis.
These datasets are chosen to cover varying text lengths and are commonly used in privacy risk studies.
Key Insights and Ideas
- FedLLMs' Unique Vulnerabilities: The paper highlights how the very properties that make FedLLMs efficient (rapid convergence, PEFT) also create new privacy attack surfaces that traditional MIAs fail to exploit.
- Gradient-Induced Semantic Leakage: ProjRes demonstrates that gradients from trainable components in FedLLMs, even when sparse, retain significant semantic information about the input samples.
- The Power of Projection Residuals: By analyzing the "missed" information when an embedding is projected onto the gradient subspace, ProjRes can effectively distinguish between member and non-member samples. This residual is more robust than direct gradient properties or loss values.
- Upsampling Amplifies Leakage: Larger trainable modules (more neurons) in FedLLMs lead to a greater leakage of privacy information, making them more vulnerable to ProjRes.
- Robustness Across Training Stages and Architectures: ProjRes maintains high performance regardless of the training epoch or the specific layer where the trainable module is inserted, showcasing its generalizability.
Key Results
- Near-Perfect Accuracy: ProjRes consistently achieves AUC scores close to 1.0 across various models and datasets.
- Significant Outperformance: ProjRes outperforms existing state-of-the-art MIAs by up to 75.75%.
- Effectiveness Against Defenses: ProjRes remains effective even under strong differential privacy (DP) and gradient pruning (GP) defenses, though these defenses can degrade model utility.
- Efficiency: ProjRes does not require shadow models or multi-round training, making it computationally efficient compared to many existing MIAs.
- Impact of Module Size: Larger trainable modules (e.g., more neurons in adapters) directly correlate with higher privacy leakage risk.
Limitations and Future Work
- Data-Level vs. Semantic-Level MIAs: ProjRes currently identifies exact sample matches. The authors suggest developing semantic-level MIAs that can capture broader privacy risks related to LLMs' generalization capabilities.
- Defense Mechanisms: The paper notes that existing lightweight defenses (DP, GP) struggle to balance privacy and model utility. Future work should focus on developing new, more effective privacy mechanisms for FedLLMs.
- Adaptive Attacks: The authors propose designing adaptive ProjRes variants that can account for specific defense mechanisms like gradient clipping or DP noise, potentially integrating Bayesian inference for enhanced robustness.
- Comprehensive Privacy Auditing: Combining ProjRes with other privacy analysis techniques could lead to more holistic tools for assessing and mitigating privacy risks in federated systems.
Summary updated