MinAtar Seaquest policy, edited by weight-space programming

A wsplab patch. An LLM (Claude Opus 5.5) read this small game policy's weights and changed 32 of them directly: no training, no gradients, and no running the network in its own code. Mean return rose from 52.1 to 75.7 over 2,000 held-out episodes.

Original Edited
Mean return, 2,000 held-out episodes 52.13 75.74
Paired difference +23.61 ยฑ 1.21
Episodes better / worse 1,260 / 606
A random edit of the same size 0.92

Verdict: confirmed. The edit beats the original on held-out episodes, and beats a random edit of the same size by +74.8 ยฑ 0.9.

The base network

GPT-6 Astra wrote this policy from scratch in Experiment 5 of Sparks of Weight-Space Programming (Takehi, Teoh, Zhang and Khattab), and it scored 53.1 there. It is networks/seaquest/hand.npz in the authors' release, converted to safetensors here (base/model.safetensors) without any change.

  • Architecture: h1 = tanh(x @ W1 + b1), h2 = tanh(h1 @ W2 + b2), logits = h2 @ W3 + b3, with W1 600ร—32, W2 32ร—32, W3 32ร—6.
  • Input: MinAtar's 10ร—10 grid with the paper's 6 channels, flattened as (row * 10 + col) * 6 + channel.
  • Output: logits over MinAtar's 6 Seaquest actions. Actions are sampled from their softmax.

The edit

32 entries changed: 16 in W2, 14 in b2, 1 in W3 and 1 in b3. W1 is untouched. The full session is in evidence/session/. In the editor's own account (evidence/session/final_answer.md), it read the network as a hand-built rule circuit and changed two things:

  1. A stronger veto against moving next to an enemy. Up and down units were blocked strongly by danger in the row they moved into, but only weakly by danger one row further. That second weight went from โˆ’0.3 to โˆ’3, with bias compensation so nothing changes when the detector is idle.
  2. A new "hold at the surface" unit, built from a previously unused unit. When the submarine is at the surface and an enemy passes just below, it keeps the submarine in place.

The cost: more episodes now end with the oxygen running out (102 against 29 per 1,000 practice episodes).

How it was measured

  • Game: MinAtar 1.0.15 Seaquest, with sticky actions 0.1 and episodes cut at 10,000 steps.
  • Practice and held-out episodes: the editor worked on episodes with seeds 0โ€“1,999. The verdict comes from 2,000 held-out episodes (seeds 1,000,000โ€“1,001,999), which the editor never saw.
  • Rules: the paper's. No training, no iterative fitting, and no running or simulating the network in the editor's code. It had 8 budgeted forward passes on practice episodes. An audit of the transcript found the session valid.
  • One run. This comes from one search over three editors (Claude Opus 5.5 won on a selection set). It is not an average over repeated runs.

The full experiment, including scripts, the other editors and the council comparison, is in experiments/10_seaquest.

Use

pip install 'wsplab[hub]'
wsplab patch pull Ahmedn1/wsplab-patch-minatar-seaquest --out patch
hf download Ahmedn1/wsplab-patch-minatar-seaquest base/model.safetensors --local-dir .
wsplab patch verify patch --base base/model.safetensors
wsplab patch apply patch --base base/model.safetensors --out seaquest-edited.safetensors

verify checks that the patch fits this base. apply rebuilds the edited network bit for bit, and needs only numpy. Playing the game needs MinAtar, which is GPL-3.0 and is not distributed here. Install it yourself (pip install minatar==1.0.15 --no-deps) and use experiments/code/minatar_seaquest.py.

Files

Path What it is
edit.npz, manifest.json, patch.json The patch: the changed entries, their hashes, and its evidence
base/model.safetensors The paper's base network
evidence/report.md, report.json The verdict, with paired statistics and the random-edit control
evidence/search.json All three editors' candidates, and how the winner was chosen
evidence/session/ The winning editor's full transcript: every prompt, reply, script and result

Hashes prove that this is the published edit and that it fits the base. They do not prove that it is safe or that its claims hold, so measure it yourself.

License and credit

CC BY 4.0, as the base network. Base network: Rikiya Takehi, Jayden Teoh, Alex Zhang and Omar Khattab, Sparks of Weight-Space Programming, released at RikiyaT/lm_understand-logs. The edit was made with wsplab, which is independent of the authors.

Downloads last month

-

Downloads are not tracked for this model. How to track
Video Preview
loading