# Gradient-Guided Smoothing for LLM Safety Defense

*Yuxuan Gu, Xiaocheng Feng, kun Zhu, Lunjun Liu, Zhihao Yao, Lei Huang, Weihong Zhong, Bing Qin*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/155990) · [OpenReview](https://openreview.net/forum?id=1LhCQwinaY) · [Open on the map](../papers.html#p155990)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multimodal Safety Steering](../pgroup/341.md) · Type: new method · Keywords: LLM safety, jailbreak attacks, gradient-guided smoothing, input smoothing defense, language model alignment

Areas: [Safety & Security](../areas/safety.md) › Language Model Security › Jailbreak Defense

## Summary
Gradient-guided smoothing improves LLM safety against jailbreak attacks by guiding perturbations toward higher-density input regions while preserving model utility.

## Explained to a 5-year-old
Big computer programs that write text can be tricked into saying bad things. To stop this, we add a little random noise to the text and move it toward more common words. This helps the program remember its rules about being nice. The new idea makes the program safer while still letting it write useful things. It works on many different ways people try to trick the program.

## Explained to a 5-year-old, longer
Big computer programs that write words, like chatbots, can sometimes be convinced to say things they shouldn't. Attackers try to trick them by using special sentences called jailbreaks. Existing safety rules aren't always enough to stop these tricks. Some defenders try to smooth the input by adding random noise, but this can fail when the attacks are strong. The researchers noticed that attacks often happen in parts of the text that are rarely used. They thought that if we could guide the noise toward more common words, the safety rules might work better. So they created a new way to add noise that moves toward the most frequent parts of the language. This helps the model's safety guard stay strong even when someone tries to break it. The new method was tested on many different jailbreak attempts and on normal tasks the model does. It made the model safer without making it worse at normal conversations. The idea could help keep online chatbots safe for everyone who uses them. Overall, it’s a simple trick that makes big language models more trustworthy.

## For a technical reader
The paper addresses the vulnerability of large language models to jailbreak attacks, where malicious prompts bypass safety alignment. It observes that attacks often target low-probability regions of the input space, where the model’s safety boundaries are weak. The proposed gradient-guided smoothing defense adds random noise and iteratively ascends the log-density of the input distribution, steering perturbations toward more common contexts. Experiments on four jailbreak benchmarks and three instruction-following tasks show improved safety while preserving model utility. This approach offers a practical way to harden deployed LLMs without extensive re-training or costly modifications.

## Problem
Large language models are vulnerable to jailbreak attacks, and existing smoothing defenses lose effectiveness when attacks have larger semantic margins, especially in low-probability input regions.

## Method
The approach adds random noise to inputs and iteratively ascends the log density of the context-aware input distribution using a Gauss-Southwell update, guiding perturbations toward higher-density regions to strengthen safety mechanisms.

## Results
The approach shows improved safety across multiple jailbreak attacks and instruction-following benchmarks while preserving model utility.

## Contributions
It identifies that attacks exploit low-probability regions and proposes gradient-guided smoothing to direct perturbations toward higher-density areas, thereby enhancing safety without sacrificing utility.

## Research questions this paper is counted under

- [How can we reliably detect, evaluate, and defend against jailbreak attacks across diverse language model modalities and deployment settings?](../q/69.md)

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](../feedback/?on=p/155990)
