juppy44 commited on
Commit
3797ce7
·
verified ·
1 Parent(s): d1926bb

Upload verifier reward-model dataset and provenance report

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Instruction-conditioned verifier reward-model dataset
2
+
3
+ This folder contains a bounded, reproducible mixture for a Qwen3 4B LoRA reward model. Each row is a single candidate to score. The model is trained to emit `YES` for a candidate that satisfies the row's `custom_instruction` and `NO` otherwise; downstream users can use the Yes/No logit margin as the continuous reward.
4
+
5
+ The dataset is intended to remain private. The model weights can be released separately. The build script streams source datasets and stores source IDs, provenance, evidence regime, and supervision type in every row.
6
+
7
+ ## Build locally
8
+
9
+ The current environment already has `datasets`, `huggingface_hub`, and `pyarrow`. Otherwise:
10
+
11
+ ```powershell
12
+ python -m pip install -r requirements.txt
13
+ python build_dataset.py
14
+ ```
15
+
16
+ The default build is intentionally bounded at roughly 20k candidate rows. Adjust quotas if desired:
17
+
18
+ ```powershell
19
+ python build_dataset.py --math-examples 12000 --ultramix-pairs 2500 --max-total 30000
20
+ ```
21
+
22
+ Output files are written under `data/` as Parquet shards. Build provenance and counts are written to `reports/build_manifest.json` and `reports/dataset_stats.json`.
23
+
24
+ Validate the generated shards and group-level split isolation:
25
+
26
+ ```powershell
27
+ python validate_dataset.py
28
+ ```
29
+
30
+ ## Upload as a private Hub dataset
31
+
32
+ Create a user token with write access, then set it only in the current PowerShell process:
33
+
34
+ ```powershell
35
+ $env:HF_TOKEN = "hf_..."
36
+ python push_to_hub.py --repo-id YOUR_USERNAME/verifier-rm-data
37
+ ```
38
+
39
+ The uploader creates the dataset repository as private by default and uploads only the data, README, and JSON reports. It never writes the token to disk.
40
+
41
+ ## Normalized schema
42
+
43
+ The core fields are:
44
+
45
+ - `custom_instruction`: the criterion that defines what YES means.
46
+ - `current_completion`: the user prompt or preceding conversation.
47
+ - `text_to_score`: the candidate solution/response/trace.
48
+ - `reference_solution`: optional authoritative solution.
49
+ - `privileged_context`: optional authoritative hint for v1.
50
+ - `evidence_mode`: `none`, `reference`, `privileged`, or `both`.
51
+ - `target_label` / `target_binary`: `YES`/`NO` supervision target.
52
+ - `supervision_type`: `absolute_verifiable` or `pairwise_preference`.
53
+ - `label_provenance` and `label_confidence`: source and trust metadata.
54
+ - `group_id`: keeps candidates from one underlying problem in the same split.
55
+
56
+ Splits are assigned by `group_id`, not by row, so paired candidates and math generations cannot leak across train/validation/test.
57
+
58
+ ## Included source families
59
+
60
+ - `open-r1/OpenR1-Math-220k`: math reasoning traces with Math-Verify correctness labels. The builder creates several evidence views while retaining the verified label.
61
+ - `aladinDJ/ultramix-DPO-annotated`: quality-filtered, task-balanced preference pairs with math, reasoning, coding, and general tasks.
62
+ - `nvidia/HelpSteer3` (`preference`): human-annotated multi-turn preferences across general, STEM, code, and multilingual domains.
63
+ - `coseal/CodeUltraFeedback_binarized`: coding preference pairs with ratings and model provenance.
64
+ - `Skywork/Skywork-Reward-Preference-80K-v0.2`: general reward-preference pairs.
65
+ - `R-I-S-E/RISE-Judge-SFT-20K`: position-verified judge comparisons derived from math and preference sources, normalized into candidate-level YES/NO rows.
66
+ - `iknow-lab/JudgeBias-DPO-RefFree` (`validation_1000.parquet` only): a bounded anti-shortcut/materials-science slice designed to preserve semantic equivalence while detecting injected errors. The full upstream repository has inconsistent parquet schemas, so the builder reads only this stable small file directly.
67
+
68
+ Preference pairs remain marked as pairwise rather than being presented as absolute truth. That distinction matters because a chosen response can be better than a rejected response while still being imperfect.
69
+
70
+ ## Deliberate exclusions
71
+
72
+ PRM800K is not used as the main math source because this first release emphasizes richer full-solution and preference variation. Evaluation-only sets and sources with inconsistent Hub schemas are not forced into the build; the manifest records any source that fails to stream.
73
+
74
+ Check each upstream dataset's current license and terms before redistributing derived data. This local/private build does not grant redistribution rights.
SOURCE_REVIEW.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Source review and mixture rationale
2
+
3
+ This is the source-selection record for the local v1 build. It is deliberately separate from the normalized data so the model artifact can be released without publishing the derived training set.
4
+
5
+ ## Included
6
+
7
+ | Source | Role in v1 | Important caveat |
8
+ | --- | --- | --- |
9
+ | [open-r1/OpenR1-Math-220k](https://huggingface.co/datasets/open-r1/OpenR1-Math-220k) | Main math source; multiple reasoning traces and Math-Verify correctness metadata | The builder uses only a bounded streamed subset and creates evidence views; it does not claim every trace is human-verified. |
10
+ | [aladinDJ/ultramix-DPO-annotated](https://huggingface.co/datasets/aladinDJ/ultramix-DPO-annotated) | Balanced general, reasoning, math, coding and instruction-following preferences with curation metadata | Preference pairs are kept as pairwise supervision, not treated as absolute truth. |
11
+ | [nvidia/HelpSteer3](https://huggingface.co/datasets/nvidia/HelpSteer3) | Human-annotated multi-turn preference coverage across general, STEM, code and multilingual domains | Overall preference has a three-point direction scale; ties are skipped. |
12
+ | [coseal/CodeUltraFeedback_binarized](https://huggingface.co/datasets/coseal/CodeUltraFeedback_binarized) | Code-specific preference and rating signal | Identical chosen/rejected pairs are skipped. |
13
+ | [Skywork/Skywork-Reward-Preference-80K-v0.2](https://huggingface.co/datasets/Skywork/Skywork-Reward-Preference-80K-v0.2) | Additional general reward-preference diversity | The source has limited task metadata, so rows use the generic rubric and preserve the upstream source tag. |
14
+ | [R-I-S-E/RISE-Judge-SFT-20K](https://huggingface.co/datasets/R-I-S-E/RISE-Judge-SFT-20K) | Judge-style comparisons with a generated rationale and position-swap verification | The builder extracts the user question and A/B candidates, discarding the long judge rationale from the scored candidate. |
15
+ | [iknow-lab/JudgeBias-DPO-RefFree](https://huggingface.co/datasets/iknow-lab/JudgeBias-DPO-RefFree) | Bounded anti-shortcut/materials-science pairs for representation invariance and injected-error detection | The builder uses only the stable `validation_1000.parquet` file because the full upstream parquet set currently has inconsistent schemas. |
16
+
17
+ ## Explored but not in the default build
18
+
19
+ | Source | Decision |
20
+ | --- | --- |
21
+ | [OpenAI PRM800K](https://github.com/openai/prm800k) | Deliberately not used as the main math source because v1 is intended to be richer than simple step labels. |
22
+ | Math-Shepherd | Useful process-supervision reference, but not included in the default mixture; its automated step labels would add another label regime before the core schema is stable. |
23
+ | Full JudgeBias train/validation parquet set | Not used because the Hub parquet files currently expose inconsistent columns and fail the streaming cast check; only the stable 999-row `validation_1000.parquet` slice is included. |
24
+ | [amazon/CodePrefBench](https://huggingface.co/datasets/amazon/CodePrefBench) | Kept as an evaluation candidate rather than training data; its Hub card identifies a non-commercial license and an evaluation/test orientation. |
25
+ | [cracklinoatbran/reward_hacking_policy_1073](https://huggingface.co/datasets/cracklinoatbran/reward_hacking_policy_1073) | Prompt-only reward-hacking evaluation set. It needs fresh candidate generations and verified hack/legitimate labels, so it is reserved for a later anti-shortcut generation stage. |
26
+ | [hlyn-labs/prompt-injection-judge-dataset-v1](https://huggingface.co/datasets/hlyn-labs/prompt-injection-judge-dataset-v1) | Security-judge conversations are not directly compatible with the v1 candidate-level correctness contract; reserve for a later adversarial/instruction-injection slice. |
27
+
28
+ ## Mixture properties of the generated artifact
29
+
30
+ The current build contains 20,799 unique candidate rows in three group-isolated Parquet splits:
31
+
32
+ - 8,000 absolute math-verification rows.
33
+ - 12,799 pairwise preference/judge rows across general, STEM, code, materials science, and math/judgment sources.
34
+ - 14,816 rows with no evidence, 1,972 with a reference solution, 2,022 with privileged context, and 1,989 with both.
35
+ - 18,712 train, 1,094 validation, and 993 test rows.
36
+ - 20,799 unique `example_id` values and 10,265 unique `group_id` values.
37
+
38
+ The source datasets are not all licensed identically. This folder is therefore a private local artifact by default; check each upstream dataset's current license and terms before redistributing derived data. The model-weight release should document the source mixture without publishing these Parquet files unless redistribution is separately cleared.
data/test-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db57f0ba03ca862864a98f8c518be6c569f57e505a8f3cef955d76716da28960
3
+ size 3693159
data/train-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8901a51c036fcc9ba15b68d461a113c133407f2c4cba295872296571a5691d1d
3
+ size 69366026
data/validation-00000.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a583db42940bfe05c50b6db0aceca8ccf1d6e98df36d395b7ad0e2cdfa862622
3
+ size 3989225
reports/build_manifest.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "verifier-rm-1.0",
3
+ "quotas": {
4
+ "output": "C:\\Users\\sunco\\OneDrive\\Desktop\\agentic-rl\\verifier-dataset",
5
+ "math_examples": 8000,
6
+ "ultramix_pairs": 1500,
7
+ "helpsteer3_pairs": 1200,
8
+ "code_pairs": 800,
9
+ "skywork_pairs": 1000,
10
+ "rise_pairs": 1600,
11
+ "judgebias_pairs": 400,
12
+ "max_total": 24000
13
+ },
14
+ "sources": {
15
+ "openr1_math": {
16
+ "status": "ok",
17
+ "scanned": 3876,
18
+ "accepted": 8000,
19
+ "skipped": 0
20
+ },
21
+ "ultramix": {
22
+ "status": "ok",
23
+ "scanned": 1500,
24
+ "pairs": 1500,
25
+ "accepted": 3000,
26
+ "skipped": 0
27
+ },
28
+ "helpsteer3": {
29
+ "status": "ok",
30
+ "scanned": 1216,
31
+ "pairs": 1200,
32
+ "accepted": 2400,
33
+ "skipped": 16
34
+ },
35
+ "code_ultrafeedback": {
36
+ "status": "ok",
37
+ "scanned": 806,
38
+ "pairs": 800,
39
+ "accepted": 1600,
40
+ "skipped": 6
41
+ },
42
+ "skywork": {
43
+ "status": "ok",
44
+ "scanned": 1000,
45
+ "pairs": 1000,
46
+ "accepted": 2000,
47
+ "skipped": 0
48
+ },
49
+ "rise_judge": {
50
+ "status": "ok",
51
+ "scanned": 3316,
52
+ "pairs": 1600,
53
+ "accepted": 3198,
54
+ "skipped": 1716
55
+ },
56
+ "judgebias": {
57
+ "status": "ok",
58
+ "scanned": 999,
59
+ "pairs": 400,
60
+ "accepted": 800,
61
+ "skipped": 0
62
+ }
63
+ },
64
+ "deduplication": {
65
+ "before": 20998,
66
+ "after": 20799
67
+ },
68
+ "final_stats": {
69
+ "total_examples": 20799,
70
+ "splits": {
71
+ "train": 18712,
72
+ "validation": 1094,
73
+ "test": 993
74
+ },
75
+ "sources": {
76
+ "open-r1/OpenR1-Math-220k": 8000,
77
+ "aladinDJ/ultramix-DPO-annotated": 3000,
78
+ "nvidia/HelpSteer3": 2255,
79
+ "coseal/CodeUltraFeedback_binarized": 1600,
80
+ "Skywork/Skywork-Reward-Preference-80K-v0.2": 2000,
81
+ "R-I-S-E/RISE-Judge-SFT-20K": 3150,
82
+ "iknow-lab/JudgeBias-DPO-RefFree": 794
83
+ },
84
+ "domains": {
85
+ "math": 8142,
86
+ "code": 4485,
87
+ "reasoning": 456,
88
+ "Information seeking": 1194,
89
+ "Advice seeking": 76,
90
+ "Planning": 106,
91
+ "Data analysis": 162,
92
+ "Creative writing": 144,
93
+ "Brainstorming": 66,
94
+ "Editing": 22,
95
+ "Role playing": 2,
96
+ "general": 2000,
97
+ "math_or_general_judgment": 3150,
98
+ "materials_science": 794
99
+ },
100
+ "evidence_modes": {
101
+ "privileged": 2022,
102
+ "none": 14816,
103
+ "both": 1989,
104
+ "reference": 1972
105
+ },
106
+ "supervision_types": {
107
+ "absolute_verifiable": 8000,
108
+ "pairwise_preference": 12799
109
+ },
110
+ "labels": {
111
+ "YES": 11493,
112
+ "NO": 9306
113
+ },
114
+ "candidate_spans": {
115
+ "whole_completion": 20799
116
+ },
117
+ "avg_candidate_chars": 7476.3,
118
+ "max_candidate_chars": 72219,
119
+ "unique_groups": 10265
120
+ }
121
+ }
reports/dataset_stats.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "total_examples": 20799,
3
+ "splits": {
4
+ "train": 18712,
5
+ "validation": 1094,
6
+ "test": 993
7
+ },
8
+ "sources": {
9
+ "open-r1/OpenR1-Math-220k": 8000,
10
+ "aladinDJ/ultramix-DPO-annotated": 3000,
11
+ "nvidia/HelpSteer3": 2255,
12
+ "coseal/CodeUltraFeedback_binarized": 1600,
13
+ "Skywork/Skywork-Reward-Preference-80K-v0.2": 2000,
14
+ "R-I-S-E/RISE-Judge-SFT-20K": 3150,
15
+ "iknow-lab/JudgeBias-DPO-RefFree": 794
16
+ },
17
+ "domains": {
18
+ "math": 8142,
19
+ "code": 4485,
20
+ "reasoning": 456,
21
+ "Information seeking": 1194,
22
+ "Advice seeking": 76,
23
+ "Planning": 106,
24
+ "Data analysis": 162,
25
+ "Creative writing": 144,
26
+ "Brainstorming": 66,
27
+ "Editing": 22,
28
+ "Role playing": 2,
29
+ "general": 2000,
30
+ "math_or_general_judgment": 3150,
31
+ "materials_science": 794
32
+ },
33
+ "evidence_modes": {
34
+ "privileged": 2022,
35
+ "none": 14816,
36
+ "both": 1989,
37
+ "reference": 1972
38
+ },
39
+ "supervision_types": {
40
+ "absolute_verifiable": 8000,
41
+ "pairwise_preference": 12799
42
+ },
43
+ "labels": {
44
+ "YES": 11493,
45
+ "NO": 9306
46
+ },
47
+ "candidate_spans": {
48
+ "whole_completion": 20799
49
+ },
50
+ "avg_candidate_chars": 7476.3,
51
+ "max_candidate_chars": 72219,
52
+ "unique_groups": 10265
53
+ }