Agentic AI
New Framework Uses Predictive Models to Stop LLM Agents Before They Act Unsafely
ProbGuard, a proactive monitoring system, forecasts when AI agents will violate safety rules and intervenes preemptively rather than reacting after unsafe behavior occurs.
Autonomous agents powered by large language models are expanding into high-stakes domains—from controlling vehicles to managing household tasks—but their unpredictable decision-making poses real safety challenges. Most existing safeguards work reactively, catching unsafe behavior only once it's about to happen or has already begun.
Researchers have proposed ProbGuard, a monitoring framework that flips this approach by forecasting safety violations before they occur. Rather than waiting for dangerous actions to emerge, the system predicts the likelihood that an agent will remain safe going forward, then intervenes when confidence in safe execution drops below a configurable threshold.
How the System Works#
ProbGuard operates by building a mathematical model of agent behavior. It observes execution traces from LLM agents, abstracting their actions and states into symbolic representations. From these patterns, it learns a Discrete-Time Markov Chain—a probabilistic model that captures how behavior evolves over time and what states tend to follow from current conditions.
When the agent runs, the monitor continuously estimates the probability that future actions will stay within safe bounds. If that probability sinks below a user-set limit, ProbGuard can intervene in two ways: it can re-prompt the agent (nudging it toward safer decisions) or halt execution entirely.
Real-World Validation#
The research team tested ProbGuard in two safety-critical scenarios. In autonomous driving simulations, the system successfully predicted traffic violations and collisions in advance, with alerts arriving up to 15.84 seconds before violations would occur (at settings with zero false positives), and up to 38.66 seconds under stricter thresholds.
For embodied household agents, the approach was equally effective. A re-prompting strategy reduced unsafe behavior by 65% compared to unmonitored agents while preserving 80% of task success rates. A stricter mode that halts unsafe executions eliminated 94% of unsafe actions, though at a steeper cost to task completion.
Theoretical Grounding#
The framework also includes formal analysis that characterizes how much training data is needed to certify the learned model's reliability—grounded in PAC (Probably Approximately Correct) learning theory, which provides statistical guarantees about performance on unseen data.

