On Robust Prefix-Tuning for Text Classification
Not on the map. Why?
Abstract (arXiv)
Recently, prefix-tuning has gained increasing attention as a parameter-efficient finetuning method for large-scale pretrained language models. The method keeps the pretrained models fixed and only updates the prefix token parameters for each downstream task. Despite being lightweight and modular, prefix-tuning still lacks robustness to textual adversarial attacks. However, most currently developed defense techniques necessitate auxiliary model update and storage, which inevitably hamper the modularity and low storage of prefix-tuning. In this work, we propose a robust prefix-tuning framework that preserves the efficiency and modularity of prefix-tuning. The core idea of our framework is leveraging the layerwise activations of the language model by correctly-classified training data as the standard for additional prefix finetuning. During the test phase, an extra batch-level prefix is tuned for each batch and added to the original prefix for robustness enhancement. Extensive experiments on three text classification benchmarks show that our framework substantially improves robustness over several strong baselines against five textual attacks of different types while maintaining comparable accuracy on clean texts. We also interpret our robust prefix-tuning framework from the optimal control perspective and pose several directions for future research.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Builds on 68 of its 91 references that are in the map. First posted on arXiv 19 Mar 2022.
Builds on
68 of 91 references.
References · 68
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
38 more
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Deep contextualized word representationscited by 2,285
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2019Energy and Policy Considerations for Deep Learning in NLPcited by 1,242
- 2019How Can We Know What Language Models Know?cited by 953
- 2017Virtual Adversarial Training: A Regularization Method for Supervised and Semi-Supervised Learningcited by 918
- 2019Attention is not Explanationcited by 916
- 2020Quantifying Attention Flow in Transformerscited by 759
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 709
- 2021Multimodal Few-Shot Learning with Frozen Language Modelscited by 657
- 2019Attention is not not Explanationcited by 629
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2021Unifying Vision-and-Language Tasks via Text Generationcited by 411
- 2019Is Attention Interpretable?cited by 387
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2021Factual Probing Is [MASK]: Learning vs. Learning to Recallcited by 291
- 2018Adversarial Example Generation with Syntactically Controlled Paraphrase Networkscited by 282
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2019SMART: Robust and Efficient Fine-Tuning for Pre-trained Natural Language Models through Principled Regularized Optimizationcited by 253
- 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 235
- 2021WARP: Word-level Adversarial ReProgrammingcited by 220
- 2019Gender Bias in Contextualized Word Embeddingscited by 203
- 2021Knowledgeable Prompt-tuning: Incorporating Knowledge into Prompt Verbalizer for Text Classificationcited by 183
- 2019Certified Robustness to Adversarial Word Substitutionscited by 164
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2019The Bottom-up Evolution of Representations in the Transformer: A Study with Machine Translation and Language Modeling Objectivescited by 139
- 2020Adversarial Training for Large Neural Language Modelscited by 109
- 2019Text Processing Like Humans Do: Visually Attacking and Shielding NLP Systemscited by 99
- 2020InfoBERT: Improving Robustness of Language Models from An Information Theoretic Perspectivecited by 92
- 2019Achieving Verified Robustness to Symbol Substitutions via Interval Bound Propagationcited by 87
- 2020OpenAttack: An Open-source Textual Adversarial Attack Toolkitcited by 84
50 most cited of 68 All 68 (JSON)
Built on by
Citing papers per year: 2022: 5; 2023: 6; 2024: 2; 2025: 1; 2026: 1.
15 papers.
Sort:
By area:
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Modelscited by 379
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimizationcited by 32
- 2024Generative Multi-Modal Knowledge Retrieval with Large Language Modelscited by 22
- 2022Pre-trained Adversarial Perturbationscited by 16
- 2023Exploring the Impact of Model Scaling on Parameter-Efficient Tuningcited by 8
- 2023MixPHM: Redundancy-Aware Parameter-Efficient Tuning for Low-Resource Visual Question Answeringcited by 5
- 2023Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiencycited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2026A Visual Semantic Adaptive Watermark grounded by Prefix-Tuning for Large Vision-Language Modelcited by 3
3 more
- 2026A Visual Semantic Adaptive Watermark grounded by Prefix-Tuning for Large Vision-Language Model12 Jan 2026
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuning30 Aug 2024
- 2024Generative Multi-Modal Knowledge Retrieval with Large Language Models16 Jan 2024
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilities24 Aug 2023
- 2023Exploring the Impact of Model Scaling on Parameter-Efficient Tuning4 Jun 2023
- 2023Stochastic Bridges as Effective Regularizers for Parameter-Efficient Tuning28 May 2023
- 2023Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiency18 May 2023
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Services10 May 2023
- 2023MixPHM: Redundancy-Aware Parameter-Efficient Tuning for Low-Resource Visual Question Answering2 Mar 2023
- 2022Exploring Robustness of Prefix Tuning in Noisy Data: A Case Study in Financial Sentiment Analysis26 Oct 2022
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimization10 Oct 2022
- 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Modelscited by 379
- 2023MixPHM: Redundancy-Aware Parameter-Efficient Tuning for Low-Resource Visual Question Answeringcited by 5
- 2026A Visual Semantic Adaptive Watermark grounded by Prefix-Tuning for Large Vision-Language Modelcited by 3
- 2026A Visual Semantic Adaptive Watermark grounded by Prefix-Tuning for Large Vision-Language Model12 Jan 2026
- 2023MixPHM: Redundancy-Aware Parameter-Efficient Tuning for Low-Resource Visual Question Answering2 Mar 2023
- 2022Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models15 Sep 2022
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 886
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Servicescited by 43
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimizationcited by 32
- 2024Generative Multi-Modal Knowledge Retrieval with Large Language Modelscited by 22
- 2022Pre-trained Adversarial Perturbationscited by 16
- 2023Exploring the Impact of Model Scaling on Parameter-Efficient Tuningcited by 8
- 2023Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiencycited by 5
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directionscited by 5
- 2022Exploring Robustness of Prefix Tuning in Noisy Data: A Case Study in Financial Sentiment Analysiscited by 2
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuningcited by 2
- 2023Stochastic Bridges as Effective Regularizers for Parameter-Efficient Tuningcited by 0
- 2025Evaluating and Improving Robustness in Large Language Models: A Survey and Future Directions8 Jun 2025
- 2024Novel-WD: Exploring acquisition of Novel World Knowledge in LLMs Using Prefix-Tuning30 Aug 2024
- 2024Generative Multi-Modal Knowledge Retrieval with Large Language Models16 Jan 2024
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilities24 Aug 2023
- 2023Exploring the Impact of Model Scaling on Parameter-Efficient Tuning4 Jun 2023
- 2023Stochastic Bridges as Effective Regularizers for Parameter-Efficient Tuning28 May 2023
- 2023Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiency18 May 2023
- 2023Privacy-Preserving Parameter-Efficient Fine-Tuning for Large Language Model Services10 May 2023
- 2022Exploring Robustness of Prefix Tuning in Noisy Data: A Case Study in Financial Sentiment Analysis26 Oct 2022
- 2022Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimization10 Oct 2022
- 2022Pre-trained Adversarial Perturbations7 Oct 2022
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning11 May 2022