Abstract
Parameter-efficient fine-tuning (PEFT) has emerged as a practical solution for adapting large language models (LLMs) to custom datasets with significantly reduced computational cost. When carrying out PEFT under collaborative learning scenarios (e.g., federated learning), it is often required to exchange model updates (or gradients) across parties. These gradients, even with limited dimensions, can cause severe breach of data privacy. Recent works have shown that both contextual prefixes and personally identifiable information (PII) can be exposed through gradients. However, simultaneously and accurately recovering both components from the same training instance remains infeasible due to the following challenges: 1) limited number of PEFT parameters; 2) high-dimensional token spaces; and 3) large batch sizes. We propose ReCIT, a novel privacy attack that addresses all challenges, and achieves recovery of full private data from PEFT gradients with high fidelity. Specifically, ReCIT proposes to enhance the memorization capability of the pre-trained model through malicious fine-tuning with Personal Notes; ReCIT also proposes a novel filter-based token extraction technique and a token pairing mechanism, to accurately reconstruct tokens from the training sequences with large batch sizes. Extensive evaluations show that ReCIT consistently outperforms state-of-the-art gradient inversion and memorization-based attacks across different PEFT paradigms. It achieves up to 10× higher PII recovery rates and remains effective across varying batch sizes, especially in settings where prefix reconstruction is intractable for conventional approaches. These findings highlight an urgent need to reassess the privacy guarantees of PEFT, especially in decentralized or shared training environments.
Introduction
In the landscape of Large Language Models (LLMs), Parameter-Efficient Fine-Tuning (PEFT) techniques like LoRA have become essential for adapting models to specific tasks with minimal computational overhead. This efficiency is particularly valuable in Federated Learning (FL), where multiple participants collaboratively train a model by sharing gradients rather than raw data. The prevailing assumption has been that sharing these sparse, low-dimensional gradients is inherently privacy-preserving.
However, Gradient Inversion Attacks (GIA) have demonstrated that gradients can leak sensitive information. Existing attacks often struggle with the discrete nature of text, high-dimensional token spaces, and large training batch sizes. Crucially, they frequently fail to recover specific, high-value personally identifiable information (PII) like phone numbers or IDs. ReCIT (Reciting Private Data from Gradients) is introduced to bridge this gap, enabling the reconstruction of full private training sequences even in large-batch scenarios.
Methodology: The ReCIT Framework
ReCIT employs a sophisticated three-stage attack strategy that combines malicious model "priming" with mathematical gradient analysis.
1. Memory Strengthening with Personal Notes (PNotes)
The attack begins with a "malicious provider" scenario. The attacker pre-trains the base model on a synthetic dataset designed to strengthen its memorization of PII. This is achieved through "Personal Notes" (PNotes)—concise summaries that link identities to sensitive data (e.g., "Beatrice’s passport number is PI247345"). This priming ensures that if the model encounters similar PII during a victim's fine-tuning, it is more likely to memorize and later "recite" it.
2. Filter-based Token Extraction (FTE)
When the victim fine-tunes the model and shares gradients, ReCIT leverages the rank-deficient nature of PEFT gradients. By projecting the entire vocabulary onto the gradient's column space, the attacker can identify which tokens were likely present in the training batch. This Filter-based Token Extraction (FTE) significantly reduces the search space from hundreds of thousands of tokens to a small set of candidates.
3. Token Pairing and PII Inference
Finally, the attacker uses a generative model (e.g., GPT-4o) to assemble the filtered tokens into coherent contextual prefixes. These prefixes are then used to prompt the fine-tuned model. Due to the initial PNote priming, the model completes the sequence by generating the memorized PII, effectively reconstructing the full private data.
Experimental Results
The researchers evaluated ReCIT against several state-of-the-art attacks, including DLG, LAMP, and DAGER, across three benchmarks: Enron Email, Personachat, and SQuAD v2.
Key Findings
- Superior PII Recovery: ReCIT achieves up to 10× higher PII recovery rates compared to existing methods. While baseline attacks often fail to recover any PII at larger batch sizes, ReCIT maintains significant efficacy.
- Scalability to Large Batches: Most gradient inversion attacks collapse when the batch size exceeds 8. ReCIT remains effective at batch sizes as large as 128, a common setting in practical federated learning.
- Efficiency: ReCIT is remarkably efficient. In comparative tests, it processed large batches in approximately 7 hours, whereas the next best competitor, DAGER, required nearly 700 hours for inferior results.
- Versatility: The attack is robust across various PEFT paradigms, including LoRA, FedAdapter, and Offsite-Tuning.
Discussion and Conclusion
The success of ReCIT highlights a critical "inner monologue" vulnerability in LLMs. By forcing the model to summarize secrets during a malicious pre-training phase, an attacker creates a high-fidelity link between context and private data that persists through subsequent fine-tuning. Furthermore, the use of gradients as mathematical "fingerprints" allows for efficient token filtering that bypasses the need for complex optimization.
While ReCIT assumes a malicious provider threat model, its results serve as a stark warning. The common belief that "gradient sharing is safe" in PEFT is insufficient. Future work must focus on developing more rigorous privacy-preserving techniques, as current defenses like low-level Differential Privacy noise may not be enough to thwart hybrid attacks like ReCIT.
Summary updated