Yiran Zhao
2024
Reasoning Robustness of LLMs to Adversarial Typographical Errors
Esther Gan
|
Yiran Zhao
|
Liying Cheng
|
Mao Yancan
|
Anirudh Goyal
|
Kenji Kawaguchi
|
Min-Yen Kan
|
Michael Shieh
Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing
Prompt Optimization via Adversarial In-Context Learning
Do Long
|
Yiran Zhao
|
Hannah Brown
|
Yuxi Xie
|
James Zhao
|
Nancy Chen
|
Kenji Kawaguchi
|
Michael Shieh
|
Junxian He
Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)
We propose a new method, Adversarial In-Context Learning (adv-ICL), to optimize prompts for in-context learning (ICL). Inspired by adversarial learning, adv-ICL is implemented as a two-player game between a generator and discriminator, with LLMs acting as both. In each round, given an input prefixed by task instructions and several exemplars, the generator produces an output. The discriminator then classifies the generator’s input-output pair as model-generated or real data. Based on the discriminator’s loss, a prompt modifier LLM proposes possible edits to the generator and discriminator prompts, and the edits that most improve the adversarial loss are selected. We show that applying adv-ICL results in significant improvements over state-of-the-art prompt optimization techniques for both open and closed-source models on 13 generation and classification tasks including summarization, arithmetic reasoning, machine translation, data-to-text generation, and the MMLU and big-bench hard benchmarks. In addition, our method is computationally efficient, easily extensible to other LLMs and tasks, and effective in low-resource settings.
Search
Co-authors
- Kenji Kawaguchi 2
- Michael Shieh 2
- Esther Gan 1
- Liying Cheng 1
- Mao Yancan 1
- show all...