Prompt Optimization via Adversarial In-Context Learning
National University of Singapore(新加坡国立大学);Hong Kong University of Science and Technology(香港科技大学);Institute for Infocomm Research (IR), A*STAR(新加坡资讯通信研究院(A*STAR))
Xuan Long Do, Yiran Zhao, Hannah Brown, Yuxi Xie, James Xu Zhao, Nancy F. Chen, Kenji Kawaguchi, Michael Shieh, Junxian He
We propose a new method, Adversarial In-Context Learning (adv-ICL), to optimize prompt for in-context learning (ICL) by employing one LLM as a generator, another as a discriminator, and a third as a prompt modifier. As in traditional adversarial learning, adv-ICL is implemented as a two-player game between the generator and discriminator, where the generator tries to generate realistic enough output to fool the discriminator. In each round, given an input prefixed by task instructions and several exemplars, the generator produces an output. The discriminator is then tasked with classifying the generator input-output pair as model-generated or real data. Based on the discriminator loss, the prompt modifier proposes possible edits to the generator and discriminator prompts, and the edits that most improve the adversarial loss are selected. We show that adv-ICL results in significant improvements over state-of-the-art prompt optimization techniques for both open and closed-source models on 11 generation and classification tasks including summarization, arithmetic reasoning, machine translation, data-to-text generation, and the MMLU and big-bench hard benchmarks. In addition, because our method uses pre-trained models and updates only prompts rather than model parameters, it is computationally efficient, easy to extend to any LLM and task, and effective in low-resource settings.
PromptFix: Few-shot Backdoor Removal via Adversarial Prompt Tuning
School of Information Science & Technology, Pennsylvania State University(宾夕法尼亚州立大学信息科学与技术学院);Department of Computer Science, Stony Brook University(石溪大学计算机科学系)
PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts
Microsoft Research(微软研究院);Institute of Automation, CAS(中国科学院自动化研究所);Carnegie Mellon University(卡内基梅隆大学);Peking University(北京大学);Westlake University(西湖大学);Duke University(杜克大学)
Adversarial Fine-Tuning of Language Models: An Iterative Optimisation Approach for the Generation and Detection of Problematic Content
Australian National University(澳大利亚国立大学);Mathematical Sciences Institute(数学科学研究所);Research School of Astronomy(天文研究学院);College of Engineering and Computer Science(工程与计算机科学学院)
A Prompting-based Approach for Adversarial Example Generation and Robustness Enhancement
University of Chinese Academy of Sciences(中国科学院大学);National University of Singapore(新加坡国立大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所)
Are All Prompt Components Value-Neutral? Understanding the Heterogeneous Adversarial Robustness of Dissected Prompt in Large Language Models
Duke University(杜克大学);North China University of Technology(北方工业大学);Hong Kong Polytechnic University(香港理工大学);Australian National University(澳大利亚国立大学);Nanyang Technological University(南洋理工大学);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Beijing Forestry University(北京林业大学);Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所)
TRAP: Targeted Random Adversarial Prompt Honeypot for Black-Box Identification
Parameter Lab(参数实验室);IT University of Copenhagen(哥本哈根信息技术大学);Pioneer Centre for Artificial Intelligence(人工智能先锋中心);NAVER AI Lab(NAVER人工智能实验室);University of Tübingen(蒂宾根大学)
Exploring the Universal Vulnerability of Prompt-based Learning Paradigm
Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京国家信息科学与技术研究中心);Huazhong University of Science and Technology(华中科技大学);Chongqing University(重庆大学)
Adversarial Poetry as a Universal Single-Turn Jailbreak Mechanism in Large Language Models
DEXAI – Icaro Lab(DEXAI–Icaro实验室);Sapienza University of Rome(罗马Sapienza大学);Sant’Anna School of Advanced Studies(Sant’Anna高级研究学校);VU Amsterdam(阿姆斯特丹VU)