SafeRoute data
Training data for SafeRoute (ACL 2025 Findings): router features and routing labels
for the WildGuardMix training set, its paraphrases, and the evaluation sets. Code: https://github.com/seanie12/safe-route
These files were created with the corrected code described in Appendix F of arXiv v6 (prompt-only input format and
duplicated BOS token of Llama-Guard-3-1B). They replace the earlier Google Drive data.
Content warning. The prompts and responses come from allenai/wildguardmix
and its paraphrases, and include harmful content. By using this dataset you agree to the same terms as WildGuardMix: use it
for research in line with the Ai2 Responsible Use Guidelines, and cite WildGuardMix
(see below).
Configs
| Config | Larger model | Splits |
|---|---|---|
llama-guard-3-8b |
meta-llama/Llama-Guard-3-8B | train, validation, round0–round9 |
granite-guardian-3-8b |
ibm-granite/granite-guardian-3.0-8b | train, validation, round0–round6 |
paraphrases |
– | round0–round9 |
The smaller model is always meta-llama/Llama-Guard-3-1B. train/validation are the 90/10 split of the WildGuardMix
training set used in the paper; roundK holds one paraphrase of every training example (Llama-3.1-8B-Instruct). The paper
uses rounds 0–6; rounds 7–9 are only used for the paraphrase-count ablation.
Columns of the two model configs:
prompt,response(null for prompt-only examples)harmfulness: ground-truth harmfulness label (1 = harmful)label: routing label t = 1 if Llama-Guard-3-1B is wrong and the larger model is right, else 0feature: 2048-dim last-layer, last-token hidden state of Llama-Guard-3-1B (the router input)
paraphrases holds the paraphrased texts with their prompt, response and pair harmfulness labels.eval/ contains the HarmBench and OpenAI Moderation files read by the code; the other evaluation sets are loaded from
the Hub by dataset.py.
Usage
With the code repository, download.py writes the files in the layouttrain_router.py expects:
python download.py data # data/llama-guard-3-8b/, data/granite-guardian-3-8b/, data/aug/
python download.py data --version llama-guard-3-8b # one larger model only
python train_router.py --version llama-guard-3-8b --num_rounds 7 --seed 0
To use the data directly:
from datasets import load_dataset
ds = load_dataset("dongboklee/SafeRoute-data", "llama-guard-3-8b", split="train")
License and citation
This dataset is released under ODC-BY, the license of allenai/wildguardmix,
from which the texts come. The features and routing labels are computed from the outputs of Llama-Guard-3-1B and the larger
models, whose licenses are on their model pages.
If you use this dataset, please cite SafeRoute and WildGuardMix:
@inproceedings{lee2025saferoute,
title={SafeRoute: Adaptive Model Selection for Efficient and Accurate Safety Guardrails in Large Language Models},
author={Lee, Seanie and Lee, Dong Bok and Wagner, Dominik and Kang, Minki and Seong, Haebin and Bocklet, Tobias and Lee, Juho and Hwang, Sung Ju},
booktitle={Findings of the Association for Computational Linguistics: ACL 2025},
year={2025}
}
@misc{wildguard2024,
title={WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs},
author={Seungju Han and Kavel Rao and Allyson Ettinger and Liwei Jiang and Bill Yuchen Lin and Nathan Lambert and Yejin Choi and Nouha Dziri},
year={2024},
eprint={2406.18495},
archivePrefix={arXiv},
primaryClass={cs.CL}
}