Search the guide

Start with a guide

Lesson 13 of 14 · Use and inspect programs

Write weights with an LLM

Follow a general-purpose LLM from task information to numerical weights.

Give the model a network to construct#

In the Sparks MinAtar construction experiment, the LLM receives the game rules, source code and network layout. It reasons about the game and writes network parameters without first playing it. The resulting policy is then evaluated.

Read one construction trace#

  • Task information: game rules, observations and available actions.
  • Construction: the LLM’s reasoning and the weights it writes.
  • Execution: the constructed policy selects actions from game observations.

Open the Sparks experiment breakdown and its original traces. Follow what the constructor receives, what it writes and how the policy is scored.

Compare the constructors#

PAW specifically trains a compiler to generate LoRA adapters that edit the interpreter’s weights, while the approach in Sparks uses a general-purpose LLM (not specifically trained for this purpose) to edit weights. Both produce parameter changes; their constructors and programming interfaces differ.

Sources and resources

Course contents