[Paper Review] Analysis of Privacy Leakage in Federated Large Language Models
This paper investigates privacy leakage in federated fine-tuning of large language models (LLMs), proposing two active membership inference attacks—targeting fully connected and self-attention layers—that achieve near-perfect success rates (up to 0.99 AUC) on BERT, RoBERTa, DistilBERT, and GPT models. Theoretical analysis proves provable attack success, and experiments confirm severe privacy risks even under differential privacy, revealing architectural vulnerabilities in parameter-efficient FL setups.
With the rapid adoption of Federated Learning (FL) as the training and tuning protocol for applications utilizing Large Language Models (LLMs), recent research highlights the need for significant modifications to FL to accommodate the large-scale of LLMs. While substantial adjustments to the protocol have been introduced as a response, comprehensive privacy analysis for the adapted FL protocol is currently lacking. To address this gap, our work delves into an extensive examination of the privacy analysis of FL when used for training LLMs, both from theoretical and practical perspectives. In particular, we design two active membership inference attacks with guaranteed theoretical success rates to assess the privacy leakages of various adapted FL configurations. Our theoretical findings are translated into practical attacks, revealing substantial privacy vulnerabilities in popular LLMs, including BERT, RoBERTa, DistilBERT, and OpenAI's GPTs, across multiple real-world language datasets. Additionally, we conduct thorough experiments to evaluate the privacy leakage of these models when data is protected by state-of-the-art differential privacy (DP) mechanisms.
Motivation & Objective
- To address the lack of comprehensive privacy analysis in federated learning (FL) for large language models (LLMs), especially in parameter-efficient fine-tuning (PET) configurations.
- To investigate whether modified FL protocols for LLMs, which update only a small subset of parameters, introduce new privacy vulnerabilities despite reduced communication overhead.
- To evaluate the effectiveness of state-of-the-art differential privacy (DP) mechanisms in mitigating membership inference attacks in this context.
- To bridge theoretical privacy guarantees with practical attack feasibility in real-world LLMs and datasets.
Proposed method
- Proposes two active membership inference (AMI) attacks: one targeting fully connected (FC) layers and another targeting self-attention layers in fine-tuned LLMs.
- Designs a theoretical framework to prove that a dishonest FL server can achieve perfect membership inference via FC layer updates (Theorem 1), with provable success rate bounds.
- Develops a self-attention-based AMI attack with high guaranteed success rate (Theorem 2), exploiting gradient patterns in attention mechanisms.
- Implements practical attacks using model-specific gradient statistics and layer-wise feature representations to infer whether a given data sample was in a client’s training set.
- Applies multiple differential privacy mechanisms (GRR, RAPPOR, HE, dBitFlipPM) at the token index level to evaluate their resilience against the proposed attacks.
- Employs a multi-frequency LDP library (Multi-Freq-LDPy) to enforce DP guarantees while measuring attack performance across models and datasets.
Experimental results
Research questions
- RQ1Can a dishonest FL server achieve provably high success rates in membership inference attacks by manipulating only the trainable parameters in fine-tuned LLMs?
- RQ2Do parameter-efficient fine-tuning methods in FL, such as adapters or LoRA, introduce new privacy attack vectors compared to full fine-tuning?
- RQ3How effective are standard differential privacy mechanisms in protecting LLMs from membership inference attacks in federated settings?
- RQ4Are there architectural differences (e.g., encoder vs. decoder) that affect the resilience of LLMs to membership inference attacks?
- RQ5Does the attack success rate vary across different layers of the model, and if so, where are the most vulnerable points?
Key findings
- The fully connected (FC) layer-based attack achieves a maximum AUC of 0.99 and an accuracy of 0.96 on BERT and RoBERTa, indicating near-perfect membership inference in early and mid-layers.
- The self-attention-based attack achieves an AUC of 0.92 on BERT and 0.95 on RoBERTa in mid-layers, demonstrating that attention mechanisms also expose significant privacy leakage.
- Even under strong DP guarantees (ε = 10), the FC-Token attack maintains high success rates (AUC > 0.90) on BERT and RoBERTa, showing that DP alone is insufficient to prevent membership inference.
- Gaussian mechanism-based DP (GRR) yields the highest attack success rates among all DP mechanisms, while performance varies across models and attack types.
- GPT models show greater resilience to attention-based attacks than BERT-based models, likely due to architectural differences (decoder-only vs. encoder-only).
- Attack success rates decrease with deeper layers, but a slight increase is observed in mid-layer FC-Token attacks on BERT and RoBERTa, indicating potential hotspots for privacy leakage.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.