Guaranteed Jailbreaking Defense via Disrupt-and-Rectify Smoothing
Zheng Lin, Zhenxing Niu, haoxuan ji, Haichang Gao
NeurIPS page · OpenReview · alphaXiv · Open on the map
Category: AI Safety, Security & Alignment › Jailbreak Defense and Analysis · Type: new method · Keywords: jailbreaking defense, LLM safety, smoothing-based defense, theoretical bounds, prompt perturbation
Areas: Safety & Security › Language Model Security › Jailbreak Defense
Summary
Disrupt-and-Rectify Smoothing (DR-Smoothing) provides a guaranteed defense for large language models against jailbreaking attacks by disrupting and rectifying prompts within a smoothing framework, with theoretical bounds and empirical improvements.
Explained to a 5-year-old
When we ask a big computer program to help us, sometimes it says things we don't want it to say. This is called a jailbreaking attack. To stop that, we make the program change its words in a special way. Then we fix those changed words so they make sense again. This two-step process helps the program stay safe and still be useful.
Explained to a 5-year-old, longer
When we ask a big computer program to help us, sometimes it says things we don't want it to say. This is called a jailbreaking attack. To stop that, we make the program change its words in a special way. Then we fix those changed words so they make sense again. This two-step process helps the program stay safe and still be useful. It works against different kinds of attacks, like trying to trick it with a single word or a whole sentence. The method also has a math proof that tells us how strong the changes need to be. In experiments, it does better than other methods at keeping the program harmless while still being helpful. This makes the program safer to use in real life. It can protect both small tricks and big tricks. It also works when attackers try new, unseen tricks. Overall, it gives a reliable way to keep language models safe. People can trust the models more because they are less likely to say bad things. This helps developers release safer AI products. It also saves time because the method is simple to apply.
For a technical reader
The paper introduces a smoothing defense that first perturbs the input prompt and then corrects it, ensuring the model stays within safe behavior. A theoretical analysis provides bounds on how strong the perturbation must be to guarantee success. Experiments show the defense outperforms existing methods on both safety and usefulness metrics across token-level and prompt-level attacks.
Problem
Large language models can be coerced into generating harmful content through jailbreaking attacks, and existing defenses often fail to guarantee safety while preserving model usefulness.
Method
The approach builds on smoothing-based adversarial defense by adding a two-stage prompt processing pipeline that first disrupts the input and then rectifies it to restore in-distribution characteristics, combined with a theoretical analysis that provides bounds on defense success probability and disruption strength requirements.
Results
The approach achieves superior performance over existing defenses on both harmlessness and helpfulness metrics in extensive experiments.
Contributions
A provably guaranteed smoothing defense that integrates disruption and rectification to balance safety and usefulness, a theoretical bound for defense success, and comprehensive evaluations against token-level and prompt-level jailbreaking attacks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction