TRANSMISSION // 2611.31979v1

Reading neural-network policies is easier than repairing them

Source published

In a small repeated-game test, one language model often reconstructed neural policies, but repairing altered ones proved harder. Its perfect writing result used evaluator-compiled policies.

AI-generated conceptual illustration for Reading neural-network policies is easier than repairing them
AI-generated conceptual illustration; not documentary evidence.

Can a language model infer what a neural network does from its weights—and fix it when it goes wrong? In an arXiv preprint, one open model was tested on small repeated-game policies with answers that could be checked against exact calculations. It often reconstructed the policies, but repair was less successful.

Neural networks are usually trained by adjusting their weights. Ancil Crayton’s preprint asks whether a language model can instead reason about those numbers: write a policy, predict a network’s behavior, reconstruct the program it implements, or repair a fault.

The study uses repeated games, where an agent faces an opponent over multiple rounds but may not know which type of opponent it is playing. The setting is deliberately small and checkable, allowing the author to compare answers with computed benchmarks rather than relying only on sampled game outcomes.

Four tasks, with exact checks

The policy networks were single-layer recurrent neural networks with 32 hidden units and 1,218 weights. Opponents included familiar strategies such as always cooperating and tit-for-tat, along with randomly generated finite-state machines.

The model faced four tasks. In writing, it received a game’s payoffs, a description of the opponent population and the scoring rule, then had to specify an optimal policy. In identifying, it received a network’s weights and had to report its actions after 15 histories: the empty history and every sequence of opponent actions up to length three. In reading, it had to recover the state machine implemented by the network, with behavior checked on every opponent sequence through depth ten. In repairing, it received a network with an altered output and had to identify the first round when behavior went wrong and provide a patch.

For writing and repair, value iteration supplied the optimal policy value, so each submitted policy could be scored against an exact optimum. For reading and identifying, the evaluator compared answers with the network’s behavior over the specified histories. These checks are exact within the stated tasks; they do not establish performance beyond those tested conditions.

The experiment used DeepSeek-V4.1-Flash-1017, a mid-size open model, at high reasoning effort. It made one reply per call, with three replicates per cell, and received no tools or feedback. Unreadable replies counted as failures.

Reconstructing behavior was easier than repair

In the reading task, the model recovered the implemented program in 62 of 66 replies. In 61 of those, its machine matched the target even when states could be numbered differently. Separately, in the identification task, it reported all 15 actions correctly in 34 of 36 replies. These are distinct results: one tests reconstruction of a program; the other tests predictions for a defined set of histories.

Writing results depended on how the model could express its answer. When it supplied a policy as a state machine and the evaluator compiled that machine into network weights, all 20 replies reached the optimum. The model had not written the weights in that format. When asked to provide a sparse list of weight edits, it reached the optimum in 18 of 20 replies; when asked to write every weight, it did so in 13 of 20.

Seventeen of the 20 instances were designed so that no familiar named strategy was optimal. The evaluator-compiled machine format reached the optimum on all 17. This suggests that, in this setup, stating the policy compactly was easier than emitting its numerical weights. The 20/20 result should not be read as a demonstration that the model itself wrote 20 optimal networks weight by weight.

Repair was harder. The model identified the first wrong round in 5 of 18 replies and repaired the network in 4 of 18. The reference correction changed two output-weight entries, but successful repairs did not have to reproduce that particular correction: one-entry patches could reach a different optimal policy, and the four successful replies used one-entry patches. The median patch changed one entry. Diagnosis and successful correction were not interchangeable. Separately, 15 of 18 attempts met the study’s no-harm measure; this is a distinct result from repairing the network and does not mean those attempts were all unsuccessful or made no changes.

Limits and uncertainty

These results come from one model, one small network architecture and a narrow family of repeated games. They do not show that the same abilities extend to larger networks, different tasks or other language models. The repair result is based on 18 replies across six instances, and the paper reports wide uncertainty. The author also notes that differences between the writing formats are not distinguishable at this sample size.

Exact scoring makes it possible to report how far a policy falls short of the optimum, but the study’s stated success threshold is strict: a near-optimal answer can still count as a failure. And “exact” applies to the evaluator’s calculations for these constructed tasks, not to general claims about network understanding.

The work is an arXiv preprint, not evidence of peer-reviewed agreement or independent replication. Its author says the analysis scripts and stored model responses are available on request. The findings offer a focused test of what one model could do in this setting, not a general assurance that language models can understand or safely edit neural networks.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Language models write small neural policies—and model checking tests their promises

    Shared method: Both papers have a language model write neural-network weights directly, without gradient descent. The origin tests recurrent policies in repeated games and checks them against exact values and behaviors; Gross et al. use probabilistic model checking for policies in PRISM environments. These distinct tasks and evaluation criteria do not make their performance results directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.31979v1 — Original paper

      Excerpt reference: static/papers/2611.31979v1.md:13-91
      Basis: Paper text
      Source SHA-256: 1288aa86320498d92af1b53c7be7bb4595a9c95d4f0daff92157b81f38e064ca

    • 2611.11604v1 — Original paper

      Excerpt reference: static/papers/2611.11604v1.md:13-62
      Basis: Paper text
      Source SHA-256: 2fcb845c3e0f48cd7cbc96a54f197a88424959d53f39fd05c474bf02e97210b8

  • Can a language model write a brain-signal network?

    Shared method: Both papers describe language models directly generating neural-network weights without gradient descent. The origin evaluates small recurrent game policies with exact checks, while Varam et al. report a biosignal classifier written from scratch and evaluated on unseen subjects. The different tasks and evaluation methods do not establish comparable performance.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.31979v1 — Original paper

      Excerpt reference: static/papers/2611.31979v1.md:13-91
      Basis: Paper text
      Source SHA-256: 1288aa86320498d92af1b53c7be7bb4595a9c95d4f0daff92157b81f38e064ca

    • 2611.13758v1 — Original paper

      Excerpt reference: static/papers/2611.13758v1.md:13-59
      Basis: Paper text
      Source SHA-256: a90139072535631af6e04d5a72f29d745b4d7facda062c1713b017b6f27e5d9f

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.