Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Weight-Space Programming of Policies and Their Verification via Model Checking

LLMs write policy weights, and model checking verifies each one

  • Problem Reward maximization struggles with some requirements, and nothing guarantees that a policy an LLM writes behaves as intended.
  • Method The authors let an LLM write all weights of a policy network, then let Storm model check the policy and send feedback until the requirement holds.
  • Results Storm verifies every returned policy, and the created policy in all 18 runs reached the optimal probability before any repair.

Why LLM-written policies need a check

Reinforcement learning usually trains a policy by repeatedly nudging its weights to raise an expected reward. Weight-space programming skips that loop, because an LLM reads a natural-language specification and writes the weights directly. Nothing in the writing step checks the result, so a written policy has no guarantee of behaving as intended.

Reward maximization also struggles with some requirements, because a reward only trades collisions off against progress. Probabilistic model checking fills this gap by computing the probability that a property holds for a given policy. Storm computes this probability numerically on the whole DTMC, instead of estimating it from sampled paths.

The pipeline runs in three steps, and none of them uses gradient descent. The LLM receives the PRISM model, the PCTL property, a short description, and the network shape, then writes all weights. Because the LLM writes the weights, the pipeline must test the result before trusting it. Storm then checks every returned policy, so a policy that violates the property doesn't go unnoticed.

Two questions stayed open: whether a written policy behaves as intended, and whether the approach can encode complex safety requirements at all. The PCTL until operator expresses such a requirement precisely, for a robot that avoids collisions until it reaches the goal. The paper answers these questions with model checking as the judge of LLM-written weights.

The key idea: an LLM writes, a model checker judges

The authors let an LLM write every weight of a small policy network, and then let a model checker decide whether the policy is good enough. The checker is Storm, reached through COOL-MC, and it computes the probability of the requirement on the Markov chain that the policy induces. Storm computes this probability numerically rather than estimating it from simulated paths, so every returned policy is verified.

No step uses gradient descent, so the LLM works only from the PRISM model, the PCTL property, a short description and the network shape. The LLM keeps no memory between calls, so each prompt must restate the environment, the property and the network interface. In Steps 2 and 3, each prompt also carries the current weights, a log of earlier rounds and the step's feedback.

The policy network is a feed-forward network with one output per action, and it selects the action with the largest output. If that action is unavailable in the state, COOL-MC falls back to the first available action in alphabetical order. Writing numbers this way works because ReLU units can express rules exactly. Two neurons form a step function that tests an integer feature against a constant, which is the building block for rules.

A rule such as selecting an action when two features reach given thresholds takes four first-layer neurons, one conjunction neuron and a large output weight. The LLM can therefore reason about the environment in words and then translate its decision into weights.

Each answer is a JSON object with the weights, short notes on what the neurons do, and 5 to 20 check states with the intended action. The pipeline first checks that the JSON is valid, that the shapes match and that all numbers are finite. It then runs the network on the check states, and a mismatch points to an encoding mistake such as a transposed matrix.

After a failure, the error or the rejected weights go back into the prompt, and the LLM gets a limited number of retries.

How the three steps pass the network along

Creation is the first hand-off: the LLM reads the PRISM model's guards, updates and labels, then encodes its chosen policy in the weights. Each answer also carries notes and 5 to 20 check states, so the self-check can compare the network against the LLM's own intended actions. Dataset repair starts only when a dataset of optimal actions exists, and Storm computes that dataset on the MDP.

Accuracy counts the share of dataset states where the largest output is optimal, and an unavailable action counts as wrong. Dataset repair ends after at most E rounds or once accuracy reaches α, and the most accurate network moves on to Step 3.

Model-checking repair takes the network passed on from the earlier steps, and COOL-MC builds the DTMC that its policy induces. Storm computes the query result q, where a higher q is better for a lower bound and a lower q is better for an upper bound. If q meets the bound, the pipeline stops; otherwise the prompt reports q, the best result q* and the threshold p.

The feedback doesn't name the states that cause the violation, so the LLM has to find the cause in the PRISM code. After at most R rounds, the pipeline returns N*, the best network that Storm has verified.

Step 3 is the only step that judges the policy itself, while the self-check judges only whether the weights encode the intended policy. Storm verifies every returned network, but the pipeline doesn't guarantee that a satisfying network appears within R rounds. In the runs, the authors set E to 5, R to 5 and r to 2 retries per request.

Did creation alone reach the optimum?

The authors tested DeepSeek-V4-Pro and Kimi-K3.1-Pro on Frozen Lake, Transporter and Stock Market, with three seeds per configuration. Frozen Lake asks for P(♢goal), where the moves succeed with probability 0.33 and otherwise slip, and its optimal probability is 0.822.

Table 1: Environments, PCTL queries, and optimal probabilities computed by Storm on the MDP.d: number of features;
|Act|: number of actions; |S|: number of MDP…

Table 1 : Environments, PCTL queries, and optimal probabilities computed by Storm on the MDP.d: number of features; |Act|: number of actions; |S|: number of MDP states that Storm builds for the query, which stops at states in which the query is decided; Network: hidden layers×neurons per layer.

Original paper · CC BY 4.0 · Dennis Gross · Weight-Space Programming of Policies and Their Verification via Model Checking · Original paper figure · Extracted the figure area from page 7 of the original PDF.

In all 18 runs the created network already reached the optimal probability, so the later steps never had to repair a network. Accuracy can mislead, though: on the transporter, two of DeepSeek-V4-Pro's networks chose optimal actions in only 39% of states, yet they still reached the optimal probability because the missed states don't affect the property.

The cost differed by LLM: Kimi-K3.1-Pro needed 4.0 calls per transporter run on average, while DeepSeek-V4-Pro needed 8.0.

Generalizing from two jobs to three

The authors took the transporter networks from the first experiment, all programmed for two jobs, and model checked them on a three-job version. No LLM call was needed, because the networks stayed unchanged and only the property and the model changed. The authors reason that a policy encoding the general rule of refueling when needed, picking up and dropping off should also finish a third job.

Four of the six networks reached the optimal probability of 1 for three jobs, so two of the three networks of each LLM generalized.

Table 3: RQ2: Transporter networks programmed for two jobs, model checked with three jobs

Table 3 : RQ2: Transporter networks programmed for two jobs, model checked with three jobs.

Original paper · CC BY 4.0

The two failing networks, one per LLM, complete two jobs with probability 1 but fail in states where two jobs are already done. The two-job property stops at its goal, so it cannot reveal these failures. Its mean P(♢jobs_done = 3) of 0.667 per LLM reflects the one network in three that fails. Generalization is therefore partial: a policy optimal for one task can still break on a related task the LLM never saw.

A complex until requirement

The requirement says the taxi must complete both jobs and, until then, never carry a passenger with less than 4 units of fuel. Written in PCTL, it is P≥1(¬(passenger ∧ fuel < 4) U jobs_done = 2), which asks for probability 1. The authors ran the pipeline with this property and also checked the RQ1 transporter networks, programmed only for two jobs, against it.

The pipeline met the requirement in all six runs, and four of the six RQ1 networks already satisfied it. In the run with seed 2, the created network met the requirement with probability 1, but dataset repair lifted accuracy from 37.9% to 98.4% and the most accurate network then satisfied the requirement with probability 0. One model-checking round restored the requirement, since the second round reached probability 1.

The authors conclude that accuracy alone can't decide the final policy, so model checking has to make the final call.

DeepSeek-V4-Pro needed 11.7 calls per run on average, compared to 3.3 for Kimi-K3.1-Pro.

Which generation errors occur

LLM answers fail in two places, and the paper counts both over all runs of RQ1 and RQ3. No answer contained invalid JSON, so both LLMs followed the answer format. The most frequent error was a wrong network shape: 32 of DeepSeek-V4-Pro's 67 answers (48%) and 8 of Kimi-K3.1-Pro's 28 answers (29%). The other two wrong-shape answers had a wrong number of layers.

Beyond shape errors, the self-check rejected many answers that were otherwise valid. DeepSeek-V4-Pro failed the self-check 14 times, while Kimi-K3.1-Pro failed it once. Kimi-K3.1-Pro also had one request that timed out, which the table records as a failed request. DeepSeek-V4-Pro sent 67 requests for its 12 runs, while Kimi-K3.1-Pro sent 29 (28 answers and the timed-out request).

What the limitations of these results are

The environments and networks are small, with at most 16,496 states and two hidden layers of 32 neurons each. So the results may not carry over to larger environments, larger networks, or other LLMs. The study tested only two LLMs, one generalization task and one safety requirement. Each configuration ran three times, and cloud inference isn't deterministic even at temperature 0.

The numbers are therefore indicative rather than precise estimates, and the cloud models may change over time.

The method also has structural limits: it supports memoryless deterministic policy networks in modeled PRISM MDP environments. Storm's limits on state space and transitions apply, and the same limits apply to the Step 2 dataset. Because the LLM writes every weight as a number, the network size is capped by the output length and by how many weights it can track.

The authors didn't test large networks, so they focus on small ones. Two runs can return different networks, though a verified network's result is reproducible once written.

The PRISM models are public with COOL-MC, and Frozen Lake is a well-known benchmark. The authors wrote the environment descriptions themselves, and other descriptions could change the results. Of the 24 created policies, 23 already satisfied their property, so model-checking repair was rarely needed in the experiments. The authors plan to test the repair more thoroughly in future work.

Paper info

Authors
Dennis Gross
Venue
arXiv · Preprint
First published
2026-11-8
Added
2026-11-10
Updated
2026-11-8
Version
v1
arXiv
2611.11604
Category
cs.AI · cs.LG
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

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.

Quote from the paper

Dennis Gross (2026). Weight-Space Programming of Policies and Their Verification via Model Checking. arXiv:2611.11604v1. https://arxiv.org/abs/2611.11604v1

BibTeX
@misc{gross2026weight,
  title = {{Weight-Space Programming of Policies and Their Verification via Model Checking}},
  author = {Dennis Gross},
  year = {2026},
  eprint = {2611.11604},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11604v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up