ΒΆPaper Feed

Issue 44 Β· Project 02 GitHub AI / ML βœ“ read

RikiyaT/lm_understand-logs

Complete logs of the experiments in the blog post 'LLMs can understand and write neural network weights'

TL;DR: This isn't a tool or a paper β€” it's the complete, audited evidence dump behind a blog post claiming that an OpenAI model ("Astra," i.e. gpt-6-astra) can read raw neural network weights and tell you what the network does, fix broken networks by editing weights directly, and write working networks from scratch β€” including a 1.5M-parameter Go network and weight edits that improve Qwen3.5-0.8B at math. If the claims hold up, this is a striking data point for weight-space interpretability and for LLM self-modification debates, and the whole point of this release is that you can check every turn yourself.

What's being claimed

The blog post ("Sparks of Weight Space Programming") runs eight experiments, escalating from reading to writing:

  • Read: identify which Atari game a policy network was trained on (exp 1), what shape a diffusion model generates (exp 2), and which language an LM learned β€” from its middle blocks only (exp 3). Experiments 1, 2, and 4 were done with no tools at all: raw weights in context, no forward passes, no code. The model had to reason about parameters directly.
  • Repair: fix a failing network with a single one-shot weight edit (exp 4, also tool-free).
  • Write: author MinAtar policy networks from scratch β€” Breakout, Seaquest, Asterix (exp 5, tool-free) β€” and a 1.5M-weight Go network over 0–50 iterative passes with a Python sandbox (exp 6).
  • Behavioral forensics and improvement: detect which of two LMs is sycophantic from weights (exp 7), and edit Qwen3.5-0.8B's weights to improve math performance, with a Gemma 3 270M follow-up (exp 8).

Experiment 7 contains an honest negative result visible right in the README: four weights-only attempts apparently failed, and the model needed an "attention tool" before it could distinguish the sycophantic fine-tunes. That kind of detail is why this release is worth your time.

From reading weights to writing them READ WRITE E1–2: which game? which shape? E3, E7: which lang? who's sycophantic? E4, E8: edit weights fix / improve math E5–6: write nets incl. 1.5M-wt Go no tools, no fwd pass Python sandbox E4 tool-free, E8 sandbox E5 tool-free, E6 sandbox All 1,125 turns audited tool-free; sandboxed code only where the prompt allows it
The experiments climb from passive weight-reading (left) to authoring networks (right). Note which ones were done with zero tooling β€” pure in-context reasoning over raw parameters.

The harness, and why the audit matters

The obvious skeptical move is "the model secretly ran the network." The release is engineered against that. Every turn is one codex exec call with all built-in capabilities disabled β€” no shell, no file editing, no web, no sub-agents β€” via a config shipped in harness/codex_config.toml, with a one-line neutral system prompt. Each turn's raw event stream (events.jsonl) was audited; a turn counts as tool-free only if it contains nothing but the model's messages and reasoning summaries. All 1,125 turns pass. Where code was permitted (exps 3, 6, 7, 8), it ran in the authors' own bubblewrap sandbox with no network, and every code block plus its output is in tool_calls.jsonl. Reasoning effort per call (high/xhigh/max) is recorded in each run.json.

Notably, exps 2 and 3 explicitly forbid forward passes β€” so identifying a diffusion model's output shape or an LM's training language means reasoning from parameter structure, not probing behavior.

What's actually in the repo

Per experiment: prompts, full model replies and reasoning summaries, all sandbox code and output, per-number evaluations with ground truth (eval/), and the networks read or written (networks/). Experiment 8's weight edits ship as exact diffs against public base weights with an apply script. Missing: the 17 GB Gemma fine-tunes (rebuildable from included data/scripts/hashes), intermediate working files, and some third-party text (Python corpus, GPQA questions) replaced by manifests. Logs/data/networks are CC BY 4.0, scripts MIT. The README is careful to note that only the runs reported in the post are included β€” earlier prompt-version trials were cut, so the release doesn't let you audit selection effects across prompt iterations.

Caveats

The networks are small: MinAtar policies, toy diffusion models, a 1.5M-weight Go net, and sub-1B LMs. "Understands weights" at this scale doesn't obviously extrapolate. The README itself contains no result numbers β€” those live in the blog post and the per-experiment eval/ folders, so you have to dig to see effect sizes (e.g., does the from-scratch Breakout net actually play, or just beat random?). The sycophancy experiment's weights-only failure suggests the raw-weight-reading ability is narrower than the headline. And the model is gpt-6-astra, which you cannot run yourself β€” reproducibility here means auditing, not replicating.

Trying it

There's nothing to install; clone and read, starting with the per-experiment READMEs that map files to the post's numbers:

git clone https://github.com/RikiyaT/lm_understand-logs
cd lm_understand-logs
cat exp1_which_game/README.md      # start with the tool-free game-ID runs
less exp6_go_from_scratch/tool_calls.jsonl   # watch it build a Go net pass by pass

Best entry points for skepticism: exp2_diffusion/ (no tools, no forward pass β€” the purest weight-reading claim) and exp8_math/eval/ (whether direct weight edits genuinely moved math benchmarks on Qwen3.5-0.8B).