Automata from Agent Traces: Failure and Next-Step Prediction
Seonglae Cho, Franklin Cardenoso Fernandez, Umar Mohammed, Zekun Wu, Kleyton Da Costa, Ilham Wicaksono, Adriano Koshiyama
AIWILD @ ICML 2026
TL;DR. Agent execution traces hide behavioral structure that single-trace monitors cannot recover. We extract compact FSMs (7-43 states) for failure prediction, runtime monitoring, and workflow memory across 12 datasets.
Abstract. LLM-based agents execute multi-step tasks, but their behavioral structure remains opaque: their long, unstructured traces resist the safety auditing and runtime monitoring that deployment requires. Existing approaches look at one trace at a time or at successful runs only, missing the structure shared across runs that links next-step and failure prediction. We extract finite-state machines (FSMs) as the compact directly-follows automaton of the observed traces via prefix-tree construction and last-activity merging, providing a structural substrate for the unpredictable nature of LLM agent behavior. Across twelve public datasets, the FSMs are compact (7–43 states), achieve high replay fitness on held-out data with zero structural variance across splits, and build in milliseconds. This substrate addresses both prediction goals. Provided as context, the FSM beats Agent Workflow Memory at next-step prediction on all eight ground-truth-matched datasets, six of them significantly. Per-state behavioral features predict task failure at held-out AUROC up to 0.94, and an online monitor ranks failing SWE-agent runs above passing ones from a partial trace, beating the trivial flag-everything baseline on rank-AUROC and triggering early stopping well before completion. On tau2-bench, one FSM built from the traces of four LLMs replays each of them at 1.000 fitness, evidence that within these task suites behavioral topology is shaped more by the deployment harness than by the LLM, giving a structural primitive for safety auditing and runtime monitoring at deployment.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper addresses the opacity of LLM agent execution traces by proposing a framework to extract minimal finite-state machines (FSMs) directly from trace logs. Teh approach constructs a prefix tree acceptor over a small activity alphabet and applies structural state merging via Myhill-Nerode equivalence. The authors evaluate their learned automata across twelve datasets for next-step prediction, failure prediction, and runtime monitoring. One of the main headline findings is that a single FSM can replay traces from four different LLMs at perfect fitness on tau2-bench, leading the authors to argue that agent behavioral structure is driven more by the deployment harness than the underlying language model.
All reviewers agreed that extracting interpretable, structural models from opaque agent traces is a super timely and important goal for safety auditing. Reviewers Uo1C and z8Vn praised the theoretical underpinnings, including the linear-time complexity, state minimality proofs, and sample complexity bounds. Teh fact that the state merging procedure is deterministic, hyperparmeter-free, runs in milliseconds, and shows zero structural variance across splits is a huge practical advantage over traditional automata learning methods. On top of that, the empirical suite is extensive, showing solid performance on next-step prediction over baselines like Agent Workflow Memory and achieving impressive AUROC scores for failure prediction.
The biggest sticking point, highlighted by both z8Vn and Uo1C, is that the activity extraction mapping function is manually designed for each dataset. This effectively pushes the modeling choices into a bespoke parsing step, which makes the hyperparameter-free framing a bit misleading. Reviewer z8Vn also noted that the perfect cross-LLM replay result on tau2-bench might just be an artifact of using a coarse activity alphabet rather than a deep insight into harness behavior. Meanwhile, reviewer Uo1C pointed out that some claims in the abstract are over-sold, such as the runtime monitor's early stopping where a simple flag-everything baseline actually beats it on F1 score due to heavy class imbalance in SWE-agent.
Also, as XvDL pointed out, please add explicit clarifying sentences in Section 3.3 explaining how multi-depth merges form cyclic transitions. Their review raised formal language theory concerns, arguing that merging positive traces should strictly yield an acyclic DAG for finite prefix languages and questioning how loops form under Gold's theorem bounds. The authors need to add explicit clarifying sentences in Sections 3.3 and 3.4 for the camera-ready version to detail how multi-depth local merges form cyclic transitions and properly distinguish the exact prefix DAG from the generalized FSM.
Final justification
Although the original formal characterization and several baseline descriptions require substantial correction, the implemented method and core empirical results remain unchanged. The additional experiments directly address the main concerns about activity granularity, novel-ordering generalization, runtime monitoring, and baseline sensitivity.
I view the remaining issues as addressable in the camera-ready version.
Read meta-review
Meta-review
This paper addresses the opacity of LLM agent execution traces by proposing a framework to extract minimal finite-state machines (FSMs) directly from trace logs. Teh approach constructs a prefix tree acceptor over a small activity alphabet and applies structural state merging via Myhill-Nerode equivalence. The authors evaluate their learned automata across twelve datasets for next-step prediction, failure prediction, and runtime monitoring. One of the main headline findings is that a single FSM can replay traces from four different LLMs at perfect fitness on tau2-bench, leading the authors to argue that agent behavioral structure is driven more by the deployment harness than the underlying language model.
All reviewers agreed that extracting interpretable, structural models from opaque agent traces is a super timely and important goal for safety auditing. Reviewers Uo1C and z8Vn praised the theoretical underpinnings, including the linear-time complexity, state minimality proofs, and sample complexity bounds. Teh fact that the state merging procedure is deterministic, hyperparmeter-free, runs in milliseconds, and shows zero structural variance across splits is a huge practical advantage over traditional automata learning methods. On top of that, the empirical suite is extensive, showing solid performance on next-step prediction over baselines like Agent Workflow Memory and achieving impressive AUROC scores for failure prediction.
The biggest sticking point, highlighted by both z8Vn and Uo1C, is that the activity extraction mapping function is manually designed for each dataset. This effectively pushes the modeling choices into a bespoke parsing step, which makes the hyperparameter-free framing a bit misleading. Reviewer z8Vn also noted that the perfect cross-LLM replay result on tau2-bench might just be an artifact of using a coarse activity alphabet rather than a deep insight into harness behavior. Meanwhile, reviewer Uo1C pointed out that some claims in the abstract are over-sold, such as the runtime monitor's early stopping where a simple flag-everything baseline actually beats it on F1 score due to heavy class imbalance in SWE-agent.
Also, as XvDL pointed out, please add explicit clarifying sentences in Section 3.3 explaining how multi-depth merges form cyclic transitions. Their review raised formal language theory concerns, arguing that merging positive traces should strictly yield an acyclic DAG for finite prefix languages and questioning how loops form under Gold's theorem bounds. The authors need to add explicit clarifying sentences in Sections 3.3 and 3.4 for the camera-ready version to detail how multi-depth local merges form cyclic transitions and properly distinguish the exact prefix DAG from the generalized FSM.
Final justification
Although the original formal characterization and several baseline descriptions require substantial correction, the implemented method and core empirical results remain unchanged. The additional experiments directly address the main concerns about activity granularity, novel-ordering generalization, runtime monitoring, and baseline sensitivity.
I view the remaining issues as addressable in the camera-ready version.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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.
Formatting concerns
No concerns regarding formatting.
1 comment
Rebuttal
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:
| measure (SWE-agent, 32% checkpoint) | monitor | flag-everything |
|---|---|---|
| rank-AUROC | 0.663 | 0.500 |
| PR-AUC | 0.920 | 0.843 (= base rate) |
| precision at threshold 0.778 | 0.898 | 0.843 |
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[].name and on SWE-smith tool_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.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 1/4
- Clarity
- 1/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper describes an approach for the construction of automata models that describe the behavior of LLM agents. The approach takes as input a set of traces of agentic behavior, performs an abstraction, and merges the traces into an automaton describing the prefix language of the traces set. The authors evaluate their approach on several public datasets where they achieve impressive performance, e.g., the produced automata reject almost all traces that are non-valid (i.e., random traces not in the dataset or permuted versions), and perform very well in next-step prediction.
Strengths and weaknesses
Strengths
- Given the increased application of agents for a large variety of tasks, which raises safety and security concerns, constructing interpretable models of agentic behavior is an important and timely problem.
- The reported results are very promising, showing impressive capabilities of the proposed approach.
Weaknesses
The main issue I see is that the paper is vague in some aspects, while being very detailed and dense in other aspects. This touches multiple parts of the paper. For this exact reason, I could be missing or misunderstanding some key details, but it seems to me that there are various inconsistencies.
- The presentation of the learning algorithm (Section 3.3) is very short and vague, while the theorem and proofs are extremely dense and full of details, especially the analysis in Section 3.5. I am not able to check the validity of all claims.
- Inconsistencies concerning the learned language: If I understand Section 3.3 and Theorem 2 correctly, the algorithm does one round of merges to create a DAG from the prefix-tree acceptor. The merge criterion is phrased in a way to not create loops, unless the criterion does not evaluate compatibility recursively. The reason is that no leaf can be compatible with a non-leaf (merges require the equivalent next-step sets); therefore, only nodes on the same depth level in the PTA can be merged. This is my understanding, and it aligns with Theorem 2 -> we learn the prefix language of the given dataset. Since this is a finite language, it also makes sense. Gold has shown that regular languages (as mentioned by the authors) cannot be learned from positive strings only, but finite languages can be learned, i.e., everything is fine. However, Figure 3 shows an FSM with loops (usr to a:txt and back). This does not model a finite language. I do not understand how this can happen with the proposed algorithm. Hence, the other claims cannot be checked as well.
- Experimental setup: the experiments compare against several baselines, including RPNI and k-tails. RPNI and k-tails solve very different problems, so I really don't understand how this comparison/application of the algorithms works. RPNI merges based on positive and negative samples. If we have only positive samples, we would always learn a single-state automaton, because having no negative sample set means that we cannot prevent any merge. Yet, the paper reports massive RPNI models.
- In the experiment section, there are again parts that are extremely "detailed" but also hard to understand without context. For example, it is unclear what "Judge robustness." is and why it is there.
Given the current presentation, I cannot positively judge the quality of the paper. I cannot verify positive aspects.
Questions
- Do I understand correctly that your algorithm simply creates a DAG from the PTA?
- What does the setup look like for RPNI?
- How did you create the activity mapping function? I see that the appendix includes some details on them, but can explain a bit more about the design, or have these mappings been given?
Limitations
Abstraction creation is an extremely important step in automata learning. While the authors note that there should be an abstraction (the activity mapping), it might be argued that they do not sufficiently acknowledge the strength of this assumption. This is especially important in agentic AI with unstructured data.
Final justification
I am raising my score to borderline reject. The discussion helped resolve several aspects that were unclear to me. However, the rebuttal and discussion also indicate that the presentation of the proposed approach would need to be substantially revised/rewritten. With these revisions in place, I think that the paper could be accepted, but it should go through another round of review.
That being said, I would not fight for rejection.
Formatting concerns
There are none.
5 comments
Rebuttal
We thank Reviewer XvDL for the careful technical reading. Both points concern how the construction is stated rather than what it computes, and we set it out explicitly below as the basis for reconsidering the "other claims cannot be checked" concern.
W2 / Q1: "Does the algorithm simply create a DAG from the PTA?" and the loops in Figure 3. No. The construction does not compute the Myhill-Nerode quotient of the prefix language. That quotient, as you correctly deduce, would be acyclic and would recognize only a finite language. Step 2 merges every prefix-tree state by its incoming activity: writing k(q) for the activity on the edge into state q, we merge q and q' whenever k(q) = k(q'). This is a right congruence with |A|+1 classes, one per activity plus the initial state. The result is the directly-follows automaton of the traces, which has loops: whenever an activity recurs, its edge returns to the same class. The submitted Section 3.3 and Algorithm 1 phrase Step 2 as merging states with equivalent outgoing continuations, which reads as the acyclic Myhill-Nerode quotient and is precisely the inconsistency you identify. The construction the paper implements, and whose state counts it reports, is the incoming-activity merge just described. Gold's bound is untouched: the automaton is a quotient description of the observed sample, and we claim no identification of the generating language from positive data.
A worked example makes this concrete. The single trace user -> search -> edit -> search -> execute builds a prefix tree with two distinct search nodes at different depths, q2 (reached by user->search) and q4 (reached by ...edit->search). Both have incoming activity search, so k(q2)=k(q4)=search and they merge into one class [search]. After the merge, the edge into q4 arrives at [search] and the edge out of q2 leaves from [search], so the segment search -> edit -> search becomes the 2-cycle [search] -> [edit] -> [search]. The loop is a direct consequence of merging by incoming activity, not an inconsistency. Figure 3's conversational loop (a:txt to usr) is the same phenomenon. Because every trie state maps to its incoming-activity class, the merged automaton has exactly |A|+1 states regardless of trace length. This is checkable in the submitted paper: Figure 3 has 6 states at |A|=5 and 18 states at |A|=17, and reading the |A| column of the dataset table (Appendix "Dataset Details") against the state counts in Table 1, every dataset satisfies |Q|=|A|+1 (telecom 42 and 43, airline 17 and 18, ATBench 14 and 15). That |A|+1 signature is the directly-follows automaton, not the acyclic minimal DFA of the prefix set, whose size would instead vary with the branching of the prefix tree. This object is the process-mining directly-follows graph made deterministic by the right congruence. We will cite that literature and the closest grammatical-inference variant (Alkhammash et al., 2024), and position our contribution against it: a single deterministic pass with proved convergence and a four-task LLM-agent application, versus their soundness-objective discovery for business-process logs.
The submitted Theorem 2 stated this object as "the unique minimal DFA for the prefix language". That phrase denotes an acyclic automaton and does not match the construction, so we will state Theorem 2 as what the construction proves:
Theorem 2 (Determinism and compactness). Merging the prefix tree by the last-activity right congruence yields a deterministic FSM with |Q| = |A|+1 states, one per activity plus the initial state, whose transitions are the directly-follows pairs retained from the corpus. The construction is a deterministic function of the corpus, so re-extraction from the same data is exact.
Here "retained" is explicit rather than loose: a transition observed exactly once is kept only when it is its source state's only continuation, and the revised Section 3.3 and Algorithm 1 will state this filtering step. Fitness preservation (Theorem 1) and every downstream result are unaffected by this restatement, because they only use that the automaton is a deterministic quotient that assigns each state a stable set of continuations. The convergence guarantee (Prop 3) is a union bound over the population automaton's transitions, so its proof is unchanged. Its statement names the minimal DFA and will be restated over the population directly-follows automaton. We will correct Sections 3.3 and 3.4 (the Theorem 2 and Prop 3 statements), the Algorithm 1 pseudocode, and the appendix proof, together with the abstract, introduction, and related-work phrasing, so that the construction description, the theorem, its proof, and Figure 3 all describe the one directly-follows automaton. Once restated, the loops are consistent with the algorithm and the remaining claims follow from the quotient construction alone. The restated theorem still does all the work the original did in the paper: determinism is what makes replay and the runtime monitor well-defined, the exact |Q| = |A|+1 count is the compactness the downstream tasks rely on, and being a deterministic function of the corpus is what the zero-variance re-extraction result instantiates. Minimality is the one property nothing consumed: compression is measured against baselines, not deduced from the theorem.
Q2 / RPNI setup. Positive-only RPNI degenerates, exactly as you note. RPNI (Oncina and Garcia, 1992) takes a labelled sample S = S+ union S- and, scanning state pairs in a fixed order, merges each candidate pair unless the merge makes the automaton accept some negative string in S-, resolving any nondeterminism the merge induces by recursively folding the conflicting targets. Agent traces are all positive, so S- is empty. Then no merge is ever blocked, every fold succeeds, and the prefix tree collapses to the single accepting state with a self-loop on each activity, i.e. the automaton accepting A*. Running exactly this textbook procedure on our positive-only traces gives that 1-state universal automaton (replay fitness ~1.0) on all four datasets we tested (tau2-telecom, SWE-agent, SWE-smith, WebArena). This degeneracy is already reflected in our EDSM row, reported as "1 state, degenerate" on every dataset. Our RPNI column reports a conservative merge that rejects any nondeterminism-inducing merge rather than folding. On three of four datasets it times out near the prefix tree, and on WebArena it converges to 382 states. In the revision we will report the faithful 1-state fold alongside it and treat Alergia as the positive-only baseline, since raw state count is not our contribution. k-Tails, which you group with RPNI, does not share this failure mode: it merges by identical k-length futures and needs no negative sample, so it is a legitimate positive-only comparison. At k=1 it produces 1.4 to 10x our state count at lower test fitness, and at k>=2 state counts explode with timeouts, so no k matches our compression-fitness point (appendix k-Tails table).
The substantive positive-only comparison in the paper is already Alergia, not RPNI: Section 4 reports Alergia matching our fitness at 1.0 to 6.0x our state count, and this comparison stands. In the revision we will (i) present Alergia as the primary positive-only baseline, (ii) add the faithful 1-state fold to the RPNI rows and label it degenerate as we do for EDSM, and (iii) drop the "orders of magnitude fewer than RPNI" phrasing. Raw state minimization is not our contribution: a 1-state automaton trivially wins it while accepting every possible trace. Our claim is compactness at preserved discrimination, which the paper already quantifies: our FSM rejects 100% of random and >=99.9% of permuted traces, whereas the paper's RPNI baseline accepts 75% of permuted WebArena traces (Table on trace precision). RPNI appears only as a comparison baseline, in the compression table and the next-step cross-entropy table. Failure prediction (held-out AUROC 0.70 to 0.94), next-step prediction, and cross-model monitoring are computed from our FSM alone, so this correction revises baseline rows and does not touch the core results.
Q3 / activity mapping. The mapping is not learned; it reads the structured trace format (role plus tool name), so it is given rather than tuned. To test whether the results depend on this choice, we refined the alphabet from role-only through role+tool-name to role+tool+first-argument-key on the three tau2-bench suites (alphabet size 3 to 44 on telecom). Per-model combined-FSM replay fitness stays >=0.9998 across that 14x increase. It only degrades once the alphabet encodes literal argument values such as customer ids and phone numbers, which records instance identifiers rather than behavior. We extended the check to all twelve label-carrying datasets (the paper's ten, plus ToolBench and TRAIL) under the paper's failure-prediction model. Our default granularity matches or exceeds role-only held-out AUROC on 10 of 12, and on 9 of the paper's 10, so the extraction choice is robust up to the level of content that carries behavior. We agree the abstraction assumption deserves more prominence and will foreground it in Section 3 and the limitations.
Presentation (3.3 terse vs 3.5 dense; "Judge robustness"). We will expand Section 3.3 with the merge worked through on the Figure 3 example and move the Algorithm 1 pseudocode from the appendix into Section 3.3. "Judge robustness" tests whether the choice of predictor model changes the FSM-vs-AWM comparison, and we will define it inline where it first appears. The comparison itself scores top-1 accuracy against the recorded ground-truth next action, not a subjective LLM rating; the control re-runs it with a second predictor (gpt-4o-mini alongside gpt-4.1-mini) on the two most contested datasets, where the FSM stays ahead by +8.7pp on average (range +3.6 to +13.9).
Rebuttal describes a different approach
Thank you for the clarification. While I agree that claims like fitness preservation remain, your rebuttal describes a substantial change to the paper.
Q1/Type of automaton -> Presentation and Baselines Now, this is not really automaton learning in the classical sense and is closer to process mining, as you note in your rebuttal. This leads to two problems that I mentioned in my initial review, but the problems have slightly changed.
Presentation: The paper uses concepts that are commonly used in grammatical inference, like using Myhill-Nerode quite prominently, and talks about learning minimal deterministic finite automata. So, your rebuttal makes this a very different paper. All the references to "Myhill-Nerode" can be removed. The congruence that you describe in your rebuttal can very well make sense, but it does not have the properties of the Nerode relation. E.g., it has finite index for the non-regular language a^n b^n. More generally, and maybe I should have made this clearer in my original review: I think the paper could have been presented in much simpler terms without losing anything, making it easier to read. Invoking complex concepts that hardly apply does not help.
Baselines: Now that I understand better what you do, I don't think that the baseline choices are adequate.
- N-Grams: From what I understand, a directly-follows automaton is like an automaton version of a bigram. Therefore, I would suggest using Bigrams instead of Unigrams or N-grams of order 7.
- Alergia: Since your algorithm merges very aggressively, it would make sense to let Alergia merge more aggressively as well, i.e., setting epsilon to a lower value than 0.005 as reported in the paper. Alergia convergence proofs use epsilon (also called alpha) of k/T, where k is a small constant, and T is the size of the prefix tree. With k=1 and 500 traces, this could be much lower.
- From your new description, I would expect process mining baselines. These might be better suited than automata learning algorithms that are designed for different use cases.
RPNI
What do you mean by "Our RPNI column reports a conservative merge that rejects any nondeterminism-inducing merge rather than folding."? There cannot be any non-determinism if there are no negative samples.
I disagree with your comment "k-Tails, which you group with RPNI, does not share this failure mode: it merges by identical k-length futures and needs no negative sample, so it is a legitimate positive-only comparison", on the assumption that you use AALpy as reported in the paper. k-Tails as implemented in AALpy is basically RPNI with compatibility up to a length of k; see here: https://github.com/DES-Lab/AALpy/blob/master/aalpy/learning_algs/general_passive/GsmAlgorithms.py
To be precise, it is an FSM version of RPNI, which requires input-output traces (and can produce non-deterministic FSMs). Where do the outputs in your traces actually come from? In Line 94, you only introduce a single finite alphabet.
Q3 and Q4: Thank you for the explanation.
Overall While I understand the approach a lot better now, it appears quite different from the paper.
Thank you for the detailed engagement. The implemented construction and its results are unchanged; the corrections concern the formal characterization, including the theorem statements and proofs, and the baseline documentation. The runs below add baseline comparisons.
The submitted FSM results are unchanged. Merging by incoming activity identifies occurrences of the same activity across trace positions. Whenever one such occurrence is reachable from another along a prefix-tree path, identifying them closes the intervening path into a cycle; this is how the cycles in Figure 3 arise. This is checkable in the PDF without rerunning anything. Reading the |A| column of Table 5 against the Ours |Q| column of Tables 1, 6, and 8 shows |Q| = |A|+1 on all twelve datasets (telecom 42/43, airline 17/18, ATBench 14/15). A Myhill-Nerode quotient would generally have size determined by the residual structure of the finite prefix language, not fixed at |A|+1. The measurements were of this automaton; what was wrong was its formal characterization.
Myhill-Nerode: you are right. Your a^n b^n example settles it: the last-activity congruence has finite index on languages that are not regular, so it is a right congruence but not the Nerode relation. The invocation was wrong rather than imprecise. The revision removes every Myhill-Nerode reference, restates Theorem 2 as determinism and compactness, and describes the construction in Section 3.3 in plain directly-follows terms. No measurement depends on it.
Process mining baselines are already in the paper. Section 4's baseline list includes Alpha, Inductive, and Heuristic Miner via PM4Py, with per-dataset fitness and conformance precision in Table 22, where precision ranges from 0.00 to 0.80. This is the process-mining comparison you suggest, and we will point to it from Section 4's baseline discussion.
Across the aggressive-epsilon sweep, Alergia never falls below |A|+1. Alergia's state count is a function of epsilon; ours is fixed by the construction. We swept the Hoeffding parameter as you suggest, at five levels from the paper's 0.005 down to 0.1/T with T the prefix-tree size, on all twelve datasets; the table shows three of the five:
| dataset | ours | 0.005 | 1/T | 0.1/T |
|---|---|---|---|---|
| SWE-smith | 10 | 10 | 10 | 10 |
| SWE-agent | 25 | 35 | 30 | 29 |
| WebArena | 25 | 149 | 127 | 105 |
| AgentNet | 25 | 45 | 31 | 29 |
| tau2 airline | 18 | 23 | 20 | 20 |
| tau2 retail | 19 | 25 | 25 | 25 |
| tau2 telecom | 43 | 75 | 55 | 48 |
| ATBench | 15 | 15 | 15 | 15 |
| OSWorld | 27 | 31 | 27 | 27 |
| Who and When | 9 | 12 | 12 | 12 |
| Mind2Web | 8 | 8 | 8 | 8 |
| GUI-Odyssey | 7 | 24 | 12 | 8 |
Test fitness stays at or above 0.9986 throughout. Across all sixty tested cells, Alergia matches or exceeds |A|+1 and never falls below it, landing exactly on |A|+1 on four datasets. Three of those ties already hold at the paper's own 0.005 and are printed in Tables 1, 6, and 8. No tested setting works uniformly across datasets: 0.005 ties three datasets while leaving WebArena at 149 states, and at 0.1/T WebArena is still 4.2x above. Our construction reaches that count on every dataset with no parameter to choose.
Baseline documentation: addressed. On n-grams, we measured your suggestion rather than argue it. Implemented with a start symbol and the paper's own Lidstone estimator, a bigram agrees with the automaton's next-step conditional to within 0.0009 bits on all twelve datasets; they are the same estimator up to the rare-transition filter. We will add the bigram explicitly and revise the discussion to state that the FSM's next-step estimator is equivalent to a filtered bigram on these traces. The contribution is therefore not a superior Markov estimator, but the deterministic construction, its fixed |A|+1 state count without dataset-specific tuning, and the downstream structural analyses. On RPNI, the submitted label was inaccurate: the implementation rejects any merge whose targets conflict on the same symbol, where textbook positive-only RPNI folds those targets instead; with no negative samples nothing blocks the fold, so the faithful algorithm degenerates to the one-state acceptor. We will correct the label and report that degeneration. On k-Tails, each activity a_t was encoded as the output at step t over a singleton input alphabet; we will document this encoding explicitly in the baseline description.
What changes is the formal characterization and the baseline documentation. The implemented construction, the extracted automata, their state counts, and the downstream empirical results do not.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper extracts a finite-state machine from LLM agent traces by building a prefix tree over a small alphabet of activity symbols and merging structurally equivalent states, which gives the minimal DFA for the observed prefix language with no tuned hyperparameters. The resulting machines are compact, 7 to 43 states across twelve datasets, and replay held-out traces at high fitness. The authors use one FSM for four tasks, including next-step prediction against Agent Workflow Memory, failure prediction with AUROC up to 0.94, and an early-warning runtime monitor. A headline finding is that a single FSM replays four LLMs on tau2-bench at perfect fitness, read as behavior being shaped more by the deployment harness than by the model.
Strengths and weaknesses
Strengths
- The construction is refreshingly clean, since a parameter-free deterministic merge that runs in milliseconds and yields zero structural variance across train and test splits is a real asset in a field where most automata learners need tuning and produce unstable state counts.
- The theory is extensive, since tying per-state estimator concentration to the Myhill-Nerode quotient and deriving a Neyman-Pearson-optimal anomaly signal and a regret bound for the online monitor gives the empirical choices a principled backbone.
Weakness
- My major concern is that the activity extraction function is hand-designed and dataset-specific, so the hyperparameter-free framing just relocates the modeling choice into a bespoke per-dataset mapping. The granularity ablation varies only how finely symbols are split, not the domain knowledge in choosing what to parse, which the authors concede is left to future work.
- On tau2-bench, one FSM replays 4 LLMs at perfect fitness, which the paper reads as behavior being harness-shaped rather than model-shaped. That is close to expected by construction, since a content-free tool or role alphabet means replay fitness only checks whether the shared-harness sequence is replayable. The results also show a weaker cross-model failure transfer, which the paper never probes with a finer alphabet.
- The provably minimal headline sounds stronger than it is, since the prefix tree already has perfect training fitness by construction and the merge only compresses it into the minimal DFA for the same observed prefix language. That is textbook Myhill-Nerode minimization on a trie, so the theorem reads more as bookkeeping than a deep result, and it pins down the minimal automaton for what was seen, not the process that generated it.
Questions
Based on the weaknesses I've outlined, here are my main questions for the authors.
-
How much of the cross-LLM perfect-fitness result on tau2-bench survives if the extraction function retains finer content distinctions, and can the authors show the harness-versus-model conclusion is not an artifact of the coarse alphabet?
-
Since the extraction function is hand-designed per dataset, how sensitive are the results to reasonable alternative extraction functions beyond the four granularities already reported?
-
Does the FSM generalize to prefixes unseen at training time, for instance does held-out fitness hold on traces that contain novel activity orderings rather than novel instances of orderings already seen?
Limitations
Please see the weaknesses and questions I've outlined.
Final justification
Resolved. The granularity ladder shows replay fitness holding through a fourteenfold increase in alphabet size, and the novel-ordering split shows that most held-out traces carry orderings unseen in training and still replay exactly, so the harness-shaped reading is not an artifact of a coarse alphabet.
Unresolved. Theorem 2 and its appendix proof were wrong and are being restated, the identity relating state count to alphabet size makes the compact seven to forty-three states a consequence of the construction rather than a finding about agent behavior, and the undocumented rule that drops transitions seen exactly once is a frequency threshold inside a method presented as hyperparameter-free.
Weight. The new experiments strengthen the empirical contribution by roughly as much as these corrections weaken the theoretical one, so the paper stays where I placed (Borderline accept) it and I maintain my rating.
Formatting concerns
No
1 comment
Rebuttal
We thank Reviewer z8Vn for recognizing the clean parameter-free construction and the theoretical backbone. Your central question is whether the cross-model perfect-fitness result is an artifact of a coarse alphabet. We ran the experiment you asked for and report it directly.
Q1 / W2: does perfect cross-LLM fitness survive finer content distinctions? Yes, up to the point where "finer" stops meaning behavior and starts meaning instance data. We rebuilt the combined four-model FSM on all three tau2-bench suites at increasing granularity and measured per-model held-out replay fitness:
| suite | alphabet | alphabet size | mean per-model fitness |
|---|---|---|---|
| telecom | role-only | 3 | 1.0000 |
| telecom | role + tool-name (paper) | 41 | 1.0000 |
| telecom | role + tool + first-arg key | 44 | 1.0000 |
| telecom | role + tool + arg-VALUE | 374 | 0.9927 |
| airline | role + tool-name (paper) | 17 | 1.0000 |
| airline | role + tool + arg-VALUE | 596 | 0.9632 |
| retail | role + tool-name (paper) | 18 | 1.0000 |
| retail | role + tool + arg-VALUE | 673 | 0.9871 |
Alphabet sizes are those realized on the four-model 80% training split: telecom's rarest tool occurs only in its held-out 20%, which is why the training alphabet shows 41 of the 42 symbols in Table 5.
Fitness holds at >=0.9998 across a 14x increase in alphabet size (telecom |A| 3 to 44), and ~100% of held-out traces replay exactly (worst single per-model cell 0.99986). It is therefore not the near-vacuous fitness of a 3-symbol automaton: refining the alphabet leaves it perfect, and it only drops once we tokenize raw argument values (customer ids, phone numbers, dates), which held-out tasks carry as unseen literals by construction. That degradation is instance memorization, not a failure of the topology claim. The load-bearing evidence is the stability curve, not the bare value 1.000, and we will reframe the result this way.
To rule out that the ladder is near-static until it jumps to instance data, we added a genuine intermediate that buckets each argument by type and format (empty, numeric, short-id, date, phone, ...) rather than its literal value. This enlarges the alphabet meaningfully while carrying call shape, not instance content (telecom |A| 41 to 50, airline 17 to 28, retail 18 to 37), and per-model replay fitness stays >=0.997 (worst cell 0.9978). Fitness only falls once literal values are tokenized, so the stability is not an artifact of a near-static alphabet. We also re-ran the cross-model failure-transfer at this finer alphabet: the cross-versus-self AUROC gap does not widen (it narrows slightly), so per-model failure features remain transferable when the alphabet is refined.
W2 (second half): "structurally identical" per-model FSMs. The word overstates it. Across the four per-model FSMs the states are near-identical (Jaccard 0.94 to 1.00), and the transition sets overlap 0.80 to 0.92 (telecom 0.805, airline 0.851, retail 0.918). We will replace "structurally identical" with the accurate statement: the models share a near-identical state and tool vocabulary and a dominant, roughly 80 to 92 percent shared transition backbone. The harness-shaped reading survives this softening, since the shared backbone is what a single FSM replays.
W3: "provably minimal" overclaim. The object the construction actually builds is the directly-follows automaton of the observed traces (|Q| = |A|+1, with the loops shown in Figure 3), not the minimal DFA of the prefix language that the submitted Theorem 2 and its appendix proof asserted. That DFA would be acyclic and is not what the algorithm produces. We are restating Theorem 2 as a determinism-and-compactness result and rewriting the appendix proof to match, so that the theorem, its proof, and the figures describe one automaton. What we drop is any claim about the generating process, which positive examples cannot identify (Gold 1967). The extracted automaton and all numbers are unchanged; only the label was wrong. The restatement keeps everything the results consume, as a theorem: determinism (replay and monitoring stay well-defined), the exact state count |Q| = |A|+1 (the compactness the tasks use), and uniqueness given the corpus (the zero-variance re-extraction). What it drops, minimality, no result consumed: compression is measured against baselines, not deduced.
Q3: generalization to novel activity ORDERINGS. We ran the split rather than argue it. Partitioning each dataset's held-out traces by whether the trace's full activity sequence occurs verbatim in training, novel whole-sequence orderings turn out to be the majority of the test set rather than a rare corner: 2,420 of 3,961 held-out traces (61%) across the twelve datasets, and 93% on tau2-telecom, 85% on SWE-agent, 81% on AgentNet. Every one of those novel-ordering traces whose adjacent activity pairs are all present as transitions replays at fitness exactly 1.000: 2,402 traces, all twelve datasets, no exceptions. Held-out fitness is therefore not a memorization artifact: what a trace needs in order to replay is its adjacent pairs, not an ordering seen before.
The residual runs the other way and is small: traces using an adjacent pair the FSM lacks, either never seen in training or removed by the construction's final step, which drops a transition observed exactly once unless it is its source state's only continuation (SWE-agent keeps 43 of 63 observed pairs, OSWorld 131 of 144). Those are the only held-out symbols that fail to consume, which is what separates >=0.997 from 1.000. Section 3.3 and the Algorithm 1 pseudocode both omit this filtering step; we will state it as an explicit third step in both and add this partition to the paper.
W1 / Q2: the extraction function is hand-designed; robustness beyond two datasets.
Hyperparameter-free covers the merge. The choice of what to parse is separate, and varying granularity does not test it, so we address that choice directly. On the datasets carrying our model-invariance and cross-model results, phi is not a bespoke abstraction: all three tau2-bench suites read tool_calls[].name, SWE-smith reads tool_calls[].function.name, AgentNet reads the pyautogui action primitive, and GUI-Odyssey reads the recorded action type. In each case phi returns the tool or action the agent already emits, so the per-dataset rule is a schema adapter naming which field holds the call, not a modeling decision. The one dataset that needs a genuine grouping choice is SWE-agent, where raw shell commands are bucketed into seven categories. We will present it as such, scope the contribution to structured tool-call interfaces where phi is the emitted call, and leave automatic phi discovery for unstructured logs as future work. As a robustness check within one phi family, we extended the granularity ablation from 2 to 12 datasets: the paper's nine labeled datasets plus GUI-Odyssey, ToolBench, and TRAIL. Who_and_When and Mind2Web carry no success labels and are excluded. The comparison uses the paper's actual failure-prediction model (the class-weighted gradient-boosted classifier on per-state plus cross-entropy anomaly features, not a proxy), with role-only against the paper default role+tool-name:
- Held-out AUROC stays within 0.05 on 8 of 12 datasets, most within 0.01. The default is equal to or better than role-only on 10 of 12 and on 9 of the paper's 10; the two exceptions, -0.006 and -0.0002, are within classifier noise.
- The datasets that exceed the band all have degenerate role-only alphabets (<=3 symbols, and 1 for GUI-Odyssey). GUI-Odyssey should be discounted rather than counted for us: its 1.000 at the default level is the trivially separable terminal-state token our appendix already flags, not a real gain from finer symbols. Dropping it leaves the picture unchanged at 8 of 11 within band and 9 of 11 for the default. The extraction choice matters only when the coarse alphabet collapses.
This characterizes when phi matters rather than claiming invariance. Combined with the Q1 result above (finer alphabets on tau2-bench leave fitness perfect), the evidence is that the default granularity is robust across the range that carries behavior. Fully automatic discovery of the extraction function remains future work, and we will scope the contribution to structured tool-call interfaces explicitly.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the Area Chair for requesting two concrete clarifications for Sections 3.3 and 3.4. We give both here so they can be checked now; the new baseline measurements are in the per-reviewer replies, with full tables.
How multi-depth merges form cycles. Step 2 merges prefix-tree states by the activity on their incoming edge, so all occurrences of an activity collapse into a single state regardless of their depth in the tree. If an activity occurs at depth 2 and again at depth 5 along a trace, Step 2 identifies those two states, and the path from the shallower occurrence to the deeper one therefore becomes a cycle whose endpoints are the same quotient state. Every cycle in Figure 3 arises this way, and it is why the merge cannot be the acyclic construction described by the submitted Theorem 2.
The exact prefix tree versus the generalized FSM. These are two different objects and the submitted text conflated them. The Step 1 prefix tree is the exact representation of the observed traces: acyclic, with one state per distinct observed prefix. The Step 2 quotient is a generalization: cyclic, with |Q| = |A|+1 states, extending beyond the corpus by chaining observed directly-follows transitions into unseen orderings. The paper measures that gap rather than assuming it away, and the numbers are already in the submission: the FSM rejects 100% of random traces and at least 99.9% of permuted traces (Table 20), with adversarial mutation rejection in Table 21. The camera-ready will name the two objects separately in Section 3.3 and carry the precision measurements forward as the quantitative statement of how much the quotient generalizes.
These corrections revise the paper's formal characterization, including the submitted minimality claim, but they do not change the implemented construction or any downstream empirical result. Failure prediction from per-state features, next-step prediction with FSM-state context against AWM, the online monitor, and the cross-model analysis were all measured on the extracted automata, and those automata are unchanged.