DAGER: Exact Gradient Inversion for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Federated learning works by aggregating locally computed gradients from multiple clients, thus enabling collaborative training without sharing private client data. However, prior work has shown that the data can actually be recovered by the server using so-called gradient inversion attacks. While these attacks perform well when applied on images, they are limited in the text domain and only permit approximate reconstruction of small batches and short input sequences. In this work, we propose DAGER, the first algorithm to recover whole batches of input text exactly. DAGER leverages the low-rank structure of self-attention layer gradients and the discrete nature of token embeddings to efficiently check if a given token sequence is part of the client data. We use this check to exactly recover full batches in the honest-but-curious setting without any prior on the data for both encoder- and decoder-based architectures using exhaustive heuristic search and a greedy approach, respectively. We provide an efficient GPU implementation of DAGER and show experimentally that it recovers full batches of size up to 128 on large language models (LLMs), beating prior attacks in speed (20x at same batch size), scalability (10x larger batches), and reconstruction quality (ROUGE-1/2 > 0.99).
Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 31 of its 44 references that are in the map. First posted on arXiv 24 May 2024.
Builds on
31 of 44 references.
References · 31
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,669
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2016Deep Learning with Differential Privacycited by 2,728
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2019Deep Leakage from Gradientscited by 1,021
- 2018Neural Network Acceptability Judgmentscited by 958
- 2020Inverting Gradients -- How easy is it to break privacy in federated learning?cited by 712
19 more
- 2020iDLG: Improved Deep Leakage from Gradientscited by 382
- 2024LoRA Learns Less and Forgets Lesscited by 328
- 2021See through Gradients: Image Batch Recovery via GradInversioncited by 326
- 2019Neural Legal Judgment Prediction in Englishcited by 209
- 2023Towards Building the Federated GPT: Federated Instruction Tuningcited by 185
- 2021When the Curious Abandon Honesty: Federated Learning Is Not Privatecited by 127
- 2021Robbing the Fed: Directly Obtaining Private Data in Federated Learning with Modified Modelscited by 108
- 2020R-GAP: Recursive Gradient Attack on Privacycited by 97
- 2023SLoRA: Federated Parameter Efficient Fine-Tuning of Language Modelscited by 93
- 2022Fishing for User Data in Large-Batch Federated Learning via Gradient Magnificationcited by 73
- 2022Auditing Privacy Defenses in Federated Learning via Generative Gradient Leakagecited by 72
- 2022Recovering Private Text in Federated Learning of Language Modelscited by 70
- 2021TAG: Gradient Attack on Transformer-based Language Modelscited by 63
- 2022LAMP: Extracting Text from Gradients with Language Model Priorscited by 54
- 2022Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Modelscited by 53
- 2021Towards General Deep Leakage in Federated Learningcited by 40
- 2021APRIL: Finding the Achilles' Heel on Privacy for Vision Transformerscited by 24
- 2024SPEAR:Exact Gradient Inversion of Batches in Federated Learningcited by 15
- 2023Beyond Gradient and Priors in Privacy Attacks: Leveraging Pooler Layer Inputs of Language Models in Federated Learningcited by 6
Built on by
Citing papers per year: 2025: 7; 2026: 7.
14 papers.
Sort:
By area:
- 2025GRAIN: Exact Graph Reconstruction from Gradientscited by 5
- 2025Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Promptscited by 4
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approachcited by 3
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMscited by 2
- 2025PC-MoE: Memory-Efficient and Privacy-Preserving Collaborative Training for Mixture-of-Experts LLMscited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025Recover-to-Forget: Gradient Reconstruction from LoRA for Efficient LLM Unlearningcited by 1
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuningcited by 1
- 2025Evaluating Selective Encryption Against Gradient Inversion Attackscited by 0
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMscited by 0
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimizationcited by 0
- 2026When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systemscited by 0
2 more
- 2026LAAF: A Layered Accountability Architecture Framework for LLM Applications27 Aug 2026
- 2026MineGrad: Gradient Inversion Attacks on LoRA Fine-Tuning2 Aug 2026
- 2026When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systems25 Jun 2026
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuning18 Jun 2026
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimization16 Jun 2026
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approach23 Apr 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2025Recover-to-Forget: Gradient Reconstruction from LoRA for Efficient LLM Unlearning8 Dec 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Evaluating Selective Encryption Against Gradient Inversion Attacks6 Aug 2025
- 2025PC-MoE: Memory-Efficient and Privacy-Preserving Collaborative Training for Mixture-of-Experts LLMs3 Jun 2025
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMs23 May 2025
2 more
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approachcited by 3
- 2025Recover-to-Forget: Gradient Reconstruction from LoRA for Efficient LLM Unlearningcited by 1
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuningcited by 1
- 2026When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systemscited by 0
- 2026When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systems25 Jun 2026
- 2026From Efficiency to Leakage -- Privacy Backdoor in Federated Language Model Fine-Tuning18 Jun 2026
- 2026Toward Efficient Membership Inference Attacks against Federated Large Language Models: A Projection Residual Approach23 Apr 2026
- 2025Recover-to-Forget: Gradient Reconstruction from LoRA for Efficient LLM Unlearning8 Dec 2025
- 2025GRAIN: Exact Graph Reconstruction from Gradientscited by 5
- 2025Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Promptscited by 4
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMscited by 2
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025Evaluating Selective Encryption Against Gradient Inversion Attackscited by 0
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMscited by 0
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimizationcited by 0
- 2026MineGrad: Gradient Inversion Attacks on LoRA Fine-Tuningcited by 0
- 2026LAAF: A Layered Accountability Architecture Framework for LLM Applicationscited by 0
- 2026LAAF: A Layered Accountability Architecture Framework for LLM Applications27 Aug 2026
- 2026MineGrad: Gradient Inversion Attacks on LoRA Fine-Tuning2 Aug 2026
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimization16 Jun 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Evaluating Selective Encryption Against Gradient Inversion Attacks6 Aug 2025
- 2025An Attack to Break Permutation-Based Private Third-Party Inference Schemes for LLMs23 May 2025
- 2025Beyond One-Size-Fits-All: Inversion Learning for Highly Effective NLG Evaluation Prompts29 Apr 2025
- 2025GRAIN: Exact Graph Reconstruction from Gradients3 Mar 2025