Manuscript Offprint
arXiv:2610.38039Reusable LLM-Based Plans with Probabilistic Guarantees for Self-Adaptive Systems
Asher Tempest Arya
University of Toronto
Toronto, Canada
Rajan Maghera
University of Toronto
Toronto, Canada
Nicholas Wu Jiang
University of Toronto
Toronto, Canada
Federico Mora
University of Waterloo
Waterloo, Canada
Aren A. Babikian
McGill University
Montreal, Canada
Marsha Chechik
University of Toronto
Toronto, Canada
Abstract—Self-adaptive systems are designed to accommodate variants of their environment, which form a family of instances whose uncertainty is captured by probabilistic models, and must meet probabilistic requirements on each instance. Within such a family, changes in size and structure complicate the fundamental adaptation decision: whether to retain, reuse, or construct a new controller, since controllers are often synthesized for and specific to an instance. Large language models (LLMs) have recently been used to write reusable controllers, but existing approaches largely target deterministic domains, and probabilistic model checking of their output remains limited to preliminary single-instance studies. In this paper, we propose a verifier-guided framework for controller reuse with explicit support for families of environments. The framework introduces a novel combination of LLM-written controllers with probabilistic model checking to provide per-instance guarantees for probabilistic requirements. We evaluate our approach using three LLMs on three benchmarks, assessing its effectiveness and cost with respect to baseline implementations, the distribution of adaptation decisions, and the impact of individual framework components. On grid worlds, LLM-written rule lists are verified on about 90% of held-out instances, against at most 77% for the baselines, and verifying a stored rule list is 15 to 103 times faster than per-instance synthesis. Reuse serves most episodes at a small fraction of the cost of generation or per-instance synthesis, and model-checking feedback increases verified coverage over independent restarts.
Index Terms—self-adaptive systems, probabilistic model checking, large language models, controller reuse, generalized planning
I. INTRODUCTION
Motivation. Self-adaptive systems adjust their behavior at run time to keep meeting their requirements as their environment changes, typically through a MAPE-K loop [1].
A central adaptation decision is whether to retain the current controller, reuse another, or construct a new one. The decision is hard when the environment changes in size and structure, e.g., for a robot deployed in buildings whose maps differ, or for a Mars rover whose resource arbiter serves different numbers of requests. We call each such environment, e.g., one building, an instance of a family of environments. When elements inside the environment are uncertain, e.g., a robot's actions can fail or other agents act unpredictably, probabilistic requirements, such as the upper bound on the probability of a collision, are required.
Problem Statement. Before each run on an instance, the system must deploy a controller that is guaranteed to meet the probabilistic requirements on the model of that instance, which may be completely new. Probabilistic model checking at run time can establish whether a configuration of the system meets such requirements [2], [3]. Synthesizing a strategy for each instance with a probabilistic model checker such as PRISM [4] or Storm [5] gives this guarantee, but at the cost of reuse and speed. Each strategy applies only to its own instance. Synthesizing the full model of each new instance is slow, and delays every adaptation. Methods for families of Markov decision processes (MDPs) synthesize strategies that meet the requirements on every member [6], [7], but assume that all members share one state space.
Existing reusable controllers avoid repeated synthesis, but they are limited in their guarantees or in how far they generalize [8]–[10]. Large language models (LLMs) can write reusable controllers as generalized plans [11]–[14], but these generalized planners target deterministic domains, in which simply running a plan on an instance verifies it. Where probabilistic model checking has been applied to LLM output, it covers a single model [15]–[18].
To efficiently and verifiably deploy adaptive LLM-written controllers in uncertain environments, architectures must integrate LLM reasoning with formal probabilistic verification, supporting temporal and probabilistic requirements.
Contributions. In this paper, we propose a verifier-guided framework for adaptation through controller reuse and generation across families of stochastic environments. Our specific contributions are as follows: (1) We propose a verifier-guided adaptation mechanism that retains the current controller only if it is verified on the instance at hand, and otherwise selects a verified one from a library or generates a new one and adds it to the library. (2) We define generalized rule lists, a formal representation of reusable symbolic controllers (Fig. 1),
| # | Condition | Action |
|---|---|---|
| 1 | g3 | any |
| 2 | !wall & closer & !risky & !obstacle & !early | any |
| 3 | !wall & !obstacle & !early & !risky & !patrol | any |
| 4 | !wall & closer & !obstacle & !early & !patrol | any |
| 5 | !wall & !obstacle & !early & !risky | any |
| 6 | wall & !obstacle & !early & !risky | any |
| 7 | !wall & !obstacle & !early | any |
| 8 | true | any |
Fig. 1. A rule list written by Claude Haiku 5.5 for three members ( to ) of a rooms family of grid worlds.
and a permissive strategy criterion [19] for verifying them on an instance. (3) We propose an LLM-based approach for generating and repairing controllers with verification feedback. (4) We empirically assess verified coverage and the effect of verifier feedback, and compare the cost of reuse with that of synthesis per instance on grid-world navigation, Pac-Man [20] and Mars Exploration Rovers (MER) [21]. We compare LLM-written rule lists with decision trees learned as in 1–2–3–Go! [10] and with policies trained by reinforcement learning.
Novelty and Significance. To the best of our knowledge, this paper is the first to combine LLM-written controllers with probabilistic verification to adapt across stochastic environments under temporal logic constraints. Our results provide insight into how far these controllers generalize across such environments and the costs of such adaptation decisions. On grid worlds, LLM-written rule lists are verified on about 90% of held-out instances, against at most 77% for the baselines, and verifying a stored rule list is 15 to 103 times faster than per-instance synthesis. Furthermore, since each guarantee comes from verification, our framework lets self-adaptive systems use LLM-written controllers without assuming that the LLM's output meets the requirements.
A. Markov Decision Processes
An MDP is a tuple , where is a finite set of states, is the initial state, is a finite set of actions, and gives the probability of moving from to when action is taken. An action is available in a state if is a probability distribution, and otherwise for every . We write for the non-empty set of actions available in . A strategy resolves the choice among the available actions in each step, may use memory and randomization, and turns into the Markov chain that induces [22].
A parameterized MDP describes a set of MDPs, one for each instance, i.e., each value of its parameters, such as the size of a map or the length of a game [10].
Running Example. We use the stochastic grid world of prior work [18], a parameterized MDP whose parameters are the grid's size and layout (Fig. 2). An agent starts in the top-left cell of an grid and must visit the goals in order. In each step, it chooses to move up, right, down or left. A move succeeds with probability 0.7 and slips to either side with probability 0.15 each, and a move off the grid or into a

Fig. 2. A instance of the grid world. The agent starts in cell and must visit , and in order. Dark cells are obstacles, and a moving obstacle patrols the shaded cells, down and back up.
static obstacle leaves the agent in place. A moving obstacle patrols a fixed cycle of cells, advancing one cell per step. A state records the agent's cell, which goals it has reached (the goal flags), and the moving obstacle's position.
B. Probabilistic Model Checking
Probabilistic model checkers such as PRISM [4] compute the probability of the paths from that satisfy a temporal property in the Markov chain that a strategy induces. We express properties as path formulas of linear temporal logic [23] over atomic propositions that label states, using the operators eventually (F), always (G) and until (U). A requirement , with , bounds the probability of by a threshold . A strategy satisfies if . The worst case of a requirement on an MDP is the least favorable probability of over all given strategies of the MDP, i.e., for a lower bound ( ) and for an upper bound ( ). If the worst case meets the threshold, then every given strategy of the MDP satisfies the requirement [22].
A permissive strategy allows a non-empty subset of the available actions in each state s and leaves the choice among them open [19]. If the requirements' thresholds are met even with the worst-case choices of allowed actions, every strategy comprised of these actions satisfies the requirements.
In the running example, labels the states where the agent is at , and collision those where it occupies the same cell as the moving obstacle. With probability at least 0.8, the agent must reach each goal , i.e., , and must not enter before reaching the earlier goals, e.g., . While heading to , it must also avoid the moving obstacle with probability at least 0.7, i.e., , where holds in the states between reaching and reaching .
III. PROBLEM DEFINITION
Families and Their Vocabulary. We call a set of instances of a parameterized MDP a family, e.g., all grid worlds or those whose layouts follow one pattern, and write for the MDP of an instance (Sec. II-A). The instances of share a set of policy actions , a set of observable variables and a set of requirements. We write for the threshold of a requirement on , which may differ between instances.
On an instance , a controller is a strategy of that selects a policy action in each state based only on the values of the observable variables. In the running example, the policy actions are the four moves, and the agent's cell, the goal flags and the moving obstacle's position are observable.
Values that differ between instances are not part of the state, so also includes a vocabulary containing constants, state features, and action features. Constants are named values that each instance fixes, e.g., the row and column of each goal. State features are expressions over the observable variables and the constants, e.g., the number of moves left in a Pac-Man game. Action features are evaluated for each policy action. In the running example, closer holds for a move if it brings the agent closer to the next goal along a shortest path, patrol for a move into a cell on the moving obstacle's patrol path, wall for a move into a wall or off the grid, risky for a move that can slip onto the patrol path or into a later goal, obstacle for a move onto the moving obstacle's cell, and early for a move into a goal out of turn.
Rule Lists. A generalized rule list , or rule list for short, is an ordered list of rules, each with a condition and an action . Conditions are Boolean combinations of comparisons over the observable variables and the vocabulary.
On an instance , a rule allows a policy action in a state if and holds in with every action feature in evaluated for . For example, rule 2 of Fig. 1 allows every move that does not hit a wall, brings the agent closer to the next goal, cannot slip onto the patrol path or into a later goal, and neither meets the moving obstacle nor enters a goal out of turn. A rule decides a state if it is the first rule of that allows some policy action in that state. If the rule list does not have any rules that decide a given state, every possible action is allowed for it. On each instance , acts as a permissive strategy of (Sec. II-B), and we write for restricted to the actions that allows.
Verified Rule Lists. We write for the worst case of a requirement over all strategies of . A rule list is verified on if meets the threshold for every requirement . If is verified on , then every controller that takes only actions that allows satisfies all requirements in on jointly, although each is checked separately. This holds even if the controller uses memory or randomization. At run time, the manager verifies and deploys each rule list in its frozen form, which allows only the first of the actions that a rule allows in a fixed order of preference.
The margin of on for is if is a lower bound and if it is an upper bound, i.e., how far the worst case lies on the safe side of the threshold. The smallest margin of on is .
Adaptation Problem. The system operates in episodes, each of which is one run of the system on an instance of , e.g., the agent visiting the goals on one map. Given the parameterized MDP of a family , its requirements and a vocabulary, the problem is to deploy, for each episode , a rule list verified on its instance , where becomes known only just before episode starts. Since each episode waits for this decision, the time spent on it should be low.
IV. APPROACH
Fig. 3 illustrates the process of rule-list generation and application using model checkers. Decisions are highlighted in green, processes in orange, and artifacts, i.e., inputs, outputs and intermediate results, in blue. The adaptation manager (Sec. IV-A) first checks whether its current rule list is verified on the next instance and, if so, retains it. Otherwise, it switches to a verified rule list from its library. If there is none, it generates a new rule list using a feedback-driven LLM rule list creation loop. First, an LLM writes a rule list (“prompting”, Sec. IV-B), PRISM checks it on a few training instances, including the new one (“verification”, Sec. IV-C), and the LLM is told where and why the rule list fails (“feedback”, Sec. IV-D). “Selection and repair” then improves the best rule lists from several such loops via small edits and chooses one (Sec. IV-E). If the result is verified on the instance, the manager deploys it and adds it to the library; otherwise, it defers the episode and records the failure or, optionally, falls back to per-instance synthesis. Before the first episode, this generation procedure automatically seeds the library from training sets of instances.
A. Adaptation Manager
Run-Time Verification. Before the episode on , the manager builds the instance's model from the observed parameters. For a rule list , it obtains the restricted model (Sec. III) by composing with one PRISM module that blocks every action that does not allow. PRISM [4] then computes, by interval iteration [24], a lower and an upper bound on the worst case of every requirement on , with sound value iteration [25] as a fallback upon an inconclusive result. The manager accepts as verified on only if, for every requirement , the less favorable of its two bounds meets . Since each worst case lies between its two bounds, every accepted rule list is verified on (Sec. III).
Adaptation Policy. Before each episode, the manager first checks whether its current rule list is verified on and, if so, retains it, which avoids switching and costs a single verification. Otherwise, it checks the other rule lists in its library on . The manager picks the rule list that comes closest to being verified, i.e., whose smallest margin over the requirements is the largest over the rule lists. If is verified on , the manager switches to it, and otherwise it invokes generation. It generates a rule list rather than synthesizing a strategy for alone, so that an instance that the library cannot serve extends the library. The training set consists of and the three smallest training instances of , so that the new rule list must also meet the requirements on instances for which was written.
Unsuccessful Adaptation. Since generation is bounded, it can fail to produce a rule list that is verified on even if one exists. The manager deploys the generated rule list and adds it to only if it is verified on . Otherwise, adaptation fails. By default, the manager then defers the episode on it and records the failure. Alternatively, it can fall back to synthesizing a strategy for alone with PRISM, which meets

Fig. 3. The adaptation manager, which picks the rule list for the episode on and invokes generation (dashed region) if no stored rule list is verified on .
the requirements on whenever such a strategy exists. Since this strategy would only apply to , the manager does not add it to . In practice, PRISM exports such strategies only for queries with a single objective, so this fallback applies to Pac-Man and MER but not to the grid worlds, whose requirements must hold jointly.
Running Example. Suppose that the rule list of Fig. 1 is not verified on the map of the next episode, since its worst case of reaching the second goal before the third is 0.793, just short of the threshold of 0.8, and that no other stored rule list is verified on this map either. Since the manager can neither retain the current rule list nor switch to a stored one, it invokes generation on this map and the three training instances of the current rule list. Generation returns a rule list that is verified with a worst case of 0.822 for the previously failing requirement, so the manager deploys it and adds it to . It becomes the current rule list for the next episode.
B. Prompting
The LLM receives a prompt that states the problem and asks for one rule list that meets the requirements, unchanged, on every training instance. The prompt describes the family's dynamics, each training instance with its constants, a textual map (if it is provided by the domain), the vocabulary, the policy actions, the requirements with their thresholds, and how a rule list is read.
Since the rule list may be used unchanged on instances that are not shown to the LLM, including larger ones, the prompt asks for general rules and allows no number other than 0 and 1 in conditions to avoid hard-coding values of a single instance. The LLM returns its answer as JSON constrained by a schema, which limits actions to the policy actions and any. An answer whose rules do not parse or contain other numbers is rejected, and the LLM is asked again.
C. Verification
For each training instance , PRISM computes the worst case of every requirement on (Sec. IV-A). A rule list passes on a training instance if the estimate of meets for every requirement .
D. Feedback
Prompting, verification and feedback form a loop; we call one run of this loop a chain and each of its iterations a round. The chain stops once the rule list passes on every training instance with a smallest margin above a small constant, or after a fixed number of rounds. Otherwise, the LLM receives a feedback prompt with the worst-case results on each training instance. A state is lost for a requirement if the outcome it asks for has probability 0 from that state under every strategy, e.g., after a collision.
The feedback covers up to three failing requirements, choosing the ones whose worst cases fall furthest short of their thresholds. For each of them, it picks the two states from which a run is most likely to step into a lost state. For each such state, the feedback includes the deciding rule, the actions that rule allowed, and the action leading to the worst case. For every action, it also gives the features that hold for it and its risk of reaching a lost state in one step. The prompt also lists the chain's earlier rule lists with their results, and the LLM returns a complete revised rule list. The feedback never shows which action is optimal so that the LLM does not hard-code single decisions.
In the state that Fig. 4 shows for the smallest training instance, the deciding rule 3 allows only down, a move whose slips can collide with the moving obstacle, as its risky feature and its one-step risk show. In its next answer, the LLM added !risky to that rule, which removes such moves wherever the rule applies on any instance.
- avoid_moving_seg1 = 0.187 (needs >= 0.7).
- 0.193 of runs fail from here: agent at (0,1), g1=false, g2=false, g3=false, obs_idx=3 (obstacle at (1,2), next at (0,2)); decided by rule 3 '!g1 & !wall & !obstacle & !early & closer -> any'; allowed down; the worst case takes down. actions here: up: [wall, risky] risk: collision 0.15; right: [toward, closer, patrol, obstacle] risk: collision 0.70; down: [risky, toward, closer] risk: collision 0.15; left: [no feature true]
Fig. 4. An excerpt of the feedback on an earlier rule list while generating the rule list of Fig. 1, for the requirement to avoid the moving obstacle until the first goal. toward holds for a move that reduces the row or column distance to the next goal, ignoring walls and obstacles.
E. Selection and Repair
A single chain may stall on a poor first answer, so once all chains end, we rank the distinct rule lists from all their rounds by their smallest margin over the training instances, , and keep the highest-ranked ones as candidates. Each candidate is then repaired by hill climbing over small edits, such as dropping a rule, adding a conjunct, changing an action, or swapping two neighboring rules. In each step, repair keeps the first edit that increases the sum of the margins over all and . Repair computes these margins for many candidate rule lists in every generation run. Thus, instead of calling PRISM for each candidate, we export the unrestricted model of each training instance from PRISM once and check each candidate in memory. This in-memory checker obtains by removing the choices that disallows and computes the worst case of each requirement on it, without the cost of starting PRISM and building the model on every call. Since it computes in floating point without an error bound, we use it only to rank candidates, and the manager verifies every rule list with PRISM before deploying it. Among the repaired candidates, we select the rule list that passes on the most training instances and, of those, the one that is the furthest from failing any requirement.
When the selected rule list is permissive, i.e., allows several actions, the deployed controller must choose one. A rule list that allows only the first of the allowed actions, given a fixed order of preference, is frozen. Selection freezes the rule list by using the same approximate checker as repair to rank action orders. Selection can also narrow the frozen rule list by finding actions that fall short of an optimal one and greedily forbidding them, one place at a time (i.e., for one value of a variable whose range is the same on every instance, such as a maze cell), as long as the list still passes on every training instance.
V. EVALUATION
We address the following research questions:
RQ1 How effective are LLM-written rule lists on new instances, compared with learned controllers?
RQ2 How does the cost of our adaptation compare to per-instance solution synthesis?
RQ3 How are the adaptation manager's decisions distributed among the available options across episode sequences?
RQ4 What is the effect of the feedback, repair, and narrowing components on our approach?
A. Evaluation Setup
Domains. Grid-world navigation (see Sec. II-A) stands in for a robot that visits goals in order while avoiding a moving obstacle, in buildings with different maps. Random grids are maps whose obstacles are placed at random, and grid-world families are three families of maps whose members each follow a layout pattern. In the rooms family, the goals lie in rooms joined by doors. In the crossing family, consecutive goals lie on opposite sides of a wall, and the moving obstacle patrols the wall's one gap. In the adjacent family, the first and third goals are neighbors. In Pac-Man [20], the controller picks Pac-Man's direction at the crossings of a maze. Two ghosts move at random, and the only requirement is to keep the probability of being caught by a ghost at or below 0.56. Its instances differ in the length of the game. We enable narrowing only on Pac-Man, whose training games are shorter versions of its test games. MER [21] models a Mars rover's resource arbiter, which shares communication and driving between two users and must never grant both at once. As in 1–2–3–Go! [10], every move of a user and every answer of the arbiter is a policy action, so the controller is a scheduler that tries to make the arbiter fail by granting both resources at once. The requirement for an instance I is that the rule list makes the arbiter grant both resources at once with probability at least 0.95 , where is the highest possible probability of granting both resources simultaneously on I. MER forms two benchmarks, whose instances differ in the probability x that a user keeps a resource and in the number of requests N.
Instances. Controllers are written, learned or trained on small training instances and checked on disjoint held-out instances, which are split into validation instances, observed while we developed the prompts and the loop, and test instances, on which we report our main results. On random grids, controllers are trained on four sets of three grids of to and tested on 42 grids of up to , and on each family, they are trained on members of to and tested on 24 members of to . On Pac-Man, they are trained on games of length 14 to 18 and tested on lengths 50 and 100, and on each MER benchmark, they are trained on three small instances and tested on three further ones, with up to 100 requests. The validation instances are eight random grids of and , 20 members per family, six Pac-Man lengths from 8 to 30 and six instances per MER benchmark. The thresholds of the grid worlds are the same at every size. Every held-out instance admits a strategy that meets all requirements jointly, except possibly Pac-Man's length 100, whose unrestricted model could not be built. On the grid worlds and MER, some controller we check is verified on each held-out instance, and at Pac-Man's validation lengths and length 50, an optimal strategy meets the threshold.
Compared Controllers. LLM-written rule lists (Full) are generated as in Sec. IV by three LLMs, Claude Haiku 5.5,
GPT-6 Luna and Gemini 3.8 Flash¹, with the same loop and configuration, in three runs per training set. We report the frozen rule lists, which the manager deploys (Sec. IV-E). Unless stated otherwise, Full refers to the rule lists of Claude Haiku 5.5. Our first baseline, DT-raw, consists of decision trees over raw state variables, learned from the optimal strategies of the training instances by our reimplementation of 1–2–3–Go! [10]. Our second, DT-voc, consists of decision trees over the vocabulary's features, learned in the same way, to separate the benefit of the vocabulary from that of LLM generation. Our third baseline, RL, is a reinforcement learning policy trained over the vocabulary's features by proximal policy optimization (PPO) [26], as in work on generalizing across levels [9]. No baseline is learned or trained under a time limit. Trees and RL policies are checked as rule lists.
Metrics. The verified coverage of a controller is the fraction of a benchmark's test or validation instances on which it is verified. We report its mean and standard deviation over the controllers of an approach. On the grid worlds, we also compute 95% bootstrap confidence intervals of the difference in mean verified coverage between Full and RL, DT-voc, Restart and NoRepair. We also report the manager's decisions and their wall-clock time, the verified coverage of each rule list on its own training instances, and the mean number of LLM calls per training set.
Implementation Details. Verification uses PRISM 4.10.1 [4] with its explicit engine, interval iteration at precision 10⁻⁹ and a timeout of 900s, after which a check counts as not verified. Where interval iteration does not converge or its bounds enclose a threshold, Storm [5] decides the check by sound value iteration or, where that is inconclusive too, in exact rational arithmetic. Generation runs K = 6 chains on the families and K = 8 elsewhere, each of up to seven rounds. All experiment data and remaining settings, including prompts, generated rule lists and analysis scripts, are publicly available online [27].
B. RQ1: Verified Coverage
RQ1 measures the effectiveness of LLM-written rule lists (Full) on larger held-out instances as their verified coverage on every benchmark, compared with that of the learned baselines DT-raw, DT-voc and RL. On the grid worlds, the features of DT-voc and RL include the goal flags so that every compared method observes the same information.
Results. Table I gives the verified coverage of each controller on the test and validation instances of each benchmark. Our rule lists are small, with 17 to 46 rules on average per benchmark, whereas the trees of DT-raw and DT-voc have 256 to 36,031 nodes and the RL policies 5.4k to 7.8k parameters.
On both grid-world benchmarks, Full is verified on about 90% of the test instances, more than every baseline. Full's lead is statistically significant on both benchmarks, except over DT-voc on the families, whose coverage varies widely
TABLE I
VERIFIED COVERAGE (%) OF EACH APPROACH ON THE TEST AND VALIDATION INSTANCES, AS MEAN ± STANDARD DEVIATION OVER ITS CONTROLLERS. ON THE FAMILIES, FOUR OF RL'S TEST CHECKS TIMED OUT AND COUNT AS NOT VERIFIED. ENTRIES WITHOUT A STANDARD DEVIATION COME FROM A SINGLE CONTROLLER. BEST NONZERO VALUE PER BENCHMARK AND COLUMN IN BOLD.
| Controller | Test | Validation |
|---|---|---|
| Random grids | ||
| Full | ||
| Claude Haiku 5.5 | 91.3 ± 7.3 | 92.7 ± 11.3 |
| GPT-6 Luna | 84.9 ± 14.9 | 86.5 ± 18.0 |
| Gemini 3.8 Flash | 85.1 ± 21.0 | 91.7 ± 18.7 |
| DT-raw | 1.2 ± 1.4 | 0.0 ± 0.0 |
| DT-voc | 57.7 ± 25.7 | 46.9 ± 27.7 |
| RL | 77.0 ± 12.7 | 70.8 ± 17.1 |
| Grid-world families | ||
| Full | ||
| Claude Haiku 5.5 | 89.4 ± 9.8 | 87.2 ± 12.0 |
| GPT-6 Luna | 68.1 ± 30.5 | 73.9 ± 27.7 |
| Gemini 3.8 Flash | 94.4 ± 4.7 | 92.2 ± 10.3 |
| DT-raw | 0.0 ± 0.0 | 0.0 ± 0.0 |
| DT-voc | 59.7 ± 52.1 | 61.7 ± 45.4 |
| RL | 60.2 ± 45.3 | 61.1 ± 46.4 |
| Pac-Man | ||
| Full | ||
| Claude Haiku 5.5 | 0.0 ± 0.0 | 66.7 ± 0.0 |
| GPT-6 Luna | 0.0 ± 0.0 | 61.1 ± 9.6 |
| Gemini 3.8 Flash | 0.0 ± 0.0 | 66.7 ± 0.0 |
| DT-raw | 0.0 | 66.7 |
| DT-voc | 0.0 | 33.3 |
| RL | 0.0 ± 0.0 | 50.0 ± 0.0 |
| MER across x | ||
| Full, all three LLMs | 100.0 ± 0.0 | 100.0 ± 0.0 |
| DT-raw | 100.0 | 100.0 |
| DT-voc | 33.3 | 50.0 |
| RL | 0.0 ± 0.0 | 0.0 ± 0.0 |
| MER across N | ||
| Full, all three LLMs | 100.0 ± 0.0 | 100.0 ± 0.0 |
| DT-raw | 100.0 | 100.0 |
| DT-voc | 0.0 | 0.0 |
| RL | 0.0 ± 0.0 | 0.0 ± 0.0 |
between families. On the test instances, Full's lead over RL, the strongest grid-world baseline, grows from 14.3 percentage points on random grids to 29.2 on the families. On the families, DT-voc and RL each fail every test member of a family, whereas Full is verified on most members of every family. DT-raw is verified on almost no held-out grid-world instance. Its trees split on the raw cells of the training grids, so their decisions do not carry over to grids whose goals lie elsewhere. DT-voc, which uses our vocabulary, reaches less than two thirds of Full's coverage on the random test grids, meaning the vocabulary accounts for more than half of Full's lead over DT-raw. Generation, i.e., the LLM together with verifier-guided repair, accounts for the rest. Fig. 5 shows the verified coverage on the grid worlds' test instances by size. On grid worlds larger than any training instance, Full is verified on at least 90% of the random test grids and at least 78% of the family members at every size, more than DT-voc and RL at each.
On MER, where the optimal actions hardly change across instances, Full and DT-raw are verified on every instance, whereas RL is verified on none, since its policies quickly reach
¹anthropic/claude-haiku-5.5, openai/gpt-6-luna and google/gemini-3.8-flash through OpenRouter, with reasoning and temperature set to the providers' defaults.

Fig. 5. Verified coverage on the test instances of the grid worlds by size, for Full, DT-voc and RL, as the mean over each approach's controllers, without spread. Random grids of to have the sizes of the training grids, and every other test instance is larger than any training instance. DT-raw is omitted.

Fig. 6. Worst-case probability of being caught on Pac-Man by game length (logarithmic axis), for Full and RL (means of three runs or seeds; RL not checked at length 100), DT-raw and DT-voc, with the threshold of 0.56 dashed. Shading marks the training lengths 14 to 18 and the test lengths 50 and 100. Lines between measured lengths, e.g., from 30 to 50, are interpolated.
a state whose best action is to maintain the current state.
Fig. 6 shows the worst-case probability of being caught on Pac-Man by game length. No controller is verified beyond length 20. At length 50, the threshold lies just 0.009 above the optimum, and none of the compared controllers is near-optimal on games of length 25 and longer. Beyond length 20, the rule lists of Full nonetheless come closest to the threshold among the controllers checked at each length, including both test lengths.
Rule lists written by GPT-6 Luna and Gemini 3.8 Flash are verified on 68% to 94% of the grid worlds' test instances, also more than every baseline on both benchmarks, and on every MER instance. Gemini 3.8 Flash leads Claude Haiku 5.5 on the families and trails it on random grids.
RQ1. Our LLM-written rule lists are verified on more held-out grid-world instances than every baseline, and they match the best baseline on MER. On Pac-Man's long test games, no controller is verified, but our rule lists come closest to the threshold.
C. RQ2: Cost of Adaptation vs. Synthesis
RQ2 compares the time of our adaptation with that of per-instance synthesis. Per-instance synthesis computes a strategy

Fig. 7. Median wall-clock time of synthesizing a strategy for an instance and of verifying one stored rule list on it, by instance size, against the median time of generating one rule list. Synthesis is PRISM's multi-objective query for a strategy that meets all requirements jointly on the grid worlds, and its minimization of the probability of being caught on Pac-Man. It timed out at 900s on 4 of the 80 grid-world instances, which count as 900s. Generation runs without a timeout.
that applies only to the instance at hand, whereas generation produces a rule list that the manager can reuse on other instances. We measure the wall-clock time of PRISM's synthesis of a strategy on the unrestricted model , of one verification of a stored rule list on , and of generating one rule list. We use the validation sets of the random grids, the grid families, and Pac-Man lengths. We derive the number of instances after which a rule list, counting its generation, costs less in total than synthesis per instance.
Results. Fig. 7 gives the median times by instance size of per-instance synthesis and verifying a stored rule list, and of generating one rule list. Retaining a rule list costs one verification, a median of 2.7 s, and switching costs one verification per stored rule list. Generating a new rule list takes a median of 808 s, about 300 times as long as retaining one. An episode on which no stored rule list is verified costs one verification per stored rule list and one generation. This cost depends on the number of episodes only through the size of the library, which grows by one rule list per verified generation. On the grid worlds, synthesis per instance takes 15 to 103 times as long as verifying a stored rule list (Fig. 7), and the gap widens with size on the families. These ratios are conservative under PRISM's synthesis timeout of 900s. Synthesis takes longer at length 8 than at lengths 10 and 12 only because it was the first call of its run, which included about 11 s of start-up time. At length 100, the unrestricted model can no longer be built, whereas the restricted model of Full's rule lists, with 14.1M states, can still be checked. At every size we time, however, generating a rule list at run time takes longer at the median than synthesizing a strategy for the instance at hand, so generation pays off only through later reuse.
Counting the time to generate it, a rule list costs less in total than synthesis per instance once it serves several instances. The larger the instances, the sooner this happens, since synthesis costs more as instance size increases. For example, on the grid-world families, a rule list pays for its generation after about nine members of , but already after three of .
RQ2. Verifying a stored rule list costs a small fraction of generating a new one or of synthesizing a strategy. Counting its generation, a rule list costs less than synthesis per instance once it serves several instances.
D. RQ3: Adaptation Decision Distribution
RQ3 measures what decisions the adaptation manager makes over sequences of episodes by counting how often it retains the current rule list, switches to another stored one, generates a new one, or defers the episode, given a starting set of seeded rule lists.
Sequences. We fix three sequences of 12 episodes, , that mix members of to with random grids of to . runs four family members and then eight random grids, and and alternate several times between consecutive family members and consecutive random grids. The sequences were chosen by hand before the runs. To check that our findings do not depend on this choice, we also draw 10 sequences of 12 episodes and two longer sequences of 36 episodes, and , at random from the pool of instances. For each grid-world run, the manager starts from a new seed library of three rule lists using Full, each generated from the training members of a single family. No rule list in a seed library was generated from random grids, so the manager can serve a random-grid episode only by reusing a rule list written for a family or by generating a new one. On Pac-Man, three sequences of 12 episodes run over the validation lengths, with the three rule lists of Full as the library. We run the manager without the synthesis fallback so that the deferred episodes show where generation fails.
Results. Table II counts the manager's decisions on each set of sequences for each seed library, in the fixed and extended settings. Without generation, reuse, i.e., retaining or switching, serves about 85% of the episodes of with each seed library and about 95% of those of the random sequences, mostly by retaining the current rule list. Where no stored rule list is verified, run-time generation serves most of the remaining grid-world episodes. The rule lists it added were reused mostly on episodes on which a seed rule list was verified too. In and , they served three episodes that would otherwise have needed a new generation. On Pac-Man, the library serves every episode up to length 20, and the manager defers every episode of length 25 or 30, on which generation produces no verified rule list. With the synthesis fallback, the manager would serve these episodes instead. On the grid worlds, synthesis shows that a strategy that meets all requirements exists on every instance on which the manager defers an episode, so each deferral stems from generation.
RQ3. The manager serves most episodes by reusing rule lists in the library, and run-time generation serves most of the remaining episodes. The rule lists that generation adds to the library occasionally serve an episode that no seeded rule list otherwise could.
TABLE II
DECISIONS OF THE ADAPTATION MANAGER OVER SEQUENCES OF EPISODES, BY SEED LIBRARY (LIB.). IN THE FIXED SETTING, GENERATION IS DISABLED. IN THE EXTENDED SETTING, THE MANAGER GENERATES A RULE LIST WHERE NO STORED ONE IS VERIFIED AND ADDS IT TO THE LIBRARY ONCE VERIFIED. SERVED COUNTS THE EPISODES ON WHICH THE MANAGER DEPLOYS A VERIFIED RULE LIST, AND GENERATED COUNTS THE VERIFIED GENERATIONS OUT OF THOSE ATTEMPTED. EPISODES NOT SERVED ARE DEFERRED, SINCE THE SYNTHESIS FALLBACK IS DISABLED, AND – MARKS A SETTING THAT WAS NOT RUN.
| Sequences | Lib. | Fixed | Extended | |||
|---|---|---|---|---|---|---|
| Retain | Switch | Served | Served | Generated | ||
| (36) | 1 | 26 | 5 | 31 | 34 | 3/5 |
| 2 | 28 | 3 | 31 | 35 | 3/4 | |
| 3 | 20 | 10 | 30 | 35 | 3/4 | |
| Random (120) | 1 | 102 | 12 | 114 | - | - |
| 2 | 104 | 11 | 115 | - | - | |
| 3 | 78 | 35 | 113 | - | - | |
| (36) | 1 | 32 | 3 | 35 | 35 | 0/1 |
| (36) | 1 | 32 | 1 | 33 | 36 | 3/3 |
| Pac-Man (36) | Full | 20 | 3 | 23 | 23 | 0/13 |
TABLE III
ABLATION OF GENERATION: VERIFIED COVERAGE (%) ON THE TEST, VALIDATION AND TRAINING INSTANCES, AS MEAN STANDARD DEVIATION OVER CONTROLLERS, AND MEAN LLM CALLS PER TRAINING SET, RE-ASKS INCLUDED. RESTART WAS NOT RUN ON MER ACROSS N.
| Configuration | Test | Validation | Training | Calls |
|---|---|---|---|---|
| Random grids | ||||
| Full | 55.8 | |||
| Restart | 56.0 | |||
| NoRepair | 55.8 | |||
| OneShot | 1.0 | |||
| Grid-world families | ||||
| Full | 36.4 | |||
| Restart | 42.0 | |||
| NoRepair | 36.4 | |||
| OneShot | 1.0 | |||
| Pac-Man | ||||
| Full | 49.3 | |||
| Restart | 59.0 | |||
| NoRepair | 49.3 | |||
| OneShot | 1.0 | |||
| MER across x | ||||
| Full | 63.7 | |||
| Restart | 59.0 | |||
| NoRepair | 63.7 | |||
| OneShot | 1.0 | |||
| MER across N | ||||
| Full | 60.0 | |||
| NoRepair | 60.0 | |||
| OneShot | 1.0 | |||
E. RQ4: Feedback, Repair and Narrowing
RQ4 evaluates the effect of the feedback, repair and narrowing components (Sec. IV) on the verified coverage of our approach.
Ablation Configurations. Restart replaces feedback with independent restarts from the initial prompt, with the same limits on the number of iterations. NoRepair skips repair and narrowing (Sec. IV-E). OneShot deploys the first rule list that the LLM writes without further processing.
Results. To evaluate the effect of feedback, we compare our Full approach with Restart and OneShot, which do not use feedback. Table III compares Full with OneShot and Restart by verified coverage and by the mean number of LLM calls per training set. We find that OneShot is verified on fewer instances than Full on every benchmark except Pac-Man's test lengths, and, on average, on at most half of its own training instances. On random test grids, Restart barely improves on OneShot, so the gain there comes from feedback, whereas on the families, Restart closes most of the gap between OneShot and Full. Full's lead over Restart is statistically significant on random grids. The lead of feedback over independent restarts contrasts with deterministic tasks in which resampling the LLM was as effective as feeding back errors at matched budgets [28], [29].
Table III also gives the verified coverage of NoRepair alongside that of Full. Without repair, test coverage drops by 5.6 percentage points on random grids and by 17.6 on the families. The drop on random grids is statistically significant. We believe that these drops occur because the rule list selected before repair often falls just short of a threshold on one training instance, a gap that a single edit, such as adding !risky to a rule, closes on every instance at once. On the families, feedback and repair raise mean coverage by at least as much as on random grids, but coverage varies more between runs. Of the other two LLMs, repair raises test coverage only for GPT-6 Luna on the families. On Pac-Man, repair changes no worst case at any length, and the gain over NoRepair comes entirely from narrowing, which lowers the worst case at length 20 from 0.662 to 0.559, just below the threshold.
RQ4. Under the same cap of chains and rounds, verifier feedback raises verified coverage over independent restarts (Restart) by about 14 percentage points on the test instances of random grids. It also leads on Pac-Man's validation lengths and ties on MER across x. In contrast to reports on deterministic tasks [28], [29], feedback pays off here. Repair raises verified coverage on the test instances of random grids, though not with every LLM, and narrowing raises it on Pac-Man's validation lengths.
F. Threats to Validity
Internal Validity. Randomness in LLM outputs and in PPO training could affect the comparison between approaches. We mitigate this by using three runs per training set, reporting standard deviations, and testing the differences on the grid worlds for statistical significance. LLM providers may change or retire their models, which limits reproducibility. We mitigate this by giving the model identifiers (Sec. V-A) and by releasing every prompt and generated rule list [27]. We developed the prompts and the loop's parameters based on preliminary results on the validation instances, so the results that use no test instances, i.e., the sequences of RQ3, may be optimistic. However, on the grid worlds and MER, the coverage of the validation instances differs from that on the test instances by at most 6.6 percentage points, which implies that this tuning inflates results on the validation instances only slightly. Floating-point rounding could break the bounds of interval iteration on which verification relies [30]. We mitigate this in part by deciding checks whose bounds enclose a threshold by sound value iteration or exact arithmetic. Verification also depends on our translation of rule lists and of the vocabulary's features into PRISM. Unit tests check this translation against the first-match semantics of Sec. III on small models. As a second check, repair's checker, which evaluates rule lists without PRISM, agrees with PRISM's worst cases to within in every domain.
External Validity. Our three domains are benchmarks that stand in for self-adaptive systems whose environments vary in size and structure, so our findings may not carry over to other systems or LLMs. The LLMs may also have seen our domains' models during training, since all three have been published. Memorized solutions cannot be reused directly, however, since none is written in our rule language or vocabulary, and every rule list is checked on each instance's model. The benefit of the LLM may depend on the vocabulary, which we wrote by hand for each domain and did not vary. DT-voc separates the vocabulary's contribution from that of generation, but not how generation would fare with another vocabulary. The framework assumes exact models, so its guarantees hold only relative to these models. Explicit-state model checking limits the instance sizes that we can verify. For restricted rule lists, however, the model is much smaller, so the rule lists of Full could still be checked at Pac-Man's length 100, whose unrestricted model could not be built (Sec. V-C).
Construct Validity. We measure verified coverage rather than the outcome of episodes, because the manager deploys only verified rule lists. Verified coverage depends on where the thresholds lie, since a controller that narrowly misses one counts as not verified. We take the grid-world thresholds from prior work [18] and set Pac-Man's just above its optimum. MER's thresholds come from each instance's optimum, which a deployed manager would not know, and stand in for thresholds set by stakeholders. Verified coverage also counts an instance on which no controller can meet the requirements as a miss, which may happen only at Pac-Man's length 100. On Pac-Man, we therefore also compare the worst cases themselves, which do not depend on the threshold. We report the times of verification, generation and synthesis separately, so that each can be rescaled to other hardware, and we ran all timed experiments on a dedicated machine.
VI. RELATED WORK
LLMs in Self-Adaptation with Verification. LLMs have been surveyed as aids across the MAPE-K loop [31], [32] and used to reason about unanticipated situations [33], to refine safety operational rules [34], and to explain task plans [35]. Gross et al. verify the decisions of an LLM acting as the policy itself on a single model [15], and use an LLM to repair the unsafe decisions of a learned policy in a single round [17]. Other approaches use a model checker qualitatively [16], check a model learned from traces at run time [36], or let an LLM write the MDP and a model checker synthesize the strategy [37]. Closest to our use of LLMs, Töpfer et al. [38] have LLMs write adaptation managers that are revised from constraints violated in test runs, and Arya et al. [18] refined LLM-written per-state policies for single grid-world instances over several rounds of quantitative model-checking results. In our framework, the LLM instead writes one rule list for a stochastic environment for reuse across the instances of a family, and the manager reuses it only where probabilistic model checking verifies it.
Run-Time Verification and Adaptation. Quantitative verification at run time has long guided adaptation decisions [2], [39], [40]. Frameworks such as Rainbow [41] select at run time among adaptation strategies written in advance [42], which probabilistic model checking can analyze [43]. Earlier plans [44], [45], repertoires of plans built in advance [46], and models carried over to new environments by transfer [47] or lifelong learning [48] seed a new search or learning step, whereas our manager reuses rule lists unchanged wherever they are verified, and otherwise generates a new one.
LLM-Written Generalized Plans. Generalized plans are programs or policies that solve every instance of a planning domain. Silver et al. [11] showed that LLMs can write such programs when debugged on training tasks. Later work refined how LLMs write such programs [12], [14] or checked a property of LLM-written heuristics [49]. Closest to our loop is Prompt, Prove, Patch [13], which proves that an LLM-written general policy reaches the goal on every training task and returns counterexamples to the LLM. These generalized planners target deterministic domains, where running a policy on an instance verifies it. They check that a policy generalizes to larger instances by running it on some of them or by hand-writing proofs [50]. Our loop has the same generate-verify-revise shape, but judges a rule list on stochastic models by its worst case, and our manager verifies it automatically before reusing it on a new instance.
Verifier Feedback and Resampling. LLM-Modulo [51] and other neuro-symbolic frameworks place an LLM inside a loop of sound critics. In deterministic tasks, resampling the LLM was about as effective as feeding back errors [28], [29]. We compare verifier feedback with independent restarts on stochastic models, where the verifier's output is quantitative (Sec. V-E).
Generalized Policies. Closest to our rule lists, the general policies of [52], [53] are rules over Boolean and numerical features, and their feature effects play the role of our action features such as closer. Later work learns such features and policies from small examples [54], whereas our vocabulary is written by the domain's designer. Relational decision lists [8], [55] share the ordered form of our rule lists but are evaluated by simulation, without thresholds or verification.
Families of MDPs and Permissive Strategies. Policy trees [6] and satisfiability modulo probabilistic model checking [7] synthesize strategies that meet a specification on every member of a finite family, and robust methods optimize a policy's worst case over a finite family of partially observable MDPs [56] or bound the risk on unseen MDPs sampled from a distribution [57]. The members of these families share one state space, whereas the instances of our families differ in size and structure. 1–2–3–Go! [10] learns decision trees from the optimal strategies of small instances of a parameterized MDP and computes their value exactly on each larger instance, for a single reachability objective. Its trees split on raw state variables, so they carry over only where the right decision does not depend on the instance's parameters (Sec. V-B), whereas our vocabulary names instance values, and our rule lists are verified on each instance against several requirements. Permissive strategies [19], [58] and shields [59]–[61] allow sets of actions in each state while preserving guarantees, and tools such as dtControl [62] compress a strategy into a small decision tree, in each case for a single model.
VII. CONCLUSION
In this paper, we proposed a verifier-guided framework for adaptation through controller reuse and generation across families of stochastic environments. In this framework, an LLM writes generalized rule lists over domain-level features and refines them with quantitative feedback from probabilistic model checking. At run time, an adaptation manager reuses a rule list from its library only if model checking verifies it on the instance at hand, and otherwise generates a new one, which joins the library once verified.
We evaluated our framework with three LLMs on grid-world navigation, Pac-Man and MER. On the grid worlds, the LLM-written rule lists were verified on more held-out instances than every baseline, even on instances larger than any training instance. They matched the best baseline on MER and came the closest to the threshold on Pac-Man's long test games, where no controller was verified. Over sequences of grid-world instances, reuse served most episodes at a small fraction of the cost of generation or of synthesis per instance. Including the cost of generating it, a rule list became cheaper than synthesis once it had served several instances. The rule lists that run-time generation added to the library occasionally served episodes that would otherwise have needed a new generation. Under the same cap of chains and rounds, verifier feedback reached a higher verified coverage than independent restarts on random grids and on Pac-Man's validation lengths, and repairing rule lists by small edits raised it on random grids, though not with every LLM.
As future work, we plan to evaluate over longer sequences whether the rule lists that run-time generation adds to the library reduce the need for later generations. We also aim to let the LLM write the vocabulary, which we wrote by hand for each domain, and to verify stored rule lists against models updated from run-time data, as SAVE does [63]. To speed up the verification of stored rule lists, we plan to use parametric [64], incremental [65] and caching [66] techniques, which reduce the cost of quantitative verification at run time. Finally, we plan to verify rule lists on instances too large for explicit-state model checking, e.g., with symbolic engines [67], or otherwise check them by statistical model checking [68].
REFERENCES
[1] J. O. Kephart and D. M. Chess, “The vision of autonomic computing,” Computer, vol. 36, no. 1, pp. 41–50, 2003.
[2] R. Calinescu, C. Ghezzi, M. Z. Kwiatkowska, and R. Mirandola, “Self-adaptive software needs quantitative verification at runtime,” Commun. ACM, vol. 55, no. 9, pp. 69–77, 2012.
[3] R. Calinescu, D. Weyns, S. Gerasimou, M. U. Ifikhar, I. Habli, and T. Kelly, “Engineering trustworthy self-adaptive software with dynamic assurance cases,” IEEE Trans. Soft. Eng., vol. 44, no. 11, pp. 1039–1069, 2018.
[4] M. Z. Kwiatkowska, G. Norman, and D. Parker, “PRISM 4.0: Verification of probabilistic real-time systems,” in Proc. of CAV'11, ser. LNCS, vol. 6806. Springer, 2011, pp. 585–591.
[5] C. Hensel, S. Junges, J. Katoen, T. Quatmann, and M. Volk, “The probabilistic model checker Storm,” Int. J. Softw. Tools Technol. Transf., vol. 24, no. 4, pp. 589–610, 2022.
[6] R. Andriushchenko, M. Ceska, S. Junges, and F. Macák, “Policies grow on trees: Model checking families of MDPs,” in Proc. of ATVA'24, ser. LNCS, vol. 15055. Springer, 2024, pp. 51–75.
[7] L. Heck, F. Macák, M. Ceska, and S. Junges, “Constrained and robust policy synthesis with satisfiability-module-probabilistic-model-checking,” in Proc. of AAAI'26. AAAI Press, 2026, pp. 36 253–36 261.
[8] A. Fern, S. W. Yoon, and R. Givan, “Approximate policy iteration with a policy language bias: Solving related Markov decision processes,” J. Artif. Intell. Res., vol. 25, pp. 75–118, 2006.
[9] K. Cobbe, C. Hesse, J. Hilton, and J. Schulman, “Leveraging procedural generation to benchmark reinforcement learning,” in Proc. of ICML'20. PMLR, 2020, pp. 2048–2056.
[10] M. Azeem, D. Chakraborty, S. Kanav, J. Kretinsky, M. Mohagheghi, S. Mohr, and M. Weininger, “1-2-3-Go! policy synthesis for parameterized Markov decision processes via decision-tree learning and generalization,” in Proc. of VMCAI'25, ser. LNCS, vol. 15530. Springer, 2025, pp. 97–120.
[11] T. Silver, S. Dan, K. Srinivas, J. B. Tenenbaum, L. P. Kaelbling, and M. Katz, “Generalized planning in PDDL domains with pretrained large language models,” in Proc. of AAAI'24. AAAI Press, 2024, pp. 2025–20264.
[12] K. Stein, N. Hodel, D. Fißer, J. Hoffmann, M. Katz, and A. Koller, “Improved generalized planning with LLMs through strategy refinement and reflection,” in Proc. of ICAPS'26, vol. 36, no. 1. AAAI, 2026, pp. 677–686.
[13] D. Drexler, M. Fritzsche, F. Musayev, and S. Ståhlberg, “Prompt, prove, patch: The neuro-symbolic loop for general policy synthesis,” in Proc. of RIPL@ICAPS'26, 2026.
[14] A. Murray, D. Dervovic, A. Pozanco, and M. Cashmore, “GenePlan: Evolving better generalized PDDL plans using large language models,” in Proc. of ICAPS'26, vol. 36, no. 1. AAAI, 2026, pp. 667–676.
[15] D. Gross, H. Spieker, and A. Gottlieb, “Verifying memoryless sequential decision-making of large language models,” arXiv:2510.06756, 2025.
[16] C. P. Lee, D. Porfirio, X. J. Wang, K. C. Zhao, and B. Mutlu, “VeriPlan: Integrating formal verification and LLMs into end-user planning,” in Proc. of CHI'25. ACM, 2025, pp. 247:1–247:19.
[17] D. Gross and H. Spieker, “Enhancing RL safety with counterfactual LLM reasoning,” in Proc. of ICTSS'24, ser. LNCS, H. D. Menéndez, G. B. Orgaz, P. Barnard, J. R. Bautista, A. Farahi, S. K. Dash, D. Han, S. Fortz, and V. Rodríguez-Fernández, Eds., vol. 15383. Springer, 2024, pp. 23–29.
[18] A. T. Arya, A. A. Babikian, S. Jit, and M. Chechik, “LLM-based grid-world path planning with probabilistic model checking,” in Proc. of LLMTrust@FSE'26. ACM, July 2026, pp. 1684–1691.
[19] K. Dräger, V. Forejt, M. Z. Kwiatkowska, D. Parker, and M. Ujma, “Permissive controller synthesis for probabilistic systems,” Log. Methods Comput. Sci., vol. 11, no. 2, 2015.
[20] A. Hartmanns, M. Klauck, D. Parker, T. Quatmann, and E. Ruijters, “The quantitative verification benchmark set,” in Proc. of TACAS'19, ser. LNCS, vol. 11427. Springer, 2019, pp. 344–350.
[21] L. Feng, M. Z. Kwiatkowska, and D. Parker, “Automated learning of probabilistic assumptions for compositional reasoning,” in Proc. of FASE'11, ser. LNCS, vol. 6603. Springer, 2011, pp. 2–17.
[22] C. Baier and J. Katoen, Principles of model checking. MIT Press, 2008.
[23] A. Pnueli, “The temporal logic of programs,” in 18th Annual Symposium on Foundations of Computer Science, Providence, Rhode Island, USA, 31 October - 1 November 1977. IEEE Computer Society, 1977, pp. 46–57.
[24] S. Haddad and B. Monmege, “Interval iteration algorithm for MDPs and IMDPs,” Theor. Comput. Sci., vol. 735, pp. 111–131, 2018.
[25] T. Quatmann and J. Katoen, “Sound value iteration,” in Proc. of CAV'18, ser. LNCS, vol. 10981. Springer, 2018, pp. 643–661.
[26] J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov, “Proximal policy optimization algorithms,” CoRR, vol. abs/1707.06347, 2017.
[27] A. T. Arya, R. Maghera, N. W. Jiang, F. Mora, A. A. Babikian, and M. Chechik, “Replication package for ‘Reusable LLM-Based Plans with Probabilistic Guarantees for Self-Adaptive Systems,’” https://doi.org/10.6084/m9.figshare.34818078, 2026.
[28] K. Stechly, K. Valmeekam, and S. Kambhampati, “On the self-verification limitations of large language models on reasoning and planning tasks,” in Proc. of ICLR'25, 2025.
[29] T. X. Olaussen, J. P. Inala, C. Wang, J. Gao, and A. Solar-Lezama, “Is self-repair a silver bullet for code generation?” in Proc. of ICLR'24, 2024.
[30] A. Hartmanns, “Correct probabilistic model checking with floating-point arithmetic,” in Proc. of TACAS'22, ser. LNCS, vol. 13244. Springer, 2022, pp. 41–59.
[31] J. Li, M. Zhang, N. Li, D. Weyns, Z. Jin, and K. Tei, “Exploring the potential of large language models in self-adaptive systems,” in Proc. of SEAMS'24, L. Baresi, X. Ma, and L. Pasquale, Eds. ACM, 2024, pp. 77–83.
[32] —, “Generative AI for self-adaptive systems: State of the art and research roadmap,” ACM Trans. Auton. Adapt. Syst., vol. 19, no. 3, pp. 13:1–13:60, 2024.
[33] L. V. Alves, G. L. B. D. Oliveira, M. L. Chagas, A. Bandeira, P. H. M. Maia, and C. Rocha, “MAPER: extending MAPE-K with LLM-based reasoning to manage unanticipated situations in self-adaptive systems,” in Proc. of SEAMS'26. ACM, 2026, pp. 239–250.
[34] K. Gaaloul, Z. Ghazal, M. L. Pulimi, and S. E. Kathiravan, “Grammar-constrained refinement of safety operational rules using language in the loop: What could Go wrong,” in Proc. of SEAMS'26. ACM, 2026, pp. 219–224.
[35] G. Vázquez, A. Evangelidis, S. Shahbeigi, R. Calinescu, and S. Gerasimou, “Mind the prompt: Self-adaptive generation of task plan explanations via LLMs,” in Proc. of SEAMS'26. ACM, 2026.
[36] H. Wang, C. M. Poskitt, J. Wei, and J. Sun, “ProbGuard: Proactive runtime monitoring for LLM agent safety via probabilistic prediction,” in Proc. of ASE'26. ACM, Oct. 2026, pp. 1470–1482.
[37] E. Saccon, D. D. Martini, M. Saveriano, E. Lamon, L. Palopoli, and M. Roveri, “Automated generation of MDPs using logic programming and LLMs for robotic applications,” IEEE Robotics Autom. Lett., vol. 11, no. 2, pp. 1770–1777, 2026.
[38] M. Töpfer, F. Pläsil, T. Bureš, and P. Hnětynka, “Vibe-Coding: Feedback-Based Automated Verification with no Human Code Inspection, a Feasibility Study,” in Proc. of VibeX'26, 2026.
[39] G. A. Moreno, J. Cámara, D. Garlan, and B. R. Schmerl, “Proactive self-adaptation under uncertainty: a probabilistic model checking approach,” in Proc. of ESEC/FSE'15. ACM, 2015, pp. 1–12.
[40] P. Jamshidi, J. Cámara, B. R. Schmerl, C. Kästner, and D. Garlan, “Machine learning meets quantitative planning: Enabling self-adaptation in autonomous robots,” in Proc. of SEAMS'19. IEEE, 2019, pp. 39–50.
[41] D. Garlan, S. Cheng, A. Huang, B. R. Schmerl, and P. Steenkiste, “Rainbow: Architecture-based self-adaptation with reusable infrastructure,” Computer, vol. 37, no. 10, pp. 46–54, 2004.
[42] S. Cheng and D. Garlan, “Stitch: A language for architecture-based self-adaptation,” J. Syst. Softw., vol. 85, no. 12, pp. 2860–2875, 2012.
[43] J. Cámara, G. A. Moreno, and D. Garlan, “Stochastic game analysis and latency awareness for proactive self-adaptation,” in Proc. of SEAMS'14. ACM, 2014, pp. 155–164.
[44] C. Kinneer, Z. Coker, J. Wang, D. Garlan, and C. L. Goues, “Managing uncertainty in self-adaptive systems with plan reuse and stochastic search,” in Proc. of SEAMS'18. ACM, 2018, pp. 40–50.
[45] C. Kinneer, D. Garlan, and C. L. Goues, “Information reuse and stochastic search: Managing uncertainty in self-* systems,” ACM Trans. Auton. Adapt. Syst., vol. 15, no. 1, pp. 3:1–3:36, 2021.
[46] C. Kinneer, R. van Tonder, D. Garlan, and C. L. Goues, "Building reusable repertoires for stochastic self-* planners," in Proc. of AC-SOS'20. IEEE, 2020, pp. 222–231.
[47] P. Jamshidi, M. Velez, C. Kästner, N. Siegmund, and P. Kawthekar, "Transfer learning for improving model predictions in highly configurable software," in Proc. of SEAMS'17. IEEE, 2017, pp. 31–41.
[48] O. Gheibi and D. Weyns, "Lifelong self-adaptation: Self-adaptation meets lifelong machine learning," in Proc. of SEAMS'22. ACM, 2022, pp. 1–12.
[49] A. G. Pereira, A. B. Corrêa, and J. Seipp, "Property-guided LLM program synthesis for planning," arXiv:2605.16142, 2026.
[50] K. Stein, C. Jain, J. Hoffmann, and A. Koller, "Provably complete generalized planning with LLMs," arXiv:2609.27105, 2026.
[51] S. Kambhampati, K. Valmeekam, L. Guan, M. Verma, K. Stechly, S. Bhambri, L. Saldyt, and A. Murthy, "Position: LLMs can't plan, but can help planning in LLM-modulo frameworks," in Proc. of ICML'24, vol. 235. PMLR / OpenReview.net, 2024, pp. 22 895–22 907.
[52] B. Bonet and H. Geffner, "Policies that generalize: Solving many planning problems with the same policy," in Proc. of IJCAI'15, 2015, pp. 2798–2804.
[53] —, "Features, projections, and representation change for generalized planning," in Proc. of IJCAI'18, 2018, pp. 4667–4673.
[54] G. Francès, B. Bonet, and H. Geffner, "Learning general planning policies from small examples without supervision," in Proc. of AAAI'21. AAAI Press, 2021, pp. 11 801–11 808.
[55] S. W. Yoon, A. Fern, and R. Givan, "Inductive policy selection for first-order MDPs," in Proc. of UAI'02, A. Darwiche and N. Friedman, Eds. Morgan Kaufmann, 2002, pp. 568–576.
[56] M. F. L. Galesloot, R. Andriushchenko, M. Ceska, S. Junges, and N. Jansen, "Robust finite-memory policy gradients for hidden-model POMDPs," in Proc. of IJCAI'25. ijcai.org, 2025, pp. 8518–8526.
[57] Y. Schnitzer, A. Abate, and D. Parker, "Certifiably robust policies for uncertain parametric environments," in Proc. of TACAS'25, ser. LNCS, A. Gurfinkel and M. Heule, Eds., vol. 15698. Springer, 2025, pp. 63–83.
[58] S. Junges, N. Jansen, C. Dehnert, U. Topcu, and J. Katoen, "Safety-constrained reinforcement learning for MDPs," in Proc. of TACAS'16, ser. LNCS, vol. 9636. Springer, 2016, pp. 130–146.
[59] M. Alshiekh, R. Bloem, R. Ehlers, B. Könighofer, S. Niekum, and U. Topcu, "Safe reinforcement learning via shielding," in Proc. of AAAI'18. AAAI Press, 2018, pp. 2669–2678.
[60] N. Jansen, B. Könighofer, S. Junges, A. Serban, and R. Bloem, "Safe reinforcement learning using probabilistic shields," in Proc. of CON-CUR'20, ser. LIPIcs, vol. 171. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020, pp. 3:1–3:16.
[61] L. Heck, F. Macák, R. Andriushchenko, M. Ceska, and S. Junges, "Shields to guarantee probabilistic safety in MDPs," in Proc. of CAV'26, ser. LNCS, E. Darulova, A. W. Lin, and P. Rümmer, Eds., vol. 16683. Springer, 2026, pp. 576–600.
[62] P. Ashok, M. Jackermeier, J. Kretínský, C. Weinhuber, M. Weininger, and M. Yadav, "dtControl 2.0: Explainable strategy representation via decision tree learning steered by experts," in Proc. of TACAS'21, ser. LNCS, vol. 12652. Springer, 2021, pp. 326–345.
[63] G. Vázquez, C. Imrie, S. Shahbeigi, N. M. Proma, T. Gan, V. J. Hodge, J. Molloy, and S. Gerasimou, "Formally guaranteed control adaptation for ODD-resilient autonomous systems," in Proc. of SEAMS'26. ACM, Apr. 2026, pp. 68–73.
[64] A. Filieri, C. Ghezzi, and G. Tamburrelli, "Run-time efficient probabilistic model checking," in Proc. of ICSE'11. ACM, 2011, pp. 341–350.
[65] M. Kwiatkowska, D. Parker, and H. Qu, "Incremental quantitative verification for Markov decision processes," in Proc. of DSN'11. IEEE Computer Society, 2011, pp. 359–370.
[66] S. Gerasimou, R. Calinescu, and A. Banks, "Efficient runtime quantitative verification using caching, lookahead, and nearly-optimal reconfiguration," in Proc. of SEAMS'14. ACM, 2014, pp. 115–124.
[67] M. Z. Kwiatkowska, G. Norman, and D. Parker, "Probabilistic symbolic model checking with PRISM: a hybrid approach," Int. J. Softw. Tools Technol. Transf., vol. 6, no. 2, pp. 128–142, 2004.
[68] G. Agha and K. Palmskog, "A survey of statistical model checking," ACM Trans. Model. Comput. Simul., vol. 28, no. 1, pp. 6:1–6:39, 2018.