Weight-Space Programming of Policies and Their Verification via Model Checking
Dennis Gross
Key points
From the paper's conclusion- We combine weight-space programming with probabilistic model checking.
Abstract
Large language models (LLMs) can write the weights of small neural networks directly, without gradient descent. This weight-space programming creates policies for sequential decision-making from a task description alone, but nothing guarantees that a written policy behaves as intended. We combine weight-space programming with probabilistic model checking. Given an environment modeled as a Markov decision process and a requirement in probabilistic computation tree logic (PCTL), an LLM writes all weights of a policy network, optionally repairs them on a dataset of optimal actions, and receives model-checking feedback until the requirement holds or a round limit is reached. The model checker Storm computes, rather than estimates from simulations, the probability that the policy satisfies the requirement, so every returned policy is verified. With two LLMs on three environments, the created policy of each of the 18 runs attains the optimal probability, before any dataset or model-checking feedback. Four of six policies programmed for two transporter jobs also complete three jobs with probability 1, so they generalize to a task that the LLM never saw. The pipeline also programs a policy that satisfies a complex safety requirement expressed with the PCTL until operator in all six runs. In one of them, dataset repair raised the accuracy to 98.4\% but broke the requirement, and one round of model-checking feedback restored it.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- WeightBench: Evaluating Language Models as Weight-Space ProgrammersarXiv · 2026
- Spec2Weights: Certifying Networks that a Language Model Writes from a SpecificationarXiv · 2026
- Soteria: Formally Verified Planning with Runtime Enforcement for Safe LLM AgentsarXiv · 2026
- Can a Language Model Write the Weights? An Empirical Study of LLM-Written Scoring Networks for Column Generation and MILP Branching, with a Bus-Driver Scheduling ApplicationarXiv · 2026
- SafeInferCom: Safe Inference-Time Compute via Verifier-Guided Mid-Generation Intervention for Robotic Task PlanningarXiv · 2026
- WeightCode: Installing New Capabilities into Neural Networks via Weight-Space ProgrammingarXiv · 2026