Defending LLM s against Jailbreak Attacks via Template-Based ICL with a Defensive Suffix
Ruiyang Ni · Changlong Li · Shuaibiao Han · Zhiyu Yi · Perley Xu · Wenjie Ruan
摘要
State-of-the-art large language models (LLMs) have achieved impressive results on various tasks. However, these architectures are vulnerable to jailbreak attacks, such as GCG and AutoDAN. Several defense strategies have been proposed to protect LLMs from generating harmful content, with most meth...