Skip to content

Countering large language model jailbreak attacks with prompt adversarial tuning (PAT)Fight Back Against Jailbreaking via Prompt Adversarial Tuning

arXiv· arXiv:2402.06255· NeurIPS· Yichuan Mo, Yuji Wang, Zeming Wei, Yisen Wang·Indexed by this site · 25 days ago· Originally publishedDefenses
AI summary

The researchers propose a defense method, prompt adversarial tuning (PAT), which trains a protective prefix prepended to user prompts to defend against large language model jailbreak attacks; experiments show that the method is effective against both gray-box and black-box attacks, reducing the success rate of advanced attacks to close to 0%. The method simultaneously optimizes the control prefix with adversarial prompts and benign prompts to maintain the model's utility on benign tasks while enhancing robustness, with negligible computational overhead. The code is open-sourced at https://github.com/PKU-ML/PAT。

Read originalNeurIPS