atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

An LLM can Fool Itself: A Prompt-Based Adversarial Attack

ICLR 2024 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models · 13 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes PromptAttack, which prompts an LLM to generate its own adversarial text variants (via character, word, and sentence perturbation instructions, a fidelity filter, and few-shot and ensemble strategies) to audit black-box LLM robustness on GLUE.

Problem

Existing adversarial robustness benchmarks for LLMs (AdvGLUE, AdvGLUE++) are generated against BERT-based or open-source models and transferred to black-box LLMs like GPT-3.5, so they may not genuinely measure a victim LLM's robustness and are computationally costly to build.

Approach

Build an attack prompt (original input, attack objective, attack guidance with nine perturbation instructions) so the victim LLM itself rewrites the input to fool itself, requiring only API queries; filter outputs by word modification ratio and BERTScore, and ensemble across perturbation levels.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace AdvGLUE samples with PromptAttack-FS-EN samplesGPT-3.5 · SST-2ASR: 33.04 -> 75.23Helped
Replace AdvGLUE samples with PromptAttack-FS-EN samplesGPT-3.5 · QQPASR: 14.76 -> 39.61Helped
Add few-shot attack guidance to PromptAttack-EN (ablation)GPT-3.5 · GLUE AvgASR: 42.54 -> 48.34Helped
Add few-shot attack guidance to PromptAttack-EN (ablation)Llama2-7B · GLUE AvgASR: 50.82 -> 40.08Hurt
Add few-shot attack guidance to PromptAttack-EN (ablation)Llama2-13B · GLUE AvgASR: 63.20 -> 61.80Hurt
Add few-shot attack guidance to character perturbation C1 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 10.09 -> 10.05No clear effect
Add few-shot attack guidance to character perturbation C2 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 14.60 -> 16.58Helped
Add few-shot attack guidance to character perturbation C3 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 8.85 -> 10.37Helped
Add few-shot attack guidance to word perturbation W1 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 3.23 -> 6.76Helped
Add few-shot attack guidance to word perturbation W2 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 5.31 -> 8.41Helped
Add few-shot attack guidance to word perturbation W3 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 9.67 -> 13.36Helped
Add few-shot attack guidance to sentence perturbation S1 (ablation)GPT-3.5 PromptAttack · GLUE AvgASR: 13.70 -> 15.23Helped

Surprising findings

Limitations

Experimental setup

Datasets: GLUE SST-2 QQP MNLI RTE QNLI AdvGLUE AdvGLUE++

Benchmarks: SST-2 QQP MNLI-m MNLI-mm RTE QNLI

Metrics: attack success rate BERTScore word modification ratio

Baselines: AdvGLUE AdvGLUE++

Builds on: AdvGLUE AdvGLUE++ PromptBench TextBugger TextFooler

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy