Skip to content

TraceSafe-Bench: Evaluating LLM guardrails on multi-step tool-calling trajectoriesTraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectories

Paper Tracker· arXiv:2604.07223· Yen-Shan Chen, Sian-Yao Huang, Cheng-Lin Yang, Yun-Nung Chen·Indexed by this site · 2026-10-01· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

TRACE SAFE-BENCH evaluates multi-step trajectory guardrails, with an r of 0.79 against RAGTruth, and no observed association with jailbreak robustness.

Questions
When agents call tools over multiple steps, risks often appear in intermediate trajectories rather than the final output. Existing guardrails mostly review natural language surfaces, and existing agent benchmarks lack fixed trajectories and step-level labels, making it difficult to evaluate in isolation whether guardrails can intercept actions before they reach the environment.
Methods
From BFCL multi-step trajectories, retain seeds with 100% execution accuracy, use Check to determine editable positions, then use code-level Mutate to inject 12 categories of risk and truncate. Then have 13 general models and 7 specialized guardrails do binary and multi-class classification.
Experiments and results
At coarse granularity, Qwen3-14B achieves a balanced accuracy of 83.58%. The Pearson r with RAGTruth is 0.7914, and with StrongREJECT it is 0.0509. At approximately 32k tokens, gpt-oss-120b's benign accuracy drops to 0.0%.
Limitations and future work
The authors note that benign seeds have no formal guarantee across all scenarios, and static evaluation does not cover re-planning after intervention. The long-context and prompt pilots only report gpt-oss-120b.
Experimental setupgpt-oss-120b、Gemini3-Flash et al. · TRACE SAFE-BENCH、BFCL et al. · Balanced Average Accuracy、TPR et al.
Evaluated models
gpt-oss-120bGemini3-FlashGemini3.1-FlashGPT-5 miniGPT-5.4 miniQwen3-32BQwen3-14BQwen3-4B (Qwen/Qwen3-4B)Qwen3-1.7BQwen2.5-7BLlama-3BMinistral-14BToolACE-8BLlama3-8B (Llama-Guard-3-8B)Qwen3-0.6B (Qwen3Guard-Gen-0.6B)Qwen3-4B (Qwen3Guard-Gen-4B)Qwen3-8B (Qwen3Guard-Gen-8B)Granite3.3-8B (granite-guardian-3.3-8b)GCPAWS-Bedrock
Benchmarks
TRACE SAFE-BENCHBFCLLiveCodeBenchGPQAIFBenchStrongREJECTRAGTruth (Data2txt)
Metrics
Balanced Average AccuracyTPRTNRBalanced F1Pearson r
AI summaryThe researchers propose TraceSafe-Bench to evaluate the safety of LLM guardrails on intermediate trajectories of multi-step tool calls, covering 12 categories of risks including prompt injection, privacy leakage, model hallucination, and interface inconsistency, with over 1000 execution instances. The team evaluated 13 LLM-as-a-guard models and 7 specialized guardrails, reaching three conclusions: guardrail effectiveness depends more on structured data processing ability (e.g., JSON parsing), strongly correlated with structured-to-text benchmarks (ρ=0.79, p<0.01), but not with standard jailbreak robustness; trajectory detection accuracy does not monotonically increase with model scale, and general LLMs consistently outperform specialized safety guardrails; detection accuracy improves with trajectory length within the native context range, but declines in extreme long-context scenarios due to over-rejection. This work has been accepted by COLM 2026.

The researchers propose TraceSafe-Bench to evaluate the safety of LLM guardrails on intermediate trajectories of multi-step tool calls, covering 12 categories of risks including prompt injection, privacy leakage, model hallucination, and interface inconsistency, with over 1000 execution instances. The team evaluated 13 LLM-as-a-guard models and 7 specialized guardrails, reaching three conclusions: guardrail effectiveness depends more on structured data processing ability (e.g., JSON parsing), strongly correlated with structured-to-text benchmarks (ρ=0.79, p<0.01), but not with standard jailbreak robustness; trajectory detection accuracy does not monotonically increase with model scale, and general LLMs consistently outperform specialized safety guardrails; detection accuracy improves with trajectory length within the native context range, but declines in extreme long-context scenarios due to over-rejection. This work has been accepted by COLM 2026.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Guardrails' mid-course interception of multi-step tool trajectories lacks static evaluation with step-level labels.

    Existing guardrail evaluations mainly cover natural language inputs and final outputs, lacking static, step-level evaluation of mid-trajectory risks in multi-step tool-calling trajectories.

    • Scenario: The authors state that after agents autonomously call external tools, intermediate steps often bypass traditional safety filters; even when the final output is harmless, intermediate steps can still cause harm. MCPGuard (Xing et al., 2026) only performs single-step, post-call detection and cannot intercept calls before they reach the server.
    • Existing shortcomings: The authors state that AgentHarm, ToolEmu, AgentDojo, etc., evaluate end-to-end agent resilience in dynamic environments, without fixed trajectories and local annotations, so guardrails cannot be evaluated independently. Freely generating harmful trajectories is unnatural, and post-hoc human annotation is costly.
    • Approach: The authors propose TRACE SAFE-BENCH, using Benign-to-Harmful Editing to inject targeted risks into natural trajectories, preserving planning logic and providing step-level labels. The authors state this is the first static trajectory-level guardrail evaluation benchmark for multi-step agent workflows and the first comprehensive benchmark specifically evaluating mid-trajectory safety.
    • Evaluation target: Given a query q, tool set T, and existing history, the evaluation is whether guardrail G can intercept an already proposed unsafe action at any step ti, not whether the agent itself would refuse. Four domains, 12 categories: prompt injection, privacy leakage, hallucination, and interface inconsistency. The authors state it contains more than 1,000 multi-step trajectories; Table 4's total column and Table 5's item sum are both 1170.
  2. What related research exists?

    Related work is divided into tool calling, agent safety evaluation, and inference-time guardrails; the authors position this paper as trajectory-level static evaluation.

    Tool Calling

    • PAL and Toolformer (Gao et al., 2023; Schick et al., 2023): Augment language models with external computation.
    • ReAct (Yao et al., 2022): Guide tool execution with sequential reasoning traces.
    • Gorilla, ToolLLM (Patil et al., 2024; Qin et al., 2023): Large-scale API grounding and evaluation. The authors state that MCP pushes the ecosystem from one-shot calls toward stateful server-side coordination, and text-level security mechanisms are insufficient to cover execution-level vulnerabilities.

    Agent Safety Evaluation

    • AgentHarm, Agent Security Bench (Andriushchenko et al., 2025; Zhang et al., 2025): Measure how models handle explicitly harmful instructions.
    • ToolEmu, AgentDojo, CVE-bench (Ruan et al., 2024; Debenedetti et al., 2024; Zhu et al., 2025): Respectively use simulators to examine dangerous side effects of seemingly benign intent, resilience under indirect prompt injection, and ability to exploit web vulnerabilities.
    • MCPSecBench, MCPTox, ASSEBench (Yang et al., 2025; Wang et al., 2025; Luo et al., 2026): The first two target MCP; the latter evaluates automated evaluators with human annotations at the record level. The authors state that these frameworks perform dynamic end-to-end evaluation and lack the static step-level traces and deterministic annotations needed for standalone guardrails.

    Inference-Time Guardrails

    • Early review and dedicated guardrails: Markov et al. (2023) perform holistic content moderation; NeMo Guardrails (Rebedea et al., 2023), Llama Guard (Inan et al., 2023), Granite Guardian (Padhi et al., 2024), ShieldGemma (Zeng et al., 2024), Qwen guardrails (Team, 2025), and WildGuard (Han et al., 2024) are programmable frameworks or model classifiers.
    • GuardBench (Bassani & Sanchez, 2024) evaluates standard safety. The authors state that these systems mainly review the semantic surface of the initial prompt and final response.
    • MCP-Guard (Xing et al., 2026) handles tool-use guardrails but focuses on isolated tool calls and does not cover risks in multi-step trajectories.

    Baselines and Data

    • Objects under test: 13 general LLM-as-a-guard and 7 dedicated guardrails, not comparing ASR against a specific attack method. Seeds come from the BFCL multi-step split (Patil et al., 2024). Capability-related uses LiveCodeBench, GPQA, IFBench, StrongREJECT, and RAGTruth's Data2txt split.

    The authors position TRACE SAFE-BENCH as a standardized testbed for intercepting unsafe trajectories mid-execution, filling the gap between single-step auditing and long-horizon execution.

  3. How does the paper address this problem?

    Starting from BFCL benign trajectories, Check-and-Mutate injects 12 categories of risks, then guardrails are evaluated with four-tier classification.

    Overall, this is Benign-to-Harmful Editing: first take executable benign multi-step trajectories, then apply controlled mutations at applicable steps to obtain harmful variants with step-level labels, used to evaluate guardrails rather than agents.

    Problem Setting

    • A workflow is initiated by a query q and a toolset T. A trajectory τ consists of steps ti, each containing reasoning, an action ai (e.g., a tool call), and an observation oi.
    • A guardrail G, after seeing q, T, and t1:i−1, must determine whether it can intercept risk at any ti. The setting is that an unsafe action has already been proposed, and the question is whether the guardrail can stop it before it reaches the environment.

    Benign Seeds

    • Seeds come from the BFCL multi-step split: executable trajectories, tool schemas, user constraints, and prior execution context are all present. The authors state that this allows offline truncation and local parameter modification without re-running an interactive simulator.
    • Five models generate trajectories on BFCL, keeping only those with 100% execution accuracy: Gemini-3-flash, Qwen-32B (Qwen3-32B in Table 5), ToolACE-8B, Ministral-14B (Mistral-14B in the Table 5 header), and gpt-5-mini. The authors state that multiple models are used to increase diversity in reasoning and tool-use patterns.

    Check-and-Mutate

    • Check: Determines whether a mutation is applicable at step ti, filtering out structurally incompatible or unrealistic edits. Some Checks use gpt-oss-120b as an LLM-as-a-judge; criteria are in Appendix N.1.
    • Mutate: Inserting, replacing, or deleting JSON keys is performed by predefined code. Payload content may be generated by an LLM, but it is not a free rewrite of the entire trajectory. Appendix N.2 provides additional prompts only for mutations that require rewriting the query.
    • Two constraints (Appendix I, Algorithm 1): mutate only on the first call of each tool; after mutating at ti, truncate subsequent steps so the sample stops at the risky action.
    • 90 samples are drawn per category. The authors state that at n=90, the Wilson 95% CI half-width averages ±6.3%; at n=45, the Spearman ρ for category ranking is 0.97 (Appendix F).

    Twelve Risk Categories

    In the main text, these are divided into four domains by severity from high to low (Sec. 3.3; formalization in Appendix J Table 14). Below, only the edited objects are written, not the payload text.

    • Prompt injection: 1 modify tool descriptions; 2 place adversarial payloads in observations oi that return external data.
    • Privacy leakage: 3 user information, 4 credential-type parameters, 5 internal state in prior observations. Check only selects tools that do not functionally require such sensitive data, to remove the gray area of legitimate use.
    • Hallucination: 6 remove units or formats; 7 replace tool names with synonymous fake names; 8 delete required values from the query, causing fabricated values in actions; 9 insert unrequested parameters; 10 remove type hints.
    • Interface inconsistency: 11 inject deprecated tools into the toolset; 12 make descriptions contradict names or parameter semantics.
    • Benign: unperturbed original trajectories, serving as the negative class, not violating the above 12 categories.

    Evaluation Protocol

    Four tiers (Sec. 4.1), prompts in Appendix N.3; specialized guardrails follow their model card templates.

    1. Binary classification without schema: no risk definitions given, only safe/unsafe judgment.
    2. Binary classification with schema: the system prompt provides the classification; the authors state this is closer to deployment where prompts specify target risks.
    3. Coarse-grained multi-class: 5 classes, benign or one of the four domains.
    4. Fine-grained multi-class: 13 classes, benign or one of the 12 categories.

    The main metric is Balanced Average Accuracy, the arithmetic mean of TPR (unsafe accuracy) and TNR (benign accuracy); the authors state it is independent of class proportions and penalizes always-reject behavior. The correlation analysis in Sec. 4.3 uses Balanced F1 (macro-average F1 of the two classes) from binary classification with schema. Not all models enter every tier.

  4. What experiments did the paper conduct?

    Four-tier classification evaluates 13 general models and 7 specialized guardrails; at coarse granularity, Qwen3-14B achieves 83.58%.

    Experimental Setup

    • Models: 13 general LLM-as-a-guard models and 7 specialized guardrails (Sec. 4.1, list in Appendix C). The general side includes GPT-5 mini, GPT-5.4 mini, Gemini3-Flash, Gemini3.1-Flash, as well as gpt-oss-120b, Qwen3-1.7B/4B/14B/32B, Qwen2.5-7B, Llama-3B, Ministral-14B, and ToolACE-8B. The specialized side includes Llama-Guard-3-8B, Qwen3Guard-Gen-0.6B/4B/8B, Granite-Guardian-3.3-8B, GCP, and AWS-Bedrock. Table 1 notes that not every model is evaluated in all settings.
    • Data: TRACE SAFE-BENCH. Table 4 has 90 samples per risk category, totaling 1170; Table 5 sums to 1170 entries from the five generation models in the dataset. Seeds keep only trajectories with 100% execution accuracy on BFCL.
    • Metrics: TPR, TNR, Balanced Average Accuracy. Correlation analysis uses Balanced F1 from binary classification with schema.
    • Judgment: The evaluated guardrail itself outputs safe/unsafe or a category, not a separate reviewer model scoring. The main tables do not report repetitions; Appendix F.2 includes one independent rerun of GPT-5-mini.
    • Check review during construction: gpt-oss-120b. This model is also evaluated in Table 1. The authors report that held-out review found no scoring advantage from this role (Appendix E.3).
    • Human spot-check: 10 samples per category, audited in collaboration with a cybersecurity company (Appendix E.2). The paper does not report agreement numbers.

    Main Results

    The authors treat coarse-grained multi-classification as the comparison setting after controlling for degenerate decision boundaries. The table below lists only that setting; numbers come from the Unsafe, Benign, and Avg. columns of Table 1. Specialized guardrails do not appear in that subsection.

    Swipe horizontally to read the table

    ModelUnsafeBenignBalanced Accuracy
    Qwen3-14B83.20%83.95%83.58%
    Qwen3-4B79.86%82.72%81.29%
    Qwen3-32B81.48%71.60%76.54%
    Qwen3-1.7B62.40%85.19%73.80%
    Gemini3-Flash70.60%42.22%56.41%
    GPT-5 mini16.11%87.50%51.80%
    ToolACE-8B25.75%46.07%35.91%
    Llama-3B24.03%0.00%12.02%

    Omitted: Ministral-14B (59.25%), Gemini3.1-Flash (53.80%), GPT-5.4 mini (52.99%), gpt-oss-120b (47.05%), Qwen2.5-7B (42.81%). Llama-3B is the lowest row in the last column of that subsection.

    • The authors state coarse granularity is more balanced than binary classification. In binary classification without schema, Qwen3-1.7B has Unsafe at 98.96% and Benign at 0.00%; Llama3-8B has Unsafe at 19.21% and Benign at 97.53%, and Granite3.3-8B at 13.56% and 98.75% (Table 1). The authors state general models tend to judge unsafe and specialized guardrails tend to judge safe, hypothesizing these come from safety evaluation prompts and training distributions, respectively. In the same setting, GCP has Unsafe at 85.73% and Benign at 20.00%, which differs from the latter generalization.
    • The authors state that at fine granularity, explicit danger categories (1–5) are higher than operational anomalies (6–12). Qwen3-14B is 4.71% on category 12 (Table 1). The authors link high-accuracy categories to "malicious steps being closer to the end" and "structural traces in JSON," which is the authors' interpretation.
    • The authors state that within-family scale and coarse-grained accuracy are non-monotonic: Qwen3's 1.7B/4B/14B/32B are 73.80%, 81.29%, 83.58%, 76.54%; the two GPTs are 52.99% and 51.80%, and the two Geminis are 56.41% and 53.80%. The authors report this as a negative result and state that observational comparisons of public checkpoints cannot attribute effects to any single one of architecture, pretraining composition, or post-training.

    Binary Classification Bias and Prompt Pilot

    • Tested binary classification with and without schema, as well as few-shot, CoT, and their combination on gpt-oss-120b (Appendix L; 30 samples per category, 13 categories).
    • Table 16: baseline TPR/TNR/balanced accuracy/skew are 67.5%, 56.7%, 62.1%, 10.8 pp; few-shot are 60.0%, 56.7%, 58.3%, 3.3 pp; CoT are 66.9%, 56.7%, 61.8%, 10.3 pp; few-shot+CoT are 55.8%, 63.3%, 59.6%, 7.5 pp. The four tiers fall between 58.3% and 62.1%. When few-shot reduces skew, Benign remains 56.7% and Unsafe decreases.
    • The authors state that simple safe/unsafe prompts are currently unsuitable for evaluating structured tool trajectories. The pilot covers only one model. In binary classification with schema, gpt-oss-120b is 62.80% and Qwen2.5-7B is 62.27% (Table 1). Appendix L states that all tested binary variants are below Qwen3-14B's coarse-grained 83.58%.

    Structural Ability Correlation

    • Balanced F1 from binary classification with schema is correlated with five abilities using Pearson correlation (Figure 3; Appendix F Table 10). LiveCodeBench, GPQA, and IFBench come from public leaderboards; StrongREJECT and RAGTruth Data2txt are evaluated by the authors. StrongREJECT is plotted as 1−ASR. Scatter positions in the figure cannot be read from the text; below only the figure caption and Table 10 coefficients are used.
    • RAGTruth Data2txt: Pearson r=0.7914 (n=11, p=0.0037, bootstrap 95% CI [0.500, 0.938]), Spearman ρ=0.7364 (p=0.0098). LiveCodeBench r=0.6271 (n=10, p=0.0523); GPQA r=0.4499 (n=13, p=0.1230); IFBench r=0.2632 (n=12, p=0.4084); StrongREJECT r=0.0509 (n=13, p=0.8689, CI [−0.421, 0.467]). After removing models with any category accuracy >95% or <5%, RAGTruth's r=0.7907 (p=0.0065, Table 11).
    • The authors believe the main bottleneck in trajectory-level safety is structural data ability, not safety alignment. The authors also state that the large p-value for StrongREJECT at n=13 is only insufficient evidence, not zero effect; the bootstrap interval is wide and partially overlaps with RAGTruth, so this comparison is a directional finding, not a precisely estimated gap.

    Trajectory Length and Long Context

    • Figure 4 shows average accuracy by character length and step count; the text does not give per-point values from the figure. Appendix G Table 12 bins "sample × model" observations from 13 general models by step count. Appendix H performs needle-in-a-haystack only on gpt-oss-120b at coarse granularity: harmful trajectories in the middle, benign trajectories as filler, from approximately 6k to approximately 110k tokens.
    • Table 12: binary w/ schema goes from 67.9% at 2–4 steps (n=3792, CI [66.4, 69.4]) to 83.7% at 18+ steps (n=4419); the authors state a 15.8 percentage point increase. Binary w/o schema goes from 73.2% to 86.4%, which the authors state is +13.2 percentage points. Coarse granularity goes from 52.3% to 56.2%, which the authors state is +3.9 percentage points. Within the same category (binary w/ schema, 2–4→18+): MissingArgValue 56%→82%, AmbiguousArgNaming 65%→81%, HallucinatedTool 67%→84%, FnDescriptionMismatch 67%→81%, PromptInjectionIn 71%→85%.
    • Table 13: at approximately 6k, harmful/benign/balanced are 47.2%/42.9%/45.0% (n=36/35); at 16k, 47.2%/6.1%/26.6% (n=36/33); at 32k, 48.1%/0.0%/24.0% (n=27/26); at 64k with thin samples, 33.3%/0.0%/16.7% (n=12/13, harmful accuracy 95% CI [13.8, 60.9]); at 110k, 47.6%/0.0%/23.8% (n=21/23). The authors state that 42.9% is consistent with the benign accuracy in Table 1; in Table 1 at coarse granularity, gpt-oss-120b's Benign is 41.11%. The authors hypothesize that in longer trajectories, the proportion of dynamic behavior relative to static schema increases, making anomalies easier to separate; and state that the decline at extreme lengths comes from benign over-rejection, not missing malicious steps. The authors also note that long-trajectory bins over-represent categories that are structurally easier to detect, and that composition effects and within-category effects coexist.

    Other Ablations and Analyses

    • Figure 5 (fine-grained summary): failures mainly fall into benign, not mixing among different malicious categories. HallucinatedArgVal and VersionConflict are judged as benign at 67.6% and 55.9%.
    • Appendix E.3: Phi-4 and gpt-oss-120b agree on Check suitable judgments at 103/155=66.5% (Wilson 95% CI [58.7, 73.4]). After removing gpt-oss-120b, the Pearson r with RAGTruth goes from 0.791 to 0.789. Table 7: in binary classification, this model ranks last or second-to-last among the remaining 14 general models on the tested categories.
    • Appendix E.4: coarse-grained same-family minus cross-family mean is −0.35 pp, fine-grained is −1.14 pp. The authors state no stable same-family generation advantage is observed.
    • Appendix F.2: 97% of evaluation cells have n≥80; at n=90, the Wilson half-width averages ±6.3%, with a maximum of ±10.1% at 50% accuracy. GPT-5-mini rerun: fine-grained mean |Δ|=0.37%, r=0.9998; coarse-grained mean |Δ|=0.48%, r=0.9994.
    • The with-schema subsection of Table 1 has two rows for ToolACE-8B, with last-column values 46.83% and 46.60%; the paper does not explain the difference. Appendix M gives examples where gpt-5-mini judges mutated trajectories as safe, corresponding to MissingArgValue and ConfusableFnNames.
    • The paper does not report the number of queries in the main evaluation, nor repetition variance beyond the rerun and pilot.
  5. What are some points that can be further explored?

    The authors note that benign seeds have no formal guarantee across all scenarios, and static evaluation does not cover re-planning after intervention.

    Limitations and Future Directions Noted by the Authors

    • Mutated trajectories can be deemed harmful or malformed through audit and structural constraints, but the authors state there is no formal guarantee that original benign seeds are safe in all deployment contexts (Appendix A).
    • The benchmark is static. The authors state that in real workflows, guardrail interventions may change subsequent planning; current offline evaluation only looks at the pre-call state and does not cover long-term multi-step interaction (Appendix A).
    • The authors state that the tool-calling attack surface is still evolving, and new vectors (the text gives cross-environment prompt injection as an example) may require continuous updates to the taxonomy (Appendix A).
    • The authors state that synthetic mutations are clean single-point edits, while real failures are messier; this benchmark tests whether known surgical insertions of anomalies can be found, which may overestimate or underestimate real performance. Comparison against production or red-team logs is listed by the authors as future work (Appendix A).
    • The prompt pilot covers only gpt-oss-120b. The authors state that scanning a broader skew spectrum remains future work (Appendix L).
    • The authors state that MCP-Guard was not directly evaluated: the full pipeline is not reproducible because the E5 detector checkpoint and training settings are not public; evaluating only the reconstructable rule stage would misrepresent the system (Appendix A).

    Experimental Coverage

    • Evaluated are 13 general LLM-as-a-guard models and 7 specialized guardrails. Table 1 is divided into four tiers and notes that not every model enters every tier (Sec. 4.1). The coarse-grained subsection does not list specialized guardrails.
    • There are 12 risk categories, 90 samples each; the total column of Table 4 and the sum of entries in Table 5 are 1170. Seeds are generated by five models on BFCL multi-step tasks and filtered to 100% execution accuracy (Sec. 3.1).
    • The number of models for ability correlations is n=10–13 (Appendix F Table 10). Long-context needle and prompt pilots both report only gpt-oss-120b (Appendix H, L).
    • Human spot-check is 10 samples per category (Appendix E.2); the paper does not report agreement for that spot-check. The main tables do not report repetitions; Appendix F.2 reports one independent rerun of GPT-5-mini.
    • The LLM reviewer for Check is gpt-oss-120b. The held-out reviewer is Phi-4, with 155 pairs across 8 risk categories (Appendix E.3).
  6. Summarize the main content of the paper

    TRACE SAFE-BENCH evaluates trajectory guardrails with controlled mutations; structural ability is more correlated than scale and jailbreak robustness.

    TRACE SAFE-BENCH evaluates guardrails using fixed multi-step tool trajectories, asking whether unsafe actions can be stopped before reaching the environment, not whether the agent itself would refuse.

    • Problem: The authors state that intermediate trajectories bypass guardrails that only review inputs and final outputs; existing agent safety benchmarks lack fixed trajectories and step-level labels, so guardrails cannot be evaluated in isolation.
    • Method: Five models generate trajectories on BFCL multi-step tasks, keeping only seeds with 100% execution accuracy. Check determines editable positions, code-level Mutate injects 12 categories of risks and truncates at that step. 90 samples per category. Evaluation includes binary classification with and without schema, as well as 5-class and 13-class multi-classification. The main metric is the arithmetic mean of TPR and TNR.
    • Main results: At coarse granularity, Qwen3-14B achieves 83.58% (Unsafe 83.20%, Benign 83.95%, Table 1). In binary classification without schema, Qwen3-1.7B has Unsafe at 98.96% and Benign at 0.00%. Coarse-grained accuracy in the Qwen3 family does not monotonically increase with parameter count, which the authors report as a negative result.
    • Correlation and length: The F1 from binary classification with schema has a Pearson r of 0.7914 with RAGTruth Data2txt (n=11, p=0.0037), and an r of 0.0509 with StrongREJECT (n=13, p=0.8689). As steps increase, the authors report continued improvement within categories; gpt-oss-120b's benign accuracy drops to 0.0% at approximately 32k tokens, while harmful accuracy remains 48.1% (Table 13).
    • Authors' conclusions: The authors believe structural data ability, not semantic safety alignment, is the main bottleneck in trajectory detection; finer risk classification helps localize anomalies better than binary classification. The benefit of length reverses beyond native trajectory length due to benign over-rejection.

Related papers

Read originalarxiv.org