potentialpaper

Agent-ToM: Learning to Monitor Autonomous LLM Agents via Theory-of-Mind Reasoning

Nesreen K. Ahmed, Nima Nafisi

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose Agent-ToM, a learning-to-monitor framework that combines structured intent inference with cross-episode memory to detect covert malicious behavior in autonomous LLM agents.

Abstract. Monitoring autonomous large language model (LLM) agents for covert malicious behavior (e.g., covertly pursuing a hidden malicious objective) is challenging due to delayed, context-dependent, and long-horizon attack patterns. In adversarial settings such as sabotage, agents may pursue hidden objectives while maintaining superficially benign behavior, making detection difficult even with full trajectory access. Prior monitoring approaches primarily improve monitor scaffolding or ensemble aggregation, but treat each trajectory independently and do not improve from prior monitoring experience. Moreover, standard reasoning methods explain observed behavior but do not explicitly reason about agent beliefs, intentions, and goal alignment required to distinguish benign task execution from covert deviation.

We propose Agent-ToM, a learning-to-monitor framework grounded in Theory-of-Mind (ToM) reasoning for security analysis of autonomous agents. Agent-ToM performs structured full-trajectory analysis by inferring beliefs, step-level intent hypotheses with confidence, expected actions, and deviations from task-consistent behavioral baselines. At inference time, it employs a Reason-Verify-Refine pipeline to construct and validate monitoring decisions. At training time, Agent-ToM learns from prior monitoring episodes by distilling critique signals into a persistent semantic guardrail memory that accumulates monitoring strategies, enabling reusable belief- and intent-conditioned constraints to be applied across episodes. We evaluate Agent-ToM on adversarial agent monitoring benchmarks (SHADE-Arena and CUA-SHADE-Arena). Agent-ToM achieves strong precision-recall balance and outperforms state-of-the-art monitoring baselines, including ensemble methods, while using a single coherent reasoning pipeline. These results demonstrate that learning at the monitoring layer, combined with structured ToM reasoning and verification, provides an effective and deployable foundation for securing autonomous LLM agents.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (spotlight)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (spotlight) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:46 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (spotlight)
Read decision
Meta-review

The authors develop a theory of mind based method of monitoring LLM based agents. The reviewers thought highly of this work and the authors answered all remaining questions during the review period. The reviewers were unanimous in their excitement for this work.

This paper stands out for its well motivated method and careful evaluation.

Final justification

See above.

Area Chair Xmz7 · Meta-reviewOpenReview ↗
Final justification
See above.
Read meta-review
Meta-review

The authors develop a theory of mind based method of monitoring LLM based agents. The reviewers thought highly of this work and the authors answered all remaining questions during the review period. The reviewers were unanimous in their excitement for this work.

This paper stands out for its well motivated method and careful evaluation.

1 comment
Authors · CommentOpenReview ↗

Summary of author responses

Thank you for all the feedback on the paper. Per the AC's guidance, all reviewer questions have been addressed, in particular Reviewer NWmh's; Reviewer G5NZ has confirmed their concerns are resolved. We have provided in detail all clarifications requested by the reviewers.

New experiments and analyses provided during discussion:

  • Sequential Ensemble re-run on GPT-5-mini for the full SHADE-Arena test set. Under strict model matching, Agent-ToM's margin widens to +0.129 F1 at 2 LLM calls versus 17.

  • Critique noise injection training experiment on 100% training set: F1 dropped from 0.847 to 0.769 at 30% label corruption, with degradation almost entirely in recall.

  • A worked example of inferred beliefs and step-level intent hypotheses on an evaluated trace, with ground truth and a baseline-monitor comparison on the same trajectory.

  • A detailed training and inference cost analysis versus the main baseline.

Reviewer NWmhOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a machine theory-of-mind (ToM) approach for monitoring LLM agents. Similar approaches have been considered before, but mainly for zero-shot settings. The main idea of the paper is to decompose the inference-time monitoring problem into a prompt-based reason-verify-refine pipeline and to utilize a persistent semantic guardrail memory to store the distilled abstraction from multiple episodes during training, considering both predefined and self-structured configurations. The paper shows that the proposed Agent-ToM approach achieves higher accuracy and F1 scores than the zero-shot LLM Judge and ToM, as well as some recent retrieval-based and ensemble monitoring approaches, including on an OOD.

Strengths and weaknesses

The proposed ToM approach incorporating persistent memory is well-suited to the monitoring task and more effective than existing trieval and ensemble approaches, with lower inference-time overhead. The approach is clearly explained and justified.

However, the improvement is not really surprising. While Agent-ToM has similar inference-time overhead to some baselines, it has much higher training overhead than all the baselines. The identification of belief, intent, and behavior abstractions from trajectories for monitoring purposes is a critical research topic, with multiple recent studies addressing it in the LLM context. The paper relies solely on a prompt-based approach and uses a strong LLM (GPT-5.1) to generate hypotheses about them without any deep investigation on the credibility and limitation of this approach. Further, similar reason-verify-refine pipelines have been considered in recent work on agentic AI for hypothesis generation. The paper essentially integrates recent work on prompt-based ToM with persistent memory. None of the proposed components are really new.

There are no examples of exactly what these beliefs and intents look like in some of the evaluated tasks. Are they accurate or even meaningful? These results are more interesting than just the accuracy and F1 scores. Since the approach is purely prompt-based, it relies on the LLM's capability for ToM reasoning.

It is unclear if the evaluations provide a fair comparison among the baselines. Agent-ToM uses GPT-5-mini as the inference-time monitoring model, which I assume is also used by other baselines. But GPT-5.1 is used in ToM reasoning analysis, which not only increases training costs but also makes it unfair to other baselines that use weaker models. In particular, it's unclear if GPT-5.1 is also used by the zero-shot LLM judge and ToM at inference time.

Questions
  1. What are some concrete examples of the derived beliefs and intents for the evaluated tasks? Are they accurate or even meaningful?
  2. What is the LLM model used by each of the monitoring baselines? Is GPT-5.1 also used by the zero-shot LLM judge and ToM at inference time?
  3. What are the paper's contributions beyond integrating the reason-verify-refine and the persistent memory? What are the limitations of the prompt-based approach in the face of agents with advanced deception behavior?
  4. What is the LLM model used by each of the agentic tasks to generate trajectories, including CoT obfuscation as their evasion strategy? What if they use a stronger model than the LLM used by Agent-ToM reasoning analysis?
Limitations

Limitations are briefly discussed at the end but are not investigated in depth in the paper, including the justification for the additional training overhead incurred and the weaknesses of a purely prompt-based approach in the face of highly deceptive agents.

Final justification

The authors' comprehensive responses have addressed my concerns regarding novelty, training and inference costs, and the lack of concrete working examples. I am satisfied with the clarifications and the additional results provided. Although the approach may have limitations when confronted with more sophisticated forms of deception, its core ideas are meaningful, and it offers a more favorable performance-overhead trade-off than existing monitoring approaches.

Formatting concerns

n/a

7 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading and for the detailed engagement and feedback. We address the main weaknesses and questions below.

Q2 - models used by each baseline

All baselines and all Agent-ToM variants use GPT-5-mini at inference. This includes LLM-Judge (zeroshot) and ToM (zeroshot) — GPT-5.1 is never used at inference time by any method. GPT-5.1 is used only during training, for the ToM Reasoning Module, Critique, and Knowledge Distiller (Appendix A.2). The one exception in the submission was Sequential Ensemble, which reported official benchmark outputs on Claude 3.6 Sonnet.

We have now re-run Sequential Ensemble on GPT-5-mini (full SHADE-Arena test set, N=789, unmodified scaffold of Kale et al., only the model changed): F1 = 0.653, recall 0.701, precision 0.612, accuracy 0.558, AUC 0.572 — below the 0.727 obtained on Claude 3.6 Sonnet. The mismatch therefore favored the baseline: under strict model matching, Agent-ToM's margin widens to +0.129 F1 at 2 LLM calls versus 17. Every method in Table 1 now runs on GPT-5-mini, and we will add an explicit inference-model column.

On training-time GPT-5.1 access specifically: our Agent-ToM (Prompt-level) variant also uses GPT-5.1 throughout training to optimize the prompt using GEPA, and GPT-5-mini at inference, so the only difference from the memory-based variants is that it learns by optimizing prompts rather than by distilling guardrails into memory. It reaches 0.686 F1, below the memory-based variant's 0.782. Training-time access to a stronger model is therefore not by itself sufficient to produce our result; what differs is the learned artifact.

Q3a — Contributions beyond the integration

We would like to clarify that ToM (zeroshot) in Table 1 is not a prior method but our own Reason–Verify–Refine pipeline with the learned memory removed (L294–295), and Agent-ToM (Prompt-level) is our pipeline learning through prompt optimization instead of memory distillation. The progression 0.615 → 0.686 → 0.782 decomposes our proposed system.

On the claim that similar reason-verify-refine pipelines exist in recent agentic-AI work for hypothesis generation: we are not aware of prior work applying verification and refinement to structured mental-state inference for agent monitoring, and the requirements differ from hypothesis generation. However, we would welcome the specific references and will cite them properly in relationship to our work. We have cited prior work on ToM and evolving agentic memory. What differentiates our work is:

  1. Critique-driven credit assignment over ToM inference steps. Rather than critiquing a monitoring decision as a whole, the Critique module evaluates the underlying ToM steps separately, identifying which reasoning steps produced correct or incorrect outcomes and tagging existing guardrails as helpful or harmful. Existing memory-evolution work operates over task outcomes, not over structured mental-state inference.

  2. Batch distillation. Merging critique signals across a batch before a single Distiller call induces guardrails from patterns recurring across episodes rather than from individual ones, so an erroneous critique in one episode may not be distilled into a rule at all. This directly addresses a stated limitation of existing evolving-memory approaches, which rely on a strong critique signal. Empirically it yields higher F1 with a substantially more compact memory (0.861 F1 / 89 rules / 14,032 words at batch=8 vs. 0.843 / 155 rules / 22,860 words at batch=1) and a 5.8× training speedup (Table 4).

  3. Stage-wise memory. Stage 1 and Stage 2 maintain separate guardrail memories, with Stage 1 frozen while Stage 2 trains on top of it. Verification is therefore not a second pass over the same knowledge but a separately learned function: it contributes +0.065 F1 in-distribution and +0.216 F1 out-of-distribution (p = 1.50 × 10⁻³, Figure 7).

  4. The empirical finding for agent monitoring. Prior monitoring work locates improvement in inference-time scaffolding — chunking, summarization, ensembling — and Kale et al. conclude that scaffolding matters more than model capability. We show that learning at the monitoring layer dominates inference-time compute: two calls with accumulated cross-episode knowledge outperform 8 and 17 calls without it, on matched models. Agent-Auditor also learns from prior episodes, but through nearest-neighbour retrieval of raw traces (0.697 F1); distilling abstract belief- and intent-conditioned guardrails instead reaches 0.782. To our knowledge this is the first application of structured evolving memory to the monitoring layer.

Q4 — models generating the trajectories

The trajectories are the official rollouts of Kale et al. [2025]. On SHADE-Arena the agents are Claude 3.6 Sonnet and Gemini 2.5 Pro; on CUA-SHADE-Arena, Claude 3.6 Sonnet and Claude Sonnet 4 under the OpenHands scaffolding. CoT obfuscation is implemented by prompting these agents to emit a hidden reasoning block and a separate sanitized block, with only the latter exposed to the monitor.

This means the reviewer's proposed setup is exactly the condition under which our results were already obtained: the monitored agents are frontier models, the monitor is a small model (GPT-5-mini), and under CoT obfuscation the agent's true reasoning is withheld from the monitor entirely. Our evaluation is thus a weak-to-strong monitoring setting in the sense of Kale et al., and 85% of malicious SHADE-Arena traces involve monitor-aware agents actively attempting evasion. Agent-ToM's advantage is concentrated precisely on these aware-agent strategies (Table 5): it exceeds Sequential Ensemble by +0.207 F1 on CoT obfuscation, +0.251 on hybrid obfuscation with lying, and +0.246 on monitor hijacking, while Sequential wins only on unaware agents where no evasion is attempted.

Authors · CommentOpenReview ↗

Response to Q3.b (continued): Limitations of the prompt-based approach against advanced deception

On purely prompt-based. The characterization as 'purely prompt-based' is accurate for the inference stack — no weights are updated — but the system does learn: the semantic guardrail memory is a trained artifact that accumulates cross-episode knowledge through critique-driven distillation, and it is this artifact, not the prompt structure, that drives the performance gap over our own prompt-optimized variant.

The paper proposes a framework that treats the monitoring context as an evolving semantic memory which accumulates, updates, and organizes fine-grained monitoring strategies through a modular process of reasoning, critique, and distillation. We study the full space of state-of-the-art agent monitoring approaches and compare them. Table 1 compares seven methods on frozen models: single-pass judging (LLM-Judge, 0.596), retrieval over labelled traces (Agent-Auditor, 0.697), inference-time scaffolding and aggregation (Sequential and Async Ensembles), structured multi-stage reasoning without learning (ToM zeroshot, 0.615), Agent-ToM with prompt optimization (GEPA, 0.686), and Agent-ToM with cross-episode distillation into semantic memory (0.782).

Two of these learn from prior episodes on the same training split — prompt optimization and memory distillation — so the comparison between them isolates not whether experience is used but how learned knowledge is represented. Agent-ToM with prompt optimization uses GEPA to update the monitor context by generating and selecting prompt variants in an evolutionary loop, where each candidate is a full prompt optimized end-to-end; it compresses all accumulated knowledge into an instruction that is rewritten in place, so new knowledge displaces old and capacity is bounded by the instruction itself. Agent-ToM with semantic memory instead treats memory as a structured, itemized store that is additive, accumulating monitoring strategies without discarding earlier ones. The +0.096 F1 difference at identical training data is attributable to that representational choice.

Both variants learn after model training, by learning the context rather than adapting model weights. The semantic memory has the further property of being interpretable and auditable: each guardrail can be read, and the episodes supporting or contradicting it inspected. Because it is a natural-language artifact with no model-specific structure, it can be portable across models and applications.

On advanced deception. The evaluation is built around this concern rather than incidental to it. Approximately 85% of malicious SHADE-Arena traces involve monitor-aware agents actively attempting evasion, across five distinct strategies — CoT obfuscation, jailbreaking-based lying, hybrid obfuscation and lying, monitor hijacking, and aware baseline — and CUA-SHADE-Arena is exclusively monitor-aware. Agent-ToM's advantage is concentrated precisely on these strategies (Table 5), exceeding Sequential Ensemble by +0.207 F1 on CoT obfuscation, +0.251 on hybrid obfuscation with lying, and +0.246 on monitor hijacking, while Sequential wins only on unaware agents where no evasion is attempted.

Two limitations are nonetheless real, and we will expand the limitations section accordingly.

Critique quality. We have now measured this. Corrupting the credit-assignment labels during training degrades F1 from 0.847 to 0.803 at 10% corruption and 0.769 at 30% (Stage 1, predefined memory, 100% training, N=789; full results in our response to Reviewer G5NZ). Degradation is graceful and is almost entirely a loss of recall (−0.197 at 30%) with precision slightly improving, indicating that corrupted critique produces under-flagging rather than fabricated guardrails.

Agents producing internally consistent but factually misleading traces. This is the binding limitation for advanced deception. The monitor has no ground truth against which to verify an agent's claims, so an agent that fabricates a coherent false narrative defeats abductive inference in a way that concealment does not. The distinction matters: obfuscation hides reasoning while leaving behavior observable, whereas fabrication supplies false evidence that no inference over the trace can falsify. We note the bound is evidential rather than architectural: it constrains any monitor reading the same trajectory.

Authors · CommentOpenReview ↗

Training overhead

The training overhead is amortized across deployment.

For Stage 1 training: Agent-ToM requires at most 4 LLM calls per trajectory or trace during training (ToM Reasoning Module, Critique and Credit Assignment, a retry of the reasoning module on incorrect predictions, and the Knowledge Distiller). At 25% training fraction using batch distillation with batch size =8, the cost is 3 × 191 + 191/8 ≈ 597 LLM calls. We note that batch distillation reduces training cost by ~ 22% LLM calls.

At inference, Agent-ToM uses 2 LLM calls per trajectory versus 17 for Sequential Ensemble. Over the 789-trajectory test set: Agent-ToM inference = 1,578 LLM calls; Sequential Ensemble inference = 13,413 calls. So the total budget of Agent-ToM including training is 597 + 1,578 = 2,175 LLM calls, versus 13,413 LLM calls for Sequential Ensemble, which is almost 84% fewer LLM calls compared to Sequential Ensemble.

Normalizing by token price if GPT-5.1 is used during training and GPT-5-mini during inference, training requires approximately 597 GPT-5.1 calls ≈ 2,985 GPT-5-mini-equivalent calls. Combined with inference, Agent-ToM's total normalized cost is approximately 4,563 GPT-5-mini-equivalent calls — 66% below Sequential Ensemble's inference-only cost of 13,413 calls.

We note this figure covers learning across all 17 SHADE-Arena applications and six agent behavior conditions (one unaware baseline and five evasion strategies) in a single training run. The resulting memory is correspondingly broad, it transfers to unseen applications (Table 7) and to a different benchmark without adaptation (Table 2), so the cost is incurred once for a monitor that generalizes, rather than per application.

Furthermore, the training cost is fixed and paid once. Each additional deployment trajectory costs 2 GPT-5-mini calls for Agent-ToM versus 17 for Sequential Ensemble, so the normalized cost per monitored trajectory decreases monotonically with deployment volume while Sequential Ensemble's remains constant. Agent-ToM is already cheaper in total on the test set alone, and the gap widens with every subsequent trajectory. We will add this analysis to the paper.

Reviewer G5NZOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The authors frame monitoring not as a stateless classification problem, but as a learning-based inference process that evolves by refining reusable behavioral constraints. Based on this view, they propose a Theory-of-Mind (ToM)-driven learning-to-monitor framework for analyzing autonomous LLM agents. The approach infers behavior through beliefs, intent, expected actions, and deviations from behavioral baselines, and employs a Reason–Verify–Refine paradigm to iteratively construct, validate, and refine behavioral hypotheses.

Strengths and weaknesses

One of the strengths is that the agent is not simply an LLM-as-judge but infers beliefs and step-level intent hypotheses with confidence, along with expected actions and task specific behavioral baselines, enabling evidence-based discrimination between benign and malicious behavior beyond surface trajectory patterns. .

LLM judgments may vary across prompts, phrasing, or runs, leading to inconsistent monitoring outcomes. Also, the monitoring behavior is highly sensitive to prompt formulation, introducing prompt-dependent bias. Thus, the main weakness is a strong dependence on the quality of the critique signal, which introduces fragility and potential bias in the learning process. This may limit robustness in practical settings. No convincing analysis is provided on the stability AgentToM when noisy or misleading feedback are provided. The paper does not sufficiently address this sensitivity. Also, LLM-based monitors can themselves be manipulated by adversarial phrasing or cleverly crafted inputs. So the reliance on them for monitoring introduces a non-trivial source of noise and bias, as its judgments are not guaranteed to be consistent, calibrated, or robust to adversarial inputs.

Another issue is that in this context, memory organization introduces a design-sensitive component, whose optimal configuration may not generalize across tasks. This introduces additional tuning complexity and is unclear whether the proposed approach would transfer effectively beyond the evaluated configurations.

Questions
  1. Given the central role of the critique signal, a systematic evaluation of its quality and robustness is essential and currently missing. The ablation study that remove or weaken the critique helps quantify its contribution but the authors should include experiments that explicitly vary the quality of the critique signal, such as noise injection, adversarial perturbations, and comparisons across different critique sources. These analyses would clarify the sensitivity of the method to critique quality and strengthen confidence in its stability and generalizability.
  2. Given that the LLM serves as a critical monitoring component, a systematic robustness and calibration analysis is essential, including adversarial prompt testing and paraphrase consistency analysis. Also, sensitivity to prompt variations and input noise should be assessed to ensure that the monitoring signal is stable, calibrated, and resistant to manipulation.
  3. The authors should include a systematic evaluation of different memory organizations, including ablations over memory structure and size, as well as cross-task generalization experiments. Comparing fixed and adaptive memory designs would further clarify whether performance gains stem from the proposed method or from task-specific memory tuning.
  4. Paper writing should be checked: Abstract ’ Monitoring autonomous Large Language Model (LLM) agents’, Page 2: ‘and We also provide a’
  5. Figures are too small.
Limitations

yes

Final justification

Critique The authors had a detailed response on the signal quality, adversarial manipulation of the monitor and memory organization. I appreciated their response on the novelty, training and inference cost, and examples of beliefs. I will maintain the same ranking.

Formatting concerns

This paper is on Arxiv, the author is Nesreen K. Ahmed, Cisco Outshift [email protected] &Nima Nafisi Cisco Outshift [email protected]

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading and for the detailed engagement and feedback. We address the main weaknesses and all questions below.

(1) Critique signal quality: Figures 3 and 4 are a direct critique-quality ablation: removing the self-correction step degrades F1 from 0.814 to 0.668 and stalls improvement from 27% training onward, despite memory still growing to 62 rules. This is evidence that guardrail quality rather than quantity drives performance, and correspondingly that degraded critique signal degrades the memory. Our principal mitigation is batch distillation: critique signals from 8 episodes are merged before a single Distiller call, so guardrails are induced from patterns recurring across episodes rather than from individual ones that might be noisy. Empirically this yields both higher F1 and a more compact memory than sequential distillation (0.861 F1 / 89 rules / 14,032 words at batch=8 vs. 0.843 / 155 rules / 22,860 words at batch=1, Table 4)

However, we agree with the reviewer that explicit noise injection and adversarial perturbation of critiques are not evaluated, and we will add this experiment.

(2) Adversarial manipulation of the monitor: We share this concern, and it is directly evaluated in our setup. Monitor hijacking — in which the agent injects instructions into its trajectory to manipulate the monitor's output score (Appendix C) — is one of six agent strategies in our evaluation, and lying with jailbreaking covers adversarial phrasing. On hijacking (Table 5), Agent-ToM attains F1 = 0.886 (self-structured) and 0.848 (predefined), against 0.640 for Sequential Ensemble; on jailbreaking, Agent-ToM attains F1 = 0.821 (self-structured) and 0.758 (predefined) against 0.708 for Sequential Ensemble. The semantic guardrails include an evasion-technique category that explicitly encodes monitor hijacking through direct instruction injection (Section 2.5), which we take to be the source of this gain. Approximately 85% of malicious SHADE-Arena traces involve monitor-aware agents, and CUA-SHADE-Arena is exclusively monitor-aware.

(3) Memory organization: We evaluate this along three axes in Appendix B.

(a) Structure. We compare two configurations: predefined, where memory is initialized with expert-specified section headers (malicious objective, deception strategy, evasion technique), and self-structured, where memory is initialized empty and the Knowledge Distiller induces its own organization from the training data. We report both overall and per evasion strategy (Table 5, Figure 5). Self-structured outperforms predefined by +0.048 F1 (0.861 vs. 0.813) and the difference is significant under McNemar's test (Table 6).

(b) Size. Figures 3 and 4 report F1 as a function of memory size across training fractions, from 1,921 words / 17 rules at 9% training to 14,032 words / 89 rules at 100%, under two critique conditions. Table 4 additionally reports the effect of batch size on memory compactness at fixed training data (155 rules / 22,860 words at batch=1 vs. 89 rules / 14,032 words at batch=8), and Figure 9 visualizes memory composition by section across six training checkpoints.

(c) Cross-task generalization. Table 7 reports a 5-fold cross-application evaluation holding out one agent application at a time, with memory learned from the remaining four, and Figure 8 gives the per-task breakdown.

On whether gains stem from task-specific memory tuning, we note two points. First, the self-structured configuration receives no human schema/structure design whatsoever — memory is initialized empty and its organization is induced from data — and it outperforms the hand-designed predefined schema. The better-performing configuration is the one with no tuning, so performance cannot be attributed to schema engineering. This is also the fixed-versus-adaptive comparison the reviewer requests, with the adaptive design winning. Second, memory learned on SHADE-Arena transfers to CUA-SHADE-Arena — a different environment type, task suite, and agent scaffolding — with no adaptation, reaching 0.831 F1 (Table 2). Neither result is consistent with gains arising from configuration tuned to the evaluation tasks.

(4) Writing. Thank you for catching these. We will correct them and do a full editorial pass over the manuscript for capitalization consistency and similar issues.

(5) Figure size. We agree and we will enlarge all figures in the camera-ready.

Authors · CommentOpenReview ↗

Response: Critique Signal Quality and Robustness

Critique signal quality and robustness:

We have now run the noise-injection experiment the reviewer requests. Setup. Using Agent-ToM (Stage 1, predefined memory configuration, 100% training fraction) evaluated on the full SHADE-Arena test set (N=789), we corrupt the critique signal during training by randomly flipping a fraction of the correctness labels used for credit assignment, applied across applications and across both label categories (malicious→benign and benign→malicious). We isolate Stage 1 at full training because critique corruption acts on memory formation, which is a Stage 1 phenomenon; removing the verification stage makes the effect on the learned guardrails most directly observable. We will add these results to the final version.

Labels flipped F1 Recall Precision Accuracy
0% 0.847 0.933 0.775 0.799
10% 0.803 0.818 0.787 0.758
30% 0.769 0.736 0.805 0.740

Result. We observe that degradation is graceful: F1 falls by 0.044 at 10% corruption and 0.078 at 30%.

Degradation is asymmetric. It is almost entirely a loss in the recall metric (−0.197 at 30%) while precision slightly increases (+0.030). Corrupted critique signal therefore produces guardrails that under-flag rather than guardrails that generate false alarms, and the memory becomes more conservative rather than noisy. This addresses the specific concern that noisy critiques would poison the memory: we find no evidence of poisoning in the sense of fabricated guardrails driving false alarms, since precision improves rather than degrades. The observed failure mode is suppression of correct guardrails, not creation of incorrect ones.

We attribute this asymmetry to batch distillation. Spurious benign→malicious signals are trace-specific and share no common structure, so they rarely survive merging in batch distillation to become guardrails; corrupted malicious→benign signals instead accumulate as repeated negative credit against the same existing detection guardrails, which is precisely the recurring cross-episode pattern the Distiller is designed to retain. We note that the mechanism protecting against fabricated guardrails does not equally protect against suppression of correct ones, and that under-detection is the more consequential failure direction for a monitor.

This complements the ablation already in the paper: removing the critique self-correction step entirely degrades F1 from 0.814 to 0.668 and stalls learning from 27% training onward despite memory continuing to grow to 62 rules (Figures 3, 4). Together these indicate that critique quality rather than quantity drives performance, and that the system tolerates substantial label noise while degrading predictably.

Reviewer G5NZ · CommentOpenReview ↗

I thank the authors for the detailed rebuttal which satisfactorily addressed my questions. I appreciate the clarifications

Reviewer wPKVOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The method has two parts. At inference, a Reason–Verify–Refine pipeline performs Theory-of-Mind inference over four latent variables (beliefs, step-level intent hypotheses with calibrated confidence, expected actions, deviations), then independently verifies the initial classification with asymmetric criteria (harder to downgrade a malicious call than to confirm it). At training, a critique-driven loop distills success/failure patterns from monitoring episodes into a persistent semantic guardrail memory that conditions future inference—no model retraining.

Strengths and weaknesses

Stengths

  • Strong Efficiency-vs-Performance Story: The most compelling result is matching or beating ensemble methods at 2 LLM calls vs. 8–17 calls. Figure 6's Pareto framing makes this concrete, and it's a genuinely deployment-relevant argument. The contrast with Async's calibration collapse (0.990 recall but 0.617 precision from over-flagging) is well-drawn and highlights the value of the Verify-Refine stage.
  • Excellent Statistical Hygiene: The paper exhibits better statistical rigor than is typical for this venue. McNemar's tests with continuity correction are reported for the key comparisons (Table 6, Figure 7), including the Stage 2 contribution (p = 3.15e-4 on SHADE, 1.50e-3 on CUA). This is a highly commendable standard of evidence.
  • Informative Per-Evasion-Strategy Breakdown: Table 5 and Figure 5 show Agent-ToM's advantage concentrates exactly where it should—on aware-agent strategies (CoT obfuscation, hybrid obfuscation, monitor hijacking). Conversely, Sequential Ensemble only wins on unaware agents where there is no active evasion to reason about. This is a meaningful diagnostic that strongly supports the paper's core hypothesis regarding the necessity of belief/intent-inference.
  • Strong Out-of-Distribution (OOD) Generalization: The framework demonstrates impressive zero-shot transferability. When trained on the simulated tool-use environment of SHADE-Arena and evaluated on the realistic computer-use environment of CUA-SHADE-Arena, Agent-ToM maintains a high F1 score (0.831) and perfect precision, proving that the learned semantic guardrails capture generalized adversarial concepts rather than over-fitting to specific environments. Innovative Continuous Learning Mechanism: The critique-driven distillation into a "semantic guardrail memory" is highly effective. It allows the monitor to accumulate cross-episode knowledge without requiring expensive model fine-tuning, successfully bridging the gap between static prompting and full model retraining.

Weakness

  • Headline-Number Inconsistency: There is a confusing inconsistency in the reported metrics that needs fixing. The main tables (Table 1/2) report Agent-ToM at 0.782 / 0.831 F1, trained on 25% of data. But Table 5 (100% training, N=722 subset) reports the same system at 0.813 (predefined) / 0.861 (self-structured) F1, and Table 7 reports 0.924 in-distribution F1. The paper switches between these different evaluation subsets and training fractions without a single consolidated statement of what the canonical result is, forcing the reader to reconcile "0.782" in the abstract/introduction with "0.861" and "0.924" elsewhere.
  • Baseline Model Mismatch: The strongest baseline isn't matched on the underlying foundation model. Sequential Ensemble uses Claude 3.6 Sonnet (official benchmark outputs) while every Agent-ToM variant uses GPT-5-mini at inference and the much heavier GPT-5.1 during training. The whole efficiency claim ("2 calls beats 17") is heavily confounded by model identity and training-time access to a superior model. A fair comparison requires re-running the ensembles under the same models, or at minimum reporting what a 2-call GPT-5-mini ensemble achieves.
  • Fundamental Limits of Abductive Inference: As acknowledged briefly in the limitations, the framework assumes that an agent's true intent leaves some observable behavioral trace. If an agent is highly advanced at deception (e.g., executing a perfectly benign, helpful trajectory until a sudden, single-step catastrophic action), the ToM reasoning will lack the behavioral breadcrumbs necessary to infer malicious intent early on.
  • Dependence on Critique Quality and Prompt Complexity: The system’s success relies heavily on the "Critique and Credit Assignment" module generating high-quality diagnostic signals. Noisy or hallucinated critiques during training could easily poison the semantic memory. Furthermore, the system relies on extremely dense, multi-stage prompts (Appendix D). It is unclear how sensitive the framework is to slight prompt variations or if it would function at all on smaller, open-weight models, potentially limiting its broader applicability.
Questions
  • could you clarify which F1 score should be considered the primary, canonical result of this system? There is significant variance across the manuscript (e.g., 0.782 in Table 1; 0.813/0.861 in Table 5; 0.924 in Table 7). The differing training fractions and evaluation subsets make it difficult to pin down the definitive performance of the model.
  • given that the Sequential Ensemble baseline utilizes Claude 3.6 Sonnet while Agent-ToM uses GPT-5-mini (and GPT-5.1 during training), it is difficult to untangle framework improvements from model capabilities. Do you have results for the ensemble baselines run exclusively on GPT-5-mini/GPT-5.1 to provide a strict apples-to-apples comparison on efficiency and accuracy?
  • table 7 indicates a significant drop in Out-of-Distribution (OOD) F1 performance for GPT-5-mini (0.721) compared to GPT-5 (0.855). Does this suggest that applying the learned semantic guardrails to novel environments requires the reasoning capacity of massive frontier models, and cannot reliably scale down to smaller, cheaper inference models? Prompt Sensitivity: The prompts provided in Appendix D are highly structured and dense. Have you evaluated how sensitive the Reason-Verify-Refine pipeline is to prompt wording, or whether open-weight models (e.g., Llama-3-70B) are capable of reliably following this strict scaffolding?
Limitations

refer to weakness.

Formatting concerns

No.

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the careful reading and for the detailed engagement with our statistical analyses. We address the main weaknesses and all four questions below.

(1) Headline-Number Inconsistency: The canonical numbers are F1 = 0.782 on SHADE-Arena (Table 1) and F1 = 0.831 on CUA-SHADE-Arena (Table 2), i.e. the numbers reported in the abstract and introduction. These correspond to the most conservative configuration we report: 25% training data, predefined memory, evaluated on the full test sets. Every other number in the paper differs along one of three axes: training fraction, memory configuration, or evaluation subset and none contradicts the headline. We apologize that the paper does not make these axes explicit in one place, and we will consolidate the ablation configurations into a single table in the experimental section, reporting training fraction, memory configuration, and evaluation subset alongside the metrics for each, so that the relationship between the headline result and the ablation results is explicit.

F1 Location Eval set Memory config Train frac.
0.782 Table 1 SHADE test (N=789) predefined 25%
0.831 Table 2 CUA, OOD (N=120) predefined 25%
0.814 Fig. 3 SHADE test (N=789) predefined 100%

Table 5 is an ablation of memory organization, run at 100% training on the common evaluation subset (N=722 — the traces on which every method, ours and all baselines, completed; the same 722 traces are used for all methods). In the predefined configuration the memory is initialized with user-defined section headers, letting domain experts inject prior knowledge about known attack patterns; in the self-structured configuration it is initialized empty and the Distiller induces its own organization from the training data. F1 improves from 0.813 to 0.861 under self-structuring. The predefined result here (0.813) agrees to within 0.001 with the corresponding full-test-set result at the same training fraction (0.814, Figure 3), confirming that the N=722 subset does not favour our method.

Table 7's 0.924 is not comparable to any of the above and should not be read as a headline claim. It is a small 5-fold cross-application ablation over 5 SHADE-Arena tasks, evaluating Stage 1 only. In the in-distribution setting the memory is learned from all five apps, including the held-out test app; in the out-of-distribution setting it is learned from the other four apps only. We report it as an upper-bound diagnostic against which to measure the OOD drop, and we will relabel it as such.

(2) Matched-model ensembles: As suggested, we ran the requested experiment. Sequential Ensemble on GPT-5-mini, evaluated on the full SHADE-Arena test set (N=789), using the unmodified scaffold of Kale et al. with only the inference model changed, the results are: F1 = 0.653, recall 0.701, precision 0.612, accuracy 0.558, AUC 0.572, compared to 0.727 F1 for the official Claude 3.6 Sonnet outputs reported in Table 1. Sequential Ensemble performs better on Claude 3.6 Sonnet than on GPT-5-mini, so the original comparison was conservative with respect to our method. Under strict model matching, Agent-ToM (Stage 1–2) outperforms Sequential Ensemble by +0.129 F1 at 2 LLM calls versus 17. We will add these results to the paper in Table 1.

We also note that Async Ensemble was already model-matched to Agent-ToM on GPT-5-mini; only Sequential Ensemble used a different backbone (L303–305), which we should have made more visible. With this addition, every variant and baseline in Table 1 now runs on GPT-5-mini, and we will add an explicit inference-model column to make the matching legible.

We also address the impact of training. Agent-ToM (Prompt-level learning) isolates this: it uses the same training split, the same GPT-5.1 training model, the same GPT-5-mini inference model, and the same two-call pipeline, differing only in that strategies are encoded via GEPA prompt optimization rather than the critique-driven loop and distillation into semantic guardrail memory. On the matched backbone this gives f1 scores: ToM (zeroshot) 0.615 → Agent-ToM (Prompt-level) 0.686 → Agent-ToM (memory) 0.782, attributing +0.071 to training in general and a further +0.096 to the memory mechanism.

(3) OOD Performance for GPT5-mini: No, OOD does not require frontier models. We make these clarifications:

Table 7 evaluates Agent-ToM (Stage 1) only (L593–594), i.e. ToM reasoning without the Verify–Refine stage; it measures the transferability of unverified reasoning, not of the entire system. It is also designed to isolate cross-application transfer of the learned memory: the ID condition is a control in which the memory has seen the held-out app, so the informative quantity is the ID→OOD delta rather than absolute values. We will state both points in the caption.

However, in Table 2 we show the OOD capability of Agent-ToM (Stage 1–2) on GPT-5-mini achieves F1 = 0.831 at 1.000 precision on CUA-SHADE-Arena, a different environment type, a different task suite, and exclusively monitor-aware agents, with no adaptation. This is our strongest OOD result and it is obtained on the small model.

In Table 7, GPT-5-mini's OOD deficit is almost entirely recall (0.624 against 0.855 precision): the reasoning stage is not mislabeling benign trajectories, it is failing to flag malicious ones --- it is over-conservative on unfamiliar applications. This is precisely the deficit Stage 2 repairs: on CUA, Verify–Refine adds +0.267 recall at +0.000 precision (Table 2, Figure 7), lifting Stage 1's 0.615 F1 to 0.831. What degrades OOD under a smaller model is unverified reasoning, and independent verification is the component that recovers it.

GPT-5 does outperform GPT-5-mini in both settings in Table 7, and stronger reasoning helps. However, our claim is narrower: reliable OOD monitoring does not require frontier-scale inference, provided the verification stage is present.

(4) Prompt sensitivity and open-weight models: On prompt sensitivity, the paper contains a bound on how much instruction wording matters for this pipeline. The three configurations modify different things: ToM (zeroshot) uses a single static prompt for stage 1 and 2; Agent-ToM (Prompt-level) applies GEPA to rewrite the Stage 1 and Stage 2 prompt instructions directly, optimized against the training set; Agent-ToM (memory) holds the instructions fixed and augments them with distilled guardrails. GEPA therefore represents an approximate upper bound on what instruction wording alone can achieve — GEPA is an evolutionary optimizer given a search budget and a training signal, tasked solely with finding better phrasings. It reaches 0.686 F1, against 0.782 for memory-based learning at unchanged wording. The headroom in this pipeline is in learned content rather than phrasing, and our result does not depend on the specific formulation in Appendix D. Relatedly, since the memory augments the prompt rather than modifying it, the improvement from 0.615 (ToM zeroshot) to 0.782 is attributable to learned guardrail content and not to prompt engineering.

We note this is an upper bound rather than the floor, as such we will include a prompt sweep in the camera-ready, multiple independent paraphrases of the Stage 1 and Stage 2 instructions, preserving the core structure.

On open-weight models, we have not evaluated this. Long-context capacity was in fact the reason for our model selection: this problem setup, including baselines, passes full episodic traces (avg. 82.9 turns) together with the prompt/memory and without truncation at each stage, and most open-weight models available to us at the time did not provide sufficient context to run it unmodified. Recent long-context open-weight models do make this feasible, and we will evaluate a long-context open-weight model in the camera-ready, reporting both classification performance and schema-adherence rate, since failure to produce the structured output format is a distinct failure mode from misclassification. We will also test whether guardrails distilled by GPT-5.1 are portable across model families rather than tied to the GPT series.

(5) Limits of abductive inference: We agree, and this is the assumption we discuss in the limitations section: abductive inference breaks down when deceptive agents produce traces that are behaviorally indistinguishable from benign execution. We would like to add two points. First, on scope: Agent-ToM performs post-hoc analysis over the complete trajectory including the terminal action (Section 2.1), not real-time detection, so a single-step defection is within the monitor's input. The limitation binds on early detection, where a decision is required before the defection occurs.

Second, on the constraint: the binding factor is individual action plausibility rather than suddenness. An abrupt but self-evidently unjustified action leaves strong single-step evidence, and our Stage 1 instructions treat actions with no legitimate task-related purpose as malicious indicators. What defeats the framework is a harmful action indistinguishable from legitimate task execution, which our classification framework will discount, as it requires behavioral patterns rather than isolated events, in order to suppress false alarms on imperfect but benign work. We will expand the limitations section along these lines. We note this regime is partially represented in our evaluation: CUA-SHADE-Arena side tasks are by construction narrowly scoped [Kale et al., 2025]---single-value modifications and omissions, such as altering one employee's payroll figure or excluding one flagged variance from a report, and Agent-ToM attains 0.831 F1 on this benchmark out-of-distribution.

Authors · CommentOpenReview ↗

Noise-injection experiment: critique robustness analysis

Critique signal quality and robustness:

We have now run the noise-injection experiment the reviewer requests. Setup. Using Agent-ToM (Stage 1, predefined memory configuration, 100% training fraction) evaluated on the full SHADE-Arena test set (N=789), we corrupt the critique signal during training by randomly flipping a fraction of the correctness labels used for credit assignment, applied across applications and across both label categories (malicious→benign and benign→malicious). We isolate Stage 1 at full training because critique corruption acts on memory formation, which is a Stage 1 phenomenon; removing the verification stage makes the effect on the learned guardrails most directly observable. We will add these results to the final version.

Labels flipped F1 Recall Precision Accuracy
0% 0.847 0.933 0.775 0.799
10% 0.803 0.818 0.787 0.758
30% 0.769 0.736 0.805 0.740

Result. We observe that degradation is graceful: F1 falls by 0.044 at 10% corruption and 0.078 at 30%.

Degradation is asymmetric. It is almost entirely a loss in the recall metric (−0.197 at 30%) while precision slightly increases (+0.030). Corrupted critique signal therefore produces guardrails that under-flag rather than guardrails that generate false alarms, and the memory becomes more conservative rather than noisy. This addresses the specific concern that noisy critiques would poison the memory: we find no evidence of poisoning in the sense of fabricated guardrails driving false alarms, since precision improves rather than degrades. The observed failure mode is suppression of correct guardrails, not creation of incorrect ones.

We attribute this asymmetry to batch distillation. Spurious benign→malicious signals are trace-specific and share no common structure, so they rarely survive merging in batch distillation to become guardrails; corrupted malicious→benign signals instead accumulate as repeated negative credit against the same existing detection guardrails, which is precisely the recurring cross-episode pattern the Distiller is designed to retain. We note that the mechanism protecting against fabricated guardrails does not equally protect against suppression of correct ones, and that under-detection is the more consequential failure direction for a monitor.

This complements the ablation already in the paper: removing the critique self-correction step entirely degrades F1 from 0.814 to 0.668 and stalls learning from 27% training onward despite memory continuing to grow to 62 rules (Figures 3, 4). Together these indicate that critique quality rather than quantity drives performance, and that the system tolerates substantial label noise while degrading predictably.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…