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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
{
  "_about": "Every result below is copied from index.html. make_figures.py stops with an error if any number here (in a value or inside a label) does not appear in the page's visible text. Values computed by formula (Hanoi's 2^N - 1 moves) and axis ticks are produced by the script, not stored here.",
  "hanoi": {
    "title": "In 2025 tests, reasoning models collapsed at 7–8 disks. The hand-written network doesn't fail at any size we tested.",
    "checked_max": 6,
    "solved_min": 7,
    "solved_max": 20,
    "pending": null,
    "x_max": 20,
    "moves_pending": 1048575,
    "annotate_moves_at": [],
    "paper_collapse": [
      7,
      8
    ],
    "paper_max_tested_revised": 12,
    "label_collapse": "Reasoning models\nbegin to collapse",
    "label_paper_range": "",
    "label_checked": "Checked while\nbuilding",
    "label_solved_max": "1,048,575 moves,\nzero mistakes",
    "footnote": "Blue: one test per size. Every move legal, the fewest possible.\nReasoning models: Shojaee et al. (Apple), NeurIPS 2025."
  },
  "written_vs_trained": {
    "title": "Trained models learn the range they see.\nThe hand-written one keeps going.",
    "footnote": "Accuracy in %. Each line joins a model's score on the checking range to its\nscore on the longer test range. Sizes in between were not tested.",
    "panels": [
      {
        "key": "graph",
        "title": "Graph search",
        "checking_label": "paths ≤ 4",
        "test_label": "paths 8–16",
        "written": {
          "params_label": "6,966 weights",
          "checking": 100,
          "test": 100
        },
        "trained": [
          {
            "name": "Trained, looped",
            "params": 26561,
            "checking": 25.6,
            "test": 0
          },
          {
            "name": "Trained, ~10× size",
            "params": 69905,
            "checking": 46.2,
            "test": 0
          },
          {
            "name": "Trained, ~99× size",
            "params": 690197,
            "checking": 97.4,
            "test": 0
          }
        ],
        "trained_label": "3 trained models, up to 690,197 weights"
      },
      {
        "key": "parity",
        "title": "Parity",
        "checking_label": "≤ 20 bits",
        "test_label": "21–128 bits",
        "chance": 50,
        "written": {
          "params_label": "~190 weights + table",
          "checking": 100,
          "test": 100
        },
        "trained": [
          {
            "name": "Trained, looped",
            "params": 50434,
            "checking": 100,
            "test": 53.8
          },
          {
            "name": "Trained, 1 block",
            "params": 50434,
            "checking": 100,
            "test": 52.6
          },
          {
            "name": "Trained, 4 blocks",
            "params": 13234,
            "checking": 100,
            "test": 49.2
          },
          {
            "name": "Trained, 8 blocks",
            "params": 101858,
            "checking": 100,
            "test": 49.5
          },
          {
            "name": "Trained, 12 blocks",
            "params": 600258,
            "checking": 100,
            "test": 45.5
          }
        ],
        "trained_label": "5 trained models, 13,234–600,258 weights"
      },
      {
        "key": "chains",
        "title": "Reasoning chains",
        "checking_label": "≤ 8 steps",
        "test_label": "12–32 steps",
        "written": {
          "params_label": "4,763 weights",
          "checking": 100,
          "test": 100
        },
        "trained": [
          {
            "name": "Trained, looped",
            "params": 77924,
            "checking": 69.1,
            "test": [
              2.2,
              9.2
            ]
          },
          {
            "name": "Trained, 1 block",
            "params": 77924,
            "checking": 7.0,
            "test": 2.8
          },
          {
            "name": "Trained, 4 blocks",
            "params": 51368,
            "checking": 43.4,
            "test": 2.8
          },
          {
            "name": "Trained, 8 blocks (~90×)",
            "params": 427812,
            "checking": 93.7,
            "test": 3.5
          },
          {
            "name": "Trained, 12 blocks",
            "params": 627748,
            "checking": 49.6,
            "test": 4.0
          }
        ],
        "trained_label": "5 trained models, 51,368–627,748 weights"
      }
    ]
  },
  "ouro_clock": {
    "title": "Ouro keeps time with its first tokens.\nPast 4 loops, the clock runs off the end.",
    "trained_loops": 4,
    "loops_shown": 8,
    "label_tokens_clock": "first tokens",
    "label_tokens_rest": "other tokens",
    "label_trained_range": "trained range",
    "label_out_of_range": "outside training",
    "label_fix": "held in range",
    "label_readout": "",
    "footnote": "Schematic, not data. The fix adds no parameters and changes no weights."
  },
  "glance": {
    "_source": "logs/blog_handoff/figures_data.json, fig2_accuracy_bars; for each benchmark: the written network and the strongest comparison the page reports",
    "title": "On every benchmark here, the written network scores 100%. The best trained model or LLM doesn't.",
    "line_label": "Written by Claude, 100%",
    "tasks": [
      {
        "task": "Maze-Hard",
        "test": "",
        "bars": [
          {
            "label": "LDT, 1.8M weights",
            "value": 99.8,
            "text": "99.8%",
            "kind": "trained"
          },
          {
            "label": "Claude Opus 5.5, GPT-6 Astra",
            "value": 26,
            "text": "26%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "Sudoku-Extreme",
        "test": "",
        "bars": [
          {
            "label": "Sotaku v2, 800K weights",
            "value": 98.96,
            "text": "98.96%",
            "kind": "trained"
          },
          {
            "label": "GPT-6 Astra",
            "value": 68,
            "text": "68%",
            "kind": "llm"
          },
          {
            "label": "Claude Opus 5.5",
            "value": 54,
            "text": "54%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "GraphWalks",
        "test": "",
        "bars": [
          {
            "label": "Gemini 4 Carbon",
            "value": 96.2,
            "text": "96.2%",
            "kind": "llm"
          },
          {
            "label": "GPT-6 Astra",
            "value": 71.8,
            "text": "71.8%",
            "kind": "llm"
          },
          {
            "label": "Claude Opus 5.5",
            "value": 66.8,
            "text": "66.8%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "Graph search",
        "test": "",
        "bars": [
          {
            "label": "Trained, 690,197 weights",
            "value": 0.0,
            "text": "0%",
            "kind": "trained"
          }
        ]
      },
      {
        "task": "Parity",
        "test": "",
        "bars": [
          {
            "label": "Trained, looped, 50,434 weights",
            "value": 53.8,
            "text": "53.8%",
            "kind": "trained"
          }
        ]
      },
      {
        "task": "Reasoning chains",
        "test": "",
        "bars": [
          {
            "label": "Trained, 8 blocks, 427,812 weights",
            "value": 3.5,
            "text": "3.5%",
            "kind": "trained"
          }
        ]
      },
      {
        "task": "Boolean Expressions",
        "test": "",
        "bars": [
          {
            "label": "SmolLM2-360M",
            "value": 69.6,
            "text": "69.6%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "Dyck Languages",
        "test": "",
        "bars": [
          {
            "label": "Pythia-410M",
            "value": 33.2,
            "text": "33.2%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "Web of Lies",
        "test": "",
        "bars": [
          {
            "label": "Qwen3-235B-A22B",
            "value": 81.2,
            "text": "81.2%",
            "kind": "llm"
          },
          {
            "label": "o4-mini, program synthesis",
            "value": 52.5,
            "text": "52.5%",
            "kind": "llm"
          },
          {
            "label": "o3-mini (high)",
            "value": 43.0,
            "text": "43%",
            "kind": "llm"
          },
          {
            "label": "DeepSeek-R1",
            "value": 29.5,
            "text": "29.5%",
            "kind": "llm"
          }
        ]
      },
      {
        "task": "Shuffled Objects",
        "test": "",
        "bars": [
          {
            "label": "Qwen3-235B-A22B, program synthesis",
            "value": 56.9,
            "text": "56.9%",
            "kind": "llm"
          },
          {
            "label": "o3-mini (high)",
            "value": 49.5,
            "text": "49.5%",
            "kind": "llm"
          },
          {
            "label": "o4-mini, program synthesis",
            "value": 34.4,
            "text": "34.4%",
            "kind": "llm"
          },
          {
            "label": "DeepSeek-R1",
            "value": 6.0,
            "text": "6%",
            "kind": "llm"
          }
        ]
      }
    ],
    "footnote": "Accuracy in %. Trained maze models: best version, picked on the test set."
  },
  "maze_loops": {
    "_source": "the curve is in figures/maze_loops.json (logs/blog_handoff/figures_data.json, fig4_test_time_compute_maze.ours)",
    "title": "More loops: the written network locks in at 100% and stays there.",
    "label_ramp": "",
    "label_run": "",
    "footnote": "Accuracy on the 1,000 test mazes, any shortest path."
  },
  "maze_size": {
    "_source": "logs/blog_handoff/figures_data.json, fig3_accuracy_vs_size_maze",
    "title": "Smaller and more accurate than every trained maze solver.",
    "written": {
      "label": "Written by Claude",
      "weights": 19936,
      "nonzero": 922,
      "accuracy": 100.0
    },
    "trained": [
      {
        "label": "LDT, 512 paths per maze",
        "weights": "1.8M",
        "accuracy": 99.8
      },
      {
        "label": "LDT, one path per maze",
        "weights": "1.8M",
        "accuracy": 99.0
      },
      {
        "label": "TRM",
        "weights": "7M",
        "accuracy": 91.9
      },
      {
        "label": "HRM",
        "weights": "27M",
        "accuracy": 84.6
      }
    ],
    "footnote": "Accuracy on the 1,000 test mazes, any shortest path. Trained models:\nbest version, picked on the test set (Davis et al., NeurIPS 2026, Table 3)."
  },
  "maze_compute": {
    "title": "Every maze solved, for a fraction of the trained solvers' compute.",
    "xlabel": "Arithmetic operations to solve one maze (log scale)",
    "label_ours": "Written by Claude, 100%",
    "labels": [
      {
        "at": "hrm",
        "text": "HRM, 84.6%",
        "_offset": [
          -9,
          0
        ],
        "ha": "right",
        "va": "center"
      },
      {
        "at": "trm",
        "text": "TRM, 91.9%",
        "_offset": [
          9,
          0
        ],
        "ha": "left",
        "va": "center"
      },
      {
        "at": "ldt",
        "text": "LDT, 99.0 and 99.8%",
        "_offset": [
          -5,
          9
        ],
        "ha": "left",
        "va": "bottom"
      },
      {
        "at": "ldt_hi",
        "text": "up to 1,000 rounds",
        "_offset": [
          0,
          -24
        ],
        "ha": "right",
        "va": "top"
      }
    ],
    "footnote": "Accuracy in %. Trained models: best version, picked on the test set."
  },
  "maze_block": {
    "title": "The maze block, piece by piece",
    "bar_label": "Maze cell hidden state",
    "groups": [
      {
        "key": "const",
        "n": 1,
        "_colour": "#e1e0d9",
        "label": "constant 1"
      },
      {
        "key": "pos",
        "n": 3,
        "_colour": "#9ec5f4",
        "label": "position"
      },
      {
        "key": "input",
        "n": 3,
        "_colour": "#3a3f4b",
        "label": "type"
      },
      {
        "key": "phase",
        "n": 3,
        "_colour": "#2a78d6",
        "label": "distance, in threes"
      },
      {
        "key": "ptr",
        "n": 4,
        "_colour": "#eda100",
        "label": "pointer"
      },
      {
        "key": "on",
        "n": 1,
        "_colour": "#eb6834",
        "label": "on the path"
      },
      {
        "key": "copied",
        "n": 20,
        "_colour": "#1baf7a",
        "label": "copied from neighbours",
        "sub": [
          "down",
          "left",
          "right",
          "up"
        ]
      }
    ],
    "block_label": "One block",
    "attn_label": "Attention, 4 heads",
    "heads": [
      {
        "dir": "up",
        "name": "Up head",
        "carries": ""
      },
      {
        "dir": "left",
        "name": "Left head",
        "carries": ""
      },
      {
        "dir": "right",
        "name": "Right head",
        "carries": ""
      },
      {
        "dir": "down",
        "name": "Down head",
        "carries": ""
      }
    ],
    "mlp_label": "MLP",
    "units": [
      {
        "name": "Wave",
        "n": 6,
        "writes": "phase"
      },
      {
        "name": "Pointer",
        "n": 24,
        "writes": "ptr"
      },
      {
        "name": "Pointer clear",
        "n": 8,
        "writes": "ptr",
        "_tint": 0.5
      },
      {
        "name": "Chain",
        "n": 8,
        "writes": "on"
      },
      {
        "name": "Clean-up",
        "n": 40,
        "writes": "copied"
      }
    ],
    "pairs_note": "Wave, pointer and chain neurons\nwork in pairs that give 0 or 1",
    "readout_label": "Each cell writes",
    "readout": [
      {
        "char": "#",
        "from": "wall"
      },
      {
        "char": " ",
        "from": "open"
      },
      {
        "char": "S",
        "from": "start"
      },
      {
        "char": "G",
        "from": "goal"
      },
      {
        "char": "o",
        "from": "path"
      }
    ],
    "loop_label": "× 1,800 loops"
  },
  "maze_training": {
    "_source": "loopws logs/blog_handoff/fig1_time_notes.md and logs/fig1_gd/fig1_time_data.json (2026-11-14)",
    "title": "Claude wrote a network that solves every maze.\nTrained by gradient descent, it solves none.",
    "xlabel": "Hours",
    "label_claude": "Written by Claude, 100%",
    "label_claude_sub": "no gradient training",
    "label_trm": "TRM, best 77.4%",
    "label_trm_released": "TRM as released, 85.3%",
    "label_trm_tall": "TRM, best 77.4%",
    "label_std": "Standard transformer,\nbest 42%",
    "label_std_tall": "Standard transformer,\nbest 42%",
    "label_gd": "Written architecture,\ntrained from random weights, 0%",
    "label_gd_sub": "",
    "footnote": "1,000 Maze-Hard test mazes. A maze counts only if its whole path is right.\nTraining hours are on one GPU.",
    "footnote_tall": "1,000 Maze-Hard test mazes. A maze counts only\nif its whole path is right. Training hours are on one GPU."
  },
  "social": {
    "title": "Looped Weight-Space Programming:\nLLM-Written Transformers for\nLong Algorithmic Reasoning",
    "subtitle": "Claude wrote every weight of a looped transformer by hand.\nIt solves 100% of Maze-Hard, where Claude itself solves 26%.",
    "result_task": "Tower of Hanoi, 20 disks",
    "result": "1,048,575 moves.\nZero mistakes.",
    "byline": "Elsayed, Heakl, Shaker, F. Khan, S. Khan, Claude Opus 5.5 · MBZUAI",
    "url": "mbzuai-oryx.github.io/LoopedWSP"
  },
  "chains_loops": {
    "_about": "values are set in make_figures.py, chains_loops()"
  }
}