Nemotron Safety Guard v3 for embedding training
Content warning: this dataset contains harmful, offensive and disturbing text,
including requests for violence, self-harm, hate speech and sexual content, as well as
jailbreak attempts. It is meant for training and evaluating safety classifiers.
Seven tasks for training and evaluating instruction-following embedding models, built
from nvidia/Nemotron-Safety-Guard-Dataset-v3,
which pairs user prompts and assistant responses in 12 languages with safe/unsafe
labels and harm categories.
Every row is a query with one or more correct texts (positives) and wrong ones
(negatives). For classification tasks the labels are written as short descriptions,
so a model learns to pick the label most similar to the query.
Tasks
| Task | Query | Positives | Negatives |
|---|---|---|---|
safety |
A prompt or response | "a harmless message" or "a harmful or dangerous message" | The other label |
reply |
A prompt or response | "a safe message that can be sent as is" or "a harmful message that must be reviewed before it is sent" | The other label |
reply_risks |
Same as reply, but the query instruction lists the 21 harms |
Same as reply |
The other label |
harm |
An unsafe prompt or response | Its harm categories, one or more of 21 | The other categories |
category |
A prompt or response | Its harm categories, or "a harmless message with no harmful content" | The other labels of the 22 |
bitext |
A prompt | Its translation in another language | 4 mined texts that are not its translation |
language |
A prompt | The language it is written in, one of 12 | The other 11 languages |
safety, reply and reply_risks use the same texts and labels and differ only in
wording, so they can be compared or combined.
Each task's instructions are in the query_inst and document_inst columns:
| Task | Query instruction |
|---|---|
safety |
Given a message from a conversation with an AI assistant, classify whether it is safe or unsafe |
reply |
Given a message from a conversation with an AI assistant, classify whether it can be sent as is or must be reviewed first |
reply_risks |
The reply instruction, then "A message must be reviewed if it involves any of:" and the 21 harm descriptions |
harm |
Given an unsafe message from a conversation with an AI assistant, classify which kinds of harm it involves |
category |
Given a message from a conversation with an AI assistant, classify which kinds of harm it involves, or whether it is safe |
bitext |
Given a text, retrieve the same text written in another language |
language |
Given a text, identify which language it is written in |
No task uses a document instruction (document_inst is empty).
Harm categories
The 21 categories, as written in harm and category: planning or admitting to a crime;
violence or physical harm; hate or attacks on people for their race, religion, gender,
sexuality or other identity; harassing, bullying or insulting someone; illegal drugs,
alcohol, tobacco or other regulated substances; personal or private information about
people; swearing or crude language; sexual content; immoral or unethical behaviour;
illegal activities; guns, explosives or illegal weapons; suicide or self-harm;
manipulating people psychologically; medical, legal or financial advice that needs a
professional; sexual content involving minors; political misinformation or conspiracy
theories; fraud, scams or deception; threatening to harm someone; malware, hacking or
cyberattacks; copyright infringement, trademark misuse or plagiarism; high-risk
government decisions, such as policing, immigration or elections.
The source's "Other" and "Needs Caution" categories are dropped, as they say nothing
about the content.
Splits
The source's train, validation and test splits are kept. Source ids never cross splits,
and train texts that also appear in validation or test are removed.
| Task | train | validation | test |
|---|---|---|---|
safety |
6,000 | 4,482 | 5,361 |
reply |
6,000 | 4,482 | 5,361 |
reply_risks |
6,000 | 4,482 | 5,361 |
harm |
15,000 | 1,139 | 1,295 |
category |
15,000 | 3,267 | 3,754 |
bitext |
10,987 | 1,675 | 2,188 |
language |
15,000 | 2,119 | 2,967 |
| Total | 73,987 | 21,646 | 26,287 |
- In train,
safety,replyandreply_risksare balanced: 3,000 safe and 3,000
unsafe each. Validation and test keep the source balance, about 53% unsafe. - In
harm, about 55% of rows have more than one category. languagecovers all 12 languages: 984–1,482 rows each in train.
Columns
| Column | Description |
|---|---|
task |
The task name (see above) |
query_inst |
Instruction for embedding the query |
query |
The text to classify, or the bitext source text |
document_inst |
Instruction for embedding the positives and negatives (empty) |
positives |
Correct labels or the translation |
negatives |
Wrong labels or mined non-translations |
How it was built
Prompts and responses are separate queries. Each source row gives up to two
texts, each with its own safe/unsafe label. Empty texts and texts without a label
are skipped.Harm categories. The source's
violated_categoriescovers the whole exchange,
so they are given to a text only when the other side of the exchange is not unsafe.Cheap filters, before any embedding. Texts are dropped when they are:
- the bare placeholder "REDACTED" (privacy redaction that kept its label);
- longer than 3,500 tokens (Qwen3-VL-Embedding-2B tokenizer);
- labelled both safe and unsafe within the split;
- in train, also present in validation or test.
Duplicates within a task are removed after lowercasing, Unicode normalization and
stripping punctuation.One language per source text. Rows sharing an
idare translations of one
source text. For the classification tasks, one language is picked at random per
source text from those with rows left, so all 12 languages stay in without repeating
content.Translation tasks from the leftover translations.
bitextandlanguageuse
only prompts in languages the classification tasks did not use. They do not use:- responses: about 18% of English responses, and some in other languages, are a
different reply rather than a translation; - for
bitext, the source's "adapted" prompts, whose translations change names and
places.
Texts must be at least 10 letters, at least half in their language's script, and not
identical under two languages (left untranslated). A bitext pair must share its
safety label, and the two lengths, adjusted for each language's typical length, must
be within 2x of each other.- responses: about 18% of English responses, and some in other languages, are a
Caps. At most 3,000 rows per label within a task, then at most 15,000 rows per
task, both drawn at random (seed 0).Bitext hard negatives. Candidates are the queries and positives of all other
bitext rows. A candidate scoring above 0.95 times the positive's cosine similarity
to the query is skipped as a likely translation of the same text; the 4 most similar
of the rest are kept. Embeddings come from Qwen3-VL-Embedding-2B.Easy bitext rows dropped. Rows where the positive beats the hardest negative by
0.10 or more keep a random 25%, in all three splits. This removed 27% of train and
33% of validation and test bitext rows, so bitext scores on validation and test are lower than on unfiltered
data. Other tasks are not margin-filtered.
Zero-shot baseline
Qwen3-VL-Embedding-2B with no training, on an earlier build of the test split before
the caps and the translation tasks were added (its row counts were within about 2% of
this release). The prediction is the label with the highest cosine similarity.
| Task | Accuracy | AUC | Note |
|---|---|---|---|
safety |
0.578 | 0.774 | Predicts "unsafe" for 94% of texts |
reply |
0.610 | 0.661 | |
reply_risks |
0.660 | 0.750 | Listing the harms helps |
category |
0.641 | n/a | Macro F1 0.123, which suggests it mostly predicts "safe" |
harm |
0.289 | n/a | Accuracy@5 0.580 |
Limitations
- Labels come from the source, and translations of one prompt sometimes disagree: in
train, the English label differs from the other languages' in 3.5% of groups, and
the other Latin-script languages disagree among themselves in 6.5%. - Some texts are only harmful in context: a response labelled unsafe can look harmless
without the prompt it answers. - Bitext negatives are mined with one model and filtered by that same model's margins,
so they reflect what that model finds hard. - Language detection does not cover code-mixed text: texts written mostly in another
script are dropped.
Source, licence and attribution
Built from nvidia/Nemotron-Safety-Guard-Dataset-v3
by NVIDIA Corporation, licensed under CC BY 4.0.
This dataset is a modified version: texts were filtered, deduplicated, sampled and
reformatted into the tasks above, and the bitext negatives were mined as described.
It is released under the same licence.
If you use it, please cite the source dataset's paper:
@article{joshi2025cultureguard,
title={CultureGuard: Towards Culturally-Aware Dataset and Guard Model for Multilingual Safety Applications},
author={Joshi, Raviraj and Paul, Rakesh and Singla, Kanishk and Kamath, Anusha and Evans, Michael and Luna, Katherine and Ghosh, Shaona and Vaidya, Utkarsh and Long, Eileen and Chauhan, Sanjay Singh and others},
journal={arXiv preprint arXiv:2508.01710},
year={2025}
}