Nemotron-Pretraining-Legal-v1
收藏资源简介:
Nemotron-Pretraining-Legal-v1数据集是Nemotron预训练数据集的组成部分,专为NVIDIA Nemotron 3系列大语言模型设计,旨在通过合成数据提升模型的法律能力。在一项消融实验中,将该数据集加入Nemotron 3 Nano的预训练后,其在一个代理LegalBench基准上的平均准确率从64.6提升至74.7。数据集包含14个子集,总记录数达960万,总存储量为7.0 GB。数据内容涵盖多种法律领域和任务,主要包括四类:从HTML文件提取的原始法规文本(如加州法规、联邦法规);由Qwen3-235B-A22B-Instruct-2507模型清理或生成的数据(如基于Caselaw生成的540万份案例摘要);重新格式化的现有法律数据集(如转换为多选题格式的CaseHOLD);以及为特定法律任务(如条款分类、管辖权判断、决策功能分类等)合成的问答或分类数据。数据集采用Parquet格式,包含text(主文本内容)、license(许可证)、metadata(元数据字典,含类别、所用模型等信息)和uuid(唯一标识符)四个字段。该数据集遵循CC-BY-4.0许可证,适用于法律领域大语言模型的预训练和微调。需要注意的是,其中三个子集(Contract-NLI、ToS-Clause-Understanding、ToSDR-QA)需要运行特定脚本或替换占位符才能完整使用。
The Nemotron-Pretraining-Legal-v1 dataset is a component of the Nemotron pre-training dataset, specifically designed for NVIDIA Nemotron 3 series large language models (LLMs), aiming to enhance the legal capabilities of models via synthetic data. In an ablation study, adding this dataset to the pre-training of Nemotron 3 Nano improved its average accuracy on a proxy LegalBench benchmark from 64.6 to 74.7. The dataset consists of 14 subsets, with a total of 9.6 million records and a total storage size of 7.0 GB. It covers diverse legal domains and tasks, which are mainly divided into four categories: 1. Raw regulatory text extracted from HTML files, such as California regulations and federal regulations; 2. Data cleaned or generated by the Qwen3-235B-A22B-Instruct-2507 model, such as 5.4 million case summaries generated based on Caselaw; 3. Reformatted existing legal datasets, such as CaseHOLD converted to multiple-choice format; 4. Synthetic question-answering or classification data for specific legal tasks including clause classification, jurisdiction judgment, decision function classification, etc. The dataset is stored in Parquet format and contains four fields: "text" (main text content), "license", "metadata" (a metadata dictionary including category, utilized model and other relevant information), and "uuid" (unique identifier). This dataset is licensed under CC-BY-4.0 and is applicable for pre-training and fine-tuning of large language models in the legal domain. It should be noted that three subsets (Contract-NLI, ToS-Clause-Understanding, ToSDR-QA) require running specific scripts or replacing placeholders to be fully usable.
数据集概述
Nemotron-Pretraining-Legal-v1 是 NVIDIA 发布的一个文本生成预训练数据集,旨在提升大语言模型(LLM)在法律领域的能力。该数据集属于 Nemotron Pretraining Data 系列,专为 NVIDIA Nemotron 3 模型家族设计。
- 许可证: Creative Commons Attribution 4.0 International (CC-BY-4.0)
- 语言: 英语
- 任务类别: 文本生成
- 数据集大小: 960 万样本,总存储量 7.0 GB
- 数据格式: Parquet
- 创建日期: 2026年5月18日
- 数据集拥有者: NVIDIA Corporation
数据集细分
该数据集包含 14 个子集,根据生成方式分为四类:
从 HTML 文件提取的数据集
- Nemotron-Pretraining-Legal-California-Code-Of-Regulations: 来自《加利福尼亚法规》(California Code of Regulations),排除第 6 和第 24 编。
- Nemotron-Pretraining-Legal-NYCourts-Judicial-Ethics-Opinions: 来自《纽约法院司法伦理意见》(New York Court Judicial Ethical Opinions)。
- Nemotron-Pretraining-Legal-eCFR: 来自《美国联邦法规》(Code of Federal Regulations)。
LLM 清洗的数据集
- Nemotron-Pretraining-Legal-Case-Law-Summary: 使用 Qwen3-235B-A22B-Instruct-2507 从过滤后的 Caselaw 数据集中生成 540 万条摘要。
重新格式化的数据集
- Nemotron-Pretraining-Legal-CaseHOLD: 将 CaseHOLD 数据集转换为多选题格式。
- Nemotron-Pretraining-Legal-Contract-NLI: 从 ContractNLI 数据集中提取注释并附加到源文档。注意:需运行
convert_contract_nli.py脚本重新创建此子集。
合成数据集
- Nemotron-Pretraining-Legal-Definition-Classification: 使用 Qwen3-235B-A22B-Instruct-2507 从 Caselaw 中提取包含定义语言的段落,构建分类问题。
- Nemotron-Pretraining-Legal-Diversity-Jurisdiction: 使用模板和随机人名、州名生成关于“完全多样性”管辖权的问题,并用 Qwen3-235B-A22B-Instruct-2507 改写。
- Nemotron-Pretraining-Legal-Function-Of-Decision: 使用 Qwen3-235B-A22B-Instruct-2507 对 Caselaw 段落进行功能分类(事实、程序历史、争议点、规则、分析、结论、判决)。
- Nemotron-Pretraining-Legal-GlobalCit: 基于 GLOBALCIT 数据集转换的全球国籍法相关问题,每个问题用 Qwen3-235B-A22B-Instruct-2507 改写为三个版本。
- Nemotron-Pretraining-Legal-LegalBench-CUAD-v2: 使用 Qwen3-235B-A22B-Instruct-2507 从 CUAD 合同中提取条款并生成正负例问题。
- Nemotron-Pretraining-Legal-ToS-Clause-Understanding: 使用 Qwen3-235B-A22B-Instruct-2507 从 TOS 数据集中生成服务条款条款理解问题。注意:需用元数据中的
split和index替换<CLAUSE>占位符。 - Nemotron-Pretraining-Legal-ToSDR-QA: 使用 Qwen3-235B-A22B-Instruct-2507 从 ToSDR 服务条款语料库中生成 Yes/No 问题。注意:需用元数据中的
filename替换<DOCUMENT>占位符。 - Nemotron-Pretraining-Legal-eCFR-QA: 使用 Qwen3-235B-A22B-Instruct-2507 从《美国联邦法规》中生成多种问答数据。
数据字段
每条记录包含以下字段:
- text: 主要数据字段,预训练使用的文本内容。
- license: 样本的许可证(如 cc-by-4.0)。
- metadata: 字典,包含:
- category: 数据类型(如子集名称)。
- models_used: 生成数据使用的模型(如 Qwen3-235B-A22B-Instruct-2507)。
- split 和 index(仅用于 Nemotron-Pretraining-Legal-ToS-Clause-Understanding):用于从 TOS 数据集中选择对应条款。
- filename(仅用于 Nemotron-Pretraining-Legal-ToSDR-QA):用于从 ToSDR 语料库中选择对应文件。
- uuid: 数据条目的唯一标识符。
子集规模与生成模型
| 子集名称 | 包含 Token (百万) | 生成模型 | 许可证 | 特殊说明 |
|---|---|---|---|---|
| Nemotron-Pretraining-Legal-California-Code-Of-Regulations | 34.9 | - | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-Case-Law-Summary | 4026.9 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-CaseHOLD | 29.3 | - | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-Contract-NLI | 1.7 | - | 需运行 convert_contract_nli.py |
|
| Nemotron-Pretraining-Legal-Definition-Classification | 1.4 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-Diversity-Jurisdiction | 0.9 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-eCFR | 131.5 | - | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-eCFR-QA | 593.2 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-Function-Of-Decision | 23.8 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-GlobalCit | 7.5 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-LegalBench-CUAD-v2 | 53.4 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-NYCourts-Judicial-Ethics-Opinions | 4.6 | - | cc-by-4.0 | |
| Nemotron-Pretraining-Legal-ToS-Clause-Understanding | 0.5 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | 需替换 <CLAUSE> 占位符 |
| Nemotron-Pretraining-Legal-ToSDR-QA | 24.6 | Qwen3-235B-A22B-Instruct-2507 | cc-by-4.0 | 需替换 <DOCUMENT> 占位符 |
数据收集与标注方法
- 数据收集方法: 合成生成,使用大语言模型 Qwen3-235B-A22B-Instruct-2507。
- 标注方法: 不适用。
预期用途
该数据集旨在供社区用于改进开源模型的法律能力。NVIDIA 在 Nemotron 3 Nano 预训练中的一项消融实验显示,加入该数据集后,代理 LegalBench 平均准确率从 64.6 提升至 74.7。
引用
如果使用该数据集,请引用 NVIDIA Nemotron 3 Ultra 技术报告。




