TAG: Gradient Attack on Transformer-based Language Models
Not on the map. Why?
Abstract (arXiv)
Although federated learning has increasingly gained attention in terms of effectively utilizing local devices for data privacy enhancement, recent studies show that publicly shared gradients in the training process can reveal the private training images (gradient leakage) to a third-party in computer vision. We have, however, no systematic understanding of the gradient leakage mechanism on the Transformer based language models. In this paper, as the first attempt, we formulate the gradient attack problem on the Transformer-based language models and propose a gradient attack algorithm, TAG, to reconstruct the local training data. We develop a set of metrics to evaluate the effectiveness of the proposed attack algorithm quantitatively. Experimental results on Transformer, TinyBERT4, TinyBERT6, BERTBASE, and BERTLARGE using GLUE benchmark show that TAG works well on more weight distributions in reconstructing training data and achieves 1.5× recover rate and 2.5× ROUGE-2 over prior methods without the need of ground truth label. TAG can obtain up to 90% data by attacking gradients in CoLA dataset. In addition, TAG has a stronger adversary on large models, small dictionary size, and small input length. We hope the proposed TAG will shed some light on the privacy leakage problem in Transformer-based NLP models.
Key facts. Cited by 63 papers in the map (data through 7 Oct 2026). First posted on arXiv 11 Mar 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 12; 2023: 14; 2024: 11; 2025: 13; 2026: 12.
63 papers.
Sort:
By area:
- 2023Large Language Model Alignment: A Surveycited by 241
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agentscited by 90
- 2024SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Modelcited by 82
- 2022Recovering Private Text in Federated Learning of Language Modelscited by 67
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2022Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Modelscited by 52
- 2022LAMP: Extracting Text from Gradients with Language Model Priorscited by 52
- 2022A Survey on Gradient Inversion: Attacks, Defenses and Future Directionscited by 39
- 2022Gradient Obfuscation Gives a False Sense of Security in Federated Learningcited by 37
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 31
- 2022Learning to Invert: Simple Adaptive Attacks for Gradient Inversion in Federated Learningcited by 30
38 more
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2022Text Revealer: Private Text Reconstruction via Model Inversion Attacks against Transformerscited by 28
- 2023Trojan Activation Attack: Red-Teaming Large Language Models using Activation Steering for Safety-Alignmentcited by 27
- 2022Data Leakage in Federated Averagingcited by 26
- 2024Text Embedding Inversion Security for Multilingual Language Modelscited by 26
- 2023FwdLLM: Efficient FedLLM using Forward Gradientcited by 25
- 2021APRIL: Finding the Achilles' Heel on Privacy for Vision Transformerscited by 23
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiencycited by 21
- 2022Federated Few-Shot Learning for Mobile NLPcited by 15
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlookcited by 15
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 14
- 2022TabLeak: Tabular Data Leakage in Federated Learningcited by 13
- 2024DAGER: Exact Gradient Inversion for Large Language Modelscited by 12
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasurescited by 11
- 2023An Overview on Generative AI at Scale with Edge-Cloud Computingcited by 9
- 2024Noiseless Privacy-Preserving Decentralized Learningcited by 9
- 2025Synthetic Text Generation for Training Large Language Models via Gradient Matchingcited by 9
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasurescited by 8
- 2023Understanding Deep Gradient Leakage via Inversion Influence Functionscited by 6
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformercited by 6
- 2023Beyond Gradient and Priors in Privacy Attacks: Leveraging Pooler Layer Inputs of Language Models in Federated Learningcited by 6
- 2025Uncovering Gradient Inversion Risks in Practical Language Model Trainingcited by 6
- 2025GRAIN: Exact Graph Reconstruction from Gradientscited by 5
- 2022Two Models are Better than One: Federated Learning Is Not Private For Google GBoard Next Word Predictioncited by 4
- 2023Temporal Gradient Inversion Attacks with Robust Optimizationcited by 4
- 2023Privacy Risks in Reinforcement Learning for Household Robotscited by 4
- 2024Seeing the Forest through the Trees: Data Leakage from Partial Transformer Gradientscited by 3
- 2022Refiner: Data Refining against Gradient Leakage Attacks in Federated Learningcited by 2
- 2024Privacy in LLM-based Recommendation: Recent Advances and Future Directionscited by 2
- 2025SVDefense: Effective Defense against Gradient Inversion Attacks via Singular Value Decompositioncited by 2
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscationcited by 2
- 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
- 2026Reconstructing Training Data from Adapter-based Federated Large Language Modelscited by 1
- 2026From Prompts to Responses: Dual-Sided Data Leakage and Defense in Split Large Language Modelscited by 1
- 2026The Art of Mixology: Mixup-based Obfuscation for Privacy-Preserving Split Learning in Large Language Modelscited by 1
- 2026Privacy-Preserving Split Learning for Federated LLM Fine-Tuningcited by 1
- 2024Privacy Attack in Federated Learning is Not Easy: An Experimental Studycited by 0
50 most cited of 63 All 63 (JSON)
- 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
- 2026Privacy Leakage in Federated Learning in Radiology Reports: A Comparative Evaluation of Tokenizer-Driven Privacy Risks15 Jul 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
- 2026From Prompts to Responses: Dual-Sided Data Leakage and Defense in Split Large Language Models12 Jun 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscation11 Feb 2026
- 2026Reconstructing Training Data from Adapter-based Federated Large Language Models24 Jan 2026
- 2026A Unified Masked Jigsaw Puzzle Framework for Vision and Language Models17 Jan 2026
38 more
- 2025SVDefense: Effective Defense against Gradient Inversion Attacks via Singular Value Decomposition1 Oct 2025
- 2025Influence-Guided Concolic Testing of Transformer Robustness28 Sep 2025
- 2025Evaluating Selective Encryption Against Gradient Inversion Attacks6 Aug 2025
- 2025Uncovering Gradient Inversion Risks in Practical Language Model Training28 Jul 2025
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversion22 Jul 2025
- 2025IMAIA: Interactive Maps AI Assistant for Travel Planning and Geo-Spatial Intelligence9 Jul 2025
- 2025Hear No Evil: Detecting Gradient Leakage by Malicious Servers in Federated Learning25 Jun 2025
- 2025LLM Security: Vulnerabilities, Attacks, Defenses, and Countermeasures2 May 2025
- 2025TS-Inverse: A Gradient Inversion Attack Tailored for Federated Time Series Forecasting Models26 Mar 2025
- 2025Empirical Calibration and Metric Differential Privacy in Language Models18 Mar 2025
- 2025GRAIN: Exact Graph Reconstruction from Gradients3 Mar 2025
- 2025Synthetic Text Generation for Training Large Language Models via Gradient Matching24 Feb 2025
- 2025Navigating the Designs of Privacy-Preserving Fine-tuning for Large Language Models8 Jan 2025
- 2024Model Inversion Attacks: A Survey of Approaches and Countermeasures15 Nov 2024
- 2024Subword Embedding from Bytes Gains Privacy without Sacrificing Accuracy and Complexity21 Oct 2024
- 2024Privacy Attack in Federated Learning is Not Easy: An Experimental Study28 Sep 2024
- 2024SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Model17 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
- 2024DAGER: Exact Gradient Inversion for Large Language Models24 May 2024
- 2024AirGapAgent: Protecting Privacy-Conscious Conversational Agents8 May 2024
- 2024Noiseless Privacy-Preserving Decentralized Learning15 Apr 2024
- 2024Security and Privacy Challenges of Large Language Models: A Survey30 Jan 2024
- 2024Text Embedding Inversion Security for Multilingual Language Models22 Jan 2024
- 2023Beyond Gradient and Priors in Privacy Attacks: Leveraging Pooler Layer Inputs of Language Models in Federated Learning10 Dec 2023
- 2023A Theoretical Insight into Attack and Defense of Gradient Leakage in Transformer22 Nov 2023
- 2023Trojan Activation Attack: Red-Teaming Large Language Models using Activation Steering for Safety-Alignment15 Nov 2023
- 2023Locally Differentially Private Document Generation Using Zero Shot Prompting24 Oct 2023
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Survey27 Sep 2023
- 2023Large Language Model Alignment: A Survey26 Sep 2023
- 2023Understanding Deep Gradient Leakage via Inversion Influence Functions22 Sep 2023
- 2023FwdLLM: Efficient FedLLM using Forward Gradient26 Aug 2023
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlook31 Jul 2023
- 2023A Survey of What to Share in Federated Learning: Perspectives on Model Utility, Privacy Leakage, and Communication Efficiency20 Jul 2023
- 2023Privacy Risks in Reinforcement Learning for Household Robots15 Jun 2023
- 2023Temporal Gradient Inversion Attacks with Robust Optimization13 Jun 2023
- 2023An Overview on Generative AI at Scale with Edge-Cloud Computing2 Jun 2023
- 2023Privacy Implications of Retrieval-Based Language Models24 May 2023
50 newest of 63 All 63 (JSON)
- 2023Large Language Model Alignment: A Surveycited by 241
- 2023Large Language Model Alignment: A Survey26 Sep 2023
- 2022Recovering Private Text in Federated Learning of Language Modelscited by 67
- 2023Locally Differentially Private Document Generation Using Zero Shot Promptingcited by 63
- 2022Decepticons: Corrupted Transformers Breach Privacy in Federated Learning for Language Modelscited by 52
- 2022LAMP: Extracting Text from Gradients with Language Model Priorscited by 52
- 2022A Survey on Gradient Inversion: Attacks, Defenses and Future Directionscited by 39
- 2022Gradient Obfuscation Gives a False Sense of Security in Federated Learningcited by 37
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 31
- 2022Learning to Invert: Simple Adaptive Attacks for Gradient Inversion in Federated Learningcited by 30
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2022Text Revealer: Private Text Reconstruction via Model Inversion Attacks against Transformerscited by 28
- 2022Data Leakage in Federated Averagingcited by 26
- 2024Text Embedding Inversion Security for Multilingual Language Modelscited by 26
12 most cited of 57 All 57 (JSON)
- 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
- 2026Privacy Leakage in Federated Learning in Radiology Reports: A Comparative Evaluation of Tokenizer-Driven Privacy Risks15 Jul 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
- 2026From Prompts to Responses: Dual-Sided Data Leakage and Defense in Split Large Language Models12 Jun 2026
- 2026FedSpy-LLM: Towards Scalable and Generalizable Data Reconstruction Attacks from Gradients on LLMs7 Apr 2026
- 2026Mitigating Gradient Inversion Risks in Language Models via Token Obfuscation11 Feb 2026
- 2026Reconstructing Training Data from Adapter-based Federated Large Language Models24 Jan 2026
- 2026A Unified Masked Jigsaw Puzzle Framework for Vision and Language Models17 Jan 2026
12 newest of 57 All 57 (JSON)