Nemotron-SFT-Safety-v2
收藏资源简介:
Nemotron-SFT-Safety-v2 是一个用于提升大语言模型安全对齐性的监督微调数据集,核心目标是增强模型抵御各种安全与安保威胁的鲁棒性。数据集由两部分构成:1) 一个混合了开源收集与合成生成的提示词集合,旨在引发不同的模型漏洞;2) 合成生成的响应,旨在引导模型行为符合安全对齐的价值观,并增强模型应对广泛潜在攻击向量的能力。此外,数据集包含英文子集到六种其他语言(德语、西班牙语、法语、日语、意大利语、中文)的翻译,形成多语言子集,翻译过程通过回译和语义相似度筛选保证质量,每种语言保留约15,000个样本。英文提示词来源多样,包括开源数据集(如Nemotron Content Safety Dataset v2、Gretel Safety Alignment Dataset v1、HarmfulTasks)和多个合成生成的提示词类别(如对比安全提示词、越狱鲁棒性数据等)。响应生成采用两阶段机制,将最终响应生成与推理轨迹生成解耦,以确保响应与安全行为准则对齐,所有样本在整合前经过完整性过滤器(如安全检查、身份检查)。数据集总计约130,350个样本,其中英文子集约43,521个样本,多语言子集约86,829个样本(每种语言约14,500个),数据以JSONL格式存储,模态为纯文本。适用于社区进行模型的监督微调,以提升模型在多个安全维度上的对齐性,包括恰当回应有害请求、抵御越狱策略和网络安全攻击、抵消过度安全倾向、缓解偏见输出和减轻版权内容泄露。该数据集是Nemotron-SFT-Safety-v1的直接替代版本,新增了多语言子集,遵循CC BY 4.0、Apache 2.0和MIT许可证,可用于商业或非商业用途。
Nemotron-SFT-Safety-v2 is a supervised fine-tuning dataset designed to enhance the safety alignment of large language models, with the core goal of improving model robustness against various security and safety threats. The dataset consists of two parts: 1) a mixed collection of open-source and synthetically generated prompts aimed at eliciting diverse model vulnerabilities; 2) synthetically generated responses intended to guide model behavior in line with safety-aligned values and enhance the models ability to handle a wide range of potential attack vectors. Additionally, the dataset includes translations of the English subset into six other languages (German, Spanish, French, Japanese, Italian, Chinese), forming a multilingual subset. The translation process uses a sentence-splitting pipeline with back-translation and semantic similarity filtering (threshold 0.8) to ensure quality, retaining approximately 15,000 samples per language. English prompts are sourced from diverse origins, including open-source datasets (e.g., Nemotron Content Safety Dataset v2, Gretel Safety Alignment Dataset v1, HarmfulTasks) and multiple synthetically generated prompt categories (e.g., contrastive safety prompts, jailbreak robustness data, latent injection resilience data). Response generation employs a carefully designed two-stage mechanism that decouples final response generation from reasoning trajectory generation to ensure alignment with safety guidelines, with all samples filtered through integrity checks (e.g., safety, identity, API key leakage) before integration. The dataset totals approximately 130,350 samples, with the English subset containing about 43,521 samples and the multilingual subset about 86,829 samples (roughly 14,500 per language). Data is stored in JSONL format and is text-only. It is suitable for community use in supervised fine-tuning to improve model alignment across safety dimensions, such as appropriately responding to harmful user requests, resisting jailbreak strategies and cyber attacks, mitigating over-safety tendencies, reducing biased outputs, and preventing leakage of copyrighted content. This dataset is a direct replacement for the previously released Nemotron-SFT-Safety-v1, adding the multilingual subset, and is licensed under CC BY 4.0, Apache 2.0, and MIT for both commercial and non-commercial use.
数据集概述
Nemotron-SFT-Safety-v2 是一个为增强大型语言模型安全性与鲁棒性而设计的监督微调(SFT)数据集,支持商业或非商业用途。该数据集混合了开源与合成生成的提示(prompts)以及合成生成的响应,旨在对齐模型行为,抵御多种安全与攻击向量。
数据构成
- 英语子集:约45,000个样本,与前一版本(Nemotron-SFT-Safety-v1)相同。
- 多语言子集:新增六种语言的翻译版本(德语、西班牙语、法语、日语、意大利语、中文),每种语言约15,000个样本,总计约86,829个样本。
- 总体规模:约130,350个样本,总磁盘大小约650MB。
英语子集详情
英语子集由以下部分组成:
| 提示来源 | 样本数量 |
|---|---|
| 内容安全(Nemotron Content Safety v2, Gretel Safety Alignment v1, sdg_sensitive_categories) | 24,752 |
| 越狱攻击鲁棒性(HarmfulTasks, sdg_jailbreaks, sdg_latent_injection) | 8,963 |
| 过度拒绝鲁棒性(sdg_oversafety) | 6,896 |
| 人口统计偏见缓解(sdg_bias_mitigation) | 2,000 |
| 敏感内容泄露缓解(sdg_leakreplay) | 910 |
| 英语子集总计 | 43,521 |
多语言子集详情
英语子集经过翻译、过滤(语义相似度低于0.8的示例被移除)及分层抽样后,生成以下语言版本:
| 语言 | 样本数量 |
|---|---|
| 德语(de) | 14,474 |
| 西班牙语(es) | 14,451 |
| 法语(fr) | 14,497 |
| 意大利语(it) | 14,459 |
| 日语(ja) | 14,494 |
| 中文(zh) | 14,454 |
| 多语言子集总计 | 86,829 |
数据格式
- 模态:文本
- 格式:JSONL(每行一个JSON对象)
- 结构:包含文本与元数据
预期用途
该数据集旨在通过监督微调改善模型在以下方面的对齐表现:
- 对有害请求(如自残、暴力、犯罪计划、CSAM等)做出适当响应。
- 抵御常见越狱策略、网络攻击或红队测试。
- 通过对比性硬负样本(结构与有害请求相似但语义不同)纠正模型的过度安全倾向。
- 缓解基于年龄等维度的歧视性输出。
- 减少潜在版权内容的泄露。
关键伦理与许可信息
- 数据集创建者:NVIDIA Corporation
- 创建日期:2026年3月15日
- 许可协议:Creative Commons Attribution 4.0 International License (CC BY 4.0);附加许可包括Apache 2.0和MIT。
- 数据收集方法:混合方式(人工、合成与自动化)。
- 标注方法:混合方式(人工、合成与自动化)。




