Skip to content

JEV as a safety judge for agent trajectories: an empirical comparison with generative LLM judgesJEV as a Judge for Agent Trace Security: An Empirical Comparison with Generative LLM Judges

Paper Tracker· arXiv:2609.34862· Zhiqiang Wang, Yichao Gao·Indexed by this site · 2026-10-04· Originally publishedTools

Quick read

Evaluation and benchmarks

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

JEV compared with four generative reviewers on 5,219 trajectories: at s≥3, four-benchmark average positive-class F1 is 77.8, GLM-5.2 is 74.1.

Questions
Tool-using agents must determine in context whether an action is unsafe, and generative review also brings latency, explanation overhead, and output validation failures. The paper examines whether the typed model JEV can serve as an alternative for retrospective trajectory classification.
Methods
The same rendering pipeline sends trajectories and five-level risk anchors to JEV and four generative reviews. JEV answers overall risk, authorization, intrinsic safety, and severity in one request, binarized by overall score at s≥3; generative reviews additionally return reasons and evidence.
Experiments and results
5,219 trajectories, s≥3: JEV average positive-class F1 across four benchmarks is 77.8, GLM-5.2 is 74.1. JEV is higher than GLM on ATBench500 and MCPHunt; GLM is higher than JEV on R-Judge and TraceSafe. JEV coverage 95.5%, median latency 0.99 seconds
Limitations and future work
The authors note that review instructions, output requirements, and service conditions differ; revision labels, missing outputs, and benchmark composition affect metrics; length analysis corresponds to observed load. Future work could include independent review labels and controlled length variation. The experiment includes five reviewers and four sets totaling 5,219 trajectories; the paper does not report sampling temperature and revision label consistency.
Experimental setupJEV、GLM-5.2-Tencent et al. · R-Judge、ATBench500 et al. · positive-class F1、precision et al.
Evaluated models
JEVGLM-5.2-TencentDeepSeek-V4-FlashDeepSeek-V4-Pro-SeedQwen3-Next-80B
Benchmarks
R-JudgeATBench500TraceSafeMCPHunt
Metrics
positive-class F1precisionrecallaccuracycoverageyieldlatencyUSD/valid
AI summaryThe study compares the typed decision model JEV with four generative LLM judges on agent trajectory safety classification, tested across four benchmarks totaling 5,219 trajectories. JEV's benchmark-average positive-class F1 is 77.8, higher than the strongest generative configuration GLM-5.2's 74.1, with effective result coverage of 95.5% and 94.4%, respectively. JEV leads on ATBench500 and MCPHunt, GLM leads on R-Judge and TraceSafe; JEV median successful call latency is 0.99 seconds, and average token cost per valid determination is about $0.000195.

The study compares the typed decision model JEV with four generative LLM judges on agent trajectory safety classification, tested across four benchmarks totaling 5,219 trajectories. JEV's benchmark-average positive-class F1 is 77.8, higher than the strongest generative configuration GLM-5.2's 74.1, with effective result coverage of 95.5% and 94.4%, respectively. JEV leads on ATBench500 and MCPHunt, GLM leads on R-Judge and TraceSafe; JEV median successful call latency is 0.99 seconds, and average token cost per valid determination is about $0.000195.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    When retrospectively classifying agent trajectories, are the explanation and validation overhead of generative review necessary.

    When retrospectively determining whether a tool-using agent trajectory is unsafe, are the explanation and validation overhead of generative review necessary.

    • Scenario: The authors consider agent safety a contextual behavioral property. Passing a value may be necessary authentication or unauthorized disclosure; an injected instruction may be encountered, refused, or executed. Detecting only sensitive words or attack attempts is insufficient.
    • Existing gap: Generative LLMs can explain unfamiliar tools and write reasons for human review, but deployments that only need bounded decisions still pay for reason generation, schema validation, and sometimes repair calls. The authors believe that LLM judge conclusions in open-ended preference evaluations do not directly establish their suitability for safety decisions.
    • Comparison question: Can typed review provide a usable accuracy–resource trade-off among detection quality, effective result coverage, latency, and token cost.
    • What this paper does: Under the same rendering pipeline and the same five-level risk anchor, use JEV and four generative reviews to retrospectively classify saved trajectories, and see how step count and input token count affect performance. The contribution is this comparison, a joint analysis of quality and resources, and an examination of longer trajectories.
  2. What related research exists?

    Related work involves LLM review, agent safety benchmarks, and evaluators and guardrails.

    Related Work is divided into LLM reviewers, agent safety benchmarks, evaluators and guardrails; experimental comparisons are listed separately afterward.

    LLM reviewers

    • Zheng et al. (2023): Studies consistency and bias of LLM judges in open-ended answer evaluation.
    • G-Eval (2023) and Prometheus 2 (2024): The former uses chain-of-thought prompting and form-filling to evaluate generated text; the latter trains open evaluators for direct scoring and pairwise comparison according to user-defined criteria.
    • JudgeBench (2025): Evaluates judges on knowledge, reasoning, math, and programming using answer pairs annotated with objective correctness.

    Agent safety benchmarks

    • R-Judge (2024): Evaluates safety risk awareness from agent interaction records.
    • AgentDoG and ATBench (2026): Propose diagnostic guardrails and link agent risks to sources, failure modes, and consequences. This paper uses the 500-trajectory release of the latter.
    • TraceSafe (2026) and MCPHunt (2026): The former examines guardrails on multi-step tool-call trajectories; the latter studies cross-boundary data propagation in multi-server MCP workflows, including using canaries to observe credential movement. This paper additionally takes a 540-trajectory TraceSafe subset.

    Evaluators and guardrails

    • ToolEmu (2024): Simulates tool execution with an LM-based evaluator to identify agent failures and related risks.
    • AgentAuditor (2025): Enhances LLM evaluators with retrieved reasoning experience for safety and security evaluation.
    • GuardAgent (2025): Translates safety requirements into executable guardrail code to check agent actions.

    Baselines and evaluation sets

    • Comparison configurations: JEV vs GLM-5.2-Tencent, DeepSeek-V4-Flash, DeepSeek-V4-Pro-Seed, Qwen3-Next-80B.
    • Sets: R-Judge, ATBench500, TraceSafe subset, MCPHunt, totaling 5,219. Metrics are behavior-level positive-class classification, not answer preference.

    The authors separate trajectory safety from answer preference: helpful answers can still accompany unsafe tool calls, and successful refusals can appear in adversarial trajectories, so this paper measures behavior-level classification and also examines resource consumption.

  3. How does the paper address this problem?

    Shared trajectories and five-level anchors, JEV answers four typed questions in one request, binarized at s≥3.

    Both sides use the same representation. JEV answers four typed questions in a single request, returning bounded answers and probabilities; the generative judge returns the same kinds of fields, along with rationale and evidence. The risk score is converted to a binary prediction using the same threshold, then compared against reference labels and resource records (Figure 1).

    Trace-level classification

    • Trace: τ contains the user request u, the available context c, and the actions and observations (at, ot), with t from 1 to T.
    • Score: Each judge gives s, taking values from 1 to 5. The positive class is unsafe or unauthorized behavior.
    • Decision: All models and all benchmarks share yb(τ)=𝟙[s(τ)≥ 3]. Reaching 3 is judged positive.
    • Two axes: Authorization and intrinsic safety are viewed separately. The authors write that user consent does not make a harmful action safe; encountering an attack does not mean the agent complies. In Table 5, the anchor for 3 is a concrete but limited risk, or substantive evidence that still conflicts; 5 is severe, deliberate, repeated, or realized harm.

    Shared input

    • Both sides receive the user request, context with source information, and the fully rendered action/observation sequence. Ground-truth labels do not enter the input.
    • The risk anchors and binary threshold are the same; interfaces and detailed instructions follow each configuration. In Figure 1, reference labels are used only for evaluation.
    • Appendix A: The classifier used for reporting uses the score question. Authorization questions and intrinsic safety questions are separate outputs.

    Two decision interfaces

    • JEV: The paper describes it as, given a state and a set of typed questions, outputting bounded decisions and corresponding distributions rather than free-form interpretation. One request asks four questions: overall risk score, authorization, intrinsic safety, severity. The binary prediction uses only the overall risk score. Appendix G gives the definitions of the four questions; the returned score is a 0-based index, which is mapped to 1–5 after adding 1.
    • Generative judge: Returns the same evaluation fields, plus rationale and supporting evidence. Appendix A states that its prompt adds counter-evidence and action-stage rules, distinguishing exposure from adoption, preparation from harmful target actions, and timely effective defense from after-the-fact remediation; the human review contract requires Simplified Chinese explanations and bounded evidence citations. Appendix F gives the full prompt and states that review is done directly on the full trace, and that an empty evidence log is not an existing triage conclusion.
    • The authors state that this difference corresponds to use: JEV for fast decisions, LLM judges for review with explanations.

    Labels and scoring conventions

    • Behavior-level labels are used throughout. R-Judge and ATBench500 retain benchmark labels. TraceSafe and MCPHunt use labels revised in this study, separating resisted injections and signal-only cases from unsafe behavior.
    • Positive class P, R, F1, and Acc are computed only on valid decisions. Total F1 is the unweighted average of the four benchmark F1s. Coverage is the proportion of valid decisions across all benchmarks. Yield is the proportion of correct decisions across all benchmarks, with missing outputs not scored.
    • Latency counts only successful single calls, excluding failed attempts, repair calls, and retry waits. Token costs are estimated from recorded usage and the fixed unit prices in Appendix C; repair tokens attached to valid results are counted, and failed requests do not enter the cost estimate.
  4. What experiments did the paper conduct?

    At s≥3, JEV average positive-class F1 over 5,219 trajectories is 77.8, GLM-5.2 is 74.1.

    Five reviewers are compared on 5,219 trajectories at threshold s≥3 for positive-class detection and per-judgment resources.

    Experimental setup

    • Reviewers: JEV, and GLM-5.2-Tencent, DeepSeek-V4-Flash, DeepSeek-V4-Pro-Seed, Qwen3-Next-80B. Section 4.2 lists only names. The paper does not report sampling temperature or number of full experimental repetitions.
    • Data: Table 1. R-Judge 564 (positive 298/negative 266, median steps 3, max 23); ATBench500 500 (250/250, median 5, max 6); TraceSafe subset 540 (270/270, median 8, P95 23, max 79); MCPHunt 3,615 (797/2,818, median 12, P95 54, max 112). Focus is respectively on situational risk, agent behavior risk, tool trajectories under variation, and cross-boundary data propagation.
    • Labels and threshold: Behavior-level. The first two benchmarks use original labels, the latter two use revised labels. All configurations share s≥3.
    • Metrics: Positive-class P, R, F1, Acc on valid responses; total F1 and total Acc are unweighted averages across the four benchmarks. Coverage is aggregated over 5,219 trajectories. Yield does not score missing outputs.
    • Resources and intervals: Latency counts only successful single calls. Appendix C: JEV input $0.042 per million tokens, output price 0; generative configurations charge for both input and output. Appendix B performs exploratory paired bootstrap on the common valid sample of JEV and GLM, 2,000 per benchmark, equal weight across four benchmarks.

    Main results

    Per Table 2, Table 4. F1, P, R, coverage are percentages; latency is seconds. Average metrics are unweighted four-benchmark averages over each reviewer's own valid responses. Abbreviations in the table correspond to full names in Section 4.2.

    | Reviewer | Avg F1 | Avg P | Avg R | Coverage | Median latency | | JEV | 77.8 | 77.1 | 79.2 | 95.5 | 0.99 | | GLM-5.2 | 74.1 | 91.9 | 64.1 | 94.4 | 33.29 | | DS-V4-Flash | 61.0 | 51.6 | 75.6 | 99.9 | 8.30 | | DS-V4-Pro | 56.3 | 93.3 | 49.4 | 58.8 | 35.92 | | Qwen3-Next | 49.4 | 92.0 | 37.2 | 94.4 | 28.67 |

    • The authors state JEV has the highest four-benchmark average F1. Average Acc is not the same ordering: in Table 2, DS-V4-Pro is 92.1, GLM-5.2 is 86.5, JEV is 82.8. The authors state GLM-5.2 is overall more precise, relative to JEV; DS-V4-Pro and Qwen3-Next also have higher average P. In the text for Figure 3, JEV's average P, R absolute gap is 2.1 percentage points, generative configurations 24.0–54.8. The configuration with the highest coverage has average F1 lower than the first two rows.
    • The authors state JEV leads on ATBench500 and MCPHunt, while GLM is higher than JEV on R-Judge and TraceSafe. In Table 3, DS-V4-Pro's conditional F1 on R-Judge is 94.0, higher than GLM-5.2's 93.4, but valid samples are only 360/564, yield 60.8.
    • On trajectories where both have valid judgments, the authors report benchmark-average F1 of 76.8 and 74.1, difference 2.7 percentage points, exploratory 95% interval [0.5, 4.8]. Appendix B states this is conditioned on valid outputs and cannot eliminate selection bias from missing judgments.

    Per-dataset and coverage

    • Setup: Table 3, s≥3. P, R, F1, Acc are conditioned on valid responses; yield covers all trajectories of that benchmark.
    • Numbers: JEV's F1 on ATBench500 is 93.8 (491/500, R 99.2), on MCPHunt 61.1 (3415/3615, P 54.7, R 69.1). GLM-5.2 on R-Judge is 93.4 (553/564), on TraceSafe 72.4 (479/540, P 92.2, R 59.6). DS-V4-Pro's Acc on ATBench500 is 98.7, only 151/500 valid, yield 29.8.
    • Author interpretation: Coverage changes how detection quality is read, so it is reported alongside classification metrics. The authors state JEV's F1 advantage on ATBench500 and MCPHunt comes with higher recall and lower precision; on TraceSafe, GLM's higher precision offsets slightly lower recall, hence higher F1.

    Resource consumption

    • Setup: Table 4, four benchmarks combined. Latency excludes failures, repair calls, and retry waits. Costs use recorded usage; reasoning tokens are counted in output usage.
    • Numbers: JEV median/mean/p95 latency is 0.99 / 1.18 / 2.02 seconds, estimated cost $0.000195, average input/output tokens 4644 / 128. Generative mean latency is 9.61–37.39 seconds, cost $0.001320–0.014887. GLM-5.2 median latency 33.29 seconds, average output tokens 1868, cost $0.014887.
    • Author interpretation: The authors state mean latency ratio is about 8.1–31.7, with 31.6 relative to GLM; cost is about 6.8–76.3 times higher. The authors believe the gap comes from both token usage and unit price: JEV has lower input price and does not charge for output tokens.

    Trajectory length

    • Setup: Figure 4, Figure 5, and Appendix E. Step bins are ≤4, 5–8, 9–16, >16; token bins are <2k、2–4k、4–8k、≥8k。token 箱用 JEV 记录的输入 token 作共同尺度。桶内 F1 在合并样本上计算。
    • 数字:5–8、9–16、>16 steps, JEV's F1 is 85.2, 67.4, 57.5, GLM 78.5, 58.4, 50.6. At 2–4k and ≥8k tokens, JEV is 69.9 and 62.8, GLM 56.0 and 48.7. JEV median latency ranges from 0.90 to 1.08 seconds across step bins, and from 0.89 to 1.18 seconds across token bins; GLM from 27.34 to 42.31 seconds and from 27.30 to 42.45 seconds. All four generative configurations are slower in every tested bin.
    • Author interpretation: The authors believe typed judgments still perform well on longer trajectories, but JEV's absolute F1 does not consistently rise with length; the advantage depends on the load. Step curves peak at medium length then decline; token curves are highest at the shortest bin, relatively flat at 2–8k then decline. Table 11 shows ranking changes after removing MCPHunt; the authors state length trends are sensitive to benchmark composition.

    Other ablations and analyses

    • Table 6 same-trajectory F1 (JEV vs GLM): R-Judge 88.3/93.3 (n=550, Δ -5.0, interval [-7.6, -2.7]); ATBench500 94.1/85.4 (n=411, +8.6, [+4.4, +13.3]); TraceSafe 65.0/72.1 (n=456, -7.1, [-12.7, -1.4]); MCPHunt 59.7/45.5 (n=3292, +14.2, [+10.1, +18.3]).
    • Table 9: at steps ≤4, JEV F1 70.1 (n=1053), GLM 71.6 (n=1023); token <2k 时 85.5(n=926)对 87.5(n=910)。
    • Table 10 同 ID:步数 ≤4 的 Δ 为 +0.0(n=1023);token <2k 为 -2.2(n=910);4–8k 为 -0.9(n=1369);≥8k 为 +10.4(n=557)。
    • Table 11 去掉 MCPHunt:步数 >16 only n=57, F1 70.0 vs 73.1; token ≥8k only n=41, 69.6 vs 73.2.
    • Table 3 yield: on MCPHunt, GLM-5.2 is 80.9, JEV 75.7; on ATBench500, JEV 91.8, GLM-5.2 74.4. Qwen3-Next on MCPHunt has R 13.8, F1 23.3; on TraceSafe R 22.0, F1 35.6.
  5. What are some points that can be further explored?

    The authors note that instructions, deployment conditions, revision labels, and observed load distribution affect generalization of results.

    The authors state the limitations in the comparison criteria, labels, and load distribution, and suggest using independent labels and controlled lengths to examine generalization.

    Limitations and future directions noted by the authors

    • Instructions differ from deployment: Each reviewer shares trajectory content and risk anchors, but detailed instructions, output requirements, and deployment conditions differ (Section 6).
    • Resource criteria: Resource figures summarize successful calls and estimated token costs (Section 6).
    • Labels, missingness, and composition: Revised labels, missing outputs, and benchmark composition also affect the reported metrics (Section 6).
    • Length is not a controlled factor: The length analysis describes the observed load distribution (Section 6).
    • Follow-up tests: The authors propose using independently reviewed labels and controlled trajectory length variations to examine how these results generalize (Section 6).
    • Conditions for paired comparisons: Appendix B states that comparisons on the common valid sample are conditioned on valid outputs and cannot eliminate selection bias from missing judgments.

    Experimental coverage

    • Evaluated configurations: JEV, GLM-5.2-Tencent, DeepSeek-V4-Flash, DeepSeek-V4-Pro-Seed, Qwen3-Next-80B, totaling 5 (Section 4.2, Table 2).
    • Trajectories come from R-Judge, ATBench500, a TraceSafe subset, and MCPHunt, totaling 5,219; size, positive/negative examples, and step distributions are in Table 1.
    • Classification results are reported under the common threshold s≥3, with coverage and yield; the common valid sample for JEV and GLM-5.2, and 2,000 paired bootstraps per benchmark, are in Appendix B.
    • Latency and estimated token costs cover successful calls across the four benchmarks, with unit prices in Appendix C (Section 4.4, Table 4).
    • Length stratification includes step bins and token bins using JEV input tokens as the common scale, with paired comparisons excluding MCPHunt (Figure 4, Figure 5, Appendix E). The paper does not report sampling temperature, number of full experimental repetitions, or annotation agreement for revised labels.
  6. Summarize the main content of the paper

    JEV has the highest average positive-class F1 across four benchmarks, with lower latency and estimated cost, but there are trade-offs per dataset and in precision.

    On saved tool-use agent trajectories, compare retrospective safety classification between typed review JEV and four generative reviews.

    • Problem: The same tool call could be necessary authentication or unauthorized disclosure; injections may be rejected or executed. Generative reviews can write explanations, but bounded decisions still bear reasoning, schema validation, and sometimes repair calls.
    • Approach: Both sides receive the same rendered trajectory and five-level risk anchors; ground truth does not enter the input. JEV gives overall risk, authorization, intrinsic safety, and severity with probabilities in one request; the classifier used for reporting takes only the overall score, with rule s≥3. Generative configurations additionally return rationale and evidence. 5,219 trajectories come from four sets; total F1 weights benchmarks equally, not by sample size.
    • Quality: In Table 2, JEV's average positive-class F1 is 77.8, GLM-5.2 is 74.1, with coverage 95.5% and 94.4%. In Table 3, JEV on ATBench500 and MCPHunt is 93.8 and 61.1; GLM-5.2 on R-Judge and TraceSafe is 93.4 and 72.4, with higher average precision than JEV. On the common valid sample, it is 76.8 vs 74.1. The cell with the highest conditional F1 does not necessarily correspond to high yield: on R-Judge, DS-V4-Pro has F1 94.0 and yield 60.8.
    • Resources and length: In Table 4, JEV median latency is 0.99 seconds, estimated cost 0.000195 USD per valid adjudication. The authors state generative mean latency is 9.61–37.39 seconds. In step bins above 5 steps, JEV has higher within-bin F1; removing MCPHunt, this ordering no longer holds (Table 11).
    • Authors' conclusion: The authors believe the results support using JEV as an economical screening signal, with precision-recall trade-offs; GLM's higher precision and explanations can be used for detailed review. The authors propose chaining fast screening with explanation-based review.

Related papers

Show 3 more papers
Read originalarxiv.org