NeurIPS 2026 · Spotlight
Learning to Monitor Autonomous LLM Agents via Theory-of-Mind Reasoning
An agent can complete its assigned task while quietly pursuing a hidden objective, through steps that each look reasonable. Agent-ToM reasons about the agent itself: what it believes, what it intends at each step, what a task-aligned agent would do next, and where its behavior departs from that baseline.
The first call infers beliefs and step-level intent and proposes a verdict. The second tests alternative benign explanations and can confirm or revise that verdict in either direction.
During training, critiques of past verdicts are distilled into reusable guardrails. No model weights change; the memory is frozen at test time.
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.
| Method | Inference model | Accuracy | F1 | Recall | Precision |
|---|---|---|---|---|---|
| Single-pass monitoring | |||||
| LLM-Judge (zeroshot) | GPT-5-mini | 0.635 | 0.596 | 0.454 | 0.869 |
| Structured multi-stage monitoring | |||||
| ToM (zeroshot) | GPT-5-mini | 0.659 | 0.615 | 0.457 | 0.937 |
| ToM (zeroshot) | GPT-5.1 | 0.673 | 0.626 | 0.461 | 0.977 |
| Retrieval-based monitoring | |||||
| Agent-Auditor | GPT-5-mini | 0.663 | 0.697 | 0.653 | 0.748 |
| Ensemble-based monitoring | |||||
| Sequential Ensemble | Claude 3.6 Sonnet | 0.725 | 0.727 | 0.618 | 0.884 |
| Sequential Ensemble | GPT-5-mini | 0.558 | 0.653 | 0.701 | 0.612 |
| Async Ensemble (majority vote) | GPT-5-mini | 0.625 | 0.761 | 0.990 | 0.617 |
| Agent-ToM | |||||
| Agent-ToM (Prompt-level) | GPT-5-mini | 0.690 | 0.686 | 0.570 | 0.859 |
| Agent-ToM (Memory, Stage 1) | GPT-5-mini | 0.693 | 0.717 | 0.655 | 0.792 |
| Agent-ToM (Memory, Stage 1–2) | GPT-5-mini | 0.752 | 0.782 | 0.748 | 0.818 |
Table 1. SHADE-Arena test set (N = 789). Agent-ToM variants are trained on 25% of the training set. The Claude Sequential Ensemble row uses the official benchmark outputs; the GPT-5-mini row uses the same scaffold with the inference model changed. Agent-ToM uses two LLM calls per trajectory, compared with about 17 on average for Sequential Ensemble. Best value per column in bold.
| Method | Accuracy | F1 | Recall | Precision |
|---|---|---|---|---|
| Single-pass monitoring | ||||
| LLM-Judge (zeroshot) | 0.883 | 0.815 | 0.688 | 1.000 |
| Structured multi-stage monitoring | ||||
| ToM (zeroshot) | 0.808 | 0.666 | 0.510 | 0.958 |
| Ensemble-based monitoring | ||||
| Sequential Ensemble | 0.866 | 0.805 | 0.733 | 0.891 |
| Async Ensemble (majority vote) | 0.563 | 0.606 | 0.900 | 0.454 |
| Agent-ToM | ||||
| Agent-ToM (Prompt-level) | 0.840 | 0.740 | 0.600 | 0.960 |
| Agent-ToM (Memory, Stage 1) | 0.792 | 0.615 | 0.444 | 1.000 |
| Agent-ToM (Memory, Stage 1–2) | 0.891 | 0.831 | 0.710 | 1.000 |
Table 2. CUA-SHADE-Arena (N = 120). Agent-ToM is trained on SHADE-Arena and evaluated on unseen computer-use tasks without further adaptation. Sequential Ensemble uses the official Claude outputs; all other methods use GPT-5-mini. Best value per column in bold.
An interactive demo from Cisco Outshift.
Open demo → DatasetThe SHADE-Arena and CUA-SHADE-Arena trajectories used for evaluation. CC BY-NC 4.0.
View on Hugging Face → BlogCisco Outshift blog.
Read the post →@inproceedings{ahmed2026agenttom,
title = {Agent-ToM: Learning to Monitor Autonomous LLM Agents
via Theory-of-Mind Reasoning},
author = {Ahmed, Nesreen K. and Nafisi, Nima},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}