- Rating
- 5
- Clarity
- 2
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
LLM agents execute tens to hundreds of steps per task, yet the state structure underlying these traces is never written down. Agents following the ReAct paradigm interleave reasoning with tool calls, generating long execution traces, but the behavioural structure that emerges exists only implicitly. It is nowhere specified, nowhere recorded, and nowhere analysed.
The authors argue this matters for three concrete deployment needs: 1. Safety auditing, 2. Debugging bottleneck states, 3. Monitoring behavioural drift in production. Current approaches for these needs are:
- Per-trace rather than cross-run: they cannot recover the topology that links behaviour across many runs
- Success-only: methods like Agent Workflow Memory only extract patterns from successful traces, making them blind to failure structure
- Not structural: they produce linear workflows or textual summaries, not a model that captures cycles, branching, and state
The introduction makes an empirical observation that makes the problem tractable: agent behaviour is generated by a bounded set of tools and actions, producing traces with small activity alphabets (6–42 symbols). Learning finite automata from positive examples alone is impossible in the limit (Gold 1967), but the bounded alphabet constraint means the resulting minimal DFA will be both small and statistically informative. The authors further observe that on tau2-bench, a single FSM achieves perfect fitness across four different LLMs, suggesting the topology is shaped by the deployment harness, not the LLM itself.
Given this, the authors frame the problem as an inverse problem: given a corpus of execution traces, reconstruct a finite-state machine that explains the observed behaviour. The solution is \emph{prefix-tree construction followed by structural state merging via the Myhill–Nerode quotient}, which is classical in automata theory, but the authors' contribution is recognising that the bounded-alphabet property of LLM agent traces makes this classical construction yield something practically useful: compact (7–43 states), interpretable, hyperparameter-free FSMs that converge rapidly and serve as a unified substrate for four downstream tasks simultaneously.
Strengths and weaknesses
Strengths:
Good Theoretical Foundation
1. Linear-time construction (Remark 1)
The paper proves that the construction runs in: time, linear in corpus size for bounded . Prefix tree construction is and structural merging is . Since across all datasets, the total is effectively linear.
2. Minimality (Theorem 2)
The paper proves that the structurally merged FSM is the unique minimal DFA for the observed prefix language . The proof shows that structural equivalence coincides exactly with Myhill–Nerode equivalence on , so the quotient is the canonical minimal automaton. The proof is in Appendix A.1.2.
3. Fitness preservation (Theorem 1)
The paper proves that structural merging does not lose any training traces — if a trace was accepted by the prefix tree, it is accepted by the merged FSM. This is straightforward but formally proven.
4. Sample complexity (Proposition 3)
The paper proves a convergence bound: the extracted FSM equals the population minimal DFA with probability: after: traces. This is a finite-sample guarantee, proven via a union bound over transitions.
Breadth of evaluation
Twelve public datasets spanning coding agents, web navigation, desktop GUI, customer service, and safety benchmarks provide a comprehensive empirical foundation. The evaluation covers multiple downstream tasks (next-step prediction, failure prediction, runtime monitoring, compression) under a single unified construction, which is a notable strength.
Useful ablations and analyses
The paper includes extensive ablations: activity extraction granularity robustness (Appendix A.7.2), context format ablation (Table 3), Alergia under matched pipeline (Table 17), neural model comparison (Table 19), length vs. structure ablation (Table 36), and the ProbGuard head-to-head (Table 30). These collectively support the main claims.
Weaknesses:
1. The tractability claim rests on an empirical observation, not a proof. The paper claims the bounded alphabet makes the problem tractable, but this is only true because agent traces happen to have small alphabets in the evaluated domains. There is no theoretical guarantee that this holds in general. For agents with larger action spaces (e.g., open-ended tool use, free-form code generation), the FSM could grow arbitrarily large and the per-state observation density argument collapses.
2. The i.i.d. assumption in Proposition 3 is violated in practice. Agent traces are generated by iterative deployment on fixed task distributions, which introduces correlations between traces. The paper acknowledges this but does not quantify the violation or provide a formal bound under non-i.i.d. conditions. The empirical convergence at 5–15% of training data is reassuring but is not a substitute for a formal treatment.
3. The Markov assumption in Corollary 6 is a modelling choice, not a derived property. The Neyman–Pearson optimality claim depends on the FSM state rendering the history conditionally independent of the next action. This is an order-1 Markov assumption. The entropy analysis shows it is approximately satisfied (51–80% entropy reduction at order 1), but the residual higher-order structure means the optimality claim is approximate rather than exact. The paper does not quantify how much power is lost due to this approximation.
4. The activity extraction function ϕ requires domain knowledge and is dataset-specific. This is aknowledged in the paper. Each dataset has hand-crafted extraction rules (Appendix A.2.1). While the granularity ablation shows AUROC varies by less than 0.03 across four levels on two datasets, this robustness check is not comprehensive. it covers only SWE-smith and SWE-agent, not the remaining ten datasets.
5. The runtime monitor is evaluated in a class-imbalance context that inflates F1. SWE-agent has an 84.3% failure rate, meaning the flag-everything baseline achieves F1 = 0.914 vs. the monitor's F1 = 0.904. The monitor is actually worse than flagging everything by F1. The rank-AUROC (0.66 at 25% completion) is more informative but is buried in the appendix.
5. Proposition 7 (regret bound) has a thin proof. The connection between the theoretical multi-armed bandit framing and the practical monitor implementation (cycle-rate threshold rather than log-likelihood ratio threshold) is not made explicit. The empirical result is cited as validation but this does not constitute a proof.
6. Failure prediction gains over sequence baselines are modest on the most important datasets. On SWE-agent, the FSM per-state features achieve only +2.0pp over all-sequence features (0.813 vs. 0.793, Table 48). On SWE-smith, the gap is +1.5pp. These are the two coding agent datasets most relevant to the paper's motivating use case (GitHub issue resolution, software engineering agents), yet they show the weakest FSM advantage. The headline AUROC numbers (up to 0.941) come from tau2-bench telecom, which is a highly constrained API-calling domain where the FSM's structural decomposition is most advantageous.
7. The abstract and introduction front-load claims without adequate qualification. The runtime monitor claim ("enabling early-stopping at 32% trace completion") is presented without mentioning that the flag-everything baseline outperforms it on F1. The cross-model transfer claim is presented as general evidence when it is specific to tau2-bench. A reader who only reads the abstract will come away with a more optimistic picture than the results support.
8. The paper is extremely dense and relies heavily on appendix navigation. Core results require navigating between the main text and multiple appendix tables. For example, the AWM comparison requires Table 4 (main text), Table 32 (appendix), and Appendix A.7.8 for full context. The context format ablation (Table 3), which is critical for interpreting the AWM comparison, is not prominently flagged as a prerequisite. The paper acknowledges this with a footnote asterisk on the tau2-bench retail row in Table 4, but it is easy to miss.
Questions
- Runtime monitor baseline: The flag-everything baseline achieves F1 = 0.914 on SWE-agent vs. the monitor's F1 = 0.904. Can you provide a more informative comparison, such as precision-recall curves or cost-weighted evaluation, that demonstrates the monitor's practical value beyond the flag-everything baseline in the high-failure-rate regime?
- Activity extraction generalisation: The granularity robustness ablation is conducted on only two datasets. Can you provide evidence that AUROC varies by less than 0.03 across extraction levels on the remaining ten datasets, or characterise the conditions under which ϕ choice matters more?
- Cross-model transfer on coding agents: Do per-model FSMs on SWE-agent (trained on one LLM's traces) transfer to another LLM's traces? The tau2-bench transfer results are encouraging, but coding agent domains may exhibit more model-specific behavioral patterns.
- i.i.d. assumption violation: Can you provide an empirical estimate of the degree of i.i.d. violation in your datasets (e.g., via trace-level autocorrelation in activity sequences) and assess whether this affects the convergence bound in Proposition 3?
Limitations
The authors have partially addressed the limitations of their work. The dedicated limitations section (6) is honest about five substantive items: prefix-language minimality, activity extraction dependence, cross-model transfer scope, sequence-model coverage, and alphabet scaling. The broader impact section appropriately discusses both positive and negative societal implications, including the risk of adversarial exploitation of extracted FSMs.
However, several limitations are either absent or insufficiently addressed:
-
The Markov assumption underlying Corollary 6 is never acknowledged as a limitation. The Neyman–Pearson optimality claim depends on the FSM state rendering the history conditionally independent of the next action. This is an assumption, not a derived property. The authors should acknowledge that the optimality claim is approximate and quantify how much statistical power is lost when the Markov assumption is violated. the entropy analysis already provides the data needed to do this.
-
The class-imbalance context of the runtime monitor is mentioned but not adequately addressed. The paper notes that the flag-everything baseline achieves F1 = 0.914 vs. the monitor's F1 = 0.904, but does not discuss the implications for deployment. The authors should either reframe the monitor's contribution more carefully (eg, by focusing on precision, compute savings, and rank-AUROC rather than F1) or acknowledge explicitly that F1 is not the appropriate metric in this class-imbalance regime and explain why rank-AUROC is preferred.
-
The modest failure prediction gains on coding agent datasets are never discussed. The authors should acknowledge where the FSM's structural decomposition provides limited advantage and explain why.
-
Proposition 7 is presented as a proven result but the proof sketch does not close the gap between the theoretical framing and the practical implementation. The authors should either provide a complete proof or explicitly acknowledge that Proposition 7 is a theoretical motivation rather than a formal guarantee for the specific cycle-rate monitor used in the experiments.
Paper formatting concerns
No concerns regarding formatting.
We thank Reviewer Uo1C for the detailed and supportive assessment. Several of the measurements below exist because your questions asked for them; we lead with the ones that most affect how the results read.
Q1 / W5: the monitor's value beyond flag-everything. At an 84.3% base rate F1 is dominated by the base rate, so we recomputed the monitor on the base-rate-immune measures you suggested:
Beyond ranking, the deployment value is early stopping: the monitor flags 333 of 337 failing runs at 30.3% mean completion, saving 17,322 steps, about 84% of the wasted compute on failing runs. The same threshold does eventually cross on most successful runs too, but only after most of their useful work is done, so it costs little on runs that were going to succeed. On a cost-weighted sweep it beats both flag-everything and never-stop once a false early stop costs at least 5x a wasted failing run. We will lead the monitor section with rank-AUROC and PR-AUC and report F1 only with the base-rate explanation.
Q4 / W2: the i.i.d. assumption. We estimated the violation, and it does not threaten Proposition 3, for a reason we can state precisely: our extractor depends only on the multiset of observed (activity, next-activity) pairs, never on their order, so the extracted automaton is order-invariant. We verified this on all datasets: natural order versus 30 permutations yields the same directly-follows transition set, hence the same automaton. Trace-level autocorrelation is present in block-structured logs, but it enters only the sample-complexity bound (how many traces until all transitions are seen), where it inflates the required count by about 11% on average, changing the constant and not the form of the bound. We will relax the Prop 3 statement to a stationary or bounded-dependence condition and add this measurement.
W3 / Cor 6: the Markov assumption. You asked us to quantify the power lost, so we measured it. We rebuilt the five cross-entropy anomaly features under an order-2 context, backing off to order-1 wherever the deeper context is unseen so the comparison is not merely a sparsity penalty, and re-ran held-out failure prediction. The extra context does not buy detection power: across the paper's ten labeled datasets the mean held-out AUROC change is -0.021, order-2 is worse on 5 of 10, and it helps by more than 0.01 on only two (tau2-telecom +0.046, tau2-retail +0.020). Residual higher-order structure is therefore real in the entropy sense but does not convert into detection power, which is the sense Corollary 6 depends on. We will report this measurement and state the optimality as conditional on the order-1 property rather than exact.
Q2: granularity robustness beyond two datasets. To separate two things the hyperparameter-free framing runs together: the merge itself has no tuned quantity, and that is what produces the determinism, the millisecond construction, and the zero structural variance across splits.
Phi is a reader for the trace format, not a fitted component: on the three tau2-bench suites it returns
tool_calls[].nameand on SWE-smithtool_calls[].function.name, in each case the call the agent already emitted, so the per-dataset rule only names which field carries the call, not what counts as behavior.What remains is your empirical question, so we extended the ablation from two datasets to twelve with the paper's actual failure model (not the entropy proxy), comparing role-only against the default role+tool-name. The twelve are the ten label-carrying datasets in the paper (the nine labeled datasets of Table 5 plus GUI-Odyssey) together with two further agent datasets, ToolBench and TRAIL. Who_and_When and Mind2Web are excluded because they carry no success labels. The default granularity matches or beats role-only on 10 of the 12, including 9 of the paper's 10, and the two alphabets land within 0.05 AUROC of each other on 8, usually within 0.01. This answers the "characterise when phi matters" form of your question: phi matters only when the coarse role-only alphabet is degenerate (<=3 symbols), and there the default is the better choice; elsewhere it is immaterial.
Prop 7 and the modest coding-agent gains (W6, W7). We will reframe Prop 7 as a theoretical motivation for the cycle-rate monitor rather than a guarantee for the specific implementation. On the coding datasets the FSM's per-state advantage is smallest (+1.5 to +2.0pp on SWE-smith and SWE-agent); it is largest on the constrained API domains, because structural decomposition helps most where the state carries more of the next-action distribution.
Q3: cross-model transfer on coding agents. You are right that this is the correct question to ask of the transfer result. Our cross-model evidence covers all three tau2-bench suites and 36 off-diagonal model pairs, which is why we report it as a tau2-bench finding. Coding-agent transfer would need SWE-agent traces from several LLMs, and the released dataset provides only one, so rather than let the reader carry the claim across domains we will state the tau2-bench scope explicitly in the limitations. We agree that is where the line belongs.
W1, W8, W9 (empirical tractability, abstract qualification, density). The bounded-alphabet tractability is an empirical property of these domains rather than a theorem, and we will state it as such (W1). We will qualify the abstract's monitor and cross-model claims with the base-rate and tau2-bench scope above (W8), and for the density concern (W9) we will expand Section 3.3 with a worked example and move the pseudocode into the main text.
Q1, Q2, and Q4 are answered above with new evidence. The remaining items are concrete revision commitments, and Q3 is scoped to tau2-bench.