paper-with-me

홈 › Papers

$\textit{LinkPrompt}$: Natural and Universal Adversarial Attacks on Prompt-based Language Models

2024-03-25 · Yue Xu, Wenjie Wang

Prompt-based learning is a new language model training paradigm that adapts the Pre-trained Language Models (PLMs) to downstream tasks, which revitalizes the performance benchmarks across various natural language processing (NLP) tasks. Instead of using a fixed prompt template to fine-tune the model, some research demonstrates the effectiveness of searching for the prompt via optimization. Such prompt optimization process of prompt-based learning on PLMs also gives insight into generating adversarial prompts to mislead the model, raising concerns about the adversarial vulnerability of this paradigm. Recent studies have shown that universal adversarial triggers (UATs) can be generated to alter not only the predictions of the target PLMs but also the prediction of corresponding Prompt-based Fine-tuning Models (PFMs) under the prompt-based learning paradigm. However, UATs found in previous works are often unreadable tokens or characters and can be easily distinguished from natural texts with adaptive defenses. In this work, we consider the naturalness of the UATs and develop $\textit{LinkPrompt}$, an adversarial attack algorithm to generate UATs by a gradient-based beam search algorithm that not only effectively attacks the target PLMs and PFMs but also maintains the naturalness among the trigger tokens. Extensive results demonstrate the effectiveness of $\textit{LinkPrompt}$, as well as the transferability of UATs generated by $\textit{LinkPrompt}$ to open-sourced Large Language Model (LLM) Llama2 and API-accessed LLM GPT-3.5-turbo. The resource is available at $\href{https://github.com/SavannahXu79/LinkPrompt}{https://github.com/SavannahXu79/LinkPrompt}$.

📄 PDF Abstract BibTeX arXiv:2403.16432

Code (1)

savannahxu79/linkprompt 공식 구현 pytorch

Tasks

Adversarial AttackLanguage ModelingLanguage ModellingLarge Language Model

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
15 Ways to Contact How can i speak to someone at Delta Airlines 설명 없음
Residual Connection 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Multi-Head Attention 설명 없음

Similar Papers 제목 키워드 기반

Towards Variable-Length Textual Adversarial Attacks

2021-04-16 · Junliang Guo, Zhirui Zhang, Linlin Zhang, Linli Xu 외

Adversarial attacks have shown the vulnerability of machine learning models, however, it is non-trivial to conduct textual adversarial attacks on natural language processing tasks due to the discreteness of data. Most pr…

Machine TranslationTranslation

Universal Adversarial Attacks with Natural Triggers for Text Classification

2020-05-01 · NAACL 2021 4 · Liwei Song, Xinwei Yu, Hsuan-Tung Peng, Karthik Narasimhan

Recent work has demonstrated the vulnerability of modern text classifiers to universal adversarial attacks, which are input-agnostic sequences of words added to text processed by classifiers. Despite being successful, th…

ClassificationGeneral Classificationtext-classificationText Classification

A Universal Adversarial Policy for Text Classifiers

2022-06-19 · Gallil Maimon, Lior Rokach

Discovering the existence of universal adversarial perturbations had large theoretical and practical impacts on the field of adversarial learning. In the text domain, most universal studies focused on adversarial prefixe…

valid

ELBA-Bench: An Efficient Learning Backdoor Attacks Benchmark for Large Language Models

2025-02-22 · Xuxu Liu, Siyuan Liang, Mengya Han, Yong Luo 외

Generative large language models are crucial in natural language processing, but they are vulnerable to backdoor attacks, where subtle triggers compromise their behavior. Although backdoor attacks against LLMs are consta…

Backdoor AttackIn-Context Learningparameter-efficient fine-tuning

Natural Backdoor Attack on Text Data

2020-06-29 · Lichao Sun

Recently, advanced NLP models have seen a surge in the usage of various applications. This raises the security threats of the released models. In addition to the clean models' unintentional weaknesses, {\em i.e.,} advers…

Backdoor Attacktext-classificationText Classification