Exploring the Universal Vulnerability of Prompt-based Learning Paradigm

Lei Xu, Yangyi Chen, Ganqu Cui, Hongcheng Gao, Zhiyuan Liu
4/11/2022
cs.CL

Official code: leix28/prompt-universal-vulnerability (32 stars, Python, MIT, last commit 2022-07-11).

Abstract

Prompt-based learning paradigm bridges the gap between pre-training and fine-tuning, and works effectively under the few-shot setting. However, we find that this learning paradigm inherits the vulnerability from the pre-training stage, where model predictions can be misled by inserting certain triggers into the text.

Show full abstract

In this paper, we explore this universal vulnerability by either injecting backdoor triggers or searching for adversarial triggers on pre-trained language models using only plain text. In both scenarios, we demonstrate that our triggers can totally control or severely decrease the performance of prompt-based models fine-tuned on arbitrary downstream tasks, reflecting the universal vulnerability of the prompt-based learning paradigm. Further experiments show that adversarial triggers have good transferability among language models. We also find conventional fine-tuning models are not vulnerable to adversarial triggers constructed from pre-trained language models. We conclude by proposing a potential solution to mitigate our attack methods. Code and data are publicly available at https://github.com/leix28/prompt-universal-vulnerability

View on arXivView PDF

Code Implementations(1)

MIT

Implementation of the paper "Exploring the Universal Vulnerability of Prompt-based Learning Paradigm" on Findings of NAACL 2022

323PythonApr 9, 20224 years agoMIT

Similar Papers

Cite this paper

@article{xu2022exploring,
  title  = {Exploring the Universal Vulnerability of Prompt-based Learning Paradigm},
  author = {Lei Xu and Yangyi Chen and Ganqu Cui and Hongcheng Gao and Zhiyuan Liu},
  year   = {2022},
  eprint = {2204.05239},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.05239}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.05239.svg)](https://codeofpaper.com/paper/2204.05239)

Discussion