acceptodds
Published as a conference paper at NeurIPS 2026

WURI: Watching Unfolding Risk in Agent Interactions

Yiyang Duan, Tiantong Wu, Yurong Hao, Wei Yang Bryan Lim

Abstract

Large language model (LLM) agents increasingly operate through multi-step tool-use trajectories, where harmful intent may be distributed across actions that appear benign in isolation. This challenges single-step moderation, while repeated LLM-as-judge evaluation over growing prefixes can be costly and may intervene too late. We introduce WURI ( Watching Unfolding Risk in Agent Interactions ), a lightweight monitor for early prefix-level detection of harmful agent trajectories. WURI encodes each observed textual step with a frozen text encoder, learns an atom-adapted trajectory representation through metric learning, and scores each prefix with a fixed prototype-margin rule. It requires no access to agent model weights or hidden states, does not modify the agent's internal model, and uses no external LLM-as-judge calls at inference. Across five generalization settings, WURI achieves the best average prefix-area under the detection curve (AUDC), ranks first on three settings, and reaches the strict early-detection operating point within four steps in multiple evaluation settings. Runtime analysis shows a wall-clock speedup of over two orders of magnitude compared with repeated full-prefix guardrail evaluation. These results demonstrate that representation-based prefix scoring is an effective and efficient direction for monitoring unfolding risk in LLM agent interactions.

Keywords:
Sydney

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_gneWOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces WURI, a lightweight prefix-level monitoring framework designed to detect safety hazards in multi-step LLM agent trajectories. By utilizing a frozen text encoder, an atom-adapted trajectory representation, and a geometric prototype-margin rule, WURI achieves efficient early risk detection without invoking external LLM-as-judge calls or accessing agent weights. The approach demonstrates a 100x+ wall-clock speedup and solid detection performance across five generalization scenarios.

Strengths and weaknesses

This paper introduces WURI, a lightweight prefix-level monitoring framework that demonstrates strong early-detection capabilities via geometric matching over prefix representations across various generalization settings. The overall framework design is clear and well-justified, and the empirical evaluation is exceptionally comprehensive. However, WURI is primarily framed as a safety hazard monitor, leaving its performance in active intervention mechanisms unclarified. Additionally, the generalizability and representativeness of the trained prototype vectors remain fully unproven. Lastly, the framework's effectiveness against specific adversarial scenarios—such as stealthy attacks where individual steps present low risk but cumulatively pose a severe hazard—requires further investigation.

Questions
  1. The paper primarily presents WURI as a lightweight monitoring system. However, the ultimate goal of early detection lies in real-time, active mitigation. Can the WURI system perform timely, early interventions based on its monitoring signals? If so, how should the intervention thresholds be systematically determined and adjusted?
  2. WURI relies on learned prototype vectors and margin rules for geometric matching in the embedding space. Given the vast diversity of agent behavior spaces and the rapid evolution of attack vectors, how do the authors guarantee that these fixed prototypes can sufficiently represent complex "harmful" vs. "benign" trajectory distributions? Furthermore, does the representativeness of these fixed prototypes degrade when facing out-of-distribution (OOD) attacks that severely deviate from the training distribution?
  3. In the last paragraph of Section 2 (Problem Setup), the usage of the term "positive" introduces semantic ambiguity. In a security and defense context, "positive" can easily confuse readers as to whether it refers to "harmful (a positive detection/sample in safety)" or "benign (positive/good behavior in literal terms)". To avoid misleading the readers and enhance scientific rigor, it is highly recommended to replace this with explicit terms such as harmful / malicious or benign.
  4. In real-world adversarial settings, attackers frequently employ "slicing" tactics, decomposing a high-risk malicious goal into multiple atomic steps that appear entirely harmless or low-risk in isolation (e.g., individual steps look like routine database queries, but collectively constitute data exfiltration). Since WURI relies on single-step encoding and adaptive fusion, how does the system effectively counter this stealthy "low individual risk, high cumulative hazard" effect? As the trajectory length extends, is there a risk that the critical malicious intent gets diluted by dominant benign prefix representations, thereby leading to false negatives (missed detections)?
Limitations

The same as the question part

Paper formatting concerns

No

Final justification

I appreciate the authors’ careful responses to my comments, as well as the additional clarifications and discussions provided. After reconsidering my review in light of the rebuttal and the other reviewers’ comments, I maintain my original score.

1 comment

We thank the reviewer for recognizing WURI’s practical relevance and for the thoughtful questions on intervention, OOD transfer, terminology, and slicing.Below, we address these points in turn with targeted clarifications, controlled analyses, and additional experiments.

Question 1: How can WURI support active intervention, and how are operating thresholds selected systematically?

Direct answer. WURI supports online intervention by updating the max-prefix risk score after every observed interaction step and triggering an alarm once that score exceeds a threshold selected exclusively from benign calibration trajectories.

Experimental logic. ToolBench five-fold cross-fitting measures calibration stability, while source-native ATBench calibration measures LOHO detection at the same FPR targets.

Nominal ToolBench FPR targetMeasured OOF FPR
1%0.0103
5%0.0530 [0.0462, 0.0615]
10%0.0974

For source-native calibration, we use five independently initialized WURI models and five family-grouped ATBench folds. Training, checkpoint validation, threshold calibration, and held-out benign evaluation use separate trajectory families.

Nominal ATBench FPR targetHeld-out ATBench benign FPRLOHO TPR
1%0.0184±0.0037 [0.0114, 0.0684]0.5953±0.0395 [0.5106, 0.8059]
5%0.0632±0.0039 [0.0421, 0.1070]0.8506±0.0287 [0.6741, 0.9400]
10%0.1009±0.0062 [0.0772, 0.1439]0.9200±0.0122 [0.8118, 0.9906]

Result. Cross-fitting tracks all three target FPRs; at the 5% target, source-native calibration gives FPR 0.0632 and LOHO TPR 0.8506.

Question 2: Do the fixed harmful and benign prototypes remain informative under OOD shift?

Direct answer. Yes. With the released checkpoint, unchanged harmful and benign prototypes, and the same max-prefix readout, WURI retains useful prefix-level separation across all four shifted evaluation settings.

Experimental logic. We freeze the released monitor and change only the evaluation distribution.

SettingAUDC
SDB-EN0.973919
SDB-ZH0.944347
LOHO0.723697
AgentHarm0.745717
ControlAUDC
SDB-ZH Chinese0.912025
SDB-ZH matched0.905784
LOHO matched0.7468
AgentHarm common-prefix0.7602

Targeted controls. The same fixed monitor obtains 0.912025 [0.899463, 0.923707] on SDB-ZH with a translated Chinese benign reference and 0.905784 [0.891215, 0.919350] after additional length+step+format matching. Under conservative prefix controls, LOHO reaches matched AUDC 0.7468, while AgentHarm reaches strict common-prefix AUDC 0.7602.

Result. The unchanged prototype geometry achieves AUDC 0.723697-0.973919 across the four shifted settings. High SDB separation persists under same-language and structural controls, while LOHO and AgentHarm retain AUDC above 0.74 under their targeted controlled evaluations.


Question 3: What exactly does “positive trajectory” or “positive prefix” mean?

Direct answer. We replace “positive prefix” with “harmful-trajectory-associated prefix.” This denotes a prefix belonging to a harmful trajectory; mtm_t and r<=kr_<=k denote the step margin and prefix score.

Result. Labels and model scores are defined separately.

Question 4: How does WURI behave when harmful intent is sliced across steps or surrounded by benign content?

Direct answer. WURI can incorporate risk evidence that emerges in later steps, although splitting the same content into smaller observations causes a modest reduction in AUDC. Benign prefixes can delay detection within a fixed horizon, but once informative content has appeared, max-prefix preserves the strongest observed signal.

Question 4a: Can WURI use harmful evidence that appears only gradually or in later steps?

Direct answer. Across the five evaluation settings, four show higher final-prefix AUC than step-1 AUC. The equal-setting macro AUC increases from 0.781393 at step 1 to 0.846403 at step 2 and 0.894393 at the final prefix.

Experimental logic. We freeze the released checkpoint and max-prefix readout, compute AUC independently within each setting at step 1, step 2, and the pre-specified final horizon, and average the five setting-level results with equal weight. We additionally evaluate an ATBench subset whose injection onset is defined independently of WURI scores.

StatisticResult
Settings with higher final than step-1 AUC4/5
Macro AUC, step 1 → step 2 → final0.781393 → 0.846403 → 0.894393
Macro final − step 10.113000 [0.094153, 0.132289]
ATBench post-onset lift0.157646 [0.094369, 0.227724]

Result. Final-prefix AUC is higher in four of the five settings, and the positive macro trend is reproduced across five training seeds. The independently marked onset subset provides complementary evidence that later observations can add prototype-aligned risk evidence. AgentHarm is the one setting in which aggregate ranking decreases over later prefixes.

Question 4b: What happens when the same harmful content is split into smaller observations?

Experimental logic. We losslessly split unchanged source content into smaller observation units.

Lossless segmentation stress testAgentHarm ΔAUDCLOHO ΔAUDCSDB-EN ΔAUDC
Split up to two source steps-0.059316 [-0.065407, -0.053465]-0.043848 [-0.059829, -0.029702]-0.016083 [-0.021453, -0.011406]

Result. AUDC changes by 0.016–0.059 across SDB-EN, LOHO, and AgentHarm.

Question 4c: Can benign prefixes dilute an already observed harmful signal?

Direct answer. Once informative content has been observed, benign prefixes do not reduce the stored max-prefix score.

Experimental logic. We prepend three benign observations and compare the finite-horizon and complete-trajectory scores.

Benign-prefix stress testAgentHarm ΔAUDCLOHO ΔAUDCSDB-EN ΔAUDC
Three benign prefixes, finite horizon-0.067676 [-0.076500, -0.058562]-0.147038 [-0.179290, -0.112484]-0.081010 [-0.082048, -0.079743]

Result. Benign prefixes delay when informative content enters a fixed horizon. Across 2,966 eligible harmful trajectories, the maximum per-trajectory change in the complete-trajectory max score is 4.77e-7, within floating-point precision.

Reviewer_mr8sOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
2
Quality
3
Significance
2
Read review
Summary

This paper taget on detecting harmful intent that unfolds across multi-step LLM-agent trajectories, where individual steps may look benign in isolation. The paper proposes WURI, a lightweight prefix-level monitor for harmful agent trajectories. WURI encodes each observed textual step with a frozen text encoder, adapts the representation using a learned atom bank, and scores each prefix by comparing step representations to harmful and benign trajectory prototypes. Unlike repeated LLM-as-judge monitoring, WURI does not call an external LLM at inference time and is designed to operate on observable text only, without access to the agent’s model weights or hidden states.

Strengths and weaknesses

Strengths

  • The paper studies an important and timely problem: safety monitoring for LLM agents whose harmful behavior may unfold across multiple tool-use or dialogue steps.
  • The motivation is strong. Single-step moderation can miss distributed risk, while retrospective full-trajectory judging may be too late or too expensive.
  • The method is simple and easy to understand at a high level: frozen text embeddings, learned atom adaptation, harmful/benign prototypes, and max-prefix scoring.
  • The runtime comparison is a clear strength. WURI is substantially faster than repeated full-prefix guardrail inference under the paper’s evaluation protocol.

Weakness

  • The definition and evaluation of “harmful unfolding risk” are not fully convincing. The paper defines a positive prefix by inheriting the label of a trajectory that eventually becomes harmful, even if the prefix itself is not harmful. This makes the task partly a trajectory-level label prediction problem rather than a direct test of whether harmful intent is emerging over time. The paper also relies mainly on benchmark-provided harmfulness labels, without giving a sufficiently principled or comprehensive threat model for harmful agent behavior.
  • The evaluation has important dataset and reference-set confounds. Several evaluation splits contain only harmful examples and are paired with a shared ToolBench-Benign reference set. This can introduce source, domain, language, formatting, and trajectory-style shortcuts. The SDB-ZH setting is especially concerning because Chinese harmful trajectories are compared against an English benign reference pool, so strong performance may partly reflect language/source mismatch rather than true cross-lingual safety detection.
  • The evidence for genuine multi-step risk detection is weaker than the framing suggests. WURI is motivated as detecting risk that unfolds across steps, but the residual diagnostics suggest that much of the separability may already be present at the first prefix. The injection-onset diagnostic is also limited by small sample size, pre-onset alarms, and modest clean post-onset detection. As a result, WURI currently looks more like a useful prefix-level ranking model than a reliable detector of when risk actually emerges.
  • Since WURI’s atom bank, sparse TopK selection, reconstruction anchoring, and orthogonality regularization are closely related to sparse autoencoders and dictionary learning, the paper should more clearly explain this connection and include an SAE-style baseline or ablation. A natural comparison would be to train an SAE on the same frozen BGE step embeddings, then apply the same harmful/benign prototype-margin and prefix-readout scoring. This would help determine whether WURI’s gains come from its specific atom-adaptation design or from more generic sparse representation learning. -The paper uses only BGE-base-en-v1.5 as the frozen encoder, although encoder choice is likely central to performance; results should be tested with other encoders, especially multilingual and domain-specific encoders. The readout ablation also shows that mean-prefix scoring achieves higher average AUDC than the proposed max-prefix rule, so the default design is not empirically dominant. More generally, the paper lacks statistical uncertainty for the main results, which is important given the small and imbalanced splits.
Questions
  • regarding TPR ≥ 0.8 and FPR ≤ 0.1, why these threshold in particular?
Limitations

see above

Paper formatting concerns

na

1 comment

We thank the reviewer for the detailed technical feedback on the threat model, unfolding evidence, matched baselines, and design choices. Below, we address these points with targeted clarifications, controlled analyses, and additional experiments.

Question 1: What is the threat model, and what exactly is WURI designed to monitor?

Direct answer. WURI is an online black-box monitor for observable textual agent interactions. It sees user requests, agent messages, proposed actions or tool calls, and returned tool content, but does not require model weights, hidden states, or private reasoning traces.

Monitoring setup. The attacker may manipulate user prompts, retrieved or external content, memory entries, and tool responses, including by delaying or fragmenting harmful evidence. WURI scores each observed step, and a calibrated threshold on max-prefix triggers an alarm before the next monitored action.

Scope. We evaluate risks expressed in the observable textual trajectory; hidden-state-only behavior, unexposed private reasoning, and non-textual side channels are outside scope.

Question 2: What does a “positive prefix” mean, and how is it related to local step harmfulness?

Direct answer. We replace “positive prefix” with “harmful-trajectory-associated prefix.” This denotes a prefix belonging to a harmful trajectory; mtm_t is the step margin and r≤kr_\leq k is the prefix score. Injection onset is a separate benchmark annotation.

Result. Trajectory labels, model scores, and onset annotations are defined separately.

Question 3: Is WURI performing trajectory-label classification from the first prefix, or does it use evidence that emerges later?

Direct answer. The results show both effects: some settings are already separable at the first prefix, but WURI is not limited to first-prefix classification. Later observations increase final-prefix AUC in four of the five evaluation settings, and equal-setting macro AUC rises from 0.781393 to 0.894393.

Experimental logic. We freeze the checkpoint and readout, compute AUC independently within each setting at step 1, step 2, and the final horizon, and average the five setting-level results with equal weight.

SettingAUC@1AUC@2Final AUC
In-Domain0.9866900.9975601.000000
SDB-EN0.9162170.9531240.985794
SDB-ZH0.4930380.9064750.944165
LOHO0.6743090.5954250.823077
AgentHarm0.8367130.7794300.718929
Macro0.7813930.8464030.894393

The macro final-minus-step-1 gain is 0.113000 [0.094153, 0.132289]; across five retraining seeds it is 0.109375±0.009482. The independently marked ATBench subset gives a post-onset lift of 0.157646 [0.094369, 0.227724].

Result. First-prefix information contributes in several settings, while later observations provide additional discriminative evidence in four of five settings. AgentHarm is the setting in which aggregate ranking decreases over later prefixes.

Question 4: Could language or reference-set differences explain the SDB-ZH result?

Direct answer. No. The strong SDB-ZH result persists after removing the language mismatch and controlling major observable trajectory differences: AUDC remains 0.912025 with a translated-Chinese benign reference and 0.905784 after score-independent structural matching. SDB-ZH has no source-native benign split; where native benign data are available, we provide same-source evaluation on ATBench.

Experimental logic. We translate the ToolBench benign trajectories into Chinese and then match length, step count, and format without using WURI scores. A stratified manual audit covers all automatic-QC warnings.

Benign referenceData source (harmful / benign)AUDC [95% CI]
EnglishSDB-ZH / ToolBench0.944347 [0.933436, 0.955024]
ChineseSDB-ZH / translated ToolBench0.912025 [0.899463, 0.923707]
Chinese + matchedSDB-ZH / translated ToolBench0.905784 [0.891215, 0.919350]

Result. WURI retains AUDC 0.912025 after replacing the English benign reference with a Chinese reference and 0.905784 after additional score-independent structural matching.

Question 5: How is WURI related to sparse autoencoders and dictionary learning, and what does the matched control show?

Direct answer. WURI has a slightly higher five-setting mean, with its clearest advantages under held-out-hazard and cross-lingual shifts: it improves LOHO AUDC from 0.636395 to 0.699365 and SDB-ZH from 0.914896 to 0.963825. These settings reflect the paper’s deployment motivation, where agents may encounter unseen hazard categories and multilingual interactions. The matched reconstruction SAE remains competitive and is higher on SDB-EN and AgentHarm.

Experimental logic. We train WURI and the capacity- and budget-matched SAE with the same five seeds. Both use the same frozen embeddings, training data, prototype construction, and max-prefix readout.

SettingWURI, mean ± SDSAE, mean ± SDWURI − SAE
In-Domain0.998162 ± 0.0007250.969156 ± 0.003231+0.029006
SDB-EN0.988586 ± 0.0103750.995895 ± 0.000320−0.007309
SDB-ZH0.963825 ± 0.0082140.914896 ± 0.010636+0.048929
LOHO0.699365 ± 0.0185610.636395 ± 0.017877+0.062970
AgentHarm0.714984 ± 0.0462380.796663 ± 0.012982−0.081679
Mean0.872984 ± 0.0133350.862601 ± 0.007085+0.010383

Result. WURI is higher in-domain, on SDB-ZH, and on LOHO, while the SAE is higher on SDB-EN and AgentHarm. WURI consequently has a slightly higher five-setting mean and stronger worst-setting result (0.699365 versus 0.636395).

Question 6: Are the results stable across embedding encoders, training seeds, and trajectory samples?

Direct answer. WURI transfers across BGE, multilingual-E5, and E5-base-v2 under the same five-seed protocol. We additionally report trajectory-cluster confidence intervals.

Experimental logic. We retrain each encoder with seeds 40–44, keeping the training data, prototype construction, max-prefix readout, and evaluation settings fixed.

EncoderFive-setting mean AUDCMean seed SD
BGE-base, retrained0.8729840.013335
Multilingual-E50.8211830.017667
E5-base-v20.8543310.010712

The released BGE checkpoint obtains five-setting mean AUDC 0.877311 [0.862411, 0.890976] under trajectory-cluster bootstrap.

Result. Five-setting mean AUDC ranges from 0.821183 to 0.872984, with mean seed SD below 0.018 across the three encoders.

Question 7: Why is max-prefix the default when mean-prefix has a higher evaluation average?

Direct answer. Max-prefix is selected by both pre-specified validation-only criteria and gives the stronger worst-setting performance.

Experimental logic. Using the released checkpoint, we compare max-prefix and mean-prefix by overall validation AUDC and a deterministic five-fold fold-mean/worst score. The readout is selected on validation data and frozen before evaluation across all five settings.

ReadoutValidation AUDCValidation fold-mean/worst score*Evaluation meanWorst setting
Max-prefix0.9988750.9971130.8773110.723697
Mean-prefix0.9987010.9964790.8850930.671451
  • Validation trajectories are assigned to five deterministic SHA256 trajectory-ID folds. The score is 0.5mean⁡j(Ar,j)+0.5min⁡j(Ar,j)0.5\operatorname{mean}_j(A_{r,j})+0.5\min_j(A_{r,j}), where Ar,jA_{r,j} is fold-jj AUDC for readout rr.

Result. Both validation-only criteria select max-prefix. Mean-prefix has the higher evaluation average, while max-prefix gives the stronger worst-setting result.

Question 8: Why use TPR >= 0.8 and FPR <= 0.1, and how are deployment thresholds selected?

Direct answer. We use TPR >= 0.8 and FPR <= 0.1 as a common evaluation reference for comparing early separability across the tested methods and settings. The criterion represents a relatively high-recall, controlled-false-positive operating region, while deployment thresholds are calibrated separately using benign data.

Question 8a: What does the TPR >= 0.8, FPR <= 0.1 criterion measure?

Direct answer. It defines a fixed high-recall, low-FPR reference for comparing early separability across methods and settings.

Experimental logic. At each prefix length kk, EDS asks whether there exists a threshold ττ such that TPRk(τ)>=0.8TPR_k(τ) >= 0.8 and FPRk(τ)<=0.1FPR_k(τ) <= 0.1. EDS reports the earliest prefix satisfying this condition. The same criterion is applied to every method and setting.

Result. EDS summarizes when the score distributions first support the specified operating target; deployment uses separately calibrated fixed thresholds.

Question 8b: How are fixed operating thresholds selected?

Direct answer. We select each threshold from benign calibration scores at a target FPR of 1%, 5%, or 10%, without using harmful labels.

Experimental logic. ToolBench five-fold cross-fitting tests whether benign-only calibration reproduces each target FPR. Source-native ATBench calibration measures the corresponding LOHO detection rate.

Target FPRToolBench OOF FPR
1%0.0103
5%0.0530 [0.0462, 0.0615]
10%0.0974
Target FPRATBench FPRLOHO TPR
1%0.0184±0.00370.5953±0.0395
5%0.0632±0.00390.8506±0.0287
10%0.1009±0.00620.9200±0.0122

Result. Benign-only cross-fitting closely tracks all three target FPRs. Under source-native calibration, the 5% target gives benign FPR 0.0632 and LOHO TPR 0.8506.

Reviewer_k7MjOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The authors propose a lightweight prefix-level monitor for harmful agent trajectories. Specifically, thy uses frozen text embeddings, an atom adapter, harmful/benign prototypes, and max-prefix scoring. The methods can be used for early detection of harmful behavior from agent prefix output, reducing wall clock time by a large margin and not requiring any access to model weights. The methods unveil a promising future direction to control and steer ai agent behavior in a black-box manner, making a solid contribution to agentic interpretability and alignment.

Strengths and weaknesses

Strengths

Agentic behavior monitoring is an important deployment problem in real-world applications; this paper address this problem with novel system-level design focusing on early stage of agent trajectories. The prefix-based detection model can be easily trained, and remain lightweight, deterministic, and compatible with closed-source agents. Time complexity is another advantage of their method, and the authors evaluate several distribution shifts and reports runtime gains.

Weaknesses

The paper does not envolve comprehensive evaluation under multilingual setting; therefore, cross-lingual evaluation may confound harmfulness with language. The proposed black-box method is novel in the agent monitoring field; however, it can also be exploit to train an adversarial agent attacker that does not output prefix identified as harmful, but perform harmful behaviors at later stages. The authors need to discuss potential resolution or guadrails to this kind of adversarial training for monitor hacking.

Questions

Can you use same-language and source-matched benign examples? How do you ensure that this kind of pretrained monitor can generalize well to agents with various backbone models?

Limitations

Yes

Paper formatting concerns

NA

Final justification

The authors addressed weaknesses with clarifications and experiments. There is no remaining concerns

1 comment

We thank the reviewer for recognizing WURI’s practical value and for the constructive questions on multilingual evaluation, transfer, and monitor hacking. Below, we address these points in turn with targeted clarifications, controlled analyses, and additional experiments.

Question 1: Can the cross-lingual evaluation use same-language and source-controlled benign examples?

Direct answer. We can construct a same-language control. The paper already includes same-source evaluations on ATBench, where harmful and benign trajectories come from the same benchmark. A fully source-matched SDB-ZH comparison is unavailable because the released benchmark contains no source-native benign split. We therefore use translated Chinese benign trajectories and an additional score-independent structural matching control. The SDB-ZH separation remains high after replacing the English benign reference with a Chinese reference and matching major observable trajectory characteristics.

Experimental logic. Where native benign data are available, we evaluate harmful and benign trajectories from the same benchmark source. For SDB-ZH, we translate the same ToolBench benign trajectories into Chinese, then apply score-independent matching over length, step count, and format. A stratified manual audit includes all automatic-QC warnings.

Benign referenceData source (harmful / benign)AUDC [95% CI]
EnglishSDB-ZH / ToolBench0.944347 [0.933436, 0.955024]
ChineseSDB-ZH / translated ToolBench0.912025 [0.899463, 0.923707]
Chinese + matchedSDB-ZH / translated ToolBench0.905784 [0.891215, 0.919350]

Result. WURI retains AUDC 0.912025 after replacing the English benign reference with a Chinese reference and 0.905784 after additional score-independent structural matching. The controlled evaluations therefore preserve high SDB-ZH separation after removing the main language mismatch and aligning major observable trajectory features.

Question 2: Does WURI generalize across monitored agent generators and monitor encoders?

Direct answer. Yes. WURI shows consistent cross-generator performance on the two evaluated unseen agent generators, ChatGLM-4 and Doubao, under BGE, multilingual-E5, and E5-base-v2. These results support transfer across the tested generator–encoder combinations,

Experimental logic. SafeDialBench training uses ChatGPT-generated trajectories. We evaluate the two sufficiently sized unseen generator groups under the same translated-Chinese benign reference and five-seed protocol.

GeneratorHarmful nBGE-baseMultilingual-E5E5-base-v2
ChatGLM-41980.9292260.9526720.970320
Doubao1,0390.9260150.9531560.966741

All entries are five-seed mean AUDC.

Result. Across the two unseen generator groups and three monitor encoders, AUDC ranges from 0.926015 to 0.970320.

Question 3: Can an agent delay harmful behaviour or shape its outputs to evade the monitor?

The reviewer raises two related threats: harmful evidence may appear only at later stages, or the agent may alter how the same content is presented to the monitor. We test these mechanisms separately.

Question 3a: Can WURI detect risk evidence that appears only after the initial interaction?

Direct answer. Across the five evaluation settings, equal-setting macro AUC increases from 0.781393 at step 1 to 0.846403 at step 2 and 0.894393 at the final prefix. Four settings improve from the first to the final prefix.

Experimental logic. We compute AUC independently within each setting at step 1, step 2, and the final horizon, and average the five setting-level results with equal weight.

SettingAUC@1AUC@2Final AUC
In-Domain0.9866900.9975601.000000
SDB-EN0.9162170.9531240.985794
SDB-ZH0.4930380.9064750.944165
LOHO0.6743090.5954250.823077
AgentHarm0.8367130.7794300.718929
Equal-setting macro0.7813930.8464030.894393

Result. The cross-setting macro trend shows that later observations add useful evidence overall, while AgentHarm shows that the improvement is not uniform across distributions.

Question 3b: How does WURI respond when content is fragmented or surrounded by benign prefixes?

Direct answer. Lossless fragmentation causes a modest change in ranking, while max-prefix retains risk evidence after it appears.

Experimental logic. We split unchanged content at word boundaries and separately prepend three benign observations.

Stress testAgentHarm ΔAUDCLOHO ΔAUDCSDB-EN ΔAUDC
Lossless segmentation of up to two source steps-0.059316 [-0.065407, -0.053465]-0.043848 [-0.059829, -0.029702]-0.016083 [-0.021453, -0.011406]
Three benign prefixes, finite horizon-0.067676 [-0.076500, -0.058562]-0.147038 [-0.179290, -0.112484]-0.081010 [-0.082048, -0.079743]

Result. Lossless segmentation changes AUDC by 0.016–0.059. After the informative content is observed, three benign prefixes change the final max score by at most 4.77e-7.

Question 4: Can WURI be exploited to train an adversarial agent that evades the monitor?

Direct answer. This risk arises when an attacker can repeatedly observe WURI’s scores or decisions and optimize trajectories that remain harmful while receiving lower risk scores.

Guardrails. In deployment, WURI should remain outside the monitored agent and expose only the resulting intervention, rather than continuous scores, thresholds, atoms, or gradients. Repeated adaptive queries can be restricted and audited, while randomized encoder/checkpoint ensembles make optimization against a single fixed monitor less transferable. Newly identified evasive trajectories can also be incorporated through periodic adversarial evaluation and monitor updates.

Result. These controls reduce WURI’s value as an optimization oracle. High-impact actions can additionally remain gated by independent execution controls, so evading one monitor does not directly authorize a harmful tool action.

Comments on the paper

1 comment
Meta-review

The paper introduces WURI, a lightweight prefix-level monitor for early detection of harmful LLM-agent trajectories. The benefits of the method are that it requires no access to agent weights or hidden states and no LLM-as-judge calls at inference. The authors conduct several experiments across five generalization settings to validate their method.

While the reviewers agree that the problem is important and timely, there are several major concerns that still need to be addressed.

The top priorities for the rebuttal are:

  1. Evaluation issues, especially the cross-lingual setting (Reviewers mr8s and k7Mj): Several evaluation splits contain only harmful examples paired with a shared ToolBench-Benign reference set, which may introduce source, domain, formatting, or trajectory-style shortcuts. For example, in the SDB-ZH setting, since Chinese harmful trajectories are compared against an English benign reference pool, so strong performance may reflect language or source mismatch rather than true cross-lingual safety detection. Reviewer k7Mj similarly requests analysis on same-language, source-matched benign examples. It would be good if the authors could address this directly and convincingly.
  2. Whether WURI genuinely detects unfolding multi-step risk (all the reviewers): The method is framed as detecting risk that emerges across steps, but Reviewer mr8s insightfully notes the residual diagnostics suggest much separability may already be present at the first prefix, and that positive prefixes inherit the trajectory-level label, making the task partly trajectory-level label prediction. The other reviewers also independently raise the "slicing" scenario where each step might potentially look benign but the trajectory can be cumulatively harmful. The authors should clarify the threat model and provide evidence countering the argument that WURI does not detect when risk actually emerges but instead simply serves as a useful prefix-level ranking model.
  3. Missing baselines and design justification (Reviewer mr8s): Since the atom bank, sparse TopK selection, reconstruction anchoring, and orthogonality regularization are closely related to sparse autoencoders and dictionary learning, please clarify this connection and add an SAE-style baseline (e.g., an SAE on the same frozen BGE embeddings with the same prototype-margin readout) to isolate whether WURI’s gains come from its specific atom-adaptation design or from more generic sparse representation learning. Other issues to address include: (a) utilizing only a single encoder (BGE-base-en-v1.5), (b) the finding that mean-prefix scoring outperforms the default max-prefix rule on average AUDC, and (c) lack of statistical uncertainty for the main results, which is important given the small and imbalanced splits.

There are also other points that would help AC-reviewer discussion: (a) whether WURI can support timely active intervention and how thresholds should be set in this case, as per Reviewer gneW's concern, (b) the choice of TPR >= 0.8 and FPR <= 0.1 as per Reviewers mr8s's question, and (c) the "positive" terminology ambiguity mentioned by Reviewer gneW.

In sum, convincingly addressing these aforementioned concerns would be an important consideration as the AC and reviewers discuss the paper.

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.