打破越狱:利用自我精炼重塑语言模型对越狱攻击的防御
Break the Breakout: Reinventing LM Defense Against Jailbreak Attacks with Self-Refinement
AI总结:
本文提出一种基于格式化的自我精炼免训练防御方法,使未安全对齐的语言模型也能有效抵御越狱攻击,在降低计算成本的同时提升安全性与响应质量。
摘要:
注意:本文包含可能引起不适的冒犯性词语。语言模型(LMs)容易受到对抗性滥用的攻击。对语言模型进行安全对齐训练成本高昂,且难以立即应对快速发展的攻击,例如越狱攻击。我们提出了一种带格式化的自我精炼方法,即使在未经过安全对齐的语言模型中也能实现出色的安全性,并将我们的方法与多个防御基线进行了评估,证明它是针对越狱攻击的最安全的免训练方法。此外,我们提出了一种格式化方法,该方法提高了自我精炼过程的效率,同时在更少的迭代次数内降低了攻击成功率。我们还观察到,未经过安全对齐的语言模型在安全任务中表现优于经过安全对齐的语言模型,能够给出更有帮助且更安全的回答。总之,我们的发现能够以更少的计算成本实现更低的安全风险,使未经过安全对齐的语言模型能够轻松应用于现实世界的服务中。
英文摘要:
Caution: This paper includes offensive words that could potentially cause unpleasantness. Language models (LMs) are vulnerable to exploitation for adversarial misuse. Training LMs for safety alignment is extensive and makes it hard to respond to fast-developing attacks immediately, such as jailbreaks. We propose self-refine with formatting that achieves outstanding safety even in non-safety-aligned LMs and evaluate our method alongside several defense baselines, demonstrating that it is the safest training-free method against jailbreak attacks. Additionally, we proposed a formatting method that improves the efficiency of the self-refine process while reducing attack success rates in fewer iterations. We've also observed that non-safety-aligned LMs outperform safety-aligned LMs in safety tasks by giving more helpful and safe responses. In conclusion, our findings can achieve less safety risk with fewer computational costs, allowing non-safety LM to be easily utilized in real-world service.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。