Skip to content

SEMANTICSMOOTH: Defending against large language model jailbreak attacks with semantic smoothingDefending Large Language Models against Jailbreak Attacks via Semantic Smoothing

arXiv· arXiv:2402.16192· Jiabao Ji, Bairu Hou, Alexander Robey, George J. Pappas, Hamed Hassani, Yang Zhang, Eric Wong, Shiyu Chang·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

The researchers propose SEMANTICSMOOTH, a smoothing-based jailbreak defense method that aggregates the predictions of multiple semantically transformed copies of the same input prompt to defend against attacks. The authors state that the method achieves state-of-the-art robustness against GCG, PAIR, and AutoDAN attacks while maintaining strong general performance on instruction-following benchmarks such as InstructionFollowing and AlpacaEval. The authors note that prior defenses mainly showed effectiveness under token-level threat models, and that a defense that both resists semantic attacks and avoids a clear trade-off between robustness and general performance is still lacking. Code will be made public at https://github.com/UCSB-NLP-Chang/SemanticSmooth.

Read originalarxiv.org