Manuscript Offprint

arXiv:2610.22031

GraphACM: Graph-based Action Consistency Measurement for Uncertainty Quantification in LLM Agents

Yaxin Ma, Wenbo Zhang, Satya Krishna Pothapragada, Alina Zare

Abstract

Behavioral consistency across repeated executions provides an informative signal for assessing the reliability of large language model (LLM) agents. However, existing approaches typically summarize consistency with a single task-level score, without identifying where behavioral differences occur or whether actions are compared under equivalent decision contexts. We propose a graph-based framework for fine-grained behavioral consistency measurement and uncertainty quantification. Given multiple rollouts of the same task, we merge equivalent states into a directed, action-labeled graph, enabling action comparisons at shared decision states. We introduce node-level and global measures of action consistency, using the global consistency score as a proxy for uncertainty to predict task success or failure. Experiments across three LLMs on ALFWorld, AppWorld, and WebShop demonstrate that our measure is positively associated with task success and achieves an average AUROC of 0.811 for task-success prediction, outperforming the strongest behavioral-consistency baseline (0.729) and verbalized confidence (0.769). These results highlight the effectiveness of state-conditioned behavioral consistency and pinpoint where agent actions agree.

1 Introduction

Large language model agents extend text generation to multi-step interaction with external environments (Wang et al., 2024). Frameworks such as ReAct interleave reasoning, actions, and environmental observations to execute tasks (Yao et al., 2023). These capabilities support applications ranging from software development (Yang et al., 2024) to personal-assistant tasks (Trivedi et al., 2024) and scientific research (Lu et al., 2024).

As agents move toward real-world deployment, how to evaluate them and when to trust them remain open challenges (Kapoor et al., 2025; Kirchhof et al., 2025). Evaluating task success based on the final outcome is a standard approach, but it reveals little about the intermediate action behavior or whether the agent would succeed again on the same task. Recent work therefore studies behavioral consistency, which measures the degree to which an agent behaves similarly across repeated executions of the same task. Behavioral consistency has been used as a signal of reliability (Rabanser et al., 2026), with higher consistency indicating greater reliability. It can also be used for uncertainty quantification (Mehta, 2026): the more the executions agree, the more confidence the agent's behavior warrants.

Existing approaches typically compare behavioral consistency at the outcome or sequence level. Outcome-level consistency assess agreement among final outputs without characterizing intermediate decisions (Yao et al., 2025). Sequence-level consistency quantify agreement across complete action sequences, such as counting the number of unique sequences (Mehta, 2026) or computing Discrete Semantic Entropy (DSE) over clusters of identical sequences (Ye et al., 2026). Such exact-match measures treat sequences differing by even a single inserted action as distinct, making them sensitive to minor shifts in action sequences. Other methods allow partial agreement: Tool Sequence Similarity (TSS) uses edit-based similarity between tool-name sequences, while Argument Consistency (AC) compares arguments of step-aligned tool calls (Yagubyan, 2026). Action-Set Consistency (ASC) and Action-Distribution Consistency (ADC) discard temporal order by comparing action-type sets and frequency distributions, respectively (Bouchard and Chauhan, 2026).

Despite these differences, existing approaches leave two important gaps. First, they primarily summarize behavioral consistency with a single task-level score, without identifying the intermediate decisions at which executions agree or diverge. Second, they establish action correspondence through

(a) Sequence-level comparison

Figure

(b) GraphACM: merged state-action graph

Actions compared at shared decision states

Figure

State-aligned agreement: At s1:b,b⇒s_1: b, b \Rightarrow complete agreement

Localized disagreement: At s2:c,c,d⇒s_2: c, c, d \Rightarrow disagreement

Figure 1: Illustration of sequence-based and graph-based behavioral consistency measurement. (a) Position-wise comparison may align actions originating from different decision states, while equivalent states can occur at different timesteps. (b) GraphACM merges equivalent states across rollouts and compares actions at shared decision states, identifying consistent decisions and localized behavioral disagreement.

sequence position or aggregate statistics, rather than the decision contexts in which actions were selected. Actions at the same step may respond to different situations, while equivalent situations may arise at different steps. Although repeated executions begin from the same initial environment, once trajectories diverge, their subsequent actions are no longer taken under the same conditions. Consequently, comparing actions without accounting for their source states can conflate differences in encountered situations with differences in the agent's decision-making behavior.

Recent graph-based reinforcement learning (RL) methods have demonstrated the value of aggregating agent trajectories through shared states. GraphGPO (Cheng et al., 2026) and G2PO (Wang et al., 2026) construct state-transition graphs by merging equivalent states across rollouts, with actions represented as transitions. These graphs support fine-grained credit assignment and advantage estimation for policy optimization. Although these methods also leverage multiple sampled trajectories, their objective is to optimize agent policies through training, whereas ours is to measure the behavioral consistency of a fixed agent at inference time without requiring outcome labels.

Motivated by these graph-based representations, we propose GraphACM (Graph-based Action Consistency Measurement), a framework for fine-grained behavioral consistency measurement and uncertainty quantification in LLM agents. Given multiple rollouts of the same task, we construct a directed, action-labeled graph by merging equivalent states into shared nodes and representing actions as transitions, enabling action comparisons under equivalent decision contexts. At each shared node, we measure action agreement across rollouts and aggregate these local measurements into a task-level consistency score. As illustrated in Figure 1, GraphACM addresses both limitations by aligning actions based on their source states and localizing behavioral agreement and divergence at intermediate decision points.

Our contributions are threefold:

  1. We propose GraphACM, a graph-based framework for behavioral consistency analysis that aggregates trajectories through shared states, enabling context-conditioned action comparisons.

  2. We formulate node-level action-consistency measures that quantify agreement at shared states and aggregate these local measurements into a task-level score, supporting fine-grained behavioral analysis and uncertainty estimation.

  3. We evaluate GraphACM across three LLMs and three agent benchmarks; our method outperforms existing baselines in most settings, demonstrating its superior performance in task-success discrimination.

References (19)