SEMANTICSMOOTH: Defending against large language model jailbreak attacks with semantic smoothingDefending Large Language Models against Jailbreak Attacks via Semantic Smoothing
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.