Research map / Large language models / Language, safety and interpretability
XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models
Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, Dirk Hovy
Bocconi University · University of Oxford · Stanford 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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| remove the original system prompt (Llama2.0 -> Llama2.1) (ablation) | Llama-2-70b-chat · XSTest safe prompts | full refusal rate (%): 38 -> 14 | Improved |
| remove the original system prompt (Llama2.0 -> Llama2.1) (ablation) | Llama-2-70b-chat · XSTest unsafe prompts | full refusal rate (%): 99.5 -> 97.5 | Hurt |
| add a guardrail system prompt (MistrI -> MistrG) (ablation) | Mistral-7B-Instruct-v0.1 · XSTest unsafe prompts | full refusal rate (%): 23.5 -> 87.5 | Improved |
| add a guardrail system prompt (MistrI -> MistrG) (ablation) | Mistral-7B-Instruct-v0.1 · XSTest safe prompts | full refusal rate (%): 0.8 -> 9.6 | Hurt |
| use GPT-4 instead of Llama2.0 | GPT-4 · XSTest safe prompts | full refusal rate (%): 38 -> 6.4 | Improved |
| evaluate with string matching instead of manual annotation | Llama2.0 · XSTest safe prompts | refusal rate (%): 38 + 21.6 -> 48.4 | Mixed |
| evaluate with GPT-4 classifier instead of manual annotation | Llama2.0 · XSTest safe prompts | full refusal rate (%): 38 -> 30.4 | Mixed |
| use a safety-emphasising system prompt | Llama2 and Mistral · XSTest safe vs unsafe prompts | refusal rate | Mixed |
| larger, more capable model (Llama2 70B vs Mistral 7B) | Llama2 vs Mistral · XSTest safe prompts | full refusal rate (%): 0.8 (MistrI) vs 14 (Llama2.1) | Hurt |
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- On Prompt-Driven Safeguarding for Large Language Models (ICML 2024 · similarity 0.91)
- Safety Pretraining: Toward the Next Generation of Safe AI (NeurIPS 2025 · similarity 0.91)
- SORRY-Bench: Systematically Evaluating Large Language Model Safety Refusal (ICLR 2025 · similarity 0.90)
- Navigating the Safety Landscape: Measuring Risks in Finetuning Large Language Models (NeurIPS 2024 · similarity 0.90)
- Safety Reconstructed: Generative Modeling via Masked Diffusion Builds Strong Safety Guardrails (NeurIPS 2026 · similarity 0.90)
- Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructions (ICLR 2024 · similarity 0.90)
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.