Download README.md from GOVINDFROM/parallel-consistent-masked-diffusion: direct link, hf CLI and curl.
- Browser
- Download file 7.19 kB
-
https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/resolve/main/README.md
- Command line
-
hf download hf://GOVINDFROM/parallel-consistent-masked-diffusion/README.md
-
curl -L -o README.md https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/resolve/main/README.md
license: apache-2.0
tags:
- masked-diffusion
- discrete-diffusion
- constraint-satisfaction
- sudoku
- recurrent-transformer
- from-scratch
Recursive Masked Diffusion on Sudoku
Constraint propagation is an iterative algorithm; masked diffusion models are trained as fixed-depth denoisers. Making the denoiser recurrent β one weight-shared block applied many times, supervised at every application β reaches 99.70% on hard Sudoku with 212k parameters, where a 37.9M-parameter feed-forward denoiser reaches 88.90%.
Trained from scratch. No pretrained weights, no pretrained tokenizer.
Code: https://github.com/GIND123/MSML612
Revision experiments (December 2026)
Run in response to reviewer comments; full write-up, weights, test sets and logs
in revision/
(README).
| question | result |
|---|---|
| NCM trained on our data, to its full 50,000 generator updates | 3.9% on our test set, against our 99.70%, with 4.5Γ our training compute |
| Published NCM at its own clue counts (40 / 35 / 30) | 99.1 / 96.1 / 86.6%; ours 100.0 / 99.9 / 99.9% |
| Our model zero-shot on the RRN benchmark (18,000 puzzles, 17β34 clues) | 99.91% at 61 passes, 99.69% at one; retrained on RRN, 99.88%. Recurrent Transformer reports 99.5% trained on RRN |
| Second seed of the injection-ON arm | injection worth β0.95 at the operating point (was +0.05 at n=1); retraction stands |
Benchmark
1,000 held-out minimal Sudoku puzzles, 20β30 clues (mean 24.4). Uniqueness verified after every cell removal; train/test solutions disjoint even up to digit relabelling. Metric: board accuracy, all 81 cells correct.
Results
| method | params | 1 pass | best |
|---|---|---|---|
| constraint propagation (no search)β | β | β | 42.90% |
| greedy MRV | β | β | 5.90% |
| autoregressive prefix-LM | 2.4M | β | 0.30% |
| direct recurrent classifier* | 212k | 10.5% | 31.00% |
| recurrent, no input injection (batch 64) | 212k | β | 94.10% |
| feed-forward diffusion, MDLM | 37.9M | 4.40% | 88.15% |
| feed-forward diffusion, schedule-matched | 37.9M | 40.10% | 88.90% |
| 32 distinct layers, no weight sharing | 6.34M | 70.20% | 94.50% |
| recurrent diffusion, MDLM | 212k | 87.35% | 96.55% |
| recurrent, no deep supervision | 212k | 93.35% | 97.75% |
| recurrent diffusion, full method | 212k | 97.35% | 99.70% |
| full backtracking search | β | β | 100% (423 nodes) |
* Our reimplementation of the published recurrent classifier reaches 31% against their reported 99.5%. That is a failed reproduction on our side, not evidence against their method, and it is not used as a comparison.
β An earlier version of this card gave 3.00%. Our solver had a bug (it could place a digit twice in one unit); fixed, it solves 42.90%. See the GitHub README Β§2.
Ablations
Compare only within a batch size. An earlier version of this card pooled a 32-layer run at batch 256 (94.50%) with one at batch 64 (83.40%) into a single "88.95%", and drew two conclusions from the artefact. Both were wrong and are corrected here.
At batch 256:
| step | params | board | gain |
|---|---|---|---|
| feed-forward, d=512, 12 layers | 37.9M | 88.90% (n=2) | β |
| feed-forward, d=128, 32 layers | 6.34M | 94.50% (n=1) | +5.60 |
| + weight sharing, d=128, 1 layer Γ 32 | 212k | 99.70% (n=2) | +5.20 |
Parameters fall monotonically, accuracy rises monotonically: 37.9M β 6.34M β 212k against 88.90% β 94.50% β 99.70%.
At batch 64, injection off on both sides:
| step | params | board | gain |
|---|---|---|---|
| feed-forward, d=128, 32 layers | 6.34M | 83.40% (n=1) | β |
| + weight sharing | 212k | 94.10% (n=2) | +10.70 |
Corrections. "Depth alone is worth nothing (+0.05)" β wrong and backwards;
at matched batch size the deeper, narrower, 6Γ smaller model gains +5.60.
"Input injection is worth +5.60" β retracted, see below.
Removing either from the full method: deep supervision β1.95, schedule matching β3.15.
Recurrence extrapolates past its training depth
Trained at R = 32, evaluated elsewhere without retraining:
| R | 1 | 4 | 8 | 16 | 32 | 64 | 128 |
|---|---|---|---|---|---|---|---|
| board | 0.10% | 48.40% | 82.00% | 92.40% | 98.30% | 99.40% | 99.10% / 39.70% |
2Γ extrapolation is reliable; 4Γ collapses on one seed.
The instructive failure
Both non-diffusion baselines reach lower training loss than our method and solve almost nothing β AR at 0.0486 loss gives 0.30% boards, direct all-cell supervision at 0.0722 gives 55%. AR's errors compound unrecoverably; all-cell supervision is dominated by copying the given clues. Low loss, no capability.
Honest limits
- Published comparison is across different puzzle distributions: our 20β30
clue range sits inside the Recurrent Transformer's 17β34 but excludes the
hardest 17-clue instances, so 99.70% at 212k reads as competitive with their
99.5% at 211k, not better. On RRN's own test split, zero-shot, the same
checkpoint scores 99.91% (
revision/); that is our measurement against their reported number, not a rerun of their model. - Input injection is retracted as a contribution. In a matched test β
identical architecture, batch, and step count, with R-MDM's step embedding on
both sides β it is worth +0.05 points (96.85% β 96.90%, best decode). The
previously claimed +5.60 compared an injection-ON arm at batch 256 against an
injection-OFF arm at batch 64; it measured batch size. The single injection-ON
seed lands inside the two-seed injection-OFF range at five of six decoding
budgets. All three arms stopped at step 80k of 110k on a wall-clock limit, and
the ON side is n=1; we could not add seeds, as the allocation had 3,030
billing-minutes left against ~3,600 for one run. A second ON seed, trained
later on rented compute (
revision/), moves the effect to β0.95. - The SATNet split is not used: constraint propagation alone solves 100% of it.
Verification
python reproduce.py downloads the test set and checkpoints and re-measures every
system on the same 1,000 puzzles, printing each result beside the reported one:
ok constraint propagation, no search 42.90% reported 42.90%
ok greedy MRV, one sweep 5.90% reported 5.90%
ok full backtracking search 100.00% reported 100.00% 423 nodes/puzzle
ok ours, 1 pass 97.30% reported 97.35% 212k params
ok ours, 61 passes 99.50% reported 99.70% 212k params
ok NCM sudoku-hard 30.50% reported 30.40% 12 levels
6 of 6 measurements matched the reported figures within 1.0 points.
The diffusion decoders commit sampled tokens rather than the argmax, so they move by a few tenths between runs; the classical solvers are deterministic.