Recurrent masked diffusion: results, code, card
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- README.md+56-91
- figures/compare_recurrent.jsonAdded+119
- figures/mol_fair.jsonAdded+106
- figures/sudoku_compare.jsonAdded+119
- figures/sudoku_hard.jsonAdded+86
- figures/sudoku_remask.jsonAdded+190
- figures/sudoku_rsweep.jsonAdded+42
- figures/sudoku_validate.jsonAdded+68
- results/abl-deep32L-s0.jsonAdded+141
- results/abl-nodeepsup-s0.jsonAdded+141
- results/abl-nodeepsup-s1.jsonAdded+141
- results/base-ar-s0.jsonAdded+36
- results/base-directrec-s0.jsonAdded+142
- results/base-directrec-s1.jsonAdded+142
- results/fix-arprefix-s0.jsonAdded+37
- results/fix-directall-s0.jsonAdded+143
- results/fix-directall-s1.jsonAdded+143
- results/rec1-full-s0.jsonAdded+140
- results/rec1-full-s1.jsonAdded+140
- results/rec1-mdlm-s0.jsonAdded+140
- results/rec1-mdlm-s1.jsonAdded+140
- results/sudh-full-s0.jsonAdded+137
- results/sudh-full-s1.jsonAdded+137
- results/sudh-mdlm-s0.jsonAdded+137
- results/sudh-mdlm-s1.jsonAdded+137
- slurm/abl.shAdded+38
- slurm/b_gpu-a100_1g.5gb --gres=gpu:a100_1g.5gb:1.shAdded+14
- slurm/b_gpu-h100 --gpus=h100:1.shAdded+14
- slurm/base.shAdded+40
- slurm/bh.shAdded+14
- slurm/bm.shAdded+14
- slurm/cmpall.shAdded+15
- slurm/fix.shAdded+33
- slurm/genhard.shAdded+16
- slurm/inj.shAdded+40
- slurm/inj2.shAdded+41
- slurm/mol1.shAdded+38
- slurm/molfair.shAdded+15
- slurm/rec1.shAdded+35
- slurm/rsw.shAdded+15
- slurm/sud1.shAdded+38
- slurm/sudcompare.shAdded+15
- slurm/sudhard.shAdded+15
- slurm/sudhard_train.shAdded+37
- slurm/sudremask.shAdded+15
- src/bench.pyAdded+38
- src/diffusion.py+114
- src/gen_hard_sudoku.pyAdded+200
- src/model.py+71
- src/sudoku.py+50
2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211222 unmodified linestags:- masked-diffusion- discrete-diffusion- parallel-decoding- constraint-satisfaction- text8- qm9- sudoku- from-scratch---# Two Failure Modes of Parallel Decoding in Masked DiffusionEverything here is trained from scratch: no pretrained weights, no pretrainedtokenizer, and the autoregressive model used to score generated text is itselftrained from scratch on the same corpus.Code: https://github.com/GIND123/MSML612---## The claimParallel decoding in masked diffusion loses accuracy for two reasons that need**opposite** fixes, and the literature treats them as one.| | failure mode | fixable by ||---|---|---|| **(i)** | the fully-masked state is never trained — a *K*-pass decode starts at `t = 1`, and continuous `t ~ U(0,1)` assigns that state probability **zero** | **training only** || **(ii)** | committed positions carry real mutual information — parallel decoding samples the product of marginals when the truth is the joint | **inference only** |Prior work applies inference-time fixes to both, which is why those methodsflatline on arithmetic, where (ii) is identically zero.## The boundFor a data distribution `P` uniform on a family `F`, let `V*` be the one-passvalidity achievable from the **true** marginals. Then```V* ≥ 2^(−TC), TC = D_KL( P ‖ ∏ᵢ pᵢ ), equality iff ∏ᵢ pᵢ is constant on F```**Every bit of total correlation among jointly committed variables at most halvesthe one-pass success probability.**Verified by exhaustive enumeration over graph families, with the enumerator itselfchecked against Cayley's formula (spanning trees at n = 5, 6, 7 → 125, 1296,16807):| family | TC (bits) | V* | 2^(−TC) | ratio ||---|---|---|---|---|| bipartite (n=7) | 0.026 | 98.2816% | 98.1817% | 1.001 || tree (n=6) | 3.435 | **9.2488%** | **9.2488%** | **1.00000** || matching (n=6) | 6.922 | **0.8246%** | **0.8246%** | **1.00000** || 2-regular (n=7) | 10.423 | **0.0728%** | **0.0728%** | **1.00000** |The inequality holds in every case; equality holds to five decimals on exactlythe fixed-edge-count families, and fails precisely where edge counts vary — whichis what the Jensen step requires.## Finding 1 — train the schedule you intend to decode at| task | baseline | ours ||---|---|---|| 20-digit addition, 1 pass | **0.00%** (also 0.00% at **2× compute**, both seeds) | **99.9%** (3/3 seeds) || text8, NFE 16 | 116.88 gen-ppl | **92.74** (−20.7%) || text8, validation BPC | 1.7292 | **1.7010** |The text8 gain appears in generative quality **and** likelihood simultaneously,so it is not bought by trading one for the other.A 48-run ablation isolates the mechanism: the `t = 1` term alone removes **49%**of the parallelism penalty, against 17% for reshaping the rest of the schedule.## Finding 2 — one-pass decoding needs absolute position informationAt `t = 1` every input token is `[MASK]`, so the sequence is constant. With arelative encoding the attention score depends only on `(i − j)`, and identicalvalue vectors give identical outputs at every position. **Position-dependentmarginals are inexpressible at any training budget.**| condition | learned (APE) | parameter-free (sinusoidal) ||---|---|---|| marginals **vary** | **+88.037 pts** | **+88.074 pts** || marginals **constant** (control) | **−0.024 pts** | **+0.000 pts** |A ~3,700× dissociation. The parameter-free variant matching the learned one rulesout capacity; the control rules out "absolute is simply better". Predicted 5/5before measurement, and the treated arm lands at **100.3% of `V*`** — at thebound, not merely higher.## Benchmark: SATNet Sudoku9x9 Sudoku, SATNet's conventional 9,000/1,000 split, **board accuracy** = all 81cells correct. Published number: **98.3%** (Wang et al., ICML 2019).Un-augmented arm, which is the only like-for-like comparison:| denoising passes | board accuracy ||---|---|| **1** | **87.85%** || **2** | **98.65%** || 8 | 99.70% || **32** | **100.00%** |Two passes exceed the published number; 32 passes solve **all 1,000** testpuzzles exactly. One pass — the entire grid committed at once — solves 87.85%.Leakage audited first: 0/1000 test puzzles in training, 0/1000 test solutions intraining, and 0/1000 test solutions matching a training solution even up to digitrelabelling. All 10,000 solutions are distinct.**Scoped honestly:** this comes from the *plain MDLM baseline* with fixed-`K`decoding. Neither finding above contributes — the standard formulation alreadysaturates this benchmark. It is a result for masked diffusion on SATNet Sudoku,not evidence for our method.## Negative results, reported2 unmodified lines34567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586872 unmodified linestags:- masked-diffusion- discrete-diffusion- constraint-satisfaction- sudoku- recurrent-transformer- from-scratch---# Recurrent Masked Diffusion for Constraint Satisfaction**Constraint propagation is an iterative algorithm; masked diffusion models aretrained as fixed-depth denoisers. Making the denoiser recurrent — oneweight-shared block applied many times, supervised at every application —reaches 99.70% on hard Sudoku with 212k parameters, where a 37.9M-parameterfeed-forward denoiser reaches 88.90%.**Trained from scratch. No pretrained weights, no pretrained tokenizer.Code: https://github.com/GIND123/MSML612## Benchmark1,000 held-out minimal Sudoku puzzles, 20–30 clues (mean 24.4). Uniquenessverified after **every** cell removal; train/test solutions disjoint even up todigit relabelling. Metric: board accuracy, all 81 cells correct.## Results| method | params | 1 pass | best ||---|---|---|---|| constraint propagation (no search) | – | – | 3.00% || greedy MRV | – | – | 5.90% || autoregressive prefix-LM | 2.4M | – | 0.30% || direct recurrent classifier* | 212k | 10.5% | 31.00% || 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, notevidence against their method**, and it is not used as a comparison.## Ablations| ingredient | gain ||---|---|| recurrence vs feed-forward | +10.80 || weight sharing vs 32 distinct layers (matched depth) | +3.75 || schedule matching | +3.15 || deep supervision | +1.95 |## Recurrence extrapolates past its training depthTrained 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 failureBoth non-diffusion baselines reach **lower training loss** than our method andsolve almost nothing — AR at 0.0486 loss gives 0.30% boards, direct all-cellsupervision at 0.0722 gives 55%. AR's errors compound unrecoverably; all-cellsupervision is dominated by copying the given clues. Low loss, no capability.## Honest limits- Published comparison is across **different puzzle distributions**: our 20–30clue range sits inside the Recurrent Transformer's 17–34 but excludes thehardest 17-clue instances, so 99.70% at 212k reads as *competitive with* their99.5% at 211k, not better.- **Input injection is not separated from weight sharing** in the 32-layercomparison; the isolating run is in progress.- The SATNet split is not used: constraint propagation alone solves 100% of it.## Negative results, reported
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119{ "n": 1000, "clues": { "min": 21, "max": 28, "mean": 24.318 }, "classical": { "propagation": 0.03, "greedy_mrv": 0.059, "backtracking": 1.0, "backtrack_nodes_mean": 423.126, "backtrack_nodes_median": 211.5 }, "diffusion": { "recurrent-full": { "1": { "board": 0.974, "per_seed": [ 0.974, 0.974 ] }, "4": { "board": 0.985, "per_seed": [ 0.982, 0.988 ] }, "8": { "board": 0.9895, "per_seed": [ 0.987, 0.992 ] }, "16": { "board": 0.992, "per_seed": [ 0.99, 0.994 ] }, "32": { "board": 0.995, "per_seed": [ 0.993, 0.997 ] }, "61": { "board": 0.9955, "per_seed": [ 0.994, 0.997 ], "by_clue": { "22": 0.9767441860465116, "23": 1.0, "24": 0.9942028985507246, "25": 0.9964539007092199, "26": 0.984251968503937 } } }, "recurrent-mdlm": { "1": { "board": 0.8705, "per_seed": [ 0.911, 0.83 ] }, "4": { "board": 0.9155, "per_seed": [ 0.938, 0.893 ] }, "8": { "board": 0.9315, "per_seed": [ 0.94, 0.923 ] }, "16": { "board": 0.947, "per_seed": [ 0.951, 0.943 ] }, "32": { "board": 0.949, "per_seed": [ 0.954, 0.944 ] }, "61": { "board": 0.9515, "per_seed": [ 0.957, 0.946 ], "by_clue": { "22": 0.9534883720930233, "23": 0.9723756906077348, "24": 0.9652173913043478, "25": 0.9468085106382979, "26": 0.952755905511811 } } } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106{ "matched-ape": { "1": [ 0.3076171875, 0.30078125 ], "4": [ 0.5634765625, 0.5458984375 ], "8": [ 0.70068359375, 0.7294921875 ], "16": [ 0.8759765625, 0.86572265625 ], "32": [ 0.97119140625, 0.970703125 ], "45": [ 0.9951171875, 0.998046875 ] }, "matched-rope": { "1": [ 0.173828125, 0.17236328125 ], "4": [ 0.40771484375, 0.4462890625 ], "8": [ 0.6943359375, 0.5380859375 ], "16": [ 0.74072265625, 0.57958984375 ], "32": [ 0.7822265625, 0.62939453125 ], "45": [ 0.7880859375, 0.705078125 ] }, "mdlm-ape": { "1": [ 0.3115234375, 0.30810546875 ], "4": [ 0.5458984375, 0.5400390625 ], "8": [ 0.7041015625, 0.72314453125 ], "16": [ 0.85693359375, 0.86181640625 ], "32": [ 0.9638671875, 0.9609375 ], "45": [ 0.99853515625, 0.998046875 ] }, "mdlm-rope": { "1": [ 0.18359375, 0.166015625 ], "4": [ 0.4169921875, 0.41845703125 ], "8": [ 0.7265625, 0.68505859375 ], "16": [ 0.7861328125, 0.75732421875 ], "32": [ 0.92578125, 0.75 ], "45": [ 0.97607421875, 0.806640625 ] }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119{ "n": 1000, "clues": { "min": 21, "max": 28, "mean": 24.318 }, "classical": { "propagation": 0.03, "greedy_mrv": 0.059, "backtracking": 1.0, "backtrack_nodes_mean": 423.126, "backtrack_nodes_median": 211.5 }, "diffusion": { "full": { "1": { "board": 0.40349999999999997, "per_seed": [ 0.421, 0.386 ] }, "4": { "board": 0.7925, "per_seed": [ 0.786, 0.799 ] }, "8": { "board": 0.8445, "per_seed": [ 0.84, 0.849 ] }, "16": { "board": 0.855, "per_seed": [ 0.842, 0.868 ] }, "32": { "board": 0.868, "per_seed": [ 0.861, 0.875 ] }, "61": { "board": 0.894, "per_seed": [ 0.891, 0.897 ], "by_clue": { "22": 0.8372093023255814, "23": 0.9171270718232044, "24": 0.8898550724637682, "25": 0.8936170212765957, "26": 0.889763779527559 } } }, "mdlm": { "1": { "board": 0.046, "per_seed": [ 0.057, 0.035 ] }, "4": { "board": 0.709, "per_seed": [ 0.727, 0.691 ] }, "8": { "board": 0.783, "per_seed": [ 0.798, 0.768 ] }, "16": { "board": 0.843, "per_seed": [ 0.861, 0.825 ] }, "32": { "board": 0.8645, "per_seed": [ 0.864, 0.865 ] }, "61": { "board": 0.874, "per_seed": [ 0.884, 0.864 ], "by_clue": { "22": 0.8372093023255814, "23": 0.9116022099447514, "24": 0.8956521739130435, "25": 0.900709219858156, "26": 0.8031496062992126 } } } }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "full-aug|30": { "fixedK_1": 0.0, "fixedK_8": 0.5249999999999999, "fixedK_45": 0.7208333333333333, "entbudget_0.01": 0.11666666666666667, "entbudget_0.2": 0.008333333333333333 }, "full-aug|26": { "fixedK_1": 0.0, "fixedK_8": 0.18333333333333332, "fixedK_45": 0.3375, "entbudget_0.01": 0.024999999999999998, "entbudget_0.2": 0.004166666666666667 }, "full-aug|22": { "fixedK_1": 0.0, "fixedK_8": 0.12083333333333333, "fixedK_45": 0.26666666666666666, "entbudget_0.01": 0.004166666666666667, "entbudget_0.2": 0.0 }, "full-plain|30": { "fixedK_1": 0.0, "fixedK_8": 0.5375, "fixedK_45": 0.6458333333333333, "entbudget_0.01": 0.04583333333333334, "entbudget_0.2": 0.0 }, "full-plain|26": { "fixedK_1": 0.0, "fixedK_8": 0.23333333333333334, "fixedK_45": 0.37916666666666665, "entbudget_0.01": 0.008333333333333333, "entbudget_0.2": 0.004166666666666667 }, "full-plain|22": { "fixedK_1": 0.0, "fixedK_8": 0.075, "fixedK_45": 0.19583333333333333, "entbudget_0.01": 0.0125, "entbudget_0.2": 0.0 }, "mdlm-aug|30": { "fixedK_1": 0.0, "fixedK_8": 0.4916666666666667, "fixedK_45": 0.6791666666666667, "entbudget_0.01": 0.475, "entbudget_0.2": 0.16249999999999998 }, "mdlm-aug|26": { "fixedK_1": 0.0, "fixedK_8": 0.2125, "fixedK_45": 0.33333333333333337, "entbudget_0.01": 0.15833333333333333, "entbudget_0.2": 0.008333333333333333 }, "mdlm-aug|22": { "fixedK_1": 0.0, "fixedK_8": 0.10416666666666666, "fixedK_45": 0.16666666666666666, "entbudget_0.01": 0.12083333333333333, "entbudget_0.2": 0.0125 }, "mdlm-plain|30": { "fixedK_1": 0.0, "fixedK_8": 0.39583333333333337, "fixedK_45": 0.5875, "entbudget_0.01": 0.20833333333333331, "entbudget_0.2": 0.020833333333333332 }, "mdlm-plain|26": { "fixedK_1": 0.0, "fixedK_8": 0.14583333333333331, "fixedK_45": 0.2875, "entbudget_0.01": 0.06666666666666667, "entbudget_0.2": 0.0 }, "mdlm-plain|22": { "fixedK_1": 0.0, "fixedK_8": 0.03333333333333333, "fixedK_45": 0.13333333333333333, "entbudget_0.01": 0.016666666666666666, "entbudget_0.2": 0.0 }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190{ "sudh-full-s0": { "fixedK_16": { "board": 0.85, "cell": 0.9471260717688155, "nfe": 16.0 }, "fixedK_61": { "board": 0.877, "cell": 0.9471966409089305, "nfe": 59.5 }, "entbudget": { "board": 0.882, "cell": 0.9523305458522988, "nfe": 34.5 }, "verifier_b32_r4": { "board": 0.886, "cell": 0.9486433082812886, "nfe": 154.75 }, "verifier_b32_r8": { "board": 0.886, "cell": 0.9505486750643943, "nfe": 183.75 }, "verifier_b61_r4": { "board": 0.884, "cell": 0.9470555026287004, "nfe": 217.25 }, "verifier_b61_r8": { "board": 0.884, "cell": 0.9467379414981828, "nfe": 253.75 }, "verifier_narrow": { "board": 0.878, "cell": 0.9480611128753396, "nfe": 89.5 }, "random_remask_control": { "board": 0.888, "cell": 0.9505486750643943, "nfe": 174.25 } }, "sudh-full-s1": { "fixedK_16": { "board": 0.865, "cell": 0.9489608694118062, "nfe": 16.0 }, "fixedK_61": { "board": 0.898, "cell": 0.9554179457323313, "nfe": 59.5 }, "entbudget": { "board": 0.887, "cell": 0.9549063194664973, "nfe": 30.0 }, "verifier_b32_r4": { "board": 0.895, "cell": 0.9561942062735965, "nfe": 151.25 }, "verifier_b32_r8": { "board": 0.896, "cell": 0.9564941251190854, "nfe": 179.75 }, "verifier_b61_r4": { "board": 0.9, "cell": 0.9574644507956671, "nfe": 212.25 }, "verifier_b61_r8": { "board": 0.895, "cell": 0.9557707914329064, "nfe": 241.75 }, "verifier_narrow": { "board": 0.897, "cell": 0.9576938005010409, "nfe": 83.75 }, "random_remask_control": { "board": 0.899, "cell": 0.9584700610423063, "nfe": 174.25 } }, "sudh-mdlm-s0": { "fixedK_16": { "board": 0.86, "cell": 0.9477435517448219, "nfe": 16.0 }, "fixedK_61": { "board": 0.881, "cell": 0.9500017642285029, "nfe": 59.5 }, "entbudget": { "board": 0.892, "cell": 0.955506157157475, "nfe": 26.75 }, "verifier_b32_r4": { "board": 0.887, "cell": 0.9510603013302283, "nfe": 153.25 }, "verifier_b32_r8": { "board": 0.899, "cell": 0.9541477012102607, "nfe": 184.0 }, "verifier_b61_r4": { "board": 0.893, "cell": 0.9520482692918387, "nfe": 214.0 }, "verifier_b61_r8": { "board": 0.886, "cell": 0.9489432271267775, "nfe": 240.0 }, "verifier_narrow": { "board": 0.886, "cell": 0.9512720087505734, "nfe": 88.0 }, "random_remask_control": { "board": 0.889, "cell": 0.9519777001517237, "nfe": 174.75 } }, "sudh-mdlm-s1": { "fixedK_16": { "board": 0.807, "cell": 0.9294132175999436, "nfe": 16.0 }, "fixedK_61": { "board": 0.873, "cell": 0.9472848523340743, "nfe": 59.5 }, "entbudget": { "board": 0.874, "cell": 0.9481669665855121, "nfe": 23.5 }, "verifier_b32_r4": { "board": 0.871, "cell": 0.9441445255989556, "nfe": 155.25 }, "verifier_b32_r8": { "board": 0.873, "cell": 0.9436505416181504, "nfe": 189.5 }, "verifier_b61_r4": { "board": 0.876, "cell": 0.9451148512755372, "nfe": 223.25 }, "verifier_b61_r8": { "board": 0.88, "cell": 0.9460146078120039, "nfe": 243.75 }, "verifier_narrow": { "board": 0.871, "cell": 0.9458029003916587, "nfe": 89.75 }, "random_remask_control": { "board": 0.866, "cell": 0.9417275325500158, "nfe": 175.5 } }}123456789101112131415161718192021222324252627282930313233343536373839404142{ "rec1-full-s0": { "1": 0.001, "2": 0.054, "4": 0.484, "8": 0.82, "16": 0.924, "32": 0.983, "64": 0.994, "128": 0.991 }, "rec1-full-s1": { "1": 0.006, "2": 0.061, "4": 0.482, "8": 0.815, "16": 0.924, "32": 0.982, "64": 0.992, "128": 0.397 }, "rec1-mdlm-s0": { "1": 0.002, "2": 0.053, "4": 0.407, "8": 0.799, "16": 0.896, "32": 0.933, "64": 0.95, "128": 0.949 }, "rec1-mdlm-s1": { "1": 0.0, "2": 0.024, "4": 0.366, "8": 0.769, "16": 0.889, "32": 0.916, "64": 0.938, "128": 0.935 }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ "classical_propagation": 1.0, "full/aug": { "mean": 1.0, "per_seed": [ 1.0, 1.0 ], "ci": [ 0.9961731014136095, 1.0 ], "p_vs_satnet": 3.576990874029317e-08 }, "full/plain": { "mean": 1.0, "per_seed": [ 1.0, 1.0 ], "ci": [ 0.9961731014136095, 1.0 ], "p_vs_satnet": 3.576990874029317e-08 }, "mdlm/aug": { "mean": 1.0, "per_seed": [ 1.0, 1.0 ], "ci": [ 0.9961731014136095, 1.0 ], "p_vs_satnet": 3.576990874029317e-08 }, "mdlm/plain": { "mean": 1.0, "per_seed": [ 1.0, 1.0 ], "ci": [ 0.9961731014136095, 1.0 ], "p_vs_satnet": 3.576990874029317e-08 }, "harder": { "30": { "n": 120, "clues": 30.0, "classical_propagation": 0.275 }, "26": { "n": 120, "clues": 26.033333333333335, "classical_propagation": 0.041666666666666664 }, "22": { "n": 120, "clues": 23.583333333333332, "classical_propagation": 0.03333333333333333 } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": false, "R": 32, "no_deep_sup": false, "R_infer": 0, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 32, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/abl-deep32L-s0" }, "decode": { "fixedK_1": { "board": 0.702, "cell": 0.9354115945097209, "valid_sudoku": 0.702, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.832, "cell": 0.9493666419674677, "valid_sudoku": 0.832, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.865, "cell": 0.9574115239405808, "valid_sudoku": 0.865, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.906, "cell": 0.9639391694012208, "valid_sudoku": 0.906, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.911, "cell": 0.9625807134540065, "valid_sudoku": 0.911, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.918, "cell": 0.9660386013196429, "valid_sudoku": 0.918, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.928, "cell": 0.9694082777601355, "valid_sudoku": 0.928, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.945, "cell": 0.9751596626795103, "valid_sudoku": 0.945, "clues_kept": 1.0, "nfe": 45.25 }, "entbudget_0.05": { "board": 0.944, "cell": 0.9752478741046541, "valid_sudoku": 0.944, "clues_kept": 1.0, "nfe": 33.25 }, "entbudget_0.2": { "board": 0.933, "cell": 0.9735189301718359, "valid_sudoku": 0.933, "clues_kept": 1.0, "nfe": 24.75 }, "entbudget_0.5": { "board": 0.922, "cell": 0.9706961645672347, "valid_sudoku": 0.922, "clues_kept": 1.0, "nfe": 16.25 }, "entbudget_1.0": { "board": 0.873, "cell": 0.9671147807063971, "valid_sudoku": 0.873, "clues_kept": 1.0, "nfe": 10.25 }, "entbudget_2.0": { "board": 0.823, "cell": 0.9554532303023887, "valid_sudoku": 0.823, "clues_kept": 1.0, "nfe": 8.0 }, "conf_0.9": { "board": 0.837, "cell": 0.9656328287639815, "valid_sudoku": 0.837, "clues_kept": 1.0, "nfe": 14.75 }, "conf_0.99": { "board": 0.931, "cell": 0.9755477929501429, "valid_sudoku": 0.931, "clues_kept": 1.0, "nfe": 27.5 }, "conf_0.999": { "board": 0.942, "cell": 0.9744186867083025, "valid_sudoku": 0.942, "clues_kept": 1.0, "nfe": 41.0 } }, "best_board": 0.945}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": true, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/abl-nodeepsup-s0" }, "decode": { "fixedK_1": { "board": 0.932, "cell": 0.9677146183973748, "valid_sudoku": 0.932, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.935, "cell": 0.9694964891852793, "valid_sudoku": 0.935, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.94, "cell": 0.9735012878868071, "valid_sudoku": 0.94, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.952, "cell": 0.9796408030768146, "valid_sudoku": 0.952, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.957, "cell": 0.9813344624395752, "valid_sudoku": 0.957, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.964, "cell": 0.9835926749232561, "valid_sudoku": 0.964, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.97, "cell": 0.985268692000988, "valid_sudoku": 0.97, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.963, "cell": 0.9857097491267068, "valid_sudoku": 0.963, "clues_kept": 1.0, "nfe": 35.75 }, "entbudget_0.05": { "board": 0.97, "cell": 0.9853569034261318, "valid_sudoku": 0.97, "clues_kept": 1.0, "nfe": 24.75 }, "entbudget_0.2": { "board": 0.966, "cell": 0.9850040577255567, "valid_sudoku": 0.966, "clues_kept": 1.0, "nfe": 26.0 }, "entbudget_0.5": { "board": 0.961, "cell": 0.9856391799865919, "valid_sudoku": 0.961, "clues_kept": 1.0, "nfe": 22.75 }, "entbudget_1.0": { "board": 0.956, "cell": 0.9811051127342013, "valid_sudoku": 0.956, "clues_kept": 1.0, "nfe": 14.5 }, "entbudget_2.0": { "board": 0.958, "cell": 0.982798772096962, "valid_sudoku": 0.958, "clues_kept": 1.0, "nfe": 8.0 }, "conf_0.9": { "board": 0.959, "cell": 0.9802229984827635, "valid_sudoku": 0.959, "clues_kept": 1.0, "nfe": 14.0 }, "conf_0.99": { "board": 0.973, "cell": 0.9887618644366818, "valid_sudoku": 0.973, "clues_kept": 1.0, "nfe": 24.25 }, "conf_0.999": { "board": 0.968, "cell": 0.9864860096679722, "valid_sudoku": 0.968, "clues_kept": 1.0, "nfe": 32.25 } }, "best_board": 0.973}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": true, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 1, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/abl-nodeepsup-s1" }, "decode": { "fixedK_1": { "board": 0.935, "cell": 0.9744892558484175, "valid_sudoku": 0.935, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.94, "cell": 0.9745951095585901, "valid_sudoku": 0.94, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.956, "cell": 0.9811756818743164, "valid_sudoku": 0.956, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.968, "cell": 0.9852157651459017, "valid_sudoku": 0.968, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.972, "cell": 0.9868917822236336, "valid_sudoku": 0.972, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.975, "cell": 0.9883031650259342, "valid_sudoku": 0.975, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.976, "cell": 0.9873328393493526, "valid_sudoku": 0.976, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.982, "cell": 0.9916904837514555, "valid_sudoku": 0.982, "clues_kept": 1.0, "nfe": 31.25 }, "entbudget_0.05": { "board": 0.98, "cell": 0.9899968243886949, "valid_sudoku": 0.98, "clues_kept": 1.0, "nfe": 22.5 }, "entbudget_0.2": { "board": 0.979, "cell": 0.9905966620796726, "valid_sudoku": 0.979, "clues_kept": 1.0, "nfe": 19.5 }, "entbudget_0.5": { "board": 0.975, "cell": 0.9885148724462792, "valid_sudoku": 0.975, "clues_kept": 1.0, "nfe": 12.5 }, "entbudget_1.0": { "board": 0.961, "cell": 0.9830634063723933, "valid_sudoku": 0.961, "clues_kept": 1.0, "nfe": 8.0 }, "entbudget_2.0": { "board": 0.949, "cell": 0.9780353551391976, "valid_sudoku": 0.949, "clues_kept": 1.0, "nfe": 7.0 }, "conf_0.9": { "board": 0.959, "cell": 0.9837338132034861, "valid_sudoku": 0.959, "clues_kept": 1.0, "nfe": 8.5 }, "conf_0.99": { "board": 0.974, "cell": 0.989044140997142, "valid_sudoku": 0.974, "clues_kept": 1.0, "nfe": 20.5 }, "conf_0.999": { "board": 0.979, "cell": 0.9893969866977171, "valid_sudoku": 0.979, "clues_kept": 1.0, "nfe": 30.0 } }, "best_board": 0.982}123456789101112131415161718192021222324252627282930313233343536{ "args": { "mode": "mdlm", "objective": "ar", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": false, "R": 32, "no_deep_sup": false, "R_infer": 0, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 12, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/base-ar-s0" }, "decode": { "ar": { "board": 0.0, "cell": 0.16823683003422604, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 81.0 } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142{ "args": { "mode": "mdlm", "objective": "direct", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": false, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/base-directrec-s0" }, "decode": { "fixedK_1": { "board": 0.358, "cell": 0.8523870011643908, "valid_sudoku": 0.358, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.077, "cell": 0.7139127059736777, "valid_sudoku": 0.077, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.0, "cell": 0.5832715853357326, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.0, "cell": 0.574468085106383, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.0, "cell": 0.5897286616562577, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.0, "cell": 0.5926043541159451, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.0, "cell": 0.5926396386860026, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.129, "cell": 0.760117850463992, "valid_sudoku": 0.129, "clues_kept": 1.0, "nfe": 57.0 }, "entbudget_0.05": { "board": 0.318, "cell": 0.8145795843477647, "valid_sudoku": 0.318, "clues_kept": 1.0, "nfe": 51.25 }, "entbudget_0.2": { "board": 0.381, "cell": 0.8257471507709678, "valid_sudoku": 0.381, "clues_kept": 1.0, "nfe": 41.75 }, "entbudget_0.5": { "board": 0.39, "cell": 0.8347623584206626, "valid_sudoku": 0.39, "clues_kept": 1.0, "nfe": 32.5 }, "entbudget_1.0": { "board": 0.381, "cell": 0.8299812991778696, "valid_sudoku": 0.381, "clues_kept": 1.0, "nfe": 26.5 }, "entbudget_2.0": { "board": 0.38, "cell": 0.8337391058889947, "valid_sudoku": 0.38, "clues_kept": 1.0, "nfe": 20.0 }, "conf_0.9": { "board": 0.401, "cell": 0.8617550545146607, "valid_sudoku": 0.401, "clues_kept": 1.0, "nfe": 25.75 }, "conf_0.99": { "board": 0.409, "cell": 0.8534278959810875, "valid_sudoku": 0.409, "clues_kept": 1.0, "nfe": 44.25 }, "conf_0.999": { "board": 0.329, "cell": 0.8302282911682721, "valid_sudoku": 0.329, "clues_kept": 1.0, "nfe": 54.0 } }, "best_board": 0.409}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142{ "args": { "mode": "mdlm", "objective": "direct", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": false, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 1, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/base-directrec-s1" }, "decode": { "fixedK_1": { "board": 0.015, "cell": 0.7376415793373557, "valid_sudoku": 0.015, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.009, "cell": 0.7314314950072334, "valid_sudoku": 0.009, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.003, "cell": 0.7721146042835468, "valid_sudoku": 0.003, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.005, "cell": 0.7732437105253872, "valid_sudoku": 0.005, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.0, "cell": 0.7650753325570728, "valid_sudoku": 0.0, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.002, "cell": 0.7653223245474754, "valid_sudoku": 0.002, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.003, "cell": 0.7670689107653224, "valid_sudoku": 0.003, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.008, "cell": 0.7843759923785328, "valid_sudoku": 0.008, "clues_kept": 1.0, "nfe": 53.75 }, "entbudget_0.05": { "board": 0.037, "cell": 0.7805652588123214, "valid_sudoku": 0.037, "clues_kept": 1.0, "nfe": 46.0 }, "entbudget_0.2": { "board": 0.06, "cell": 0.7796831445608835, "valid_sudoku": 0.06, "clues_kept": 1.0, "nfe": 39.0 }, "entbudget_0.5": { "board": 0.063, "cell": 0.7810592427931266, "valid_sudoku": 0.063, "clues_kept": 1.0, "nfe": 29.5 }, "entbudget_1.0": { "board": 0.064, "cell": 0.7823647718852546, "valid_sudoku": 0.064, "clues_kept": 1.0, "nfe": 22.75 }, "entbudget_2.0": { "board": 0.057, "cell": 0.7639462263152323, "valid_sudoku": 0.057, "clues_kept": 1.0, "nfe": 15.0 }, "conf_0.9": { "board": 0.061, "cell": 0.7680039518718464, "valid_sudoku": 0.061, "clues_kept": 1.0, "nfe": 24.5 }, "conf_0.99": { "board": 0.066, "cell": 0.7839702198228714, "valid_sudoku": 0.066, "clues_kept": 1.0, "nfe": 40.0 }, "conf_0.999": { "board": 0.057, "cell": 0.7903920115733389, "valid_sudoku": 0.057, "clues_kept": 1.0, "nfe": 49.25 } }, "best_board": 0.066}12345678910111213141516171819202122232425262728293031323334353637{ "args": { "mode": "mdlm", "all_cells": false, "objective": "ar", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": false, "R": 32, "no_deep_sup": false, "R_infer": 0, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 12, "heads": 4, "bs": 256, "steps": 110000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/fix-arprefix-s0" }, "decode": { "ar": { "board": 0.003, "cell": 0.430683462122014, "valid_sudoku": 0.043, "clues_kept": 0.208, "nfe": 81.0 } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143{ "args": { "mode": "mdlm", "all_cells": true, "objective": "direct", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": false, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 110000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/fix-directall-s0" }, "decode": { "fixedK_1": { "board": 0.105, "cell": 0.6825270809075191, "valid_sudoku": 0.105, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.154, "cell": 0.7321371864083837, "valid_sudoku": 0.154, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.147, "cell": 0.7680568787269327, "valid_sudoku": 0.147, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.259, "cell": 0.8128506404149466, "valid_sudoku": 0.259, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.318, "cell": 0.8437775660703575, "valid_sudoku": 0.318, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.398, "cell": 0.8605553791327053, "valid_sudoku": 0.398, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.452, "cell": 0.881620267457041, "valid_sudoku": 0.452, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.501, "cell": 0.893017183585618, "valid_sudoku": 0.501, "clues_kept": 1.0, "nfe": 58.5 }, "entbudget_0.05": { "board": 0.525, "cell": 0.9052609293955753, "valid_sudoku": 0.525, "clues_kept": 1.0, "nfe": 57.75 }, "entbudget_0.2": { "board": 0.549, "cell": 0.9146819096009315, "valid_sudoku": 0.549, "clues_kept": 1.0, "nfe": 56.5 }, "entbudget_0.5": { "board": 0.493, "cell": 0.9018383260999965, "valid_sudoku": 0.493, "clues_kept": 1.0, "nfe": 55.0 }, "entbudget_1.0": { "board": 0.432, "cell": 0.905578490526093, "valid_sudoku": 0.432, "clues_kept": 1.0, "nfe": 49.0 }, "entbudget_2.0": { "board": 0.322, "cell": 0.8803676652199993, "valid_sudoku": 0.322, "clues_kept": 1.0, "nfe": 32.75 }, "conf_0.9": { "board": 0.33, "cell": 0.9106241840443174, "valid_sudoku": 0.33, "clues_kept": 1.0, "nfe": 54.75 }, "conf_0.99": { "board": 0.551, "cell": 0.9083306869905791, "valid_sudoku": 0.551, "clues_kept": 1.0, "nfe": 58.0 }, "conf_0.999": { "board": 0.532, "cell": 0.906954588758336, "valid_sudoku": 0.532, "clues_kept": 1.0, "nfe": 58.75 } }, "best_board": 0.551}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143{ "args": { "mode": "mdlm", "all_cells": true, "objective": "direct", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "no_deep_sup": false, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 110000, "lr": 0.0003, "warmup": 3000, "seed": 1, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/fix-directall-s1" }, "decode": { "fixedK_1": { "board": 0.094, "cell": 0.5431353868953107, "valid_sudoku": 0.094, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.084, "cell": 0.5583606788751279, "valid_sudoku": 0.084, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.03, "cell": 0.5073568328569916, "valid_sudoku": 0.03, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.007, "cell": 0.5128965103560214, "valid_sudoku": 0.007, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.01, "cell": 0.5899050845065453, "valid_sudoku": 0.01, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.007, "cell": 0.6276948590381426, "valid_sudoku": 0.007, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.014, "cell": 0.6588158498288699, "valid_sudoku": 0.014, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.088, "cell": 0.715923926466956, "valid_sudoku": 0.088, "clues_kept": 1.0, "nfe": 58.25 }, "entbudget_0.05": { "board": 0.138, "cell": 0.7457393881655552, "valid_sudoku": 0.138, "clues_kept": 1.0, "nfe": 57.75 }, "entbudget_0.2": { "board": 0.187, "cell": 0.7710913517518789, "valid_sudoku": 0.187, "clues_kept": 1.0, "nfe": 58.0 }, "entbudget_0.5": { "board": 0.212, "cell": 0.7857344483257471, "valid_sudoku": 0.212, "clues_kept": 1.0, "nfe": 57.0 }, "entbudget_1.0": { "board": 0.214, "cell": 0.788504287075262, "valid_sudoku": 0.214, "clues_kept": 1.0, "nfe": 57.0 }, "entbudget_2.0": { "board": 0.189, "cell": 0.8019829928372323, "valid_sudoku": 0.189, "clues_kept": 1.0, "nfe": 57.5 }, "conf_0.9": { "board": 0.194, "cell": 0.7980840478458769, "valid_sudoku": 0.194, "clues_kept": 1.0, "nfe": 57.75 }, "conf_0.99": { "board": 0.213, "cell": 0.7785893228891005, "valid_sudoku": 0.213, "clues_kept": 1.0, "nfe": 58.0 }, "conf_0.999": { "board": 0.149, "cell": 0.7357009279841925, "valid_sudoku": 0.149, "clues_kept": 1.0, "nfe": 58.25 } }, "best_board": 0.214}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/rec1-full-s0" }, "decode": { "fixedK_1": { "board": 0.974, "cell": 0.9903849546593275, "valid_sudoku": 0.974, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.975, "cell": 0.9906319466497301, "valid_sudoku": 0.975, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.981, "cell": 0.9929254437034685, "valid_sudoku": 0.981, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.985, "cell": 0.9943721110758266, "valid_sudoku": 0.985, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.992, "cell": 0.9960481281535585, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.993, "cell": 0.9976182915211178, "valid_sudoku": 0.993, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.995, "cell": 0.9980946332168943, "valid_sudoku": 0.995, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.996, "cell": 0.9975653646660315, "valid_sudoku": 0.996, "clues_kept": 1.0, "nfe": 16.0 }, "entbudget_0.05": { "board": 0.993, "cell": 0.9970360961151689, "valid_sudoku": 0.993, "clues_kept": 1.0, "nfe": 20.5 }, "entbudget_0.2": { "board": 0.992, "cell": 0.9954835750326382, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 13.75 }, "entbudget_0.5": { "board": 0.992, "cell": 0.9982886983522106, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 12.0 }, "entbudget_1.0": { "board": 0.986, "cell": 0.9937722733848489, "valid_sudoku": 0.986, "clues_kept": 1.0, "nfe": 8.0 }, "entbudget_2.0": { "board": 0.98, "cell": 0.9918316220316855, "valid_sudoku": 0.98, "clues_kept": 1.0, "nfe": 4.75 }, "conf_0.9": { "board": 0.982, "cell": 0.9933135739741011, "valid_sudoku": 0.982, "clues_kept": 1.0, "nfe": 12.25 }, "conf_0.99": { "board": 0.992, "cell": 0.9959246321583571, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 13.75 }, "conf_0.999": { "board": 0.993, "cell": 0.9963304047140186, "valid_sudoku": 0.993, "clues_kept": 1.0, "nfe": 21.75 } }, "best_board": 0.996}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 1, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/rec1-full-s1" }, "decode": { "fixedK_1": { "board": 0.973, "cell": 0.9908612963551039, "valid_sudoku": 0.973, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.973, "cell": 0.9926078825729509, "valid_sudoku": 0.973, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.986, "cell": 0.9944073956458841, "valid_sudoku": 0.986, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.992, "cell": 0.9958011361631558, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.992, "cell": 0.9961186972936735, "valid_sudoku": 0.992, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.998, "cell": 0.9995060160191948, "valid_sudoku": 0.998, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.997, "cell": 0.9989591051833033, "valid_sudoku": 0.997, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.996, "cell": 0.9984298366324407, "valid_sudoku": 0.996, "clues_kept": 1.0, "nfe": 14.75 }, "entbudget_0.05": { "board": 0.994, "cell": 0.9970184538301401, "valid_sudoku": 0.994, "clues_kept": 1.0, "nfe": 16.75 }, "entbudget_0.2": { "board": 0.993, "cell": 0.9975830069510603, "valid_sudoku": 0.993, "clues_kept": 1.0, "nfe": 10.75 }, "entbudget_0.5": { "board": 0.993, "cell": 0.9971948766804276, "valid_sudoku": 0.993, "clues_kept": 1.0, "nfe": 7.0 }, "entbudget_1.0": { "board": 0.991, "cell": 0.9968243886948237, "valid_sudoku": 0.991, "clues_kept": 1.0, "nfe": 6.0 }, "entbudget_2.0": { "board": 0.981, "cell": 0.9932606471190149, "valid_sudoku": 0.981, "clues_kept": 1.0, "nfe": 4.25 }, "conf_0.9": { "board": 0.988, "cell": 0.9962774778589323, "valid_sudoku": 0.988, "clues_kept": 1.0, "nfe": 6.5 }, "conf_0.99": { "board": 0.994, "cell": 0.9969831692600826, "valid_sudoku": 0.994, "clues_kept": 1.0, "nfe": 11.75 }, "conf_0.999": { "board": 0.995, "cell": 0.9978476412264916, "valid_sudoku": 0.995, "clues_kept": 1.0, "nfe": 18.0 } }, "best_board": 0.998}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140{ "args": { "mode": "mdlm", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 0, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/rec1-mdlm-s0" }, "decode": { "fixedK_1": { "board": 0.912, "cell": 0.9668148618609083, "valid_sudoku": 0.912, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.925, "cell": 0.971842913094104, "valid_sudoku": 0.925, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.94, "cell": 0.973871775872411, "valid_sudoku": 0.94, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.944, "cell": 0.978370558554744, "valid_sudoku": 0.944, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.949, "cell": 0.9784058431248015, "valid_sudoku": 0.949, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.955, "cell": 0.9792526728061819, "valid_sudoku": 0.955, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.959, "cell": 0.9808934053138563, "valid_sudoku": 0.959, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.971, "cell": 0.9863448713877422, "valid_sudoku": 0.971, "clues_kept": 1.0, "nfe": 36.5 }, "entbudget_0.05": { "board": 0.958, "cell": 0.9812109664443739, "valid_sudoku": 0.958, "clues_kept": 1.0, "nfe": 31.0 }, "entbudget_0.2": { "board": 0.962, "cell": 0.9824988532514731, "valid_sudoku": 0.962, "clues_kept": 1.0, "nfe": 23.75 }, "entbudget_0.5": { "board": 0.962, "cell": 0.982869341237077, "valid_sudoku": 0.962, "clues_kept": 1.0, "nfe": 19.25 }, "entbudget_1.0": { "board": 0.948, "cell": 0.978370558554744, "valid_sudoku": 0.948, "clues_kept": 1.0, "nfe": 13.25 }, "entbudget_2.0": { "board": 0.942, "cell": 0.9765357609117533, "valid_sudoku": 0.942, "clues_kept": 1.0, "nfe": 7.5 }, "conf_0.9": { "board": 0.946, "cell": 0.9811403973042588, "valid_sudoku": 0.946, "clues_kept": 1.0, "nfe": 19.5 }, "conf_0.99": { "board": 0.96, "cell": 0.9817755195652941, "valid_sudoku": 0.96, "clues_kept": 1.0, "nfe": 28.25 }, "conf_0.999": { "board": 0.962, "cell": 0.9814756007198052, "valid_sudoku": 0.962, "clues_kept": 1.0, "nfe": 37.5 } }, "best_board": 0.971}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140{ "args": { "mode": "mdlm", "K": 8, "lam": 1.0, "pe": "ape", "recurrent": true, "R": 32, "R_infer": 64, "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 128, "layers": 1, "heads": 4, "bs": 256, "steps": 120000, "lr": 0.0003, "warmup": 3000, "seed": 1, "eval_bs": 250, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/rec1-mdlm-s1" }, "decode": { "fixedK_1": { "board": 0.835, "cell": 0.9497900568081578, "valid_sudoku": 0.835, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.855, "cell": 0.9570586782400057, "valid_sudoku": 0.855, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.898, "cell": 0.962333721463604, "valid_sudoku": 0.898, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.923, "cell": 0.9695141314703081, "valid_sudoku": 0.923, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.94, "cell": 0.9763593380614657, "valid_sudoku": 0.94, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.944, "cell": 0.9770826717476447, "valid_sudoku": 0.944, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.947, "cell": 0.9754595815249991, "valid_sudoku": 0.947, "clues_kept": 1.0, "nfe": 59.5 }, "entbudget_0.01": { "board": 0.947, "cell": 0.9762005574962069, "valid_sudoku": 0.947, "clues_kept": 1.0, "nfe": 52.25 }, "entbudget_0.05": { "board": 0.96, "cell": 0.9831869023675947, "valid_sudoku": 0.96, "clues_kept": 1.0, "nfe": 40.5 }, "entbudget_0.2": { "board": 0.946, "cell": 0.9753360855297978, "valid_sudoku": 0.946, "clues_kept": 1.0, "nfe": 32.25 }, "entbudget_0.5": { "board": 0.944, "cell": 0.9752655163896828, "valid_sudoku": 0.944, "clues_kept": 1.0, "nfe": 23.0 }, "entbudget_1.0": { "board": 0.925, "cell": 0.9730425884760594, "valid_sudoku": 0.925, "clues_kept": 1.0, "nfe": 12.0 }, "entbudget_2.0": { "board": 0.889, "cell": 0.9628453477294379, "valid_sudoku": 0.889, "clues_kept": 1.0, "nfe": 8.5 }, "conf_0.9": { "board": 0.884, "cell": 0.9695141314703081, "valid_sudoku": 0.884, "clues_kept": 1.0, "nfe": 15.25 }, "conf_0.99": { "board": 0.946, "cell": 0.976482834056667, "valid_sudoku": 0.946, "clues_kept": 1.0, "nfe": 35.0 }, "conf_0.999": { "board": 0.956, "cell": 0.9794820225115557, "valid_sudoku": 0.956, "clues_kept": 1.0, "nfe": 48.25 } }, "best_board": 0.96}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 512, "layers": 12, "heads": 8, "bs": 256, "steps": 150000, "lr": 0.0001, "warmup": 4000, "seed": 0, "eval_bs": 200, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/sudh-full-s0" }, "decode": { "fixedK_1": { "board": 0.419, "cell": 0.8971101937122896, "valid_sudoku": 0.419, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.703, "cell": 0.9253025651882432, "valid_sudoku": 0.703, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.792, "cell": 0.9413394022793832, "valid_sudoku": 0.792, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.847, "cell": 0.9466850146430966, "valid_sudoku": 0.847, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.853, "cell": 0.9441268833139268, "valid_sudoku": 0.853, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.87, "cell": 0.9467908683532691, "valid_sudoku": 0.87, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.883, "cell": 0.9494901379626689, "valid_sudoku": 0.883, "clues_kept": 1.0, "nfe": 59.4 }, "entbudget_0.01": { "board": 0.876, "cell": 0.9501605447937617, "valid_sudoku": 0.876, "clues_kept": 1.0, "nfe": 30.6 }, "entbudget_0.05": { "board": 0.866, "cell": 0.9512190818954871, "valid_sudoku": 0.866, "clues_kept": 1.0, "nfe": 23.6 }, "entbudget_0.2": { "board": 0.795, "cell": 0.9393105395010761, "valid_sudoku": 0.795, "clues_kept": 1.0, "nfe": 17.4 }, "entbudget_0.5": { "board": 0.731, "cell": 0.9327652517554074, "valid_sudoku": 0.731, "clues_kept": 1.0, "nfe": 10.4 }, "entbudget_1.0": { "board": 0.636, "cell": 0.9199745951095586, "valid_sudoku": 0.636, "clues_kept": 1.0, "nfe": 7.8 }, "entbudget_2.0": { "board": 0.531, "cell": 0.9122119896969055, "valid_sudoku": 0.531, "clues_kept": 1.0, "nfe": 5.4 }, "conf_0.9": { "board": 0.582, "cell": 0.9171341872199287, "valid_sudoku": 0.582, "clues_kept": 1.0, "nfe": 7.8 }, "conf_0.99": { "board": 0.81, "cell": 0.9423802970960798, "valid_sudoku": 0.81, "clues_kept": 1.0, "nfe": 22.6 }, "conf_0.999": { "board": 0.866, "cell": 0.9504604636392505, "valid_sudoku": 0.866, "clues_kept": 1.0, "nfe": 30.0 } }, "best_board": 0.883}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{ "args": { "mode": "full", "K": 8, "lam": 1.0, "pe": "ape", "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 512, "layers": 12, "heads": 8, "bs": 256, "steps": 150000, "lr": 0.0001, "warmup": 4000, "seed": 1, "eval_bs": 200, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/sudh-full-s1" }, "decode": { "fixedK_1": { "board": 0.383, "cell": 0.8876362866518471, "valid_sudoku": 0.383, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.682, "cell": 0.9200804488197312, "valid_sudoku": 0.682, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.801, "cell": 0.9390635475106736, "valid_sudoku": 0.801, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.851, "cell": 0.9509720899050845, "valid_sudoku": 0.851, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.87, "cell": 0.9515719275960622, "valid_sudoku": 0.87, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.886, "cell": 0.9570233936699482, "valid_sudoku": 0.886, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.884, "cell": 0.9524716841325288, "valid_sudoku": 0.884, "clues_kept": 1.0, "nfe": 59.4 }, "entbudget_0.01": { "board": 0.895, "cell": 0.9573409548004658, "valid_sudoku": 0.895, "clues_kept": 1.0, "nfe": 30.4 }, "entbudget_0.05": { "board": 0.851, "cell": 0.9468437952083554, "valid_sudoku": 0.851, "clues_kept": 1.0, "nfe": 20.2 }, "entbudget_0.2": { "board": 0.788, "cell": 0.9315479340884232, "valid_sudoku": 0.788, "clues_kept": 1.0, "nfe": 13.6 }, "entbudget_0.5": { "board": 0.697, "cell": 0.919215976853322, "valid_sudoku": 0.697, "clues_kept": 1.0, "nfe": 9.8 }, "entbudget_1.0": { "board": 0.604, "cell": 0.9126001199675382, "valid_sudoku": 0.604, "clues_kept": 1.0, "nfe": 6.4 }, "entbudget_2.0": { "board": 0.482, "cell": 0.9062136127871282, "valid_sudoku": 0.482, "clues_kept": 1.0, "nfe": 5.0 }, "conf_0.9": { "board": 0.538, "cell": 0.9054549945308916, "valid_sudoku": 0.538, "clues_kept": 1.0, "nfe": 7.8 }, "conf_0.99": { "board": 0.777, "cell": 0.9316890723686532, "valid_sudoku": 0.777, "clues_kept": 1.0, "nfe": 17.0 }, "conf_0.999": { "board": 0.884, "cell": 0.9553473765922162, "valid_sudoku": 0.884, "clues_kept": 1.0, "nfe": 26.2 } }, "best_board": 0.895}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{ "args": { "mode": "mdlm", "K": 8, "lam": 1.0, "pe": "ape", "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 512, "layers": 12, "heads": 8, "bs": 256, "steps": 150000, "lr": 0.0001, "warmup": 4000, "seed": 0, "eval_bs": 200, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/sudh-mdlm-s0" }, "decode": { "fixedK_1": { "board": 0.05, "cell": 0.7941851028545217, "valid_sudoku": 0.05, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.511, "cell": 0.8766980699340179, "valid_sudoku": 0.511, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.71, "cell": 0.9216682544723193, "valid_sudoku": 0.71, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.807, "cell": 0.9365407007515614, "valid_sudoku": 0.807, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.856, "cell": 0.9451501358455947, "valid_sudoku": 0.856, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.872, "cell": 0.947020218058643, "valid_sudoku": 0.872, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.879, "cell": 0.948537454571116, "valid_sudoku": 0.879, "clues_kept": 1.0, "nfe": 59.4 }, "entbudget_0.01": { "board": 0.89, "cell": 0.9501252602237041, "valid_sudoku": 0.89, "clues_kept": 1.0, "nfe": 24.6 }, "entbudget_0.05": { "board": 0.872, "cell": 0.9483786740058573, "valid_sudoku": 0.872, "clues_kept": 1.0, "nfe": 22.2 }, "entbudget_0.2": { "board": 0.856, "cell": 0.9515542853110335, "valid_sudoku": 0.856, "clues_kept": 1.0, "nfe": 16.2 }, "entbudget_0.5": { "board": 0.766, "cell": 0.9330298860308387, "valid_sudoku": 0.766, "clues_kept": 1.0, "nfe": 11.2 }, "entbudget_1.0": { "board": 0.647, "cell": 0.9091951589569881, "valid_sudoku": 0.647, "clues_kept": 1.0, "nfe": 7.8 }, "entbudget_2.0": { "board": 0.44, "cell": 0.8767333545040754, "valid_sudoku": 0.44, "clues_kept": 1.0, "nfe": 5.0 }, "conf_0.9": { "board": 0.413, "cell": 0.8837726262305494, "valid_sudoku": 0.413, "clues_kept": 1.0, "nfe": 9.6 }, "conf_0.99": { "board": 0.847, "cell": 0.9466144455029816, "valid_sudoku": 0.847, "clues_kept": 1.0, "nfe": 20.0 }, "conf_0.999": { "board": 0.89, "cell": 0.9560354257083378, "valid_sudoku": 0.89, "clues_kept": 1.0, "nfe": 24.6 } }, "best_board": 0.89}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{ "args": { "mode": "mdlm", "K": 8, "lam": 1.0, "pe": "ape", "root": "data/sudoku", "hard": "/scratch/zt1/project/msml612/user/govind02/pcmd/data/sudoku_hard", "augment": true, "d": 512, "layers": 12, "heads": 8, "bs": 256, "steps": 150000, "lr": 0.0001, "warmup": 4000, "seed": 1, "eval_bs": 200, "ckpt_every": 10000, "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/sudh-mdlm-s1" }, "decode": { "fixedK_1": { "board": 0.038, "cell": 0.7791185914399633, "valid_sudoku": 0.038, "clues_kept": 1.0, "nfe": 1.0 }, "fixedK_2": { "board": 0.455, "cell": 0.8588970043400022, "valid_sudoku": 0.455, "clues_kept": 1.0, "nfe": 2.0 }, "fixedK_4": { "board": 0.696, "cell": 0.9148406901661903, "valid_sudoku": 0.696, "clues_kept": 1.0, "nfe": 4.0 }, "fixedK_8": { "board": 0.779, "cell": 0.9273314279665502, "valid_sudoku": 0.779, "clues_kept": 1.0, "nfe": 8.0 }, "fixedK_16": { "board": 0.822, "cell": 0.9361878550509862, "valid_sudoku": 0.822, "clues_kept": 1.0, "nfe": 16.0 }, "fixedK_32": { "board": 0.858, "cell": 0.9440210296037542, "valid_sudoku": 0.858, "clues_kept": 1.0, "nfe": 32.0 }, "fixedK_61": { "board": 0.873, "cell": 0.9453794855509685, "valid_sudoku": 0.873, "clues_kept": 1.0, "nfe": 59.4 }, "entbudget_0.01": { "board": 0.869, "cell": 0.9446737941498183, "valid_sudoku": 0.869, "clues_kept": 1.0, "nfe": 26.6 }, "entbudget_0.05": { "board": 0.865, "cell": 0.9473554214741894, "valid_sudoku": 0.865, "clues_kept": 1.0, "nfe": 21.2 }, "entbudget_0.2": { "board": 0.817, "cell": 0.9398750926219964, "valid_sudoku": 0.817, "clues_kept": 1.0, "nfe": 17.8 }, "entbudget_0.5": { "board": 0.752, "cell": 0.9303129741364101, "valid_sudoku": 0.752, "clues_kept": 1.0, "nfe": 9.6 }, "entbudget_1.0": { "board": 0.602, "cell": 0.8949578349387812, "valid_sudoku": 0.602, "clues_kept": 1.0, "nfe": 7.2 }, "entbudget_2.0": { "board": 0.425, "cell": 0.8687413993860484, "valid_sudoku": 0.425, "clues_kept": 1.0, "nfe": 5.0 }, "conf_0.9": { "board": 0.402, "cell": 0.8780918104512897, "valid_sudoku": 0.402, "clues_kept": 1.0, "nfe": 11.0 }, "conf_0.99": { "board": 0.815, "cell": 0.9398045234818814, "valid_sudoku": 0.815, "clues_kept": 1.0, "nfe": 21.6 }, "conf_0.999": { "board": 0.861, "cell": 0.9431389153523164, "valid_sudoku": 0.861, "clues_kept": 1.0, "nfe": 26.4 } }, "best_board": 0.873}1234567891011121314151617181920212223242526272829303132333435363738#!/bin/bash# Ablations that test the mechanism rather than decorate the result.## 0,1 recurrent WITHOUT deep supervision -> is per-step supervision the# ingredient, or is recurrence alone enough?# 2,3 32 DISTINCT layers, d=128, no weight sharing -> is it the depth, or the# weight sharing? Same depth, ~32x the parameters.# 4,5 R=8 instead of 32 -> how much recurrence does the task actually need?## All use the schedule-matched objective, which is the arm that reached 99.70%.#SBATCH -J abl#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 5:00:00#SBATCH -o logs/abl-%A_%a.out#SBATCH --array=0-5%6source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcI=$SLURM_ARRAY_TASK_IDS=$((I % 2))COMMON="--mode full --seed $S --pe ape --hard $SCR/pcmd/data/sudoku_hard --augment \ --heads 4 --bs 256 --steps 120000 --lr 3e-4 --warmup 3000 --K 8 --lam 1.0 \ --eval_bs 250 --ckpt_every 10000"case $((I / 2)) in 0) NAME="abl-nodeepsup-s$S" ARGS="--recurrent --R 32 --R_infer 64 --no_deep_sup --d 128 --layers 1" ;; 1) NAME="abl-deep32L-s$S" ARGS="--d 128 --layers 32" ;; 2) NAME="abl-R8-s$S" ARGS="--recurrent --R 8 --R_infer 16 --d 128 --layers 1" ;;esacecho "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py $ARGS $COMMON --out $SCR/pcmd/runs/$NAME1234567891011121314#!/bin/bash#SBATCH -J bench-gpu-a100_1g.5gb --gres=gpu:a100_1g.5gb:1#SBATCH -p gpu-a100_1g.5gb --gres=gpu:a100_1g.5gb:1#SBATCH #SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 0:20:00#SBATCH -o logs/bench-gpu-a100_1g.5gb --gres=gpu:a100_1g.5gb:1-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u bench.py1234567891011121314#!/bin/bash#SBATCH -J bench-gpu-h100 --gpus=h100:1#SBATCH -p gpu-h100 --gpus=h100:1#SBATCH #SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 0:20:00#SBATCH -o logs/bench-gpu-h100 --gpus=h100:1-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u bench.py12345678910111213141516171819202122232425262728293031323334353637383940#!/bin/bash# The baselines that can overturn the paper's framing.## 0,1 DIRECT + RECURRENT: predict every blank from the puzzle, no masking# schedule, recurrent with deep supervision. This is the Recurrent# Transformer setup reimplemented in our codebase - the control that asks# whether the DIFFUSION framing earns its place at all. If it matches# 99.70%, diffusion contributes nothing and the paper's framing collapses.# 2,3 DIRECT + FEED-FORWARD: same, without recurrence. Isolates recurrence# from the objective.# 4,5 AUTOREGRESSIVE: left-to-right cell filling at matched size. Asks whether# any iterative model would do, making the generative framing irrelevant.#SBATCH -J base#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 5:00:00#SBATCH -o logs/base-%A_%a.out#SBATCH --array=0-5%6source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcI=$SLURM_ARRAY_TASK_IDS=$((I % 2))COMMON="--seed $S --pe ape --hard $SCR/pcmd/data/sudoku_hard --augment \ --heads 4 --bs 256 --steps 120000 --lr 3e-4 --warmup 3000 \ --eval_bs 250 --ckpt_every 10000"case $((I / 2)) in 0) NAME="base-directrec-s$S" ARGS="--objective direct --recurrent --R 32 --R_infer 64 --d 128 --layers 1" ;; 1) NAME="base-directff-s$S" ARGS="--objective direct --d 128 --layers 12" ;; 2) NAME="base-ar-s$S" ARGS="--objective ar --d 128 --layers 12" ;;esacecho "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py $ARGS $COMMON --out $SCR/pcmd/runs/$NAME1234567891011121314#!/bin/bash#SBATCH -J benchH#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 0:20:00#SBATCH -o logs/benchH-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u bench.py1234567891011121314#!/bin/bash#SBATCH -J benchM#SBATCH -p gpu-a100_1g.5gb#SBATCH --gres=gpu:a100_1g.5gb:1#SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 0:20:00#SBATCH -o logs/benchM-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u bench.py123456789101112131415#!/bin/bash#SBATCH -J cmpall#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 16#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/cmpall-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u sudoku_compare.py --hard $SCR/pcmd/data/sudoku_hard \ --runs $SCR/pcmd/runs --pattern 'rec1-*' --out $SCR/pcmd/figures/compare_recurrent.json123456789101112131415161718192021222324252627282930313233#!/bin/bash# Properly specified baselines, replacing two broken ones.## 0 DIRECT + all-cell supervision: the published recurrent classifier trains# on all 81 cells, not just the blanks. Our blanks-only version plateaued at# loss 0.34 against diffusion's 0.15, which is the likeliest cause.# 1 same, second seed - the first attempt had huge seed variance (40.9 / 6.6)# 2 AR PREFIX-LM: [puzzle][solution], causal, loss on the solution half. The# earlier in-place causal version was mis-specified: Sudoku clues are# scattered, so a causal model could not attend to clues on its right.#SBATCH -J fix#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/fix-%A_%a.out#SBATCH --array=0-2%3source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcI=$SLURM_ARRAY_TASK_IDCOMMON="--pe ape --hard $SCR/pcmd/data/sudoku_hard --augment --heads 4 --bs 256 \ --steps 110000 --lr 3e-4 --warmup 3000 --eval_bs 250 --ckpt_every 10000"case $I in 0) NAME="fix-directall-s0"; ARGS="--objective direct --all_cells --recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 0" ;; 1) NAME="fix-directall-s1"; ARGS="--objective direct --all_cells --recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 1" ;; 2) NAME="fix-arprefix-s0"; ARGS="--objective ar --d 128 --layers 12 --seed 0" ;;esacecho "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py $ARGS $COMMON --out $SCR/pcmd/runs/$NAME12345678910111213141516#!/bin/bash# CPU-only: generate the hard Sudoku benchmark. No GPU needed, so this costs# almost nothing against the class GPU allocation.#SBATCH -J genhard#SBATCH -p standard#SBATCH -c 64#SBATCH --mem=64g#SBATCH -t 3:00:00#SBATCH -o logs/genhard-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u gen_hard_sudoku.py --n_train 100000 --n_test 1000 \ --workers 64 --out $SCR/pcmd/data/sudoku_hard12345678910111213141516171819202122232425262728293031323334353637383940#!/bin/bash# Closes the one acknowledged gap in the ablation.## The headline comparison - recurrent 99.70% against 32 distinct layers 94.50% -# conflates TWO differences: weight sharing, and re-supplying the input at every# application. --no_inject holds architecture, depth, parameter count and# objective fixed and changes only the injection, which isolates them.## no-injection stays near 98% -> weight sharing is the mechanism# no-injection falls toward 94% -> injection is, and our explanation is wrong## Runs on a 5GB MIG slice: at 212k parameters and 81-token sequences the# optimiser state is a few MB, and that partition bills at 9/min against the# H100's 144 - 16x more compute from the same remaining allocation.#SBATCH -J inj#SBATCH -p gpu-a100_1g.5gb#SBATCH --gres=gpu:a100_1g.5gb:1#SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 6:00:00#SBATCH -o logs/inj-%A_%a.out#SBATCH --array=0-4%5source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcI=$SLURM_ARRAY_TASK_IDCOMMON="--mode full --pe ape --hard $SCR/pcmd/data/sudoku_hard --augment \ --heads 4 --bs 256 --steps 110000 --lr 3e-4 --warmup 3000 --K 8 --lam 1.0 \ --eval_bs 200 --ckpt_every 8000"case $I in 0) NAME="inj-noinject-s0"; ARGS="--recurrent --R 32 --R_infer 64 --no_inject --d 128 --layers 1 --seed 0" ;; 1) NAME="inj-noinject-s1"; ARGS="--recurrent --R 32 --R_infer 64 --no_inject --d 128 --layers 1 --seed 1" ;; 2) NAME="inj-deep32L-s1"; ARGS="--d 128 --layers 32 --seed 1" ;; 3) NAME="inj-rec-s2"; ARGS="--recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 2" ;; 4) NAME="inj-rec-s3"; ARGS="--recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 3" ;;esacecho "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py $ARGS $COMMON --out $SCR/pcmd/runs/$NAME1234567891011121314151617181920212223242526272829303132333435363738394041#!/bin/bash# Closes the one acknowledged gap in the ablation.## The headline comparison - recurrent 99.70% against 32 distinct layers 94.50% -# conflates TWO differences: weight sharing, and re-supplying the input at every# application. --no_inject holds architecture, depth, parameter count and# objective fixed and changes only the injection, which isolates them.## no-injection stays near 98% -> weight sharing is the mechanism# no-injection falls toward 94% -> injection is, and our explanation is wrong## Runs on a 5GB MIG slice: at 212k parameters and 81-token sequences the# optimiser state is a few MB, and that partition bills at 9/min against the# H100's 144 - 16x more compute from the same remaining allocation.#SBATCH -J inj#SBATCH -p gpu-a100_1g.5gb#SBATCH --gres=gpu:a100_1g.5gb:1#SBATCH -c 4#SBATCH --mem=16g#SBATCH -t 6:00:00#SBATCH -o logs/inj-%A_%a.out#SBATCH --array=0-2%3source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:Truecd $SCR/pcmd/srcI=$SLURM_ARRAY_TASK_IDCOMMON="--mode full --pe ape --hard $SCR/pcmd/data/sudoku_hard --augment \ --heads 4 --bs 64 --steps 110000 --lr 3e-4 --warmup 3000 --K 8 --lam 1.0 \ --eval_bs 200 --ckpt_every 8000"case $I in 0) NAME="inj-noinject-s0"; ARGS="--recurrent --R 32 --R_infer 64 --no_inject --d 128 --layers 1 --seed 0" ;; 1) NAME="inj-noinject-s1"; ARGS="--recurrent --R 32 --R_infer 64 --no_inject --d 128 --layers 1 --seed 1" ;; 2) NAME="inj-deep32L-s1"; ARGS="--d 128 --layers 32 --seed 1" ;; 3) NAME="inj-rec-s2"; ARGS="--recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 2" ;; 4) NAME="inj-rec-s3"; ARGS="--recurrent --R 32 --R_infer 64 --d 128 --layers 1 --seed 3" ;;esacecho "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py $ARGS $COMMON --out $SCR/pcmd/runs/$NAME1234567891011121314151617181920212223242526272829303132333435363738#!/bin/bash# QM9 molecular generation - validity retained as denoising steps fall.## This is the axis the discrete graph-diffusion literature competes on. DiGress# and its successors use hundreds of denoising steps; the question is how much# validity survives at few steps, and that depends on the training schedule and# the decoding rule rather than on model scale - which is why it is winnable at# this budget when text8 bits-per-character is not.## Both of the project's findings are under test here at once, and QM9 is the# strongest possible case for the second. Its marginals are extremely# position-dependent: node slot 8 is NEVER occupied, and edge slots range from# never-bonded to always-bonded, giving a mean total-variation distance of 0.435# between a slot and the average slot. Finding 2 therefore predicts that a# relative-only encoding badly caps few-step generation here, and that absolute# position information produces a large gain. Registered before the runs.#SBATCH -J mol1#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 3:00:00#SBATCH -o logs/mol1-%A_%a.out#SBATCH --array=0-7%8source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcMODES=(mdlm matched); PES=(rope ape); SEEDS=(0 1)I=$SLURM_ARRAY_TASK_IDM=${MODES[$((I / 4))]}; P=${PES[$(((I % 4) / 2))]}; S=${SEEDS[$((I % 2))]}NAME="mol1-$M-$P-s$S"echo "=== $NAME ==="$SCR/hf_env/bin/python -u train_mol.py --mode $M --pe $P --seed $S --K 8 \ --root $SCR/pcmd/data/qm9 --d 384 --layers 8 --heads 8 --bs 256 \ --steps 60000 --lr 1e-4 --warmup 2000 --n_gen 4096 --gen_bs 512 \ --out $SCR/pcmd/runs/$NAME123456789101112131415#!/bin/bash#SBATCH -J molfair#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/molfair-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u mol_fair.py --runs $SCR/pcmd/runs --root $SCR/pcmd/data/qm9 \ --n_gen 2048 --gen_bs 512 --out $SCR/pcmd/figures/mol_fair.json1234567891011121314151617181920212223242526272829303132333435#!/bin/bash# Recurrent masked diffusion with deep supervision, on hard Sudoku.## The gap this targets is measured, not guessed. Our 37.86M-parameter 12-layer# denoiser reaches 89.4%; Yang et al. (2023) reach 99.5% on a comparable split# with 211k parameters - 180x smaller - by applying ONE block 32 times with loss# at every recurrence. Constraint propagation is iterative, and a fixed-depth# network cannot express thirty rounds of it at any width.## Config follows theirs (d=128, 1 layer, 4 heads, R=32) so the comparison is# about the diffusion framing rather than about scale. Inference runs R=64,# more than training, which deep supervision is what makes possible.#SBATCH -J rec1#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 5:00:00#SBATCH -o logs/rec1-%A_%a.out#SBATCH --array=0-3%4source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcMODES=(mdlm full); SEEDS=(0 1)I=$SLURM_ARRAY_TASK_IDM=${MODES[$((I / 2))]}; S=${SEEDS[$((I % 2))]}NAME="rec1-$M-s$S"echo "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py --recurrent --R 32 --R_infer 64 \ --mode $M --seed $S --pe ape --hard $SCR/pcmd/data/sudoku_hard --augment \ --d 128 --layers 1 --heads 4 --bs 256 --steps 120000 --lr 3e-4 --warmup 3000 \ --K 8 --lam 1.0 --eval_bs 250 --ckpt_every 10000 \ --out $SCR/pcmd/runs/$NAME123456789101112131415#!/bin/bash#SBATCH -J rsweep#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/rsweep-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u sudoku_rsweep.py --hard $SCR/pcmd/data/sudoku_hard \ --runs $SCR/pcmd/runs --pattern 'rec1-*' --out $SCR/pcmd/figures/sudoku_rsweep.json1234567891011121314151617181920212223242526272829303132333435363738#!/bin/bash# Sudoku on the SATNet benchmark (Wang et al., ICML 2019), 9000/1000 split,# scored by BOARD-level accuracy - all 81 cells correct - which is the published# metric. SATNet reports 98.3%.## The registered prediction: Sudoku has a unique answer, so TC = 0 and there is# no information-theoretic obstacle at all; the whole difficulty is mode (i) plus# the ORDER of commitment. An entropy-budgeted decoder commits the forced cells# first, recomputes and repeats, which IS constraint propagation. A fixed-K# decoder commits a fixed share per pass regardless of certainty. The gap between# them should be the largest in this project.## Augmentation is by digit relabelling, a genuine Sudoku symmetry that leaves the# constraint structure untouched. Both arms are run because SATNet did not# augment, so the un-augmented number is the like-for-like one.#SBATCH -J sud1#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 4:00:00#SBATCH -o logs/sud1-%A_%a.out#SBATCH --array=0-7%4source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcMODES=(mdlm full); AUG=(plain aug); SEEDS=(0 1)I=$SLURM_ARRAY_TASK_IDM=${MODES[$((I / 4))]}; A=${AUG[$(((I % 4) / 2))]}; S=${SEEDS[$((I % 2))]}FLAG=""; [ "$A" = "aug" ] && FLAG="--augment"NAME="sud1-$M-$A-s$S"echo "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py --mode $M $FLAG --seed $S --pe ape \ --root $SCR/pcmd/data/sudoku --d 512 --layers 10 --heads 8 --bs 128 \ --steps 60000 --lr 1e-4 --warmup 2000 --K 8 --lam 1.0 --eval_bs 200 \ --out $SCR/pcmd/runs/$NAME123456789101112131415#!/bin/bash#SBATCH -J sudcmp#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 16#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/sudcmp-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u sudoku_compare.py --hard $SCR/pcmd/data/sudoku_hard \ --runs $SCR/pcmd/runs --out $SCR/pcmd/figures/sudoku_compare.json123456789101112131415#!/bin/bash#SBATCH -J sudhard#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 1:30:00#SBATCH -o logs/sudhard-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u sudoku_hard.py --runs $SCR/pcmd/runs --figs $SCR/pcmd/figures \ --out $SCR/pcmd/figures/sudoku_hard.json12345678910111213141516171819202122232425262728293031323334353637#!/bin/bash# Hard Sudoku: minimal puzzles at ~24 clues, where search-free constraint# propagation solves about 4%. Unlike the SATNet split - which a classical# solver saturates at 100% - this discriminates.## Every puzzle was verified to have exactly one solution at generation time, and# train/test solutions are disjoint even up to digit relabelling (an earlier# generator leaked 767/1000 and the assertion caught it).## Baselines to beat, measured on this exact test set:# constraint propagation, no search : ~4%# backtracking search : 100%, but it is search# The question is what a masked diffusion model reaches in a fixed, small number# of forward passes.#SBATCH -J sudhard#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 4:00:00#SBATCH -o logs/sudhard-%A_%a.out#SBATCH --array=0-3%4source /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/srcMODES=(mdlm full); SEEDS=(0 1)I=$SLURM_ARRAY_TASK_IDM=${MODES[$((I / 2))]}; S=${SEEDS[$((I % 2))]}NAME="sudh-$M-s$S"echo "=== $NAME ==="$SCR/hf_env/bin/python -u train_sudoku.py --mode $M --seed $S --pe ape \ --hard $SCR/pcmd/data/sudoku_hard --augment \ --d 512 --layers 12 --heads 8 --bs 256 --steps 150000 --lr 1e-4 --warmup 4000 \ --K 8 --lam 1.0 --eval_bs 200 --ckpt_every 10000 \ --out $SCR/pcmd/runs/$NAME123456789101112131415#!/bin/bash#SBATCH -J sudrm#SBATCH -p gpu-h100#SBATCH --gpus=h100:1#SBATCH -c 8#SBATCH --mem=48g#SBATCH -t 2:00:00#SBATCH -o logs/sudrm-%j.outsource /etc/profileSCR=/scratch/zt1/project/msml612/user/$USERmodule load python/3.10.10export PYTHONPATH=cd $SCR/pcmd/src$SCR/hf_env/bin/python -u sudoku_remask.py --hard $SCR/pcmd/data/sudoku_hard \ --runs $SCR/pcmd/runs --pattern 'sudh-*' --out $SCR/pcmd/figures/sudoku_remask.json1234567891011121314151617181920212223242526272829303132333435363738"""Throughput of the ACTUAL Sudoku model on whatever GPU this job got.
The class allocation bills an H100 at 144/min and a 5GB MIG slice at 9/min - 16xapart. That only matters if the MIG slice is less than 16x slower on OURworkload, which is 81-token sequences and a ~32M-parameter model: a size where anH100 is largely idle. Measured rather than assumed."""import os, sys, time, torchsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))from model import Transformerimport diffusion as dfnfrom sudoku import CELLS, SudokuTokenizer
dev = "cuda"tok = SudokuTokenizer()m = Transformer(len(tok), 512, 10, 8, "ape", causal=False, max_len=CELLS + 8).to(dev)opt = torch.optim.AdamW(m.parameters(), lr=1e-4)x = torch.randint(0, 9, (128, CELLS), device=dev)a = torch.rand(128, CELLS, device=dev) < 0.55
for _ in range(10): # warm up with torch.autocast("cuda", dtype=torch.bfloat16): loss = dfn.pmd_loss(m, x, a, tok, "full", 8, 1.0) opt.zero_grad(set_to_none=True); loss.backward(); opt.step()torch.cuda.synchronize()
t0 = time.time()N = 100for _ in range(N): with torch.autocast("cuda", dtype=torch.bfloat16): loss = dfn.pmd_loss(m, x, a, tok, "full", 8, 1.0) opt.zero_grad(set_to_none=True); loss.backward(); opt.step()torch.cuda.synchronize()el = time.time() - t0name = torch.cuda.get_device_name(0)print(f"GPU={name}")print(f" {N/el:.1f} steps/sec ({el/N*1000:.1f} ms/step)")print(f" 60k steps would take {60000*el/N/60:.1f} min")807 unmodified lines808809810807 unmodified linesif rem.any() and pred is not None:x[rem] = pred[rem]return x807 unmodified lines808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924807 unmodified linesif rem.any() and pred is not None:x[rem] = pred[rem]return x# --------------------------------------------- verifier-guided remasking ---# Masked diffusion decoding is ABSORBING: once a position is unmasked it can# never be revised. On a constraint problem that is fatal - three wrong cells out# of fifty-seven destroy a whole board, which is exactly the observed failure# mode (94.9% of cells correct but only 87.9% of boards).## When the task has a checkable constraint, the repair signal is exact rather# than heuristic: we know precisely which positions conflict. Remask only those,# re-decode them against the surviving context, and repeat. This is the diffusion# analogue of the propagate-detect-backtrack loop every classical solver runs,# and unlike a confidence heuristic it never remasks a position that is provably# fine.## The per-position remask counter is what keeps it terminating: a cell that has# already been reopened `max_revisits` times is frozen, so two mutually# inconsistent cells cannot flip each other forever.@torch.no_grad()def verifier_remask_decode(model, x, tok, device, violation_fn, base_steps=16,rounds=8, max_revisits=3, fillable=None,expand_peers=None, allowed=None, temperature=1.0):"""Decode, then repeatedly remask whatever a verifier says is wrong.violation_fn(x) -> bool mask of positions involved in a violation, where xholds the current token ids. `expand_peers`, if given, maps a violation maskto a wider mask (for Sudoku: the conflicting cells plus their units), whichgives the model room to re-solve the local subproblem rather than re-guess asingle cell in an unchanged context.Returns (x, nfe) with nfe counting every forward pass, so the cost of therepair rounds is charged honestly against the fixed-K budgets it is comparedwith."""x = x.clone().to(device)can = (x == tok.mask) if fillable is None else fillable.to(device)B, L = x.shapex, nfe = fixed_k_decode(model, x, tok, device, base_steps, fillable=can,allowed=allowed, temperature=temperature)revisits = torch.zeros((B, L), dtype=torch.long, device=device)for _ in range(rounds):bad = violation_fn(x).to(device) & canif expand_peers is not None:bad = expand_peers(bad) & can# a position already reopened too often is frozen, or two conflicting# cells would keep overwriting each other indefinitelybad = bad & (revisits < max_revisits)if not bad.any():breakrevisits = revisits + bad.long()x = torch.where(bad, torch.full_like(x, tok.mask), x)# re-decode only the reopened positions, against everything still heldsteps = max(1, min(base_steps, int(bad.sum(1).max())))x, n2 = fixed_k_decode(model, x, tok, device, steps, fillable=bad,allowed=allowed, temperature=temperature)nfe += n2return x, nfedef recurrent_cond_loss(model, x0, amask, tok, mode="mdlm", K=8, lam=1.0,recurrences=None, deep_sup=True):"""Conditional masked-diffusion loss with DEEP SUPERVISION over recurrences.Loss is taken at every recurrence rather than only the last. That is theingredient Yang et al. (2023) identify as critical for constraintsatisfaction: it forces every application of the shared block to be a validone-step refinement, which in turn is what lets inference run morerecurrences than training.Later recurrences are weighted more heavily - a linear ramp - so the finaloutput still receives the strongest signal while the early ones are kepthonest."""B, L = x0.shapedev = x0.deviceif mode == "matched" or mode == "full":t = torch.randint(1, K + 1, (B,), device=dev).float() / Kelse:t = torch.rand(B, device=dev).clamp_min(1.0 / L)m = _cond_mask(x0, amask, tok, t)xt = torch.where(m, torch.full_like(x0, tok.mask), x0)outs = model(xt, recurrences=recurrences, return_all=True)R = len(outs)if not deep_sup:outs = outs[-1:] # ablation: supervise only the lasttotal, wsum = 0.0, 0.0for r, logits in enumerate(outs):w = (r + 1) / len(outs) if deep_sup else 1.0ce = F.cross_entropy(logits.reshape(-1, logits.size(-1)),x0.reshape(-1), reduction="none").view(B, L)total = total + w * ((ce * m).sum(1) / m.sum(1).clamp_min(1)).mean()wsum += wloss = total / wsumif mode == "full":# the t=1 term, also deep-supervisedxf = torch.where(amask, torch.full_like(x0, tok.mask), x0)outs_f = model(xf, recurrences=recurrences, return_all=True)if not deep_sup:outs_f = outs_f[-1:]tot_f, ws = 0.0, 0.0for r, logits in enumerate(outs_f):w = (r + 1) / len(outs_f) if deep_sup else 1.0ce = F.cross_entropy(logits.reshape(-1, logits.size(-1)),x0.reshape(-1), reduction="none").view(B, L)tot_f = tot_f + w * ((ce * amask).sum(1) / amask.sum(1).clamp_min(1)).mean()ws += wloss = loss + lam * tot_f / wsreturn loss
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200"""Generate a HARD Sudoku benchmark, with every puzzle verified unique.
The SATNet split is saturated - search-free constraint propagation solves1000/1000 of it - so nothing measured there discriminates between methods. Thisbuilds instances that do.
Each puzzle is MINIMAL: cells are removed from a completed grid in random orderand a removal is kept only if the solution is still unique, verified by anexhaustive counter that stops at two. The result carries roughly 19-30 clues(mean 24), where constraint propagation alone solves about 4%. No puzzle is accepted withoutthat uniqueness check, so board accuracy remains a well-defined quantity.
Solutions come from a randomised backtracking fill of an EMPTY grid, whichreaches the full space of roughly 6.7e21 valid grids.
An earlier version applied the Sudoku symmetry group to a single seed gridinstead. That was much faster and completely wrong: every grid it produced layin one equivalence class, whose size modulo digit relabelling is only about 3.4million, so 101,000 draws collided constantly and 767 of 1000 test solutionsalready appeared in training. The assertion below caught it. It is kept, and itis the reason the slower fill is used.
Train and test are built from DISJOINT solution grids and the script assertsthat no test solution appears in training, in any relabelling."""import argparse, os, sys, timefrom multiprocessing import Pool
import numpy as np
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))from sudoku import CELLS, GRID
PEERS = None
def _peers(): out = [] for i in range(CELLS): r, c = divmod(i, GRID) br, bc = 3 * (r // 3), 3 * (c // 3) s = set() for k in range(GRID): s.add(r * GRID + k) s.add(k * GRID + c) for dr in range(3): for dc in range(3): s.add((br + dr) * GRID + bc + dc) s.discard(i) out.append(sorted(s)) return out
PEERS = _peers()
def candidates(g): cand = [0x1FF if v == 0 else (1 << (v - 1)) for v in g] for i, v in enumerate(g): if v: bit = 1 << (v - 1) for p in PEERS[i]: if cand[p] & bit: cand[p] &= ~bit if cand[p] == 0: return None return cand
def count_solutions(grid, limit=2): g = [int(v) for v in grid]
def rec(): cand = candidates(g) if cand is None: return 0 best, bi = 10, -1 for i in range(CELLS): if g[i] == 0: n = bin(cand[i]).count("1") if n < best: best, bi = n, i if n == 1: break if bi < 0: return 1 tot = 0 for d in range(9): if cand[bi] & (1 << d): g[bi] = d + 1 tot += rec() g[bi] = 0 if tot >= limit: return tot return tot
return rec()
def random_solution(rng): """A uniformly-ish random completed grid, by randomised backtracking fill.
The previous version applied the Sudoku symmetry group to a single seed grid. Every grid it produced therefore lay in ONE equivalence class, whose size modulo digit relabelling is only about 3.4 million - so drawing 101,000 samples collided constantly, and 767 of 1000 test solutions turned out to already appear in training. Filling an empty grid instead reaches the full space of roughly 6.7e21 valid grids, where collisions are impossible in practice. """ g = [0] * CELLS while True: cand = candidates(g) if cand is None: return None best, bi = 10, -1 for i in range(CELLS): if g[i] == 0: n = bin(cand[i]).count("1") if n < best: best, bi = n, i if bi < 0: return np.array(g, dtype=np.int64) digits = [d + 1 for d in range(9) if cand[bi] & (1 << d)] rng.shuffle(digits) placed = False for d in digits: g[bi] = d if candidates(g) is not None: placed = True break g[bi] = 0 if not placed: # dead end: restart rather than backtrack; restarts are rare and a # fresh fill is cheaper than unwinding a deep search g = [0] * CELLS
def make_one(seed): rng = np.random.default_rng(seed) sol = None while sol is None: sol = random_solution(rng) g = [int(v) for v in sol] for c in rng.permutation(CELLS): keep = g[c] g[c] = 0 if count_solutions(g, 2) != 1: g[c] = keep return np.array(g, dtype=np.int64), sol
def canon(g): m, out = {}, [] for v in g: if v not in m: m[v] = len(m) + 1 out.append(m[v]) return bytes(out)
if __name__ == "__main__": p = argparse.ArgumentParser() p.add_argument("--n_train", type=int, default=100000) p.add_argument("--n_test", type=int, default=1000) p.add_argument("--workers", type=int, default=64) p.add_argument("--out", default="data/sudoku_hard") a = p.parse_args() os.makedirs(a.out, exist_ok=True)
total = a.n_train + a.n_test t0 = time.time() with Pool(a.workers) as pool: got = pool.map(make_one, range(total), chunksize=32) P = np.stack([g for g, _ in got]) S = np.stack([s for _, s in got]) print(f"generated {len(P)} minimal puzzles in {time.time()-t0:.0f}s", flush=True) print(f"clues: min={(P>0).sum(1).min()} max={(P>0).sum(1).max()} " f"mean={(P>0).sum(1).mean():.1f}", flush=True)
Ptr, Str = P[:a.n_train], S[:a.n_train] Pte, Ste = P[a.n_train:], S[a.n_train:]
# a test solution must not appear in training, even up to digit relabelling tr = {canon(r) for r in Str} leak = sum(canon(r) in tr for r in Ste) print(f"test solutions also in training (up to relabelling): {leak}", flush=True) assert leak == 0, "leakage between train and test"
# every puzzle must still admit exactly one solution bad = sum(count_solutions(Pte[i], 2) != 1 for i in range(0, len(Pte), 25)) print(f"test puzzles without a unique solution (sampled): {bad}", flush=True) assert bad == 0
np.save(os.path.join(a.out, "train_puz.npy"), Ptr) np.save(os.path.join(a.out, "train_sol.npy"), Str) np.save(os.path.join(a.out, "test_puz.npy"), Pte) np.save(os.path.join(a.out, "test_sol.npy"), Ste) print(f"saved to {a.out}: train {Ptr.shape} test {Pte.shape}", flush=True)161 unmodified lines162163164161 unmodified linesdef n_params(self):return sum(p.numel() for p in self.parameters() if p.requires_grad)161 unmodified lines162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235161 unmodified linesdef n_params(self):return sum(p.numel() for p in self.parameters() if p.requires_grad)class RecurrentDenoiser(nn.Module):"""A weight-shared block applied R times, supervised at every step.Motivated by a measurement, not a hunch. On hard Sudoku a 37.86M-parameter12-layer denoiser reaches 89.4%, while the Recurrent Transformer of Yang etal. (2023) reaches 99.5% on a comparable split with 211k parameters - 180xsmaller. The difference is not capacity, it is that constraint propagation isan ITERATIVE algorithm: solving a hard Sudoku takes tens of rounds of"eliminate, propagate, repeat". A fixed 12-layer feedforward network cannotexpress thirty rounds of propagation at any width; one block applied thirtytimes can.This is the same argument THEORY.md makes for addition - that a K-pass decodehas effective depth L*K and "borrows depth from the decoding loop" - appliedto the architecture instead of to the decoder.Two details carry the method:INPUT INJECTION. The token embedding is re-added at every recurrence.Without it the input signal decays through thirty applications of the sameblock and the model forgets the clues it is solving for.DEEP SUPERVISION. Training loss is taken at EVERY recurrence, not only thelast. That forces each application to make progress on its own rather thanletting the stack learn one entangled thirty-step function, and it is whatlets inference run MORE recurrences than training - the per-step objectiveis the same at every step, so the map is iterable beyond where it was fit."""def __init__(self, vocab, d=128, n_layers=1, n_heads=4, pe="ape",max_len=128, recurrences=32, hidden_mult=4):super().__init__()self.pe_kind, self.causal = pe, Falseself.recurrences = recurrencesself.emb = nn.Embedding(vocab, d)if pe == "ape":self.pos = nn.Embedding(max_len, d)elif pe == "sin":self.register_buffer("pos_sin", sinusoidal(max_len, d), persistent=False)self.blocks = nn.ModuleList([Block(d, n_heads, pe, False, max_len)for _ in range(n_layers)])self.norm = nn.LayerNorm(d)self.head = nn.Linear(d, vocab, bias=False)self.apply(Transformer._init)def _inject(self, idx):x = self.emb(idx)if self.pe_kind == "ape":x = x + self.pos(torch.arange(idx.shape[1], device=idx.device))[None]elif self.pe_kind == "sin":x = x + self.pos_sin[torch.arange(idx.shape[1], device=idx.device)][None]return xdef forward(self, idx, pad_mask=None, pos_ids=None, budget=None,recurrences=None, return_all=False):"""Returns final logits, or the list of logits from every recurrence."""R = recurrences or self.recurrencesinp = self._inject(idx)h = inpouts = []for _ in range(R):h = h + inp # input injection: keep the clues alivefor b in self.blocks:h = b(h, pad_mask, pos_ids)outs.append(self.head(self.norm(h)))return outs if return_all else outs[-1]def n_params(self):return sum(p.numel() for p in self.parameters() if p.requires_grad)
141 unmodified lines142143144141 unmodified linestr = {bytes(r) for r in Xtr[::3]}ov = sum(bytes(r) in tr for r in Xte)print(f"test puzzles also seen in the training sample: {ov} (must be 0)")141 unmodified lines142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194141 unmodified linestr = {bytes(r) for r in Xtr[::3]}ov = sum(bytes(r) in tr for r in Xte)print(f"test puzzles also seen in the training sample: {ov} (must be 0)")def _unit_list():us = []for r in range(GRID):us.append([r * GRID + c for c in range(GRID)])for c in range(GRID):us.append([r * GRID + c for r in range(GRID)])for br in range(0, GRID, 3):for bc in range(0, GRID, 3):us.append([(br + dr) * GRID + bc + dc for dr in range(3) for dc in range(3)])return usUNIT_LIST = _unit_list()def violation_mask(x):"""Positions involved in a row/column/box duplicate. Exact, not heuristic.x is (B, 81) of token ids 0-8. A cell is flagged when its value appears morethan once in any unit it belongs to. A solved grid flags nothing, so thisdoubles as the stopping condition for verifier-guided remasking."""import torchB = x.shape[0]bad = torch.zeros_like(x, dtype=torch.bool)for unit in UNIT_LIST:idx = torch.tensor(unit, device=x.device)vals = x[:, idx] # (B, 9)same = vals[:, :, None] == vals[:, None, :] # (B, 9, 9)dup = same.sum(-1) > 1 # appears more than oncebad[:, idx] |= dupreturn baddef expand_to_units(bad):"""Widen a violation mask to every cell sharing a unit with a flagged cell.Re-deciding a single conflicting cell in an otherwise unchanged context tendsto reproduce the same value. Reopening its row, column and box gives themodel a subproblem it can actually re-solve."""import torchout = torch.zeros_like(bad)for unit in UNIT_LIST:idx = torch.tensor(unit, device=bad.device)hit = bad[:, idx].any(1, keepdim=True) # (B, 1)out[:, idx] |= hitreturn out
README.md+56-91
figures/compare_recurrent.jsonAdded+119
figures/mol_fair.jsonAdded+106
figures/sudoku_compare.jsonAdded+119
figures/sudoku_hard.jsonAdded+86
figures/sudoku_remask.jsonAdded+190
figures/sudoku_rsweep.jsonAdded+42
figures/sudoku_validate.jsonAdded+68
results/abl-deep32L-s0.jsonAdded+141
results/abl-nodeepsup-s0.jsonAdded+141
results/abl-nodeepsup-s1.jsonAdded+141
results/base-ar-s0.jsonAdded+36
results/base-directrec-s0.jsonAdded+142
results/base-directrec-s1.jsonAdded+142
results/fix-arprefix-s0.jsonAdded+37
results/fix-directall-s0.jsonAdded+143
results/fix-directall-s1.jsonAdded+143
results/rec1-full-s0.jsonAdded+140
results/rec1-full-s1.jsonAdded+140
results/rec1-mdlm-s0.jsonAdded+140
results/rec1-mdlm-s1.jsonAdded+140
results/sudh-full-s0.jsonAdded+137
results/sudh-full-s1.jsonAdded+137
results/sudh-mdlm-s0.jsonAdded+137
results/sudh-mdlm-s1.jsonAdded+137
slurm/abl.shAdded+38
slurm/b_gpu-a100_1g.5gb --gres=gpu:a100_1g.5gb:1.shAdded+14
slurm/b_gpu-h100 --gpus=h100:1.shAdded+14
slurm/base.shAdded+40
slurm/bh.shAdded+14
slurm/bm.shAdded+14
slurm/cmpall.shAdded+15
slurm/fix.shAdded+33
slurm/genhard.shAdded+16
slurm/inj.shAdded+40
slurm/inj2.shAdded+41
slurm/mol1.shAdded+38
slurm/molfair.shAdded+15
slurm/rec1.shAdded+35
slurm/rsw.shAdded+15
slurm/sud1.shAdded+38
slurm/sudcompare.shAdded+15
slurm/sudhard.shAdded+15
slurm/sudhard_train.shAdded+37
slurm/sudremask.shAdded+15
src/bench.pyAdded+38
src/diffusion.py+114
src/gen_hard_sudoku.pyAdded+200
src/model.py+71
src/sudoku.py+50