revision: second injection-ON seed, RRN zero-shot results
Browse filesFiles changed (9)
- revision/README.md+27-4
- revision/logs/rrn_zeroshot.logAdded+81
- revision/rmdm-both-s1/ckpt_80k.ptAdded+3
- revision/rmdm-both-s1/rmdm-both-s1.logAdded+21
- revision/rmdm-both-s1/rmdm_both_s1.jsonAdded+34
- revision/rmdm-both-s1/rmdm_compare_original_runs.jsonAdded+98
- revision/rmdm-both-s1/rmdm_eval.logAdded+29
- revision/rrn/ours_rec_full_s0_zeroshot_K1.jsonAdded+89
- revision/rrn/ours_rec_full_s0_zeroshot_K61.jsonAdded+89
50 unmodified lines51525354545556575859606162636465666768697071725657737475761 unmodified line78798065818283848586878889909192939450 unmodified lines
## 4. Additional seeds
| arm | original | new seed | config |### 4a. Input injection, matched test (README §2b), now n = 2 on both sides
All four arms: R-MDM step embedding on, d128, 1 block, R=32 train / 64 inference, batch 64, stopped at step 80,000 of 110,000, scored on the same 1,000 test puzzles. Seeds 0 of both arms and seed 1 of OFF are the original runs (`rmdm-both-s1/rmdm_compare_original_runs.json`); ON seed 1 is new, trained on the Lambda A100 with the same code and data (the others ran on Zaratan A100s).
| passes | OFF s0 | OFF s1 | ON s0 | **ON s1 (new)** | OFF mean | ON mean | ON − OFF | ranges ||---|---|---|---|---|---|---|---|---|| 1 | 75.7 | 8.3 | 89.0 | **82.7** | 42.00 | 85.85 | +43.85 | disjoint, ON above || 4 | 94.0 | 84.6 | 93.1 | **92.6** | 89.30 | 92.85 | +3.55 | overlap || 8 | 94.8 | 91.7 | 94.0 | **94.1** | 93.25 | 94.05 | +0.80 | overlap || 16 | 96.0 | 93.0 | 95.9 | **94.5** | 94.50 | 95.20 | +0.70 | overlap || 32 | 97.1 | 95.3 | 96.4 | **95.4** | 96.20 | 95.90 | -0.30 | overlap || 61 | 97.1 | 96.6 | 96.9 | **94.9** | 96.85 | 95.90 | -0.95 | overlap |
At 61 passes the second seed moves the injection effect from +0.05 to -0.95 points; the retraction stands. At one pass both injection-ON seeds lie above both injection-OFF seeds, the pattern §2b described as a hypothesis from one seed. Two seeds per arm make it a consistent observation, not an established effect.
### 4b. 32 distinct layers at batch 256
| arm | seed 0 (original) | seed 1 (new) | config ||---|---|---|---|| §2b R-MDM + input injection ON | 96.90% @61 NFE (n=1) | *running* | batch 64, stopped at step 80,000 of 110,000 like the other arms || 32 distinct layers @bs256 | 94.50% (n=1) | *running* | d128, 32 layers, batch 256, 120k steps || 32 distinct layers | 94.50% | *running* | d128, 32 layers, batch 256, 120k steps |
## 5. The RRN benchmark
1 unmodified line
| model | trained on | 1 pass | 12 passes | 61 passes ||---|---|---|---|---|| ours `rec1-full-s0` (zero-shot) | our benchmark | *running* | – | *running* || ours `rec1-full-s0` (zero-shot) | our benchmark | 99.7% | – | 99.9% || ours, same recipe | RRN train | *running* | *running* | *running* || Recurrent Transformer (Yang et al., 2023, reported) | RRN train | – | – | 99.5% |
By clue count, zero-shot, 61 passes:
| clues | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 ||---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|| board | 99.3 | 99.9 | 99.9 | 100.0 | 99.9 | 100.0 | 99.8 | 100.0 | 100.0 | 100.0 | 100.0 | 99.9 | 99.9 | 99.9 | 100.0 | 100.0 | 100.0 | 99.9 || n | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 | 1000 |
## Problems found and fixed during these runs
- **Clue-set generator reproduced the training split.** `make_clue_sets.py` defaulted to seed 0, and `gen_hard_sudoku.py` drew the training split from seeds 0–100,999 with the same solution sampler, so every generated solution was a training solution. The leakage assertion caught it before anything was scored; the default is now 1,000,000 × clues.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 500/18000 board 100.0% 34s 1000/18000 board 99.9% 67s 1500/18000 board 99.9% 100s 2000/18000 board 100.0% 133s 2500/18000 board 99.9% 167s 3000/18000 board 99.9% 200s 3500/18000 board 99.9% 234s 4000/18000 board 99.9% 267s 4500/18000 board 99.9% 300s 5000/18000 board 99.9% 333s 5500/18000 board 99.9% 367s 6000/18000 board 99.9% 400s 6500/18000 board 99.9% 433s 7000/18000 board 99.9% 466s 7500/18000 board 99.9% 499s 8000/18000 board 99.9% 533s 8500/18000 board 99.9% 566s 9000/18000 board 99.9% 599s 9500/18000 board 99.9% 633s 10000/18000 board 99.9% 666s 10500/18000 board 99.9% 699s 11000/18000 board 99.9% 733s 11500/18000 board 99.9% 766s 12000/18000 board 99.9% 799s 12500/18000 board 99.9% 833s 13000/18000 board 99.9% 866s 13500/18000 board 99.9% 899s 14000/18000 board 99.9% 932s 14500/18000 board 99.9% 966s 15000/18000 board 99.9% 999s 15500/18000 board 99.9% 1032s 16000/18000 board 99.9% 1066s 16500/18000 board 99.9% 1098s 17000/18000 board 99.9% 1131s 17500/18000 board 99.9% 1164s 18000/18000 board 99.9% 1198s
ours, recurrent (212k) on /home/ubuntu/w/data/rrn, 61 passes board accuracy 99.91% of 18000 (1198s) written to /home/ubuntu/w/out/rrn/ours_rec_full_s0_zeroshot_K61.json 500/18000 board 99.8% 1s 1000/18000 board 99.8% 2s 1500/18000 board 99.8% 2s 2000/18000 board 99.8% 3s 2500/18000 board 99.8% 3s 3000/18000 board 99.8% 4s 3500/18000 board 99.8% 4s 4000/18000 board 99.8% 5s 4500/18000 board 99.8% 5s 5000/18000 board 99.8% 6s 5500/18000 board 99.8% 7s 6000/18000 board 99.8% 7s 6500/18000 board 99.8% 8s 7000/18000 board 99.8% 8s 7500/18000 board 99.8% 9s 8000/18000 board 99.8% 9s 8500/18000 board 99.8% 10s 9000/18000 board 99.7% 10s 9500/18000 board 99.7% 11s 10000/18000 board 99.7% 12s 10500/18000 board 99.7% 12s 11000/18000 board 99.7% 13s 11500/18000 board 99.7% 13s 12000/18000 board 99.7% 14s 12500/18000 board 99.7% 14s 13000/18000 board 99.7% 15s 13500/18000 board 99.7% 15s 14000/18000 board 99.7% 16s 14500/18000 board 99.7% 17s 15000/18000 board 99.7% 17s 15500/18000 board 99.7% 18s 16000/18000 board 99.7% 18s 16500/18000 board 99.7% 19s 17000/18000 board 99.7% 19s 17500/18000 board 99.7% 20s 18000/18000 board 99.7% 20s
ours, recurrent (212k) on /home/ubuntu/w/data/rrn, 1 passes board accuracy 99.69% of 18000 (20s) written to /home/ubuntu/w/out/rrn/ours_rec_full_s0_zeroshot_K1.jsonRRN_ZS_DONE123version https://git-lfs.github.com/spec/v1oid sha256:f22ecf7d549b1aaeed246d192b668251d133fe1d6bcaec68687953a4048f1a0esize 2770400123456789101112131415161718192021HARD sudoku: train (100000, 81) test (1000, 81) clues mean 24.4 (min 20 max 30)params 228k RECURRENT R=32 layers=1 d=128 mode=full pe=ape/usr/lib/python3/dist-packages/scipy/__init__.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.26.4 warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"step 0 loss 4.5946 (1s)step 5000 loss 1.5130 (1357s)step 10000 loss 0.8380 (2719s)step 15000 loss 0.5734 (3602s)step 20000 loss 0.5501 (4597s)step 25000 loss 0.4840 (5568s)step 30000 loss 0.4434 (6451s)step 35000 loss 0.3290 (7331s)step 40000 loss 0.4130 (8217s)step 45000 loss 0.2759 (9101s)step 50000 loss 0.3049 (9980s)step 55000 loss 0.2586 (10867s)step 60000 loss 0.3183 (11752s)step 65000 loss 0.2562 (12640s)step 70000 loss 0.2637 (13526s)step 75000 loss 0.2117 (14418s)step 80000 loss 0.1785 (15309s)12345678910111213141516171819202122232425262728293031323334{ "rmdm-both-s1": { "step": 80000, "inject": true, "step_embed": true, "decode": { "1": { "board": 0.827, "cell": 0.9547651811862673 }, "4": { "board": 0.926, "cell": 0.970096326876257 }, "8": { "board": 0.941, "cell": 0.9715253519635864 }, "16": { "board": 0.945, "cell": 0.9743304752831586 }, "32": { "board": 0.954, "cell": 0.9786351928301754 }, "61": { "board": 0.949, "cell": 0.9780529974242264 } }, "best": 0.954 }}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ "rmdm-both-s0": { "step": 80000, "inject": true, "step_embed": true, "decode": { "1": { "board": 0.89, "cell": 0.9669560001411382 }, "4": { "board": 0.931, "cell": 0.9729014501958294 }, "8": { "board": 0.94, "cell": 0.9755125083800854 }, "16": { "board": 0.959, "cell": 0.9827458452418757 }, "32": { "board": 0.964, "cell": 0.9850040577255567 }, "61": { "board": 0.969, "cell": 0.9861684485374546 } }, "best": 0.969 }, "rmdm-faithful-s0": { "step": 80000, "inject": false, "step_embed": true, "decode": { "1": { "board": 0.757, "cell": 0.9606753466709008 }, "4": { "board": 0.94, "cell": 0.9755301506651142 }, "8": { "board": 0.948, "cell": 0.9790056808157792 }, "16": { "board": 0.96, "cell": 0.9829928372322784 }, "32": { "board": 0.971, "cell": 0.9883031650259342 }, "61": { "board": 0.971, "cell": 0.9886383684414806 } }, "best": 0.971 }, "rmdm-faithful-s1": { "step": 80000, "inject": false, "step_embed": true, "decode": { "1": { "board": 0.083, "cell": 0.9037789774531597 }, "4": { "board": 0.846, "cell": 0.9782117779894852 }, "8": { "board": 0.917, "cell": 0.9787586888253766 }, "16": { "board": 0.93, "cell": 0.9832574715077097 }, "32": { "board": 0.953, "cell": 0.9856215377015631 }, "61": { "board": 0.966, "cell": 0.989044140997142 } }, "best": 0.966 }}1234567891011121314151617181920212223242526272829test set: 1000 puzzles, clues 21-28 (mean 24.3)
--- rmdm-both-s1 step 80,000 injection=True step_embed=True params 228k passes board cell 1 82.70% 95.48% 4 92.60% 97.01% 8 94.10% 97.15% 16 94.50% 97.43% 32 95.40% 97.86% 61 94.90% 97.81%
========================================================================HEAD-TO-HEAD: does input injection help once R-MDM's step embedding is present?========================================================================/home/ubuntu/.local/lib/python3.10/site-packages/numpy/core/fromnumeric.py:3504: RuntimeWarning: Mean of empty slice. return _methods._mean(a, axis=axis, dtype=dtype,/home/ubuntu/.local/lib/python3.10/site-packages/numpy/core/_methods.py:129: RuntimeWarning: invalid value encountered in scalar divide ret = ret.dtype.type(ret / rcount) R-MDM faithful (injection OFF) : nan% n=0 [] + input injection : 95.40% n=1 [95.4]
input injection is worth +nan points here >>> Injection still helps with their conditioning present.
All runs stopped at step 80,000 of 110,000 (wall-clock limit), so they are matched to each other but undertrained relative to the headline runs.
wrote /home/ubuntu/w/out/rmdm_both_s1.jsonRMDM_EVAL_DONE1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ "model": "ours, recurrent", "params": "212k", "run": "/home/ubuntu/w/runs/rec1-full-s0", "data": "/home/ubuntu/w/data/rrn", "split": "test", "n": 18000, "nfe": 1, "seed": 0, "board_accuracy": 0.9968888888888889, "clues_min": 17, "clues_max": 34, "clues_mean": 25.5, "by_clue": { "17": { "n": 1000, "board": 972 }, "18": { "n": 1000, "board": 986 }, "19": { "n": 1000, "board": 998 }, "20": { "n": 1000, "board": 1000 }, "21": { "n": 1000, "board": 996 }, "22": { "n": 1000, "board": 999 }, "23": { "n": 1000, "board": 1000 }, "24": { "n": 1000, "board": 998 }, "25": { "n": 1000, "board": 999 }, "26": { "n": 1000, "board": 999 }, "27": { "n": 1000, "board": 1000 }, "28": { "n": 1000, "board": 999 }, "29": { "n": 1000, "board": 1000 }, "30": { "n": 1000, "board": 1000 }, "31": { "n": 1000, "board": 999 }, "32": { "n": 1000, "board": 1000 }, "33": { "n": 1000, "board": 1000 }, "34": { "n": 1000, "board": 999 } }, "seconds": 20.418373584747314}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ "model": "ours, recurrent", "params": "212k", "run": "/home/ubuntu/w/runs/rec1-full-s0", "data": "/home/ubuntu/w/data/rrn", "split": "test", "n": 18000, "nfe": 61, "seed": 0, "board_accuracy": 0.9991111111111111, "clues_min": 17, "clues_max": 34, "clues_mean": 25.5, "by_clue": { "17": { "n": 1000, "board": 993 }, "18": { "n": 1000, "board": 999 }, "19": { "n": 1000, "board": 999 }, "20": { "n": 1000, "board": 1000 }, "21": { "n": 1000, "board": 999 }, "22": { "n": 1000, "board": 1000 }, "23": { "n": 1000, "board": 998 }, "24": { "n": 1000, "board": 1000 }, "25": { "n": 1000, "board": 1000 }, "26": { "n": 1000, "board": 1000 }, "27": { "n": 1000, "board": 1000 }, "28": { "n": 1000, "board": 999 }, "29": { "n": 1000, "board": 999 }, "30": { "n": 1000, "board": 999 }, "31": { "n": 1000, "board": 1000 }, "32": { "n": 1000, "board": 1000 }, "33": { "n": 1000, "board": 1000 }, "34": { "n": 1000, "board": 999 } }, "seconds": 1197.6081821918488}revision/README.md+27-4
revision/logs/rrn_zeroshot.logAdded+81
revision/rmdm-both-s1/ckpt_80k.ptAdded+3
revision/rmdm-both-s1/rmdm-both-s1.logAdded+21
revision/rmdm-both-s1/rmdm_both_s1.jsonAdded+34
revision/rmdm-both-s1/rmdm_compare_original_runs.jsonAdded+98
revision/rmdm-both-s1/rmdm_eval.logAdded+29
revision/rrn/ours_rec_full_s0_zeroshot_K1.jsonAdded+89
revision/rrn/ours_rec_full_s0_zeroshot_K61.jsonAdded+89