LAMP: Extracting Text from Gradients with Language Model Priors
Not on the map. Why?
Abstract (arXiv)
Recent work shows that sensitive user data can be reconstructed from gradient updates, breaking the key privacy promise of federated learning. While success was demonstrated primarily on image data, these methods do not directly transfer to other domains such as text. In this work, we propose LAMP, a novel attack tailored to textual data, that successfully reconstructs original text from gradients. Our attack is based on two key insights: (i) modeling prior text probability with an auxiliary language model, guiding the search towards more natural text, and (ii) alternating continuous and discrete optimization, which minimizes reconstruction loss on embeddings, while avoiding local minima by applying discrete text transformations. Our experiments demonstrate that LAMP is significantly more effective than prior work: it reconstructs 5x more bigrams and 23% longer subsequences on average. Moreover, we are the first to recover inputs from batch sizes larger than 1 for textual models. These findings indicate that gradient updates of models operating on textual data leak more information than previously thought.
Key facts. Cited by 54 papers in the map (data through 13 Oct 2026). Builds on 31 of its 53 references that are in the map. First posted on arXiv 17 Feb 2022.
Builds on
31 of 53 references.
References · 31
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,223
- 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,653
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,880
- 2019Advances and Open Problems in Federated Learningcited by 3,040
- 2016Deep Learning with Differential Privacycited by 2,718
- 2016Federated Learning: Strategies for Improving Communication Efficiencycited by 1,470
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,157
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,042
- 2019Deep Leakage from Gradientscited by 1,017
19 more
- 2018Neural Network Acceptability Judgmentscited by 957
- 2020Inverting Gradients -- How easy is it to break privacy in federated learning?cited by 711
- 2016Federated Optimization: Distributed Machine Learning for On-Device Intelligencecited by 563
- 2020iDLG: Improved Deep Leakage from Gradientscited by 380
- 2021See through Gradients: Image Batch Recovery via GradInversioncited by 326
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2021Evaluating Gradient Inversion Attacks and Defenses in Federated Learningcited by 196
- 2020Deep Learning Based Text Classification: A Comprehensive Reviewcited by 141
- 2019Federated Learning for Emoji Prediction in a Mobile Keyboardcited by 118
- 2021Gradient Inversion with Generative Image Priorcited by 101
- 2020R-GAP: Recursive Gradient Attack on Privacycited by 97
- 2020Provable Defense against Privacy Leakage in Federated Learning from Representation Perspectivecited by 94
- 2020A Framework for Evaluating Gradient Leakage Attacks in Federated Learningcited by 64
- 2021TAG: Gradient Attack on Transformer-based Language Modelscited by 63
- 2022Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Modelscited by 53
- 2021Towards General Deep Leakage in Federated Learningcited by 40
- 2021Bayesian Framework for Gradient Leakagecited by 34
- 2021PRECODE - A Generic Model Extension to Prevent Deep Gradient Leakagecited by 28
- 2021APRIL: Finding the Achilles' Heel on Privacy for Vision Transformerscited by 24
Built on by
Citing papers per year: 2022: 5; 2023: 11; 2024: 17; 2025: 8; 2026: 13.
54 papers.
Sort:
By area:
- 2023Towards Building the Federated GPT: Federated Instruction Tuningcited by 185
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 185
- 2022Recovering Private Text in Federated Learning of Language Modelscited by 70
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 50
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 32
- 2023Integration of Large Language Models and Federated Learningcited by 30
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2022Data Leakage in Federated Averagingcited by 26
- 2023FwdLLM: Efficient FedLLM using Forward Gradientcited by 25
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
38 more
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiencycited by 21
- 2024AI Risk Management Should Incorporate Both Safety and Securitycited by 17
- 2022Federated Few-Shot Learning for Mobile NLPcited by 15
- 2024SPEAR:Exact Gradient Inversion of Batches in Federated Learningcited by 15
- 2024DAGER: Exact Gradient Inversion for Large Language Modelscited by 14
- 2022TabLeak: Tabular Data Leakage in Federated Learningcited by 13
- 2024Trustworthy Distributed AI Systems: Robustness, Privacy, and Governancecited by 13
- 2024Inf2Guard: An Information-Theoretic Framework for Learning Privacy-Preserving Representations against Inference Attackscited by 13
- 2024Textual Unlearning Gives a False Sense of Unlearningcited by 13
- 2024Information Leakage from Embedding in Large Language Modelscited by 10
- 2023Hiding in Plain Sight: Disguising Data Stealing Attacks in Federated Learningcited by 9
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2025Uncovering Gradient Inversion Risks in Practical Language Model Trainingcited by 7
- 2023Beyond Gradient and Priors in Privacy Attacks: Leveraging Pooler Layer Inputs of Language Models in Federated Learningcited by 6
- 2025GRAIN: Exact Graph Reconstruction from Gradientscited by 5
- 2024FedEval-LLM: Federated Evaluation of Large Language Models on Downstream Tasks with Collective Wisdomcited by 3
- 2024Seeing the Forest through the Trees: Data Leakage from Partial Transformer Gradientscited by 3
- 2024MIP: CLIP-based Image Reconstruction from PEFT Gradientscited by 2
- 2024Privacy in LLM-based Recommendation: Recent Advances and Future Directionscited by 2
- 2024Privacy-Preserving Data Deduplication for Enhancing Federated Learning of Language Models (Extended Version)cited by 2
- 2025SVDefense: Effective Defense against Gradient Inversion Attacks via Singular Value Decompositioncited by 2
- 2026Reverse-Engineering Model Editing on Language Modelscited by 2
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscationcited by 2
- 2022Swing Distillation: A Privacy-Preserving Knowledge Distillation Frameworkcited by 1
- 2025Empirical Calibration and Metric Differential Privacy in Language Modelscited by 1
- 2025Hear No Evil: Detecting Gradient Leakage by Malicious Servers in Federated Learningcited by 1
- 2026The Art of Mixology: Mixup-based Obfuscation for Privacy-Preserving Split Learning in Large Language Modelscited by 1
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoyscited by 1
- 2026Privacy-Preserving Split Learning for Federated LLM Fine-Tuningcited by 1
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Membershipscited by 0
- 2024Subword Embedding from Bytes Gains Privacy without Sacrificing Accuracy and Complexitycited by 0
- 2024GDBR: Label Recovery Attack Against Partial Gradient Encryption in Federated Learningcited by 0
- 2025Nosy Layers, Noisy Fixes: Tackling DRAs in Federated Learning Systems using Explainable AIcited by 0
- 2025Evaluating Selective Encryption Against Gradient Inversion Attackscited by 0
- 2026SOMP: Scalable Gradient Inversion for Large Language Models via Subspace-Guided Orthogonal Matching Pursuitcited 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
50 most cited of 54 All 54 (JSON)
- 2026What Gradients Add to Text Leakage in Split Language Models, Counted per Token and per Document2 Oct 2026
- 2026Privacy-Preserving Split Learning for Federated LLM Fine-Tuning9 Sep 2026
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoys3 Sep 2026
- 2026Gradient Mirage: Trainable yet Label-Unidentifiable Gradients in Large Language Model Split Learning19 Aug 2026
- 2026MineGrad: Gradient Inversion Attacks on LoRA Fine-Tuning2 Aug 2026
- 2026Recovering Input Text from Hidden States: Study of Gradient-Based Inversion of Decoder-Only Language Models1 Jul 2026
- 2026When the Aggregator Cheats: Data-Free Backdoors in Federated LLM-based QA Systems25 Jun 2026
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimization16 Jun 2026
- 2026The Art of Mixology: Mixup-based Obfuscation for Privacy-Preserving Split Learning in Large Language Models15 Jun 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2026SOMP: Scalable Gradient Inversion for Large Language Models via Subspace-Guided Orthogonal Matching Pursuit17 Mar 2026
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscation11 Feb 2026
38 more
- 2026Reverse-Engineering Model Editing on Language Models7 Feb 2026
- 2025SVDefense: Effective Defense against Gradient Inversion Attacks via Singular Value Decomposition1 Oct 2025
- 2025Evaluating Selective Encryption Against Gradient Inversion Attacks6 Aug 2025
- 2025Uncovering Gradient Inversion Risks in Practical Language Model Training28 Jul 2025
- 2025Hear No Evil: Detecting Gradient Leakage by Malicious Servers in Federated Learning25 Jun 2025
- 2025Nosy Layers, Noisy Fixes: Tackling DRAs in Federated Learning Systems using Explainable AI16 May 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025Empirical Calibration and Metric Differential Privacy in Language Models18 Mar 2025
- 2025GRAIN: Exact Graph Reconstruction from Gradients3 Mar 2025
- 2024GDBR: Label Recovery Attack Against Partial Gradient Encryption in Federated Learning17 Dec 2024
- 2024Subword Embedding from Bytes Gains Privacy without Sacrificing Accuracy and Complexity21 Oct 2024
- 2024Privacy-Preserving Data Deduplication for Enhancing Federated Learning of Language Models (Extended Version)11 Jul 2024
- 2024Textual Unlearning Gives a False Sense of Unlearning19 Jun 2024
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Survey8 Jun 2024
- 2024Privacy in LLM-based Recommendation: Recent Advances and Future Directions3 Jun 2024
- 2024Seeing the Forest through the Trees: Data Leakage from Partial Transformer Gradients3 Jun 2024
- 2024AI Risk Management Should Incorporate Both Safety and Security29 May 2024
- 2024DAGER: Exact Gradient Inversion for Large Language Models24 May 2024
- 2024Information Leakage from Embedding in Large Language Models20 May 2024
- 2024FedEval-LLM: Federated Evaluation of Large Language Models on Downstream Tasks with Collective Wisdom18 Apr 2024
- 2024SPEAR:Exact Gradient Inversion of Batches in Federated Learning6 Mar 2024
- 2024Inf2Guard: An Information-Theoretic Framework for Learning Privacy-Preserving Representations against Inference Attacks4 Mar 2024
- 2024MIP: CLIP-based Image Reconstruction from PEFT Gradients26 Feb 2024
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Memberships19 Feb 2024
- 2024Trustworthy Distributed AI Systems: Robustness, Privacy, and Governance2 Feb 2024
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan 2024
- 2023Beyond Gradient and Priors in Privacy Attacks: Leveraging Pooler Layer Inputs of Language Models in Federated Learning10 Dec 2023
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Framework29 Nov 2023
- 2023Locally Differentially Private Document Generation Using Zero Shot Prompting24 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Survey27 Sep 2023
- 2023FwdLLM: Efficient FedLLM using Forward Gradient26 Aug 2023
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiency20 Jul 2023
- 2023Integration of Large Language Models and Federated Learning18 Jul 2023
- 2023Hiding in Plain Sight: Disguising Data Stealing Attacks in Federated Learning5 Jun 2023
- 2023Privacy Implications of Retrieval-Based Language Models24 May 2023
- 2023Towards Building the Federated GPT: Federated Instruction Tuning9 May 2023
- 2022Swing Distillation: A Privacy-Preserving Knowledge Distillation Framework16 Dec 2022
50 newest of 54 All 54 (JSON)
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 185
- 2024Inf2Guard: An Information-Theoretic Framework for Learning Privacy-Preserving Representations against Inference Attackscited by 13
- 2024Textual Unlearning Gives a False Sense of Unlearningcited by 13
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Membershipscited by 0
- 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
- 2024Textual Unlearning Gives a False Sense of Unlearning19 Jun 2024
- 2024Inf2Guard: An Information-Theoretic Framework for Learning Privacy-Preserving Representations against Inference Attacks4 Mar 2024
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Memberships19 Feb 2024
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan 2024
- 2023Towards Building the Federated GPT: Federated Instruction Tuningcited by 185
- 2022Recovering Private Text in Federated Learning of Language Modelscited by 70
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 50
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 32
- 2023Integration of Large Language Models and Federated Learningcited by 30
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2022Data Leakage in Federated Averagingcited by 26
- 2023FwdLLM: Efficient FedLLM using Forward Gradientcited by 25
- 2023Grounding Foundation Models through Federated Transfer Learning: A General Frameworkcited by 24
- 2024Deconstructing The Ethics of Large Language Models from Long-standing Issues to New-emerging Dilemmas: A Surveycited by 23
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiencycited by 21
12 most cited of 48 All 48 (JSON)
- 2026What Gradients Add to Text Leakage in Split Language Models, Counted per Token and per Document2 Oct 2026
- 2026Privacy-Preserving Split Learning for Federated LLM Fine-Tuning9 Sep 2026
- 2026Privacy Failure in Split-LLM Training, The Returned Gradient Nullifies the Decoys3 Sep 2026
- 2026Gradient Mirage: Trainable yet Label-Unidentifiable Gradients in Large Language Model Split Learning19 Aug 2026
- 2026MineGrad: Gradient Inversion Attacks on LoRA Fine-Tuning2 Aug 2026
- 2026Recovering Input Text from Hidden States: Study of Gradient-Based Inversion of Decoder-Only Language Models1 Jul 2026
- 2026TIGER: Inverting Transformer Gradients via Embedding-Subspace Distance Optimization16 Jun 2026
- 2026The Art of Mixology: Mixup-based Obfuscation for Privacy-Preserving Split Learning in Large Language Models15 Jun 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2026SOMP: Scalable Gradient Inversion for Large Language Models via Subspace-Guided Orthogonal Matching Pursuit17 Mar 2026
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscation11 Feb 2026
- 2026Reverse-Engineering Model Editing on Language Models7 Feb 2026
12 newest of 48 All 48 (JSON)