SafeAligner: Safety alignment against jailbreak attacks via response difference guidanceSafeAligner: Safety Alignment against Jailbreak Attacks via Response Disparity Guidance
AI summary
SafeAligner is a safety alignment method that defends against jailbreak attacks at the decoding stage using response difference guidance; it uses the difference in response safety levels between a Sentinel Model and an Intruder Model to identify harmful and beneficial tokens and adjusts the output token distribution of the target model. Experiments show that it increases the probability of beneficial tokens, reduces the occurrence of harmful tokens, and achieves safety alignment with as little loss of general capability as possible.