Search the guide

Start with a guide

Analysis

Understanding the Sparks Experiments

The experiments, tool settings, results, criticisms, and replications behind weight-space programming.

Reading a network, constructing a computation, and repairing a model ask different questions. The Sparks experiments explore all three. Their tools and feedback change between experiments, so each result needs its own setup.

What was tested?#

Sparks of Weight-Space Programming was published on November 2, 2026, by Rikiya Takehi, Jayden Teoh, Alex Zhang, and Omar Khattab. The table condenses its setups and Matthew Honnibal’s comparison of the experimental conditions. “Execution” means running the target network, rather than using Python to inspect its parameters.

ExperimentSupplied materialTools and executionReported result
1 · Identify games17K weights; grid/channel labelsNo tools or execution4/4 games
2 · Identify shapes24K diffusion-model weightsNo tools or execution3/3 shapes
3 · Identify language and copying heads7.2M model; internal blocksPython; no execution3/3 languages; copying heads identified
4 · Repair car policy172K weights; failed trajectoryNo tools; no new execution0% → 100% success
5 · Construct MinAtar policiesRules, source code, zero-initialized architectureNo tools or feedbackBeats PPO-100M in three games
6 · Construct 9×9 Go policyRules; 1.5M zero-initialized architecturePython; 0–50 feedback batches0: beats smaller PPO; 50: beats same-size PPO
7a · Detect sycophancyPaired Gemma 3 270M weightsPython; no executionUnsuccessful
7b · Detect sycophancySame paired modelsPython; attention patterns from ≤16 texts3/3 pairs
8 · Edit Qwen3.5-0.8BWeights; practice problemsPython; 50 feedback batchesMATH-500: 7.9% → 48.1%
8 · Gemma comparisonGemma 3 270MPython; ≤50 feedback batchesNo established mathematical gain

The reported-run repository contains prompts, traces, scripts, and evaluations. It identifies omitted artifacts and excludes earlier prompt trials. A reported-run collection is useful for reconstructing these results; an estimate of success per attempt also needs the selection history.

What does identifying a game tell us?#

Run the CPU weight-reading example on the four original Sparks checkpoints to produce the channel heatmaps and numerical norms. The example also checks hidden-unit permutations against the maps and actor outputs.

A network’s input arrangement supplies clues before its complete computation is understood. In Sean Goedecke’s analysis, norms of the first-layer weights form heatmaps: strong connections reveal where the player and moving objects matter. Recognizing a paddle at the bottom of a board is a different achievement from recovering the rules governing every state transition.

The distinction suggests a direct test: preserve a recognizable board layout while changing its rules, then ask the reader to predict behavior. A task label, an explanation of the policy, and a correct prediction on a changed state are three separately measurable outputs.

A local-model experiment readers can inspect#

Simon Willison’s November 3 account demonstrates the experiment with Qwen 3.8 27B on his laptop. It identifies Pac-Man, Pong, and Breakout, but calls Freeway a Pac-Man-like game. His commands, timings, and linked reasoning traces make the successful and failed attempts inspectable. He is enthusiastic about the result and distinguishes the no-tools experiment from code-assisted model editing.

From a strategy to a network#

There are two construction problems: choose a strategy, then express it in the required network. A paddle controller, for example, needs a rule for where to move and a set of weights that implements that rule. Evaluating the network establishes the combined result. Running the same strategy as ordinary code tests the representation separately.

For MinAtar, the original evaluation reports these episode scores. PPO is a reinforcement-learning algorithm; 100M and 500M denote its training steps. The generated networks exceed the 100M-step comparisons in every listed game. The 500M-step results differ by game.

GamePPO · 100MPPO · 500MAstra · one reply
Breakout15.825.3517.4
Seaquest5.688.953.1
Asterix25.855.253.2

For a new task, inspect both artifacts: the saved network and any code used to construct it. Literal weights in a response, a Python program that writes tensors, and a trained generator are different construction procedures. The resulting network still needs to work on inputs that were not used to select it.

Qwen: repairing a reasoning loop#

Goedecke’s discussion of the Qwen edit relates it to steering: construct contrasting texts, identify a direction associated with unwanted behavior, and test an intervention. He challenges the interpretation that this demonstrates research ability beyond human experts.

The Sparks authors interpret the Qwen gain as removing loops that obstruct existing ability. Their intervention subtracts a direction from selected MLP columns. Their nonlooping Gemma comparison does not establish a mathematical improvement.

That causal explanation changes the useful follow-up. Compare ways to repair the same failure, retain the original decoding settings, and check behaviors outside the target benchmark. A higher score measures improvement under the evaluation conditions; identifying why it improved requires the intervention and its controls.

The released edited checkpoint lets readers examine the resulting artifact. Its relevant comparison is the original model under the same prompts, decoding settings, and scoring procedure.

What the critics dispute#

Honnibal’s November 3 critique concerns presentation: raw-number reading, Python analysis, and feedback-driven editing are combined into a narrative about one capability. He acknowledges the achievement of devising useful analyses and edits. His objection concerns the inference readers draw when the experimental conditions are blurred.

The human comparison is a separate question. A matched study would give researchers and the model the same information, tools, time, and scoring criteria. An argument that a human can perform the constituent operations is not such a study; neither is a demonstration that an LLM succeeds.

The authors’ November 12 response#

In their November 12 response, the authors state:

  • Weight-space programming names a capability, not one editing algorithm. The broader concept permits gradients; these experiments excluded them.
  • Python assists reasoning about weights. Tool access changes between experiments.
  • MinAtar compares construction without game experience with policies learned through millions of steps. Qwen tests repair in thinking mode with unchanged sampling settings.
  • They did not compare Astra with interpretability researchers.

These positions leave concrete research questions: how much feedback is needed, which edits transfer, which computations can be constructed, and which behaviors can be predicted from weights. Those questions support experiments with explicit success criteria.

What controlled replication adds#

The November 16 study by Goworek, Hickey, Nanni, and O’Reilly reproduces Breakout weight construction and tests modified games. Two independently decompiled Python policies match Astra’s network on all 49,189 tested states. This connects an algorithm written in code to the computation represented by its weights.

For reading, game identification falls to chance when weights are shuffled. On newly designed games, Astra recovers spatial layout more successfully than mechanics. These findings distinguish reading information from weights from recovering a complete account of the game.

The value of these controls is the alternative explanation each tests. Modified games examine transfer beyond the original tasks. Code-policy comparisons separate strategy from representation. Changed weight structure tests whether the reader depends on the parameters it receives.

What to test before using the result#

A repaired checkpoint needs regression tests. A constructed network needs tests on new inputs. A reusable function needs a saved artifact that loads independently of its construction session. The application determines which of these results matters.

Program-as-Weights introduces fuzzy-function programming with a trained compiler and shared interpreter. PAW specifically trains a neural compiler to generate adapters that edit the frozen interpreter’s weights. Sparks uses a general-purpose LLM, not specifically trained for this purpose, to reason about and edit weights. Compare preparation, construction, and repeated execution when choosing between these approaches.

The evaluation guide turns these questions into a worked test design. The saved-function walkthrough shows the corresponding developer workflow.

Sources and resources

Read next