Research map / Large language models / Language, safety and interpretability
GradSafe: Detecting Jailbreak Prompts for LLMs via Safety-Critical Gradient Analysis
Yueqi Xie, Minghong Fang, Renjie Pi, Neil Zhenqiang Gong
Hong Kong University of Science and Technology · University of Louisville · Duke University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- ToxicChat leaderboard F1 72.5 · rank 9 of 13 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use GradSafe-Zero instead of Llama Guard | Llama-2-7b-chat · ToxicChat | AUPRC: 0.635 -> 0.755 | Improved |
| use GradSafe-Zero instead of Llama Guard | Llama-2-7b-chat · XSTest | AUPRC: 0.889 -> 0.936 | Improved |
| use GradSafe-Zero instead of zero-shot Llama-2 prompting | Llama-2-7b-chat · ToxicChat | F1: 0.373 -> 0.707 | Improved |
| use GradSafe-Zero instead of GPT-4 zero-shot | detector · XSTest | F1: 0.921 -> 0.900 | Hurt |
| use GradSafe-Zero instead of GPT-4 zero-shot | detector · ToxicChat | F1: 0.604 -> 0.707 | Improved |
| identify safety-critical parameters before computing cosine similarity (ablation) | GradSafe-Zero · ToxicChat | AUPRC: 0.633 -> 0.755 | Improved |
| identify safety-critical parameters (ablation) | GradSafe-Adapt · ToxicChat | AUPRC: 0.731 -> 0.816 | Improved |
| train logistic regression on cosine-similarity features with only 20% of ToxicChat training data | GradSafe-Adapt · ToxicChat | AUPRC | Improved |
| increase reference unsafe prompts from 2 to 10 (ablation) | GradSafe-Zero · XSTest | AUPRC: 0.911 -> 0.932 | Improved |
| increase reference safe prompts from 2 to 10 (ablation) | GradSafe-Zero · XSTest | AUPRC: 0.934 -> 0.934 | No clear effect |
| pair prompt with 'I' instead of compliance response 'Sure' (ablation) | GradSafe-Zero · XSTest | AUPRC: 0.936 -> 0.687 | Hurt |
| pair prompt with 'I'm Sorry' instead of 'Sure' (ablation) | GradSafe-Zero · XSTest | AUPRC: 0.936 -> 0.914 | No clear effect |
Open problems in jailbreak attacks and defenses
How can jailbreak attacks and defenses be tested on real deployed models, in more languages, with judges that can be trusted?
- Attack success is scored by LLM judges whose labels may be wrong. · 20 papers state it
- Defenses and adaptive attackers are rarely tested against each other. · 20 papers state it
- Most tests use English prompts only. · 10 papers state it
Closest papers by meaning
- AdvPrefix: An Objective for Nuanced LLM Jailbreaks (NeurIPS 2025 · similarity 0.90)
- JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (NeurIPS 2024 · similarity 0.90)
- h4rm3l: A Language for Composable Jailbreak Attack Synthesis (ICLR 2025 · similarity 0.89)
- JailPO: A Novel Black-Box Jailbreak Framework via Preference Optimization Against Aligned LLMs (AAAI 2025 · similarity 0.89)
- Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs (NeurIPS 2024 · similarity 0.89)
- Gradient Cuff: Detecting Jailbreak Attacks on Large Language Models by Exploring Refusal Loss Landscapes (NeurIPS 2024 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.