scimeatlas

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

ACL 2024Large language models › Language, safety and interpretabilityapproach: Jailbreak attacks and defensesopen problems in this approach202 citations (OpenAlex)

Hong Kong University of Science and Technology · University of Louisville · Duke University

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
8improved
2no clear effect
3hurt

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

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use GradSafe-Zero instead of Llama GuardLlama-2-7b-chat · ToxicChatAUPRC: 0.635 -> 0.755Improved
use GradSafe-Zero instead of Llama GuardLlama-2-7b-chat · XSTestAUPRC: 0.889 -> 0.936Improved
use GradSafe-Zero instead of zero-shot Llama-2 promptingLlama-2-7b-chat · ToxicChatF1: 0.373 -> 0.707Improved
use GradSafe-Zero instead of GPT-4 zero-shotdetector · XSTestF1: 0.921 -> 0.900Hurt
use GradSafe-Zero instead of GPT-4 zero-shotdetector · ToxicChatF1: 0.604 -> 0.707Improved
identify safety-critical parameters before computing cosine similarity (ablation)GradSafe-Zero · ToxicChatAUPRC: 0.633 -> 0.755Improved
identify safety-critical parameters (ablation)GradSafe-Adapt · ToxicChatAUPRC: 0.731 -> 0.816Improved
train logistic regression on cosine-similarity features with only 20% of ToxicChat training dataGradSafe-Adapt · ToxicChatAUPRCImproved
increase reference unsafe prompts from 2 to 10 (ablation)GradSafe-Zero · XSTestAUPRC: 0.911 -> 0.932Improved
increase reference safe prompts from 2 to 10 (ablation)GradSafe-Zero · XSTestAUPRC: 0.934 -> 0.934No clear effect
pair prompt with 'I' instead of compliance response 'Sure' (ablation)GradSafe-Zero · XSTestAUPRC: 0.936 -> 0.687Hurt
pair prompt with 'I'm Sorry' instead of 'Sure' (ablation)GradSafe-Zero · XSTestAUPRC: 0.936 -> 0.914No 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?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy