mark-matviiv/ukrainian-guardrails
Text Classification • Updated • 1
A national security-focused safety classification dataset for Ukrainian LLM infrastructure, developed in partnership with the Ministry of Digital Transformation of Ukraine. Contains adversarial prompts across a 9-class threat taxonomy with synthetic rationales and contrastive examples for knowledge distillation.
| File | Samples | Purpose |
|---|---|---|
train.jsonl |
59,377 | Training corpus with contrastive triplets and rationales (synthetic + anonymized ministry logs) |
benchmark.jsonl |
450 | Held-out adversarial benchmark (50 samples/class, human-verified) |
cybercrime_hackingdisinfo_propagandafraud_soc_engllm_compromisenat_sec_opsecprivacy_piiresource_abusesafeunsafe_contenttrain.jsonl
Each line is a JSON object with contrastive distillation fields:
{
"prompt": "User prompt text (the adversarial query)",
"tag": "cybercrime_hacking",
"reasoning": "Detailed explanation of why this prompt belongs to the category, including manipulation techniques identified",
"positive": "Semantically equivalent paraphrase preserving the same safety label",
"negative": "A semantically close but safe alternative on the same topic (hard negative)",
"model_name": "Teacher model used for augmentation"
}
Fields:
prompt (string): The original adversarial or benign user querytag (string): Safety category label from the 9-class taxonomyreasoning (string): Teacher-generated natural-language rationale explaining the classification logicpositive (string): Paraphrased variant of prompt preserving the same tag (used for contrastive learning)negative (string): A safe query on the same topic with high lexical overlap but different intent (hard negative for ACD)model_name (string): Identifier of the teacher model that synthesized this samplebenchmark.jsonl
Each line is a JSON object with minimal fields for evaluation:
{
"prompt": "User prompt text",
"tag": "llm_compromise"
}
Fields:
prompt (string): The adversarial querytag (string): Ground-truth safety category labelfrom datasets import load_dataset
dataset = load_dataset("mark-matviiv/ukrainian-safety-dataset")
train = dataset["train"]
benchmark = dataset["benchmark"]
This dataset is gated. Access requests are reviewed by the Ministry of Digital Transformation of Ukraine.
@mastersthesis{matviiv2026guardrail,
title={Efficient Guardrailing for the Ukrainian LLM via Reasoning Distillation},
author={Matviiv, Markiian},
year={2026},
school={Ukrainian Catholic University}
}