Datasets:
Publish v1.0.2 difficulty definition and audit
Browse filesDocumentation-only release relative to v1.0.1. Adds a pinned, source-grounded Tdoku difficulty definition, quantitative raw-pool audit, source-confounding analysis, and reproducibility limitations. The seven raw CSV files and four processed Parquet splits are byte-identical to v1.0.1.
- README.md +16 -4
- docs/BUILDING.md +1 -1
- docs/DIFFICULTY.md +165 -0
- metadata/audit.json +1 -1
- metadata/manifest.json +14 -10
- metadata/split_spec.json +1 -1
- raw/README.md +1 -1
- scripts/build_dataset.py +189 -4
README.md
CHANGED
|
@@ -25,10 +25,14 @@ configs:
|
|
| 25 |
# Sudoku DLM Reasoning
|
| 26 |
|
| 27 |
`stwistzz/Sudoku_DLM_Reasoning` is a deterministic 9x9 Sudoku benchmark for studying masked
|
| 28 |
-
diffusion language models, depth, and iterative decoding. Version 1.0.
|
| 29 |
trains only on `original`, `r0`, and `r1_4`; `r5_19` is held out for adjacent
|
| 30 |
difficulty extrapolation.
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
## Repository layout
|
| 33 |
|
| 34 |
- `raw/`: complete 1,415,420-row candidate snapshot used by this protocol
|
|
@@ -36,6 +40,7 @@ difficulty extrapolation.
|
|
| 36 |
- `metadata/`: source/release hashes, split specification, and audits
|
| 37 |
- `scripts/`: deterministic builder and independent verifier
|
| 38 |
- `docs/BUILDING.md`: end-to-end reconstruction instructions
|
|
|
|
| 39 |
|
| 40 |
Files under `raw/` are explicitly source data and are not loaded as extra splits.
|
| 41 |
Only the four `data/*.parquet` paths declared in the card metadata form the
|
|
@@ -57,9 +62,16 @@ small number of already-selected configurations; it is not a tuning split.
|
|
| 57 |
|
| 58 |
## Difficulty
|
| 59 |
|
| 60 |
-
`r0`, `r1_4`, and `r5_19` use
|
| 61 |
-
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
The evaluation sample deliberately covers subranges:
|
| 65 |
|
|
|
|
| 25 |
# Sudoku DLM Reasoning
|
| 26 |
|
| 27 |
`stwistzz/Sudoku_DLM_Reasoning` is a deterministic 9x9 Sudoku benchmark for studying masked
|
| 28 |
+
diffusion language models, depth, and iterative decoding. Version 1.0.2
|
| 29 |
trains only on `original`, `r0`, and `r1_4`; `r5_19` is held out for adjacent
|
| 30 |
difficulty extrapolation.
|
| 31 |
|
| 32 |
+
Version 1.0.2 is a documentation-only update relative to v1.0.1.
|
| 33 |
+
The seven raw CSV files and all four released Parquet splits are byte-identical;
|
| 34 |
+
only the difficulty definition, audit, and version metadata were added or updated.
|
| 35 |
+
|
| 36 |
## Repository layout
|
| 37 |
|
| 38 |
- `raw/`: complete 1,415,420-row candidate snapshot used by this protocol
|
|
|
|
| 40 |
- `metadata/`: source/release hashes, split specification, and audits
|
| 41 |
- `scripts/`: deterministic builder and independent verifier
|
| 42 |
- `docs/BUILDING.md`: end-to-end reconstruction instructions
|
| 43 |
+
- `docs/DIFFICULTY.md`: operational difficulty definition and quantitative audit
|
| 44 |
|
| 45 |
Files under `raw/` are explicitly source data and are not loaded as extra splits.
|
| 46 |
Only the four `data/*.parquet` paths declared in the card metadata form the
|
|
|
|
| 62 |
|
| 63 |
## Difficulty
|
| 64 |
|
| 65 |
+
`r0`, `r1_4`, and `r5_19` use an upstream Tdoku search measurement. In public
|
| 66 |
+
Tdoku commit `af426180dc53aef89b82868e7b3fdfcf42165654`, the counter increments when the
|
| 67 |
+
solver expands a binary band/stack-configuration decision after constraint propagation.
|
| 68 |
+
It is therefore best interpreted as visited search decision nodes, not recursion
|
| 69 |
+
depth, failed undo count, clue count, or human difficulty. `original` comes from
|
| 70 |
+
a separate easy collection and has no official rating on this scale.
|
| 71 |
+
|
| 72 |
+
See `docs/DIFFICULTY.md` for the DFS root, propagation and branch semantics,
|
| 73 |
+
bucket formulas, full raw-pool statistics, source confounding, and the upstream
|
| 74 |
+
rating-provenance limitation.
|
| 75 |
|
| 76 |
The evaluation sample deliberately covers subranges:
|
| 77 |
|
docs/BUILDING.md
CHANGED
|
@@ -29,7 +29,7 @@ machine-readable audits.
|
|
| 29 |
Verify the result independently:
|
| 30 |
|
| 31 |
```bash
|
| 32 |
-
python scripts/verify_dataset.py rebuilt-release --expected-version 1.0.
|
| 33 |
```
|
| 34 |
|
| 35 |
The expected processed split hashes are recorded in `metadata/manifest.json`.
|
|
|
|
| 29 |
Verify the result independently:
|
| 30 |
|
| 31 |
```bash
|
| 32 |
+
python scripts/verify_dataset.py rebuilt-release --expected-version 1.0.2
|
| 33 |
```
|
| 34 |
|
| 35 |
The expected processed split hashes are recorded in `metadata/manifest.json`.
|
docs/DIFFICULTY.md
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Difficulty definition and quantitative audit
|
| 2 |
+
|
| 3 |
+
This document defines the difficulty fields used by Sudoku DLM Reasoning release
|
| 4 |
+
`1.0.2`. Difficulty is an operational, solver-relative measurement;
|
| 5 |
+
it is not a human Sudoku grade and is not defined by the number of clues.
|
| 6 |
+
|
| 7 |
+
## 1. Provenance of the rating
|
| 8 |
+
|
| 9 |
+
For the Sudoku Extreme rows, the upstream `rating` column is copied into
|
| 10 |
+
`official_rating` and labeled `rating_type = tdoku_backtracks`. The converter
|
| 11 |
+
does not recompute the rating:
|
| 12 |
+
|
| 13 |
+
- Sudoku Extreme card: https://huggingface.co/datasets/sapientinc/sudoku-extreme
|
| 14 |
+
- Conversion code: https://github.com/hengyuf/diffusion-vs-ar/blob/ba0445f4d0808113bf08a9a9d8c7041086bfdf10/tools/prepare_sudoku_datasets.py
|
| 15 |
+
|
| 16 |
+
The upstream card describes the value as the number of backtracks required by
|
| 17 |
+
Tdoku. At public Tdoku commit `af426180dc53aef89b82868e7b3fdfcf42165654`, the counter is named
|
| 18 |
+
`num_guesses_` and is incremented whenever the DPLL solver expands a binary
|
| 19 |
+
configuration decision:
|
| 20 |
+
|
| 21 |
+
- Branch implementation: https://github.com/t-dillon/tdoku/blob/af426180dc53aef89b82868e7b3fdfcf42165654/src/solver_dpll_triad_simd.cc#L539-L559
|
| 22 |
+
- Branch-variable selection: https://github.com/t-dillon/tdoku/blob/af426180dc53aef89b82868e7b3fdfcf42165654/src/solver_dpll_triad_simd.cc#L473-L536
|
| 23 |
+
|
| 24 |
+
Operationally, `official_rating` is best interpreted as the number of search
|
| 25 |
+
decision nodes visited before the first solution, rather than literal failed
|
| 26 |
+
undo operations.
|
| 27 |
+
|
| 28 |
+
## 2. Constraint propagation and the DFS root
|
| 29 |
+
|
| 30 |
+
Tdoku does not begin search from an empty board or from the first empty cell.
|
| 31 |
+
For a standard 81-character puzzle it:
|
| 32 |
+
|
| 33 |
+
1. loads every given digit;
|
| 34 |
+
2. eliminates incompatible row, column, box, band, and stack configurations;
|
| 35 |
+
3. propagates those eliminations until the initialized state is consistent; and
|
| 36 |
+
4. calls depth-first search on that propagated partial state.
|
| 37 |
+
|
| 38 |
+
The initialization and call path are visible in that pinned public source:
|
| 39 |
+
|
| 40 |
+
- Initialization: https://github.com/t-dillon/tdoku/blob/af426180dc53aef89b82868e7b3fdfcf42165654/src/solver_dpll_triad_simd.cc#L612-L634
|
| 41 |
+
- Solve entry point: https://github.com/t-dillon/tdoku/blob/af426180dc53aef89b82868e7b3fdfcf42165654/src/solver_dpll_triad_simd.cc#L680-L693
|
| 42 |
+
|
| 43 |
+
Propagation applies only logical consequences of the current givens or branch
|
| 44 |
+
assumption. It makes no new hypothesis and is not counted by the rating. It can
|
| 45 |
+
end in a complete solution, a contradiction, or a fixed point that still has
|
| 46 |
+
multiple configurations.
|
| 47 |
+
|
| 48 |
+
This matters because two puzzles can both have rating zero while requiring very
|
| 49 |
+
different amounts of propagation.
|
| 50 |
+
|
| 51 |
+
## 3. What one branch means
|
| 52 |
+
|
| 53 |
+
For one digit in a three-row band (or a three-column stack), there are six
|
| 54 |
+
possible global placements across the three boxes. Tdoku represents these as
|
| 55 |
+
band configurations. When propagation leaves multiple configurations, the
|
| 56 |
+
branching heuristic selects:
|
| 57 |
+
|
| 58 |
+
1. the unresolved band or stack with the fewest configurations; then
|
| 59 |
+
2. the digit in that band or stack with the fewest configurations.
|
| 60 |
+
|
| 61 |
+
It then creates a binary decision:
|
| 62 |
+
|
| 63 |
+
- left branch: force the first remaining configuration;
|
| 64 |
+
- right branch: exclude that configuration and retain the others.
|
| 65 |
+
|
| 66 |
+
The counter increases once for this binary split. If the left branch fails and
|
| 67 |
+
the right branch immediately solves the puzzle, the count for that decision is
|
| 68 |
+
still one. A later split of the remaining configurations increases it again.
|
| 69 |
+
Therefore the rating is not the recursion depth, the number of filled cells, the
|
| 70 |
+
number of contradictions, or a human solving-step count.
|
| 71 |
+
|
| 72 |
+
## 4. Bucket definitions
|
| 73 |
+
|
| 74 |
+
The source converter applies these thresholds:
|
| 75 |
+
|
| 76 |
+
| release label | operational rule | interpretation |
|
| 77 |
+
|---|---:|---|
|
| 78 |
+
| `original` | no Tdoku rating | separate easy collection; not numerically calibrated to Extreme |
|
| 79 |
+
| `r0` | rating = 0 | propagation resolves the puzzle without a search decision |
|
| 80 |
+
| `r1_4` | 1 <= rating < 5 | 1--4 visited decision nodes |
|
| 81 |
+
| `r5_19` | 5 <= rating < 20 | 5--19 visited decision nodes |
|
| 82 |
+
|
| 83 |
+
The upstream converter also defines `r20_49`, `r50_99`, and `r100_plus`, but
|
| 84 |
+
those buckets are outside this v1 candidate pool. Thus `r5_19` is an adjacent
|
| 85 |
+
held-out difficulty band, not the hardest part of the upstream corpus.
|
| 86 |
+
|
| 87 |
+
## 5. Quantitative audit of the raw candidate pool
|
| 88 |
+
|
| 89 |
+
The following statistics were computed over all 1,415,420 rows included under
|
| 90 |
+
`raw/`. Rating and clue statistics use the full pool.
|
| 91 |
+
|
| 92 |
+
| bucket | rows | rating mean / median | clue mean / median | clue range |
|
| 93 |
+
|---|---:|---:|---:|---:|
|
| 94 |
+
| `original` | 101,000 | not rated | 33.813 / 34 | 29--37 |
|
| 95 |
+
| `r0` | 614,136 | 0 / 0 | 26.282 / 26 | 17--37 |
|
| 96 |
+
| `r1_4` | 588,453 | 1.976 / 2 | 25.604 / 26 | 17--31 |
|
| 97 |
+
| `r5_19` | 111,831 | 11.776 / 12 | 24.932 / 25 | 17--30 |
|
| 98 |
+
|
| 99 |
+
Clue count is not a substitute for this rating. Within `r1_4`, the Pearson
|
| 100 |
+
correlation between rating and clues is -0.035; within `r5_19` it is 0.002.
|
| 101 |
+
|
| 102 |
+
As an independent diagnostic, standard row/column/box naked-single propagation
|
| 103 |
+
was run over all 101,000 original rows and deterministic 20,000-row reservoir
|
| 104 |
+
samples of each Extreme bucket. The reservoir seeds were `20260816` for `r0`,
|
| 105 |
+
`20260817` for `r1_4`, and `20260818` for `r5_19`:
|
| 106 |
+
|
| 107 |
+
| bucket | rows checked | solved by naked singles |
|
| 108 |
+
|---|---:|---:|
|
| 109 |
+
| `original` | 101,000 | 100,959 (99.959%) |
|
| 110 |
+
| `r0` | 20,000 | 3,691 (18.455%) |
|
| 111 |
+
| `r1_4` | 20,000 | 0 |
|
| 112 |
+
| `r5_19` | 20,000 | 0 |
|
| 113 |
+
|
| 114 |
+
The 41 original rows that stalled under naked singles were all solved after
|
| 115 |
+
adding hidden-single propagation. This independent audit describes basic Sudoku
|
| 116 |
+
logic, not Tdoku's own internal propagation, which is configuration-based and
|
| 117 |
+
stronger.
|
| 118 |
+
|
| 119 |
+
## 6. Released train and evaluation distributions
|
| 120 |
+
|
| 121 |
+
The three training buckets are equal in size, but exact ratings inside `r1_4`
|
| 122 |
+
retain the upstream proportions:
|
| 123 |
+
|
| 124 |
+
| exact rating | train rows |
|
| 125 |
+
|---:|---:|
|
| 126 |
+
| 1 | 29,584 |
|
| 127 |
+
| 2 | 16,809 |
|
| 128 |
+
| 3 | 10,244 |
|
| 129 |
+
| 4 | 8,899 |
|
| 130 |
+
|
| 131 |
+
The main `r1_4` test allocation instead uses 250 rows at each exact rating 1,
|
| 132 |
+
2, 3, and 4. The `r5_19` test allocation uses 250 rows from each of `[5,8)`,
|
| 133 |
+
`[8,12)`, `[12,16)`, and `[16,20)`; `test_ood_confirm` uses 1,000 per range.
|
| 134 |
+
This supports per-rating or per-range reporting rather than only a bucket-wide
|
| 135 |
+
average.
|
| 136 |
+
|
| 137 |
+
## 7. Source confounding
|
| 138 |
+
|
| 139 |
+
Difficulty and source collection are not independent in the raw pool:
|
| 140 |
+
|
| 141 |
+
- `r0`: 77.40% `puzzles1_unbiased`, 16.28% `puzzles0_kaggle`, and 6.30%
|
| 142 |
+
`puzzles2_17_clue`;
|
| 143 |
+
- `r1_4`: 85.02% `puzzles1_unbiased`, 9.70%
|
| 144 |
+
`puzzles4_forum_hardest_1905`, and 3.40% `01_file1`;
|
| 145 |
+
- `r5_19`: 68.19% `puzzles4_forum_hardest_1905`, 28.15% `01_file1`, and only
|
| 146 |
+
2.18% `puzzles1_unbiased`.
|
| 147 |
+
|
| 148 |
+
Consequently, an `r5_19` result combines a Tdoku-rating shift, a held-out
|
| 149 |
+
training-exposure shift, and a source-distribution shift. It must not be
|
| 150 |
+
interpreted as a pure causal effect of search count.
|
| 151 |
+
|
| 152 |
+
Recommended reporting includes exact rating or subrange, source collection, and
|
| 153 |
+
clue count. A source- and clue-matched diagnostic set is appropriate when the
|
| 154 |
+
goal is to isolate the rating axis.
|
| 155 |
+
|
| 156 |
+
## 8. Reproducibility limitation
|
| 157 |
+
|
| 158 |
+
The public Sudoku Extreme card does not pin the Tdoku commit, build flags,
|
| 159 |
+
command, permutation policy, or seed used to create its rating column. This
|
| 160 |
+
release therefore preserves `official_rating` as an upstream measurement rather
|
| 161 |
+
than claiming to reproduce it.
|
| 162 |
+
|
| 163 |
+
For a fully controlled future rating, pin a Tdoku commit and configuration,
|
| 164 |
+
record the branch count for the exact stored puzzle, and optionally measure its
|
| 165 |
+
mean and variance over Sudoku-preserving isomorphic transformations.
|
metadata/audit.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"dataset_version": "1.0.
|
| 3 |
"pairwise_overlap": {
|
| 4 |
"test__vs__test_ood_confirm": {
|
| 5 |
"digit_normalized_id": 0,
|
|
|
|
| 1 |
{
|
| 2 |
+
"dataset_version": "1.0.2",
|
| 3 |
"pairwise_overlap": {
|
| 4 |
"test__vs__test_ood_confirm": {
|
| 5 |
"digit_normalized_id": 0,
|
metadata/manifest.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
{
|
| 2 |
"audit_file": "metadata/audit.json",
|
| 3 |
"dataset_id": "stwistzz/Sudoku_DLM_Reasoning",
|
| 4 |
-
"dataset_version": "1.0.
|
| 5 |
"files": {
|
| 6 |
"RAW_DATA_LICENSES.md": {
|
| 7 |
"bytes": 1252,
|
| 8 |
"sha256": "4749d8f59f442d90f1241e37ee2a6de27e0de0bc9b2712ec8a44a5a64e4a0c95"
|
| 9 |
},
|
| 10 |
"README.md": {
|
| 11 |
-
"bytes":
|
| 12 |
-
"sha256": "
|
| 13 |
},
|
| 14 |
"data/test.parquet": {
|
| 15 |
"bytes": 742254,
|
|
@@ -33,11 +33,15 @@
|
|
| 33 |
},
|
| 34 |
"docs/BUILDING.md": {
|
| 35 |
"bytes": 1228,
|
| 36 |
-
"sha256": "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
},
|
| 38 |
"metadata/audit.json": {
|
| 39 |
"bytes": 5465,
|
| 40 |
-
"sha256": "
|
| 41 |
},
|
| 42 |
"metadata/raw_manifest.json": {
|
| 43 |
"bytes": 2592,
|
|
@@ -45,11 +49,11 @@
|
|
| 45 |
},
|
| 46 |
"metadata/split_spec.json": {
|
| 47 |
"bytes": 849,
|
| 48 |
-
"sha256": "
|
| 49 |
},
|
| 50 |
"raw/README.md": {
|
| 51 |
"bytes": 1187,
|
| 52 |
-
"sha256": "
|
| 53 |
},
|
| 54 |
"raw/processed/sudoku_extreme_test_r0.csv": {
|
| 55 |
"bytes": 13913402,
|
|
@@ -95,15 +99,15 @@
|
|
| 95 |
"sha256": "1842dad6fc80950a344e79b6831aeacf39f51f9949742de90114bccb350a26a9"
|
| 96 |
},
|
| 97 |
"scripts/build_dataset.py": {
|
| 98 |
-
"bytes":
|
| 99 |
-
"sha256": "
|
| 100 |
},
|
| 101 |
"scripts/verify_dataset.py": {
|
| 102 |
"bytes": 10838,
|
| 103 |
"sha256": "1cc3a341225c6aa700ec6d675e675d75982ee6325682d643112000010e6571bd"
|
| 104 |
}
|
| 105 |
},
|
| 106 |
-
"generated_at_utc": "2026-08-
|
| 107 |
"raw_snapshot_file": "metadata/raw_manifest.json",
|
| 108 |
"schema": [
|
| 109 |
{
|
|
|
|
| 1 |
{
|
| 2 |
"audit_file": "metadata/audit.json",
|
| 3 |
"dataset_id": "stwistzz/Sudoku_DLM_Reasoning",
|
| 4 |
+
"dataset_version": "1.0.2",
|
| 5 |
"files": {
|
| 6 |
"RAW_DATA_LICENSES.md": {
|
| 7 |
"bytes": 1252,
|
| 8 |
"sha256": "4749d8f59f442d90f1241e37ee2a6de27e0de0bc9b2712ec8a44a5a64e4a0c95"
|
| 9 |
},
|
| 10 |
"README.md": {
|
| 11 |
+
"bytes": 6164,
|
| 12 |
+
"sha256": "350518f69a660d092b34a73a0b47f500ec7407ce814e6c07af39af9db7a37bde"
|
| 13 |
},
|
| 14 |
"data/test.parquet": {
|
| 15 |
"bytes": 742254,
|
|
|
|
| 33 |
},
|
| 34 |
"docs/BUILDING.md": {
|
| 35 |
"bytes": 1228,
|
| 36 |
+
"sha256": "360e3e44a58cefcdb883d89ab05ecc49efdba1b46e3453648ef6f7f782f29a64"
|
| 37 |
+
},
|
| 38 |
+
"docs/DIFFICULTY.md": {
|
| 39 |
+
"bytes": 7685,
|
| 40 |
+
"sha256": "5fcbc6349b289af7dc013b4b0ebc00b49d3a5d09ec74c3105f928f2bf2005fd5"
|
| 41 |
},
|
| 42 |
"metadata/audit.json": {
|
| 43 |
"bytes": 5465,
|
| 44 |
+
"sha256": "716a623debed5e9e699de4092619585e1822651fb1857b72344c451ca721b345"
|
| 45 |
},
|
| 46 |
"metadata/raw_manifest.json": {
|
| 47 |
"bytes": 2592,
|
|
|
|
| 49 |
},
|
| 50 |
"metadata/split_spec.json": {
|
| 51 |
"bytes": 849,
|
| 52 |
+
"sha256": "e080a20ae0e8dd90c71c3bc5be5a2cdaac36d42f27328702e2133a137548cdeb"
|
| 53 |
},
|
| 54 |
"raw/README.md": {
|
| 55 |
"bytes": 1187,
|
| 56 |
+
"sha256": "dfc414593ecec884d4719f438d74e62ed1735d2909d444f2576d038a893ff3ca"
|
| 57 |
},
|
| 58 |
"raw/processed/sudoku_extreme_test_r0.csv": {
|
| 59 |
"bytes": 13913402,
|
|
|
|
| 99 |
"sha256": "1842dad6fc80950a344e79b6831aeacf39f51f9949742de90114bccb350a26a9"
|
| 100 |
},
|
| 101 |
"scripts/build_dataset.py": {
|
| 102 |
+
"bytes": 53351,
|
| 103 |
+
"sha256": "b4b921f6380b18e618a920f8b2ec102ef6033dc596d9081472d937745082960b"
|
| 104 |
},
|
| 105 |
"scripts/verify_dataset.py": {
|
| 106 |
"bytes": 10838,
|
| 107 |
"sha256": "1cc3a341225c6aa700ec6d675e675d75982ee6325682d643112000010e6571bd"
|
| 108 |
}
|
| 109 |
},
|
| 110 |
+
"generated_at_utc": "2026-08-15T19:57:19.021875+00:00",
|
| 111 |
"raw_snapshot_file": "metadata/raw_manifest.json",
|
| 112 |
"schema": [
|
| 113 |
{
|
metadata/split_spec.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
"train_per_bucket": 65536,
|
| 15 |
"validation_per_bucket": 2048
|
| 16 |
},
|
| 17 |
-
"dataset_version": "1.0.
|
| 18 |
"ood_bucket": "r5_19",
|
| 19 |
"seed": "20260815",
|
| 20 |
"selection": "metadata-stratified bottom-k SHA-256 rank",
|
|
|
|
| 14 |
"train_per_bucket": 65536,
|
| 15 |
"validation_per_bucket": 2048
|
| 16 |
},
|
| 17 |
+
"dataset_version": "1.0.2",
|
| 18 |
"ood_bucket": "r5_19",
|
| 19 |
"seed": "20260815",
|
| 20 |
"selection": "metadata-stratified bottom-k SHA-256 rank",
|
raw/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Raw source snapshot
|
| 2 |
|
| 3 |
This directory is explicitly labeled **raw**. It contains unmodified copies of
|
| 4 |
-
the seven upstream CSV files scanned by the `1.0.
|
| 5 |
|
| 6 |
| raw path | upstream split | difficulty | rows |
|
| 7 |
|---|---|---|---:|
|
|
|
|
| 1 |
# Raw source snapshot
|
| 2 |
|
| 3 |
This directory is explicitly labeled **raw**. It contains unmodified copies of
|
| 4 |
+
the seven upstream CSV files scanned by the `1.0.2` builder:
|
| 5 |
|
| 6 |
| raw path | upstream split | difficulty | rows |
|
| 7 |
|---|---|---|---:|
|
scripts/build_dataset.py
CHANGED
|
@@ -32,11 +32,12 @@ import pyarrow as pa
|
|
| 32 |
import pyarrow.parquet as pq
|
| 33 |
|
| 34 |
|
| 35 |
-
DATASET_VERSION = "1.0.
|
| 36 |
DEFAULT_DATASET_ID = "stwistzz/Sudoku_DLM_Reasoning"
|
| 37 |
DEFAULT_SEED = "20260815"
|
| 38 |
SOURCE_REPO = "fhyfhy/diffusion-vs-ar-hard-sudoku"
|
| 39 |
SOURCE_REVISION = "527859f62c745c16833aded130ad9f9ddddb76af"
|
|
|
|
| 40 |
|
| 41 |
TRAIN_PER_BUCKET = 65_536
|
| 42 |
VALIDATION_PER_BUCKET = 2_048
|
|
@@ -663,6 +664,175 @@ Timestamp fields may differ across rebuilds; the Parquet content hashes must not
|
|
| 663 |
"""
|
| 664 |
|
| 665 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 666 |
def render_raw_license_notice() -> str:
|
| 667 |
return """# Raw data licensing and provenance notice
|
| 668 |
|
|
@@ -756,6 +926,10 @@ diffusion language models, depth, and iterative decoding. Version {DATASET_VERSI
|
|
| 756 |
trains only on `original`, `r0`, and `r1_4`; `r5_19` is held out for adjacent
|
| 757 |
difficulty extrapolation.
|
| 758 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 759 |
## Repository layout
|
| 760 |
|
| 761 |
- `raw/`: complete 1,415,420-row candidate snapshot used by this protocol
|
|
@@ -763,6 +937,7 @@ difficulty extrapolation.
|
|
| 763 |
- `metadata/`: source/release hashes, split specification, and audits
|
| 764 |
- `scripts/`: deterministic builder and independent verifier
|
| 765 |
- `docs/BUILDING.md`: end-to-end reconstruction instructions
|
|
|
|
| 766 |
|
| 767 |
Files under `raw/` are explicitly source data and are not loaded as extra splits.
|
| 768 |
Only the four `data/*.parquet` paths declared in the card metadata form the
|
|
@@ -784,9 +959,16 @@ small number of already-selected configurations; it is not a tuning split.
|
|
| 784 |
|
| 785 |
## Difficulty
|
| 786 |
|
| 787 |
-
`r0`, `r1_4`, and `r5_19` use
|
| 788 |
-
|
| 789 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 790 |
|
| 791 |
The evaluation sample deliberately covers subranges:
|
| 792 |
|
|
@@ -1072,6 +1254,9 @@ def build_dataset(
|
|
| 1072 |
(docs_dir / "BUILDING.md").write_text(
|
| 1073 |
render_building_guide(dataset_id, seed), encoding="utf-8"
|
| 1074 |
)
|
|
|
|
|
|
|
|
|
|
| 1075 |
shutil.copy2(Path(__file__), scripts_dir / "build_dataset.py")
|
| 1076 |
|
| 1077 |
verifier_candidates = (
|
|
|
|
| 32 |
import pyarrow.parquet as pq
|
| 33 |
|
| 34 |
|
| 35 |
+
DATASET_VERSION = "1.0.2"
|
| 36 |
DEFAULT_DATASET_ID = "stwistzz/Sudoku_DLM_Reasoning"
|
| 37 |
DEFAULT_SEED = "20260815"
|
| 38 |
SOURCE_REPO = "fhyfhy/diffusion-vs-ar-hard-sudoku"
|
| 39 |
SOURCE_REVISION = "527859f62c745c16833aded130ad9f9ddddb76af"
|
| 40 |
+
TDOKU_REFERENCE_REVISION = "af426180dc53aef89b82868e7b3fdfcf42165654"
|
| 41 |
|
| 42 |
TRAIN_PER_BUCKET = 65_536
|
| 43 |
VALIDATION_PER_BUCKET = 2_048
|
|
|
|
| 664 |
"""
|
| 665 |
|
| 666 |
|
| 667 |
+
def render_difficulty_guide() -> str:
|
| 668 |
+
return f"""# Difficulty definition and quantitative audit
|
| 669 |
+
|
| 670 |
+
This document defines the difficulty fields used by Sudoku DLM Reasoning release
|
| 671 |
+
`{DATASET_VERSION}`. Difficulty is an operational, solver-relative measurement;
|
| 672 |
+
it is not a human Sudoku grade and is not defined by the number of clues.
|
| 673 |
+
|
| 674 |
+
## 1. Provenance of the rating
|
| 675 |
+
|
| 676 |
+
For the Sudoku Extreme rows, the upstream `rating` column is copied into
|
| 677 |
+
`official_rating` and labeled `rating_type = tdoku_backtracks`. The converter
|
| 678 |
+
does not recompute the rating:
|
| 679 |
+
|
| 680 |
+
- Sudoku Extreme card: https://huggingface.co/datasets/sapientinc/sudoku-extreme
|
| 681 |
+
- Conversion code: https://github.com/hengyuf/diffusion-vs-ar/blob/ba0445f4d0808113bf08a9a9d8c7041086bfdf10/tools/prepare_sudoku_datasets.py
|
| 682 |
+
|
| 683 |
+
The upstream card describes the value as the number of backtracks required by
|
| 684 |
+
Tdoku. At public Tdoku commit `{TDOKU_REFERENCE_REVISION}`, the counter is named
|
| 685 |
+
`num_guesses_` and is incremented whenever the DPLL solver expands a binary
|
| 686 |
+
configuration decision:
|
| 687 |
+
|
| 688 |
+
- Branch implementation: https://github.com/t-dillon/tdoku/blob/{TDOKU_REFERENCE_REVISION}/src/solver_dpll_triad_simd.cc#L539-L559
|
| 689 |
+
- Branch-variable selection: https://github.com/t-dillon/tdoku/blob/{TDOKU_REFERENCE_REVISION}/src/solver_dpll_triad_simd.cc#L473-L536
|
| 690 |
+
|
| 691 |
+
Operationally, `official_rating` is best interpreted as the number of search
|
| 692 |
+
decision nodes visited before the first solution, rather than literal failed
|
| 693 |
+
undo operations.
|
| 694 |
+
|
| 695 |
+
## 2. Constraint propagation and the DFS root
|
| 696 |
+
|
| 697 |
+
Tdoku does not begin search from an empty board or from the first empty cell.
|
| 698 |
+
For a standard 81-character puzzle it:
|
| 699 |
+
|
| 700 |
+
1. loads every given digit;
|
| 701 |
+
2. eliminates incompatible row, column, box, band, and stack configurations;
|
| 702 |
+
3. propagates those eliminations until the initialized state is consistent; and
|
| 703 |
+
4. calls depth-first search on that propagated partial state.
|
| 704 |
+
|
| 705 |
+
The initialization and call path are visible in that pinned public source:
|
| 706 |
+
|
| 707 |
+
- Initialization: https://github.com/t-dillon/tdoku/blob/{TDOKU_REFERENCE_REVISION}/src/solver_dpll_triad_simd.cc#L612-L634
|
| 708 |
+
- Solve entry point: https://github.com/t-dillon/tdoku/blob/{TDOKU_REFERENCE_REVISION}/src/solver_dpll_triad_simd.cc#L680-L693
|
| 709 |
+
|
| 710 |
+
Propagation applies only logical consequences of the current givens or branch
|
| 711 |
+
assumption. It makes no new hypothesis and is not counted by the rating. It can
|
| 712 |
+
end in a complete solution, a contradiction, or a fixed point that still has
|
| 713 |
+
multiple configurations.
|
| 714 |
+
|
| 715 |
+
This matters because two puzzles can both have rating zero while requiring very
|
| 716 |
+
different amounts of propagation.
|
| 717 |
+
|
| 718 |
+
## 3. What one branch means
|
| 719 |
+
|
| 720 |
+
For one digit in a three-row band (or a three-column stack), there are six
|
| 721 |
+
possible global placements across the three boxes. Tdoku represents these as
|
| 722 |
+
band configurations. When propagation leaves multiple configurations, the
|
| 723 |
+
branching heuristic selects:
|
| 724 |
+
|
| 725 |
+
1. the unresolved band or stack with the fewest configurations; then
|
| 726 |
+
2. the digit in that band or stack with the fewest configurations.
|
| 727 |
+
|
| 728 |
+
It then creates a binary decision:
|
| 729 |
+
|
| 730 |
+
- left branch: force the first remaining configuration;
|
| 731 |
+
- right branch: exclude that configuration and retain the others.
|
| 732 |
+
|
| 733 |
+
The counter increases once for this binary split. If the left branch fails and
|
| 734 |
+
the right branch immediately solves the puzzle, the count for that decision is
|
| 735 |
+
still one. A later split of the remaining configurations increases it again.
|
| 736 |
+
Therefore the rating is not the recursion depth, the number of filled cells, the
|
| 737 |
+
number of contradictions, or a human solving-step count.
|
| 738 |
+
|
| 739 |
+
## 4. Bucket definitions
|
| 740 |
+
|
| 741 |
+
The source converter applies these thresholds:
|
| 742 |
+
|
| 743 |
+
| release label | operational rule | interpretation |
|
| 744 |
+
|---|---:|---|
|
| 745 |
+
| `original` | no Tdoku rating | separate easy collection; not numerically calibrated to Extreme |
|
| 746 |
+
| `r0` | rating = 0 | propagation resolves the puzzle without a search decision |
|
| 747 |
+
| `r1_4` | 1 <= rating < 5 | 1--4 visited decision nodes |
|
| 748 |
+
| `r5_19` | 5 <= rating < 20 | 5--19 visited decision nodes |
|
| 749 |
+
|
| 750 |
+
The upstream converter also defines `r20_49`, `r50_99`, and `r100_plus`, but
|
| 751 |
+
those buckets are outside this v1 candidate pool. Thus `r5_19` is an adjacent
|
| 752 |
+
held-out difficulty band, not the hardest part of the upstream corpus.
|
| 753 |
+
|
| 754 |
+
## 5. Quantitative audit of the raw candidate pool
|
| 755 |
+
|
| 756 |
+
The following statistics were computed over all 1,415,420 rows included under
|
| 757 |
+
`raw/`. Rating and clue statistics use the full pool.
|
| 758 |
+
|
| 759 |
+
| bucket | rows | rating mean / median | clue mean / median | clue range |
|
| 760 |
+
|---|---:|---:|---:|---:|
|
| 761 |
+
| `original` | 101,000 | not rated | 33.813 / 34 | 29--37 |
|
| 762 |
+
| `r0` | 614,136 | 0 / 0 | 26.282 / 26 | 17--37 |
|
| 763 |
+
| `r1_4` | 588,453 | 1.976 / 2 | 25.604 / 26 | 17--31 |
|
| 764 |
+
| `r5_19` | 111,831 | 11.776 / 12 | 24.932 / 25 | 17--30 |
|
| 765 |
+
|
| 766 |
+
Clue count is not a substitute for this rating. Within `r1_4`, the Pearson
|
| 767 |
+
correlation between rating and clues is -0.035; within `r5_19` it is 0.002.
|
| 768 |
+
|
| 769 |
+
As an independent diagnostic, standard row/column/box naked-single propagation
|
| 770 |
+
was run over all 101,000 original rows and deterministic 20,000-row reservoir
|
| 771 |
+
samples of each Extreme bucket. The reservoir seeds were `20260816` for `r0`,
|
| 772 |
+
`20260817` for `r1_4`, and `20260818` for `r5_19`:
|
| 773 |
+
|
| 774 |
+
| bucket | rows checked | solved by naked singles |
|
| 775 |
+
|---|---:|---:|
|
| 776 |
+
| `original` | 101,000 | 100,959 (99.959%) |
|
| 777 |
+
| `r0` | 20,000 | 3,691 (18.455%) |
|
| 778 |
+
| `r1_4` | 20,000 | 0 |
|
| 779 |
+
| `r5_19` | 20,000 | 0 |
|
| 780 |
+
|
| 781 |
+
The 41 original rows that stalled under naked singles were all solved after
|
| 782 |
+
adding hidden-single propagation. This independent audit describes basic Sudoku
|
| 783 |
+
logic, not Tdoku's own internal propagation, which is configuration-based and
|
| 784 |
+
stronger.
|
| 785 |
+
|
| 786 |
+
## 6. Released train and evaluation distributions
|
| 787 |
+
|
| 788 |
+
The three training buckets are equal in size, but exact ratings inside `r1_4`
|
| 789 |
+
retain the upstream proportions:
|
| 790 |
+
|
| 791 |
+
| exact rating | train rows |
|
| 792 |
+
|---:|---:|
|
| 793 |
+
| 1 | 29,584 |
|
| 794 |
+
| 2 | 16,809 |
|
| 795 |
+
| 3 | 10,244 |
|
| 796 |
+
| 4 | 8,899 |
|
| 797 |
+
|
| 798 |
+
The main `r1_4` test allocation instead uses 250 rows at each exact rating 1,
|
| 799 |
+
2, 3, and 4. The `r5_19` test allocation uses 250 rows from each of `[5,8)`,
|
| 800 |
+
`[8,12)`, `[12,16)`, and `[16,20)`; `test_ood_confirm` uses 1,000 per range.
|
| 801 |
+
This supports per-rating or per-range reporting rather than only a bucket-wide
|
| 802 |
+
average.
|
| 803 |
+
|
| 804 |
+
## 7. Source confounding
|
| 805 |
+
|
| 806 |
+
Difficulty and source collection are not independent in the raw pool:
|
| 807 |
+
|
| 808 |
+
- `r0`: 77.40% `puzzles1_unbiased`, 16.28% `puzzles0_kaggle`, and 6.30%
|
| 809 |
+
`puzzles2_17_clue`;
|
| 810 |
+
- `r1_4`: 85.02% `puzzles1_unbiased`, 9.70%
|
| 811 |
+
`puzzles4_forum_hardest_1905`, and 3.40% `01_file1`;
|
| 812 |
+
- `r5_19`: 68.19% `puzzles4_forum_hardest_1905`, 28.15% `01_file1`, and only
|
| 813 |
+
2.18% `puzzles1_unbiased`.
|
| 814 |
+
|
| 815 |
+
Consequently, an `r5_19` result combines a Tdoku-rating shift, a held-out
|
| 816 |
+
training-exposure shift, and a source-distribution shift. It must not be
|
| 817 |
+
interpreted as a pure causal effect of search count.
|
| 818 |
+
|
| 819 |
+
Recommended reporting includes exact rating or subrange, source collection, and
|
| 820 |
+
clue count. A source- and clue-matched diagnostic set is appropriate when the
|
| 821 |
+
goal is to isolate the rating axis.
|
| 822 |
+
|
| 823 |
+
## 8. Reproducibility limitation
|
| 824 |
+
|
| 825 |
+
The public Sudoku Extreme card does not pin the Tdoku commit, build flags,
|
| 826 |
+
command, permutation policy, or seed used to create its rating column. This
|
| 827 |
+
release therefore preserves `official_rating` as an upstream measurement rather
|
| 828 |
+
than claiming to reproduce it.
|
| 829 |
+
|
| 830 |
+
For a fully controlled future rating, pin a Tdoku commit and configuration,
|
| 831 |
+
record the branch count for the exact stored puzzle, and optionally measure its
|
| 832 |
+
mean and variance over Sudoku-preserving isomorphic transformations.
|
| 833 |
+
"""
|
| 834 |
+
|
| 835 |
+
|
| 836 |
def render_raw_license_notice() -> str:
|
| 837 |
return """# Raw data licensing and provenance notice
|
| 838 |
|
|
|
|
| 926 |
trains only on `original`, `r0`, and `r1_4`; `r5_19` is held out for adjacent
|
| 927 |
difficulty extrapolation.
|
| 928 |
|
| 929 |
+
Version {DATASET_VERSION} is a documentation-only update relative to v1.0.1.
|
| 930 |
+
The seven raw CSV files and all four released Parquet splits are byte-identical;
|
| 931 |
+
only the difficulty definition, audit, and version metadata were added or updated.
|
| 932 |
+
|
| 933 |
## Repository layout
|
| 934 |
|
| 935 |
- `raw/`: complete 1,415,420-row candidate snapshot used by this protocol
|
|
|
|
| 937 |
- `metadata/`: source/release hashes, split specification, and audits
|
| 938 |
- `scripts/`: deterministic builder and independent verifier
|
| 939 |
- `docs/BUILDING.md`: end-to-end reconstruction instructions
|
| 940 |
+
- `docs/DIFFICULTY.md`: operational difficulty definition and quantitative audit
|
| 941 |
|
| 942 |
Files under `raw/` are explicitly source data and are not loaded as extra splits.
|
| 943 |
Only the four `data/*.parquet` paths declared in the card metadata form the
|
|
|
|
| 959 |
|
| 960 |
## Difficulty
|
| 961 |
|
| 962 |
+
`r0`, `r1_4`, and `r5_19` use an upstream Tdoku search measurement. In public
|
| 963 |
+
Tdoku commit `{TDOKU_REFERENCE_REVISION}`, the counter increments when the
|
| 964 |
+
solver expands a binary band/stack-configuration decision after constraint propagation.
|
| 965 |
+
It is therefore best interpreted as visited search decision nodes, not recursion
|
| 966 |
+
depth, failed undo count, clue count, or human difficulty. `original` comes from
|
| 967 |
+
a separate easy collection and has no official rating on this scale.
|
| 968 |
+
|
| 969 |
+
See `docs/DIFFICULTY.md` for the DFS root, propagation and branch semantics,
|
| 970 |
+
bucket formulas, full raw-pool statistics, source confounding, and the upstream
|
| 971 |
+
rating-provenance limitation.
|
| 972 |
|
| 973 |
The evaluation sample deliberately covers subranges:
|
| 974 |
|
|
|
|
| 1254 |
(docs_dir / "BUILDING.md").write_text(
|
| 1255 |
render_building_guide(dataset_id, seed), encoding="utf-8"
|
| 1256 |
)
|
| 1257 |
+
(docs_dir / "DIFFICULTY.md").write_text(
|
| 1258 |
+
render_difficulty_guide(), encoding="utf-8"
|
| 1259 |
+
)
|
| 1260 |
shutil.copy2(Path(__file__), scripts_dir / "build_dataset.py")
|
| 1261 |
|
| 1262 |
verifier_candidates = (
|