TL;DR
LatentRiskBench introduces a new paradigm for evaluating AI agent safety by focusing on "state-dependent" risks—actions that are only dangerous because of the context established by previous steps. The authors demonstrate that while traditional safety checks catch only 9% of these violations, a state-aware auditor can detect 96%, revealing a massive hidden "residual risk" in currently deployed enterprise agents.
What Problem Does This Paper Address?
Most AI safety benchmarks treat agent actions like isolated events. They look for "action-local" risks: Is the agent using toxic language? Is it trying to access a forbidden file? However, in enterprise environments, an action’s safety often depends entirely on the workflow state.
Imagine an agent syncing a marketing campaign. The action sync_campaign looks perfectly benign. But if that campaign contains unapproved 40% discounts or internal pricing data, the action becomes a major policy violation. Current benchmarks largely miss these nuances because they don't require the evaluator to understand the history of the interaction. As shown in Figure 1, the decisive risk signal is often "latent," buried in the accumulated state of the trajectory rather than the final command.
Methods
The researchers propose a framework for State-Dependent Auditing. Instead of just looking at the final action, the auditor must:
- Reconstruct the State: Analyze the entire trajectory prefix (past actions and observations) to build a summary of policy-relevant variables (e.g., "Is this approved?", "Is this data sensitive?").
- Constant-Action Pairing: To ensure the benchmark actually tests state-reasoning, they use "benign twins." For every risky trajectory, they create a counterpart that ends in the exact same terminal action but has a different history that makes the action safe. This prevents models from "cheating" by just flagging certain keywords or tools.
- New Metrics: They introduce State-Reconstruction Gain (SRG), which measures how much better an auditor performs when it considers the workflow state versus just the local action.
Datasets
The authors introduced two primary sets:
- LatentRiskBench-Core: 124 domain-general enterprise traces, including 100 state-dependent (SD) cases and 24 action-revealing (AR) controls.
- LatentRiskBench-E-commerce: 40 traces extracted from real-world industry logs of a deployed marketing agent.
As Figure 2 illustrates, existing benchmarks like AgentDojo or WASP have almost zero coverage of these state-dependent risks, whereas LatentRiskBench makes them the primary focus.
Key Insights and Ideas
- The Action-Local Blind Spot: Traditional guardrails are effectively blind to state-dependent risks. If a guardrail only looks at the current tool call, it will miss almost all enterprise-level policy violations.
- Trajectory Access $\neq$ State Reasoning: Simply giving a model the history isn't enough. The model must explicitly reason about the implications of that history (e.g., "The user never gave permission for this specific data export").
- Deceptive Success Metrics: An agent might have a high Task Success Rate (TSR) and a low Outcome Violation Rate (OVR), yet still harbor high Residual Risk. This happens when an agent performs a "risky" action that doesn't immediately crash the system but violates long-term enterprise policy.
Key Results
The quantitative gap is staggering. As shown in Figure 3, action-local detection ($D_{action}$) identifies only 9% of state-dependent violations. By contrast, state-dependent auditing ($D_{state}$) reaches 96% detection, resulting in a State-Reconstruction Gain (SRG) of 0.87.
When testing existing guardrails (Table 1), the authors found that even sophisticated methods like LLMJUDGE or TRAJRULE leave significant residual risk (SD-RR) on the table because they fail to reconstruct the workflow state accurately.
In a real-world case study of an e-commerce agent (Table 3), the audit revealed that while the agent appeared safe by conventional metrics (8% violation rate), it actually left 61% of policy risks unresolved.
Limitations and Future Work
- Auditor as the Instrument: The benchmark relies on an LLM-based auditor to set the "ground truth." While validated against humans, the potential for shared LLM biases remains.
- Computational Overhead: State reconstruction isn't free. The audit adds a median latency of 430ms per action, which might be high for real-time applications, though the authors suggest selective or asynchronous auditing as a solution.
- Domain Specificity: While the core principles are general, the current instantiation is heavily focused on e-commerce and marketing. Future work could expand this to legal, medical, or financial agent workflows.
Summary updated