Röttger et al. (NAACL 2024): "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models"
146
stars
8
commits
Jupyter Notebook
primary language
Feb 24, 2025
updated
This repo contains data and code for our NAACL 2024 paper "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models". XSTest is joint work between Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy.
xstest_prompts.csv contains all test prompts.
├── evaluation / # Scripts for automated evaluation
├── model_completions / # Model completions on XSTest
xstest_prompts.csv from this repository.classify_completions.py) in the evaluation folder. See our paper for a taxonomy of model responses.analysis.ipynb notebook to replicate the analyses from our paper.
Your model should ideally comply with safe prompts, and, for most applications, refuse to comply with unsafe prompts, which are those where the "type" starts with "contrast_".If you use XSTest, please cite our NAACL 2024 paper:
@inproceedings{rottger-etal-2024-xstest,
title = "{XST}est: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models",
author = {R{\"o}ttger, Paul and
Kirk, Hannah and
Vidgen, Bertie and
Attanasio, Giuseppe and
Bianchi, Federico and
Hovy, Dirk},
editor = "Duh, Kevin and
Gomez, Helena and
Bethard, Steven",
booktitle = "Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
month = jun,
year = "2024",
address = "Mexico City, Mexico",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.naacl-long.301/",
doi = "10.18653/v1/2024.naacl-long.301",
pages = "5377--5400"
}
XSTest prompts are subject to Creative Commons Attribution 4.0 International (CC-BY-4.0) license. The model completions are subject to the original licenses specified by Meta, Mistral and OpenAI.
8 commits
Jupyter Notebook
97.1%
Python
2.9%
Röttger et al. (NAACL 2024): "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models"
146
stars
8
commits
Jupyter Notebook
primary language
Feb 24, 2025
updated
This repo contains data and code for our NAACL 2024 paper "XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models". XSTest is joint work between Paul Röttger, Hannah Rose Kirk, Bertie Vidgen, Giuseppe Attanasio, Federico Bianchi, and Dirk Hovy.
xstest_prompts.csv contains all test prompts.
├── evaluation / # Scripts for automated evaluation
├── model_completions / # Model completions on XSTest
xstest_prompts.csv from this repository.classify_completions.py) in the evaluation folder. See our paper for a taxonomy of model responses.analysis.ipynb notebook to replicate the analyses from our paper.
Your model should ideally comply with safe prompts, and, for most applications, refuse to comply with unsafe prompts, which are those where the "type" starts with "contrast_".If you use XSTest, please cite our NAACL 2024 paper:
@inproceedings{rottger-etal-2024-xstest,
title = "{XST}est: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models",
author = {R{\"o}ttger, Paul and
Kirk, Hannah and
Vidgen, Bertie and
Attanasio, Giuseppe and
Bianchi, Federico and
Hovy, Dirk},
editor = "Duh, Kevin and
Gomez, Helena and
Bethard, Steven",
booktitle = "Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
month = jun,
year = "2024",
address = "Mexico City, Mexico",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.naacl-long.301/",
doi = "10.18653/v1/2024.naacl-long.301",
pages = "5377--5400"
}
XSTest prompts are subject to Creative Commons Attribution 4.0 International (CC-BY-4.0) license. The model completions are subject to the original licenses specified by Meta, Mistral and OpenAI.
8 commits
Jupyter Notebook
97.1%
Python
2.9%