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
National University of Singapore · A*STAR · Hong Kong University of Science and Technology
Read the paperPlace an idea next to itCheck your own paper ↗
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
- GSM8K leaderboard accuracy 82.3 · rank 470 of 945 papers
- XSum leaderboard ROUGE-L 30.9 · rank 49 of 81 papers
- MMLU (5-shot) leaderboard accuracy 74 · rank 12 of 79 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply adv-ICL prompt optimization | ChatGPT · GSM8K | accuracy: 79.4 -> 82.3 | Improved |
| apply adv-ICL instead of best baseline APO | text-davinci-002 · XSUM | ROUGE-L: 27.1 -> 30.9 vs APO 26.8 | Improved |
| apply adv-ICL | ChatGPT · MMLU (5-shot) | accuracy: 71.0 -> 74.0 | Improved |
| apply adv-ICL | ChatGPT · BBH (5-shot CoT) | accuracy: 68.2 -> 70.6 | Improved |
| apply ROUGE-L or Perplexity based prompt optimization baselines | ChatGPT · GSM8K | accuracy: 79.4 -> 78.7 (ROUGE-L), 75.5 (Perplexity) | Hurt |
| add the discriminator (adversarial loss) to prompt modification (ablation) | ChatGPT · GSM8K | accuracy: 71.6 -> 82.3 | Improved |
| add the discriminator (ablation) | ChatGPT · WebNLG | ROUGE-L: 61.2 -> 63.6 | Improved |
| use T=3, m=5 instead of larger T or m (ablation) | adv-ICL (ChatGPT G) · WebNLG | ROUGE-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 · GSM8K | accuracy: 22.3 vs 41.9 for stronger generator pair | Hurt |
| use a stronger generator than discriminator (ablation) | adv-ICL · GSM8K | accuracy: Vicuna 7B (D) + text-davinci-002 (G) 44.1 | Improved |
| feed best earlier prompts back to the prompt modifier (ablation) | adv-ICL with Vicuna-13B · GSM8K | accuracy: 43.9 -> 42.2 | Hurt |
| update only instruction or only demonstrations (ablation) | adv-ICL with ChatGPT · WebNLG, GSM8K, MMLU | accuracy/ROUGE-L | Hurt |
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?
- The method needs white-box or logit access and cannot reach closed models. · 11 papers state it
- Evaluation is English-only, and other languages are untested. · 11 papers state it
- Models tested are open-weight and small, with frontier models left out. · 9 papers state it
Closest papers by meaning
- AdvPrompter: Fast Adaptive Adversarial Prompting for LLMs (ICML 2025 · similarity 0.88)
- In-context Vectors: Making In Context Learning More Effective and Controllable Through Latent Space Steering (ICML 2024 · similarity 0.88)
- One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Models (CVPR 2024 · similarity 0.88)
- Evolving Prompts In-Context: An Open-ended, Self-replicating Perspective (ICML 2025 · similarity 0.87)
- Transformers are Minimax Optimal Nonparametric In-Context Learners (NeurIPS 2024 · similarity 0.87)
- In-Context Learning with Representations: Contextual Generalization of Trained Transformers (NeurIPS 2024 · similarity 0.86)
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.