SelfGrader cuts jailbreak attack success by up to 22.66% with far lower memory and latency
SelfGrader reduces jailbreak attack success rate by up to 22.66% while using up to 173× less memory and 26× less latency
AI/ML arXiv 1 Apr 2026 Defense Prototype evidence
Published as “SelfGrader: Stable Jailbreak Detection for Large Language Models using Token-Level Logits”
Why it matters
SelfGrader offers a practical, low-overhead guardrail that can be deployed in latency-sensitive LLM services to markedly lower jailbreak success rates.
Summary
SelfGrader reduces the attack success rate to 1.32% and the pass-guardrail rate to 12.95% on LLaMA-3-8B, a 22.66% absolute drop in ASR versus prior guards. It works by grading user queries with token-level logits over a small set of numerical tokens and combines maliciousness and benignness scores via a dual-perspective rule. Experiments on eight jailbreak benchmarks and four benign prompt suites show lower latency (up to 26×) and memory use (up to 173×) than baselines, though it still incurs non-zero ASR on some attacks. The paper provides extensive comparisons to internal-feature, classification, and generation-based guards. Results on additional LLMs are deferred to an appendix.
What they found 2
- SelfGrader attains an ASR of 1.32% and a PGR of 12.95% when averaged across all attacks.
“When averaging across all attacks, SelfGrader attains an ASR of 1.32% and a PGR of 12.95%, striking a favorable balance relative to existing baselines.”
- SelfGrader reduces ASR by 7.30% and PGR by 93.70% compared to the Perplexity Filter under the manual IJP attack.
“SelfGrader reduces ASR by 7.30% and PGR by 93.70% compared to Perplexity Filter.”
Caveats 3
- SelfGrader 6.00/20.00
- SelfGrader 0.50/6.30
- Due to space constraints, results on Qwen2.5-7B-Instruct, Qwen3.5-9B, and Vicuna-13B-v1.5 are deferred to Appendix D.
What’s new here 4
- Grades queries using logits of a compact numerical token set instead of full vocab or generated text.
- Introduces a dual-perspective logit (DPL) scoring rule that jointly evaluates maliciousness and benignness.
- Operates as a lightweight guardrail with orders-of-magnitude lower latency and memory overhead.
- Demonstrates robustness to adaptive and token-segmentation (emoji) attacks.