# Revision experiments: Recursive Masked Diffusion on Sudoku (MSML612) Experiments run in December 2026 in response to reviewer comments, on one rented NVIDIA A100-SXM4-40GB (Lambda Cloud, budget capped at $50). Every number below is read from a result file in this directory by `build_readme.py`. Nothing here replaces the original runs; it adds to them. Weights, test-set arrays and logs: [huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision). Code: [github.com/GIND123/MSML612](https://github.com/GIND123/MSML612). > **Still training:** 32-layer seed 1. Those cells read *running* and are filled in when the run finishes. | reviewer issue | what was run | section | |---|---|---| | NCM trained on our data was inconclusive (stopped at 22,405 of 50,000 updates) | The same run resumed from its checkpoint to the full 50,000 updates | [1](#1-ncm-trained-on-our-data) | | The published NCM was evaluated out of distribution (30.4%) | Test sets at NCM's own clue counts (40 / 35 / 30); every model scored on them | [2](#2-distribution-shift-ncms-own-difficulty-levels) | | Unequal training and inference budgets | Training and inference FLOPs measured for both models | [3](#3-compute-measured) | | Limited seeds | Second seed of the injection-ON arm (README §2b) and of the 32-layer arm | [4](#4-additional-seeds) | | Failed reproduction of the Recurrent Transformer (31% vs 99.5%) | Our model on the RRN benchmark the Recurrent Transformer reports on | [5](#5-the-rrn-benchmark) | | `sudh-full-s0/model.pt` missing | Searched Zaratan; documented which weights are gone and published the surviving logs | [6](#6-weights-that-no-longer-exist) | ## 1. NCM trained on our data The official NCM modules (HazyResearch/ncm @ `af2cf6f`), randomly initialised and trained on our 100,000 training puzzles by [`ncm/train_same_data.py`](https://github.com/GIND123/MSML612/blob/main/ncm/train_same_data.py). The first run stopped at 22,405 of 50,000 generator updates with its learning rate still at 1.9e-4. It was resumed (`--resume-from`) from its saved model, optimizer and RNG state, with the trained tokenizer reused unchanged, on the same cosine schedule, to the full 50,000 updates at batch 256 (the paper uses 1,024). | test set | clues | 22,405 updates | **50,000 updates** | |---|---|---|---| | **our benchmark** | 21–28 | 2.2% | **3.9%** | | NCM `sudoku-easy` level | 40 | 94.2% | **96.3%** | | NCM `sudoku-medium` level | 35 | 71.2% | **79.8%** | | NCM `sudoku-hard` level | 30 | 26.7% | **36.6%** | Generator: 50,000 / 50,000 updates, 12,800,000 training examples seen (128 epochs of the 100k split), 25.5M parameters. Tokenizer: 10,000 updates, 14.9M parameters, training-set reconstruction 100% exact. Test data opened once, after the final checkpoint; no test-based checkpoint selection. On our test set NCM trained on our data solves **3.9%** of boards (4.4% legal, 93.4% keep every clue), against 99.70% for our 212k-parameter model on the same split, the same 1,000 puzzles and about 4.5× less training compute (§3). Finishing the schedule moved it by under two points. Accuracy falls steeply with clue count, from 96% at 40 clues to under 40% at 30: NCM trained on our split learns Sudoku and fails where the puzzles become hard. ![NCM on our data: training curves](ncm-same-data-s0-resumed/training_curves.png) The 22,405-update model scored 2.4% on our test set when first evaluated and 2.2% when re-evaluated here on a different A100 (greedy decoding; the 2-puzzle difference is bf16 kernel nondeterminism). **What this does not show.** This is our training loop around the official modules, not the authors' trainer, at a quarter of the paper's batch size and one seed. It removes the different-training-data confound; it does not establish what NCM reaches with the authors' own recipe. ## 2. Distribution shift: NCM's own difficulty levels 1,000 puzzles at each of NCM's fixed clue counts, generated by [`ncm/make_clue_sets.py`](https://github.com/GIND123/MSML612/blob/main/ncm/make_clue_sets.py) with the same solution sampler and per-removal uniqueness check as our benchmark, on seeds disjoint from training (0 of 1,000 solutions shared with our training split, up to digit relabelling). The published NCM checkpoints reproduce their paper's numbers on these sets, which validates them. | test set | published NCM (paper) | NCM on our data, 50k | ours, 1 pass | ours, 12 passes | ours, 61 passes | |---|---|---|---|---|---| | 40 clues (`sudoku-easy`) | 99.1% (99.5) | 96.3% | 100.0% | 100.0% | 100.0% | | 35 clues (`sudoku-medium`) | 96.1% (96.5) | 79.8% | 100.0% | 99.9% | 99.9% | | 30 clues (`sudoku-hard`) | 86.6% (86.1) | 36.6% | 99.9% | 99.8% | 99.9% | | ours, 21–28 clues | 30.4% (–) | 3.9% | 97.3% | 98.9% | 99.7% | Ours is `rec1-full-s0` (212k parameters), trained only on our benchmark's training split (20–30 clues). NCM's 35- and 40-clue levels lie outside that range on the easy side; 30 clues is at its edge. At NCM's hardest level, which is NCM's own training distribution, the published 25M-parameter checkpoint scores 86.6% at 12 passes and ours 99.9% at one pass. The reverse direction is §1: NCM trained on our split reaches 3.9% on our test set. ## 3. Compute, measured Counted with `torch.utils.flop_counter` on the real training and decoding code ([`ncm/count_flops.py`](https://github.com/GIND123/MSML612/blob/main/ncm/count_flops.py)). | | params | training FLOPs | inference GFLOP / puzzle | |---|---|---|---| | ours, `rec1-full` (120k steps × 256) | 212k | 0.21 EFLOP (1×) | 2.3 at 1 pass · 27.2 at 12 · 131 at 61 | | NCM on our data, 22,405 updates | 25.5M + 14.9M codec | 0.42 EFLOP (2.0×) | 22.4 (12 levels, KV cache) | | NCM on our data, 50,000 updates | 25.5M + 14.9M codec | 0.94 EFLOP (4.5×) | 22.4 | | NCM, paper budget (batch 1,024) | 25.5M + 14.9M codec | 3.77 EFLOP (18×) | 22.4 | The budgets were unequal in NCM's favour: NCM trained on our data received 2× our training compute when it stopped early and 4.5× at 50,000 updates. At 12 passes our inference cost is 1.2× NCM's; at one pass, where ours still solves 97.3% of our test set, it is 10× lower. ## 4. Additional seeds ### 4a. Input injection, matched test (README §2b), now n = 2 on both sides All four arms: R-MDM step embedding on, d128, 1 block, R=32 train / 64 inference, batch 64, stopped at step 80,000 of 110,000, scored on the same 1,000 test puzzles by [`src/eval_ckpt.py`](https://github.com/GIND123/MSML612/blob/main/src/eval_ckpt.py). Seed 0 of both arms and seed 1 of OFF are the original runs (`rmdm-both-s1/rmdm_compare_original_runs.json`); ON seed 1 is new, trained on the Lambda A100 with the same code and data (the others ran on Zaratan A100s). | passes | OFF s0 | OFF s1 | ON s0 | **ON s1 (new)** | OFF mean | ON mean | ON − OFF | seed ranges | |---|---|---|---|---|---|---|---|---| | 1 | 75.7 | 8.3 | 89.0 | **82.7** | 42.00 | 85.85 | +43.85 | disjoint, ON above | | 4 | 94.0 | 84.6 | 93.1 | **92.6** | 89.30 | 92.85 | +3.55 | overlap | | 8 | 94.8 | 91.7 | 94.0 | **94.1** | 93.25 | 94.05 | +0.80 | overlap | | 16 | 96.0 | 93.0 | 95.9 | **94.5** | 94.50 | 95.20 | +0.70 | overlap | | 32 | 97.1 | 95.3 | 96.4 | **95.4** | 96.20 | 95.90 | -0.30 | overlap | | 61 | 97.1 | 96.6 | 96.9 | **94.9** | 96.85 | 95.90 | -0.95 | overlap | At 61 passes the second seed moves the injection effect from +0.05 to -0.95 points, inside the seed ranges; the retraction stands. At one pass both injection-ON seeds lie above both injection-OFF seeds, the pattern §2b offered as a hypothesis from one seed. With two seeds per arm it is a consistent observation, not an established effect. ### 4b. 32 distinct layers at batch 256 | arm | params | seed 0 (original): 1 pass · best | seed 1 (new): 1 pass · best | config | |---|---|---|---|---| | 32 distinct layers, feed-forward | 6.34M | 70.20% · 94.50% | *running* | d128, 32 layers, batch 256, 120k steps | ## 5. The RRN benchmark RRN's `sudoku-hard` split (Palm et al., NeurIPS 2018): 180k train / 18k test, 17–34 clues, 1,000 test puzzles per clue count. Yang et al. (ICLR 2023) report 99.5% for the Recurrent Transformer on it at 211k parameters, essentially the same size as ours (212k). Our reimplementation of their direct classifier reached only 31% on our benchmark (README §2), so instead of comparing against our reimplementation we put our model on their benchmark. Scored by [`ncm/eval_ours.py`](https://github.com/GIND123/MSML612/blob/main/ncm/eval_ours.py): a board counts only if all 81 cells match the given solution. | model | trained on | params | 1 pass | 12 passes | 61 passes | |---|---|---|---|---|---| | ours `rec1-full-s0`, **zero-shot** | our benchmark only (20–30 clues) | 212k | 99.69% | – | **99.91%** | | ours, same recipe (120k steps, batch 256) | RRN train (180k) | 212k | 99.61% | 99.80% | 99.88% | | Recurrent Transformer (Yang et al., 2023), reported | RRN train | 211k | – | – | 99.50% | | Recurrent Transformer, reported, 17-clue puzzles only (as in README §8) | RRN train | 211k | – | – | 96.7% | By clue count, zero-shot (board accuracy %, 1,000 puzzles per column): | passes | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| | 1 | 97.2 | 98.6 | 99.8 | 100.0 | 99.6 | 99.9 | 100.0 | 99.8 | 99.9 | 99.9 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | | 61 | 99.3 | 99.9 | 99.9 | 100.0 | 99.9 | 100.0 | 99.8 | 100.0 | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 | 99.9 | 100.0 | 100.0 | 100.0 | 99.9 | By clue count, trained on RRN (board accuracy %, 1,000 puzzles per column): | passes | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---| | 1 | 97.1 | 98.6 | 99.0 | 99.3 | 99.6 | 99.8 | 99.9 | 100.0 | 99.9 | 99.9 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | | 12 | 98.2 | 99.3 | 99.4 | 99.9 | 99.9 | 100.0 | 100.0 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | | 61 | 98.8 | 99.8 | 99.6 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 100.0 | 99.9 | 100.0 | 100.0 | 99.9 | 99.9 | 100.0 | 100.0 | 100.0 | 100.0 | The zero-shot model never saw an RRN puzzle and never trained on fewer than 20 clues, yet holds 99.3% on the 17-clue puzzles at 61 passes. The comparison with the Recurrent Transformer is between our measurement and their reported number on the same test split; we did not rerun their model. It does not explain why our reimplementation of their classifier failed, which remains open. Trained on RRN's own 180,000 training puzzles, with the same recipe and step count, the model solves 99.88% at 61 passes and 98.8% of the 17-clue puzzles, against 99.91% and 99.3% zero-shot: 22 and 16 failures out of 18,000. Training on the benchmark's own distribution, its 17–19-clue puzzles included, buys nothing measurable; with one seed per arm a gap of 6 puzzles is not a difference. The recipe needed no retuning to move to a new puzzle distribution. ## 6. Weights that no longer exist `model.pt` was deleted from Zaratan scratch on 18 September 2026 for **16 runs**, including both seeds of the 37.9M feed-forward baseline (`sudh-full-s0`, `sudh-full-s1`). Every one of these training logs records the weights being saved, and no copy remains in our scratch or home directories or the SHELL archive (searched 5 December 2026). Each run's `result.json` survives, byte-identical to the copy already in this Hugging Face repository under `runs//result.json`. The README's numbers for these arms were computed before the deletion. What is lost is the ability to score these baselines on new test sets: none of them appears in §2 or §5. They cannot be retrained on Zaratan: on 5 December the class allocation's limit was 902,901 billing-minutes against 902,902 used. Training `sudh-full-s0` originally took 3 h 24 min on an H100. | run | width, layers, batch, steps | best board | Slurm job | GPU time | log | |---|---|---|---|---|---| | `abl-deep32L-s0` | 128, 32, 256, 120,000 | 94.5% | 22381985_2 (gpu-h100) | 02:41:58 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/abl-deep32L-s0.abl-22381985_2.out) | | `abl-nodeepsup-s0` | 128, 1, 256, 120,000 | 97.3% | 22381985_0 (gpu-h100) | 02:47:11 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/abl-nodeepsup-s0.abl-22381985_0.out) | | `abl-nodeepsup-s1` | 128, 1, 256, 120,000 | 98.2% | 22381985_1 (gpu-h100) | 02:46:57 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/abl-nodeepsup-s1.abl-22381985_1.out) | | `base-ar-s0` | 128, 12, 256, 120,000 | scored separately | 22382147_4 (gpu-h100) | 00:35:38 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/base-ar-s0.base-22382147_4.out) | | `base-directrec-s0` | 128, 1, 256, 120,000 | 40.9% | 22382147_0 (gpu-h100) | 01:41:23 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/base-directrec-s0.base-22382147_0.out) | | `base-directrec-s1` | 128, 1, 256, 120,000 | 6.6% | 22382147_1 (gpu-h100) | 01:39:19 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/base-directrec-s1.base-22382147_1.out) | | `fix-arprefix-s0` | 128, 12, 256, 110,000 | scored separately | 22385574_2 (gpu-h100) | 01:14:17 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/fix-arprefix-s0.fix-22385574_2.out) | | `fix-directall-s0` | 128, 1, 256, 110,000 | 55.1% | 22385574_0 (gpu-h100) | 01:33:44 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/fix-directall-s0.fix-22385574_0.out) | | `fix-directall-s1` | 128, 1, 256, 110,000 | 21.4% | 22385574_1 (gpu-h100) | 01:33:25 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/fix-directall-s1.fix-22385574_1.out) | | `inj-deep32L-s1` | 128, 32, 64, 110,000 | 83.4% | 22389576_2 (gpu-a100_1g.5gb) | 05:58:05 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/inj-deep32L-s1.inj-22389576_2.out) | | `inj-noinject-s0` | 128, 1, 64, 110,000 | 95.2% | 22397518_0 (gpu-a100_1g.5gb) | 01:05:45 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/inj-noinject-s0.inj-22397518_0.out) | | `inj-noinject-s1` | 128, 1, 64, 110,000 | 93.0% | 22397518_1 (gpu-a100_1g.5gb) | 01:03:59 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/inj-noinject-s1.inj-22397518_1.out) | | `sudh-full-s0` | 512, 12, 256, 150,000 | 88.3% | 22374415_2 (gpu-h100) | 03:23:35 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/sudh-full-s0.sudhard-22374415_2.out) | | `sudh-full-s1` | 512, 12, 256, 150,000 | 89.5% | 22374415_3 (gpu-h100) | 03:24:12 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/sudh-full-s1.sudhard-22374415_3.out) | | `sudh-mdlm-s0` | 512, 12, 256, 150,000 | 89.0% | 22374415_0 (gpu-h100) | 01:47:58 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/sudh-mdlm-s0.sudhard-22374415_0.out) | | `sudh-mdlm-s1` | 512, 12, 256, 150,000 | 87.3% | 22374415_1 (gpu-h100) | 01:47:59 | [log](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/blob/main/revision/lost_weights/logs/sudh-mdlm-s1.sudhard-22374415_1.out) | ## Problems found and fixed during these runs - **Clue-set generator reproduced the training split.** `make_clue_sets.py` defaulted to seed 0, and `gen_hard_sudoku.py` drew the training split from seeds 0–100,999 with the same solution sampler, so every generated solution was a training solution. The leakage assertion caught it before anything was scored; the default is now 1,000,000 × clues. - **NCM trainer had no resume path.** `train_same_data.py --resume-from` restores the trained tokenizer and the generator's model, optimizer and RNG state and continues the same learning-rate schedule; it refuses to resume if the batch size, planned updates or training-array hashes differ. - **Full evaluation sweep is too slow for an 18k-puzzle test set** (~570 passes per puzzle). `train_sudoku.py --skip_final_eval` saves the model and leaves scoring to `eval_ours.py`. - **PyTorch 2.6 changed `torch.load`'s default** to `weights_only=True`, which rejects our checkpoints (they carry NumPy RNG state). `eval_ckpt.py` now passes `weights_only=False` for our own files. ## Files | path | contents | where | |---|---|---| | `clue_sets/data/` | the 40 / 35 / 30-clue test sets, 1,000 puzzles each | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/clue_sets/data) | | `clue_sets/results/` | every model on every set (`_K` for ours) | both | | `compute/compute_flops.json` | measured FLOPs | both | | `ncm-same-data-s0-resumed/` | manifest, result, training curves (CSV + PNG), config | both | | `ncm-same-data-s0-resumed/{generator,tokenizer}.pt`, `test_predictions.json` | NCM-on-our-data weights and per-puzzle predictions | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/ncm-same-data-s0-resumed) | | `rmdm-both-s1/` | §4a result, original-arm results | both | | `rmdm-both-s1/ckpt_80k.pt` | §4a checkpoint | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/rmdm-both-s1) | | `abl-deep32L-s1/` | §4b result | both | | `rrn/` | §5 results, with per-clue breakdowns | both | | `rrn/rrn-rec1-full-s0/` | §5 trained-on-RRN weights | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/rrn) | | `logs/` | training and evaluation logs | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/logs) | | `lost_weights/manifest.json` | §6: runs whose weights were deleted, with job records | both | | `lost_weights/logs/` | §6: their original training logs | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/lost_weights/logs) | | `code/` | copies of the scripts as run | [HF](https://huggingface.co/GOVINDFROM/parallel-consistent-masked-diffusion/tree/main/revision/code); originals in [GitHub](https://github.com/GIND123/MSML612) |