scimeatlas

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

Prompt Optimization via Adversarial In-Context Learning

Xuan Long Do, Yiran Zhao, Hannah Brown, Yuxi Xie, James Xu Zhao, Nancy F. Chen, Kenji Kawaguchi, Michael Shieh, Junxian He

ACL 2024Adversarial robustness and security › Attacks on text and graphsapproach: Adversarial prompts for language modelsopen problems in this approach50 citations (OpenAlex)

National University of Singapore · A*STAR · Hong Kong University of Science and Technology

Read the paperPlace an idea next to itCheck your own paper ↗

12measured effects
8improved
4hurt

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply adv-ICL prompt optimizationChatGPT · GSM8Kaccuracy: 79.4 -> 82.3Improved
apply adv-ICL instead of best baseline APOtext-davinci-002 · XSUMROUGE-L: 27.1 -> 30.9 vs APO 26.8Improved
apply adv-ICLChatGPT · MMLU (5-shot)accuracy: 71.0 -> 74.0Improved
apply adv-ICLChatGPT · BBH (5-shot CoT)accuracy: 68.2 -> 70.6Improved
apply ROUGE-L or Perplexity based prompt optimization baselinesChatGPT · GSM8Kaccuracy: 79.4 -> 78.7 (ROUGE-L), 75.5 (Perplexity)Hurt
add the discriminator (adversarial loss) to prompt modification (ablation)ChatGPT · GSM8Kaccuracy: 71.6 -> 82.3Improved
add the discriminator (ablation)ChatGPT · WebNLGROUGE-L: 61.2 -> 63.6Improved
use T=3, m=5 instead of larger T or m (ablation)adv-ICL (ChatGPT G) · WebNLGROUGE-L: 66.3 vs 63.8 (T=5), 62.5 (m=10 T=3)Improved
use a discriminator stronger than the generator (vicuna 7B generator) (ablation)adv-ICL · GSM8Kaccuracy: 22.3 vs 41.9 for stronger generator pairHurt
use a stronger generator than discriminator (ablation)adv-ICL · GSM8Kaccuracy: Vicuna 7B (D) + text-davinci-002 (G) 44.1Improved
feed best earlier prompts back to the prompt modifier (ablation)adv-ICL with Vicuna-13B · GSM8Kaccuracy: 43.9 -> 42.2Hurt
update only instruction or only demonstrations (ablation)adv-ICL with ChatGPT · WebNLG, GSM8K, MMLUaccuracy/ROUGE-LHurt

Open problems in adversarial prompts for language models

Do adversarial-prompt attacks and defenses for language models hold on closed models, other languages, multi-turn use and adaptive opponents?

All 5 open problems and what was already tried →

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