CrossingGuard NLI
CrossingGuard is the author's family of datasets that phrase content-safety questions as natural language inference. Here the premise is a request sent to an AI assistant (harmful, jailbreak-framed or benign), and the hypothesis is a statement about the request or the content it asks for: who is targeted, their age, whether they are real or fictional, what the output would let someone do, and the real ask behind a role-play or "hypothetical" wrapper. The data is meant for building and evaluating safety classifiers. The requests include harmful and jailbreak content by design.
| label | meaning |
|---|---|
entailment (0) |
the request says or asks for it |
neutral (1) |
the request neither says it nor rules it out |
contradiction (2) |
the request rules it out |
| config | train | test | notes |
|---|---|---|---|
v1 |
44,584 | 2,358 | regenerated hypotheses, filtered (recommended) |
v1_all |
70,970 | 3,747 | every selected v1 row, with in_default and excluded_reason |
decisions |
103,921 | 5,503 | direct safety decisions from human labels (2-way) |
v0 |
384,838 | 5,397 | original release (earlier version, superseded by v1; see below); also has a 3,551-row validation split |
v0_distill |
384,838 | 5,397 | original release, distillation variant (same row counts as v0, with a 3,551-row validation split) |
v1
Requests come from WildGuardMix (train) and Aegis 2.0 (train): 22,467 requests, 59% harmful, 30% adversarial benign (harmless requests that look like jailbreaks) and 11% plain benign. Train and test share no request.
How it was built:
- Hypotheses.
Qwen3.8-27Bwith a capped thinking budget wrote matched triples per request: one statement entailed, one contradicted and one left open on the same safety attribute. The writing prompt was tuned with GEPA (an automatic prompt-optimisation method, Agrawal et al., 2025). A mechanical filter removed meta wording, label-revealing words, fragments and near-duplicates. - Labels. A second, blind
Qwen3.8-27Bpass (it did not see the first label) labelled every statement. Rows where both passes agree are kept. Disagreements are resolved by AbsoluteZero-nli-9b (the author's NLI model built on a 9-billion-parameter language model, used here as an automatic label checker; "AZ" below) when it is at least 90% confident. Rows where AZ confidently disputes a label the two passes agreed on went todeepseek-v4.1-flash(4 samples): unanimous agreement with AZ relabels the row, unanimous agreement with the original keeps it, and a split drops it. - Wording. About a third of the hypotheses were rewritten into plainer wording at the same meaning. A rewrite is kept only if AZ's probabilities for the pair move by at most 0.05.
hypothesis_originalkeeps the first wording. - Annotation-artifact filtering. A "grouped" classifier that sees only the hypothesis is held to at most 0.10 accuracy above the majority-label rate (0.076 on
v1), so the hypothesis wording alone does not give the label away.
An audit of v1 by a language model (Claude Sonnet) reading rows without seeing the labels, not by human annotators, agreed with the labels on about 90% of rows overall and 98-100% of rows the auditor judged unambiguous. Statements about attributes the request never mentions (age, real or fictional, legal status) are the most frequent source of ambiguity.
Fields
premise,hypothesis,label,label_textrequest_type:harmful,adversarial_benign(harmless but jailbreak-looking) orbenign(plain), from the source dataset's labelspremise_source(wildguardmix,aegis2) andlicenseon_topic: the statement is about one of the safety attributes above. It is kept as metadata; off-topic statements are valid NLI pairs too.resolution: how the label was settled.generator+verifier: the two Qwen passes agreed;az9b: AZ settled a disagreement;az9b+deepseek: the DeepSeek vote settled a case where AZ disputed an agreed label.hypothesis_original: the hypothesis before the plainer-wording rewrite;rephrased: whether the row was rewritten.v1_alladdsgen_label(label from the generating Qwen pass),v_label(label from the blind Qwen pass),az_predandaz_conf(AZ's predicted class and probability),az_flag(true where AZ, with probability of 0.9 or more, disagrees with a label that the generating and blind Qwen passes agreed on; 368 rows),in_default(whether the row is inv1),excluded_reason(why a row was left out ofv1:hyp_only_gate= removed so that the hypothesis alone does not predict the label;arbitration_split= the checkers could not agree) and two review flags:flag_high_overlap_entailment(an entailed hypothesis that repeats most of the premise's words; 102 rows) andflag_possible_non_request(the premise may not be a request at all; 1,310 rows).
decisions
Direct safety verdicts posed as two-way NLI (entailment 0 / not_entailment 1), from the source datasets' own labels. Three hypothesis wordings per decision:
kind |
premise | example hypothesis | rows |
|---|---|---|---|
harmful |
the request | "This request is harmful." | 84,002 |
refusal |
Query: ... + Response: ... |
"The response is a refusal." | 11,724 |
resp_harm |
Query: ... + Response: ... |
"The response contains harmful content." | 10,258 |
injection |
system prompt + user message | "This is a prompt injection attempt." | 3,440 |
Sources: WildGuardMix train (ODC-BY 1.0), Aegis 2.0 train (CC BY 4.0) and SPML prompt injection (MIT); premise_source and license per row. Test holds 5% of premises, none shared with train. The WildGuard test set (WildGuardTest) is not included.
Trained together with v1 as an add-on to a FineCat NLI model (FineCat is the author's family of NLI cross-encoders), decisions raised AUROC for "is this prompt harmful" on WildGuardTest from 0.83 to 0.95 and cut missed harmful jailbreak prompts from 75% to 20%.
v0
The original release: LLM-written hypotheses about safety prompts (mostly WildGuardMix, plus Aegis, JailbreakV and AyaRedTeaming), with cross-encoder, LLM and arbiter labels. v0_distill is a subset of it.
License
Requests keep the license of their source: WildGuardMix (ODC-BY 1.0), Aegis 2.0 (CC BY 4.0). The v1 hypotheses are released under CC BY 4.0. The license column gives each row's terms. The requests include harmful and jailbreak content by design; use this data for building safety classifiers and evaluation.
Citation
@misc{miller2026crossingguardnli,
author = {Miller, D. Lee},
title = {CrossingGuard NLI},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/dleemiller/CrossingGuard-NLI}}
}