Entropy-Valley-Datasets
收藏资源简介:
Entropy-Valley数据集是为支持掩码扩散机器翻译中的无训练目标长度选择方法(Entropy-Valley,EV)而构建的。该数据集包含LoRA-SFT训练数据、WMT22评估集以及用于诊断性分析的挑战子集,旨在评估EV在固定尺寸画布上选择最优目标长度(通过预测熵最小化)的性能。数据集包括两个主要翻译方向配置:中文-英文(enzh)和英文-德文(ende),以及五个挑战子集(覆盖度、数字、命名实体、日期、枚举、生育率不匹配)。所有数据以JSONL格式存储,每行一个JSON对象。训练/验证数据源自WMT19语料,经过长度过滤(英文5-200词,中文2-600字符,德文5-200词)并随机排序后,前200,000条作为训练集,后2,000条作为验证集。测试集使用官方WMT22新闻翻译测试集(每方向2,037条)。挑战子集从WMT22中-英测试集中提取,每个类别最多200条,并包含原始索引以追溯来源。该数据集仅用于机器翻译研究,遵循WMT研究条款。
The Entropy-Valley dataset is constructed to support the training-free target length selection method (Entropy-Valley, EV) for masked diffusion machine translation. It contains LoRA-SFT training data, the WMT22 evaluation set, and challenge subsets for diagnostic analysis, aiming to evaluate EVs performance in selecting the optimal target length (via prediction entropy minimization) on a fixed-size canvas. The dataset includes two main translation direction configurations: Chinese-English (enzh) and English-German (ende), along with five challenge subsets (coverage, digits, named entities, dates, enumeration, fertility mismatch). All data is stored in JSONL format, with one JSON object per line. The training/validation data originates from the WMT19 corpus, filtered by length (English: 5-200 words, Chinese: 2-600 characters, German: 5-200 words) and randomly shuffled, with the first 200,000 entries as the training set and the next 2,000 as the validation set. The test set uses the official WMT22 news translation test set (2,037 entries per direction). The challenge subsets are extracted from the WMT22 Chinese-English test set, with up to 200 entries per category and original indices for traceability. This dataset is intended solely for machine translation research, adhering to WMT research terms.
Entropy-Valley Datasets 数据集概述
数据集简介
Entropy-Valley Datasets 是论文《Length-Adaptive Decoding for Masked Diffusion Machine Translation》(EMNLP 2026)中提出的 Entropy-Valley (EV) 方法所使用的数据集合。EV 是一种针对掩码扩散机器翻译的无训练目标长度选择器,通过单次全掩码前向传播探测 5 个候选画布长度,选择平均预测熵最低者。该数据集包含 LoRA-SFT 训练数据、WMT22 评估集及诊断性挑战子集。
数据配置与规模
| 配置名 | 划分 | 行数 | 字段 | 用途 |
|---|---|---|---|---|
enzh |
train | 200,000 | en, zh |
En↔Zh 双向的 LoRA-SFT 数据 |
enzh |
validation | 2,000 | en, zh |
保留开发集(不用于调优 EV) |
enzh |
test | 2,037 | en, zh |
WMT22 新闻测试集(主结果表) |
ende |
train | 200,000 | en, de |
En→De 的 LoRA-SFT 数据 |
ende |
validation | 2,000 | en, de |
保留开发集 |
ende |
test | 2,037 | en, de |
WMT22 新闻测试集(En→De) |
challenge_coverage_zh |
test | 400 | en, zh, challenge_categories, idx |
揭示顺序诊断的并集子集 |
challenge_numbers |
test | 200 | en, zh, challenge_category, idx |
含数字序列的句子 |
challenge_named_entities |
test | 200 | en, zh, challenge_category, idx |
大写多词跨度 |
challenge_dates |
test | 63 | en, zh, challenge_category, idx |
年/月/星期词元 |
challenge_enumeration |
test | 131 | en, zh, challenge_category, idx |
逗号分隔的 ≥3 项列表 |
challenge_fertility_mismatch |
test | 14 | en, zh, challenge_category, idx |
源-目标长度比离群值 |
所有文件均为 JSONL 格式,每行一个 JSON 对象,无嵌套结构。
数据构建方法
训练集与开发集
- En↔Zh:基于 HuggingFace
wmt19语料中zh-en训练集,过滤条件为英文空格分词长度 5-200、中文字符数 2-600。 - En→De:基于
wmt19语料中de-en训练集(seed=42 洗牌),过滤条件为英文和德文分词长度均为 5-200。 - 过滤后使用
random.seed(42)确定性洗牌,前 200,000 条为训练集,随后 2,000 条为开发集。 - 仅应用单侧长度过滤,无语言 ID 分类器,无源-目标长度比过滤。
- 开发集不用于设置 EV 的比率网格或解码超参数。
测试集
- 官方 WMT22 新闻翻译测试集,每个方向 2,037 条。
- En↔Zh 来自 WMT22 新闻系统仓库,En→De 通过 sacreBLEU 获取。
- Zh→En 复用
enzh文件,交换源/目标角色,无独立zhen配置。
挑战子集
- 从
wmt22_enzh_test.jsonl派生,每类别最多 200 条,子集之间不互斥。 challenge_coverage_zh是 400 句并集,用于揭示顺序诊断。idx字段指向 WMT22 测试集的原始行索引,可追溯每条挑战样例来源。
使用方式
python from datasets import load_dataset
enzh = load_dataset("YanZhanPKU/Entropy-Valley-Datasets", "enzh") nums = load_dataset("YanZhanPKU/Entropy-Valley-Datasets", "challenge_numbers", split="test")
也可通过 huggingface-cli download 下载原始 JSONL 文件树,运行完整代码流程。
许可与来源
- 数据为 WMT19 训练语料和 WMT22 新闻测试集的派生子集,以 JSONL 格式重新分发,非全新语料,未完整镜像原始 WMT 分布。
- 使用受原始 WMT 条款约束,允许用于机器翻译研究。
- 引用论文为论文及 WMT19/WMT22 共享任务成果。





