Skip to content

Janus: A Look-Ahead Potential Risk Prediction Framework for Long-Horizon Agent SafetyJANUS: Foreseeing Latent Risk for Long-Horizon Agent Safety

Paper Tracker· arXiv:2607.19913· Yuan Xiong, Linji Hao, Shizhu He, Ken Deng, Yequan Wang, Lijun Li·Indexed by this site · 2026-10-04· Originally publishedDefenses

Quick read

Defenses

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

Janus trains the anticipatory guard Vanguard with multi-agent simulation and CoAA-RL, reducing the average ASR to 0.071 across four agent safety benchmarks while improving benign task completion rate.

Threat modelA runtime guard intervenes before tool calls are executed. Risks can come from user instructions, environment artifacts (indirect prompt injection, etc.), or the agent itself; the guard sees only the trajectory prefix and must intercept before harmful actions are executed. Evaluation includes adversarial prompt injection and adaptive long-horizon attacks.

Questions
Harm from tool-based agents often appears only after multiple steps, and post-hoc review is too late to prevent file deletion, data leakage, or environment damage. Long-horizon safety requires predicting delayed risks from the trajectory prefix before harmful actions are executed.
Methods
Janus uses multi-agent simulation to synthesize trajectories from user, environment, and agent sources, then uses CoAA-RL to jointly train anticipation and adjudication: the anticipation summary should both be close to the actual future and improve downstream safety judgments. At inference, Vanguard first predicts the future summary, then gives a safety label and intercepts before execution.
Experiments and results
In Table 1, Vanguard has the lowest ASR on all four benchmarks, with an average ASR of 0.071 and an average protection rate 15.9 percentage points higher than the six guard baselines; AgentDojo benign Utility is 0.680, 5.1 percentage points higher than the guard baseline average. Removing anticipation or decoupling the reward increases ASR.
Limitations and future work
Training trajectories come from simulation rather than deployed systems and may not cover real tool feedback and user interactions. Evaluation is limited to fixed agent backbones, tool environments, and benchmark risk scenarios; generalization to unseen tools, new adversarial adaptations, and very different safety policies is not fully characterized.
Experimental setupVanguard · AgentDojo、Agent-SafetyBench et al. · ASR、Utility et al.
Evaluated models
Vanguard
Benchmarks
AgentDojoAgent-SafetyBenchAgentLABLPS-Bench
Metrics
ASRUtilityprotection rate (1−ASR)
AI summaryThe researchers propose Janus, a forward-looking framework for long-horizon agent safety, which synthesizes diverse trajectories through multi-agent simulation and trains a guard model to anticipate delayed risks from partial trajectories. Janus jointly optimizes risk anticipation and safety adjudication, using CoAA-RL with the utility of anticipation for downstream safety judgments as the reward. The resulting guard model Vanguard can intercept unsafe behaviors before action execution, improving average protection by 15.9 percentage points over baseline guards across four agent safety benchmarks, while improving benign task completion by 5.1 percentage points.

The researchers propose Janus, a forward-looking framework for long-horizon agent safety, which synthesizes diverse trajectories through multi-agent simulation and trains a guard model to anticipate delayed risks from partial trajectories. Janus jointly optimizes risk anticipation and safety adjudication, using CoAA-RL with the utility of anticipation for downstream safety judgments as the reward. The resulting guard model Vanguard can intercept unsafe behaviors before action execution, improving average protection by 15.9 percentage points over baseline guards across four agent safety benchmarks, while improving benign task completion by 5.1 percentage points.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Risks from long-horizon agents often appear with delay, so guards need to predict and intercept from the trajectory prefix before harmful actions are executed.

    Unsafe actions in long-horizon tool-based agents often manifest very late, and existing guards typically judge at or after the harm occurs, failing to prevent it in time.

    • Scenario and importance: The authors argue that agents such as OpenClaw, Codex, and Claude Code can modify code, call tools, access files, and interact with external systems; failures are operational: a single unsafe action can delete files, leak privacy, damage the environment, or interrupt production services. Runtime supervision is necessary, but post-execution supervision is often too late. The core challenge is identifying unsafe execution states before harmful actions occur.
    • Limitations of existing methods: LlamaFirewall checks security threats in agent workflows, and ShieldAgent verifies safety policies on execution trajectories, showing that safety must cover intermediate states, tool calls, and environment observations. The authors argue that most methods remain reactive (Chen et al. 2026b; Huang et al. 2025; Mou et al. 2026): they evaluate behaviors already present in the trajectory, whereas in long-horizon tasks early signals may escalate into harm many steps later.
    • Core observation: The authors use the example of "a software package modification must stay within the virtual environment, but the agent later changes the global Python environment" to argue that risky actions appear late while constraints appear earlier. Therefore, guards must connect early context with delayed consequences. Language world models (Qwen-AgentWorld) can predict future states, and the authors apply anticipation specifically to safety.
    • What the paper proposes: The authors propose Janus, which uses multi-agent simulation to synthesize long-horizon trajectories covering risks from user, environment, and agent sources, and uses CoAA-RL to jointly train the anticipation task and the adjudication task. The resulting guard model Vanguard performs two-stage predictive judgment at inference, intercepting before unsafe actions are executed.
    • Threat model:
      • Victim system: A tool-based LLM agent using a ReAct-style execution loop; the guard is queried at each trajectory step before candidate actions are executed.
      • Attacker goals and risk sources: Prevent three types of risks from becoming executed harmful actions. User-sourced means the instruction itself encodes a harmful goal; environment-sourced means unsafe goals appear in tool outputs, retrieved files, emails, or other external artifacts (including indirect prompt injection); agent-sourced means unsafe actions occur under vague or imperfect instructions even without malicious intent.
      • Knowledge and capabilities: Evaluation follows each benchmark's settings. AgentDojo uses important_instructions attacks; AgentLAB includes two types of adaptive long-horizon attacks, tool_chaining and memory_poisoning, with planner, attacker, and reviewer set to official defaults. The paper does not describe the guard's deployment knowledge as white-box, black-box, or gray-box.
      • Success determination: The guard predicts a safety label from the user instruction and the observed trajectory prefix; interception occurs before action execution. Attack success follows each benchmark's ASR definition, such as reaching a benchmark-defined unsafe state or executing an unsafe action before guard intervention.
  2. What related research exists?

    Related work is divided into agent guards and reinforcement learning for reasoning and alignment; Janus uses group-relative reinforcement learning to tie look-ahead to step-level safety adjudication.

    Agent Guards and Risk Evaluation

    • Benchmarks: AgentDojo, InjecAgent, AgentHarm evaluate indirect prompt injection, unsafe tool outputs, and harmful multi-step tasks (Debenedetti et al. 2024; Zhan et al. 2024; Andriushchenko et al. 2025). The introduction also mentions instruction-level attacks (Wallace et al. 2024), tool-use steering and data exfiltration (Debenedetti et al. 2024), and memory/context poisoning and resource exhaustion (Zhang et al. 2025).
    • Framework-level defenses: LlamaFirewall, GuardAgent, ShieldAgent, AGrail provide guard frameworks that detect attacks, check alignment, or translate policies into executable constraints (Chennabasappa et al. 2025; Xiang et al. 2024; Chen, Kang, and Li 2025; Luo et al. 2025). Other methods inspect plans, trajectories, or tool calls during execution (Huang et al. 2025; Luo et al. 2026; Liu et al. 2026a; Mou et al. 2026).
    • Predictive monitoring: SafePred predicts future risks for computer-use agents via a world model (Chen et al. 2026b). Qwen-AgentWorld models agent–environment dynamics to predict future states (Zuo et al. 2026). The authors state that, unlike these methods that often rely on predefined rules, full trajectories, candidate actions, or specific environments, this paper learns which future continuations are useful for step-level safety intervention.

    Reinforcement Learning for Reasoning and Safety

    • Preference alignment: RLHF uses human preference comparisons to learn rewards for optimizing instruction-following models (Ouyang et al. 2022); Constitutional AI uses principle-guided AI feedback for RLAIF-style alignment (Bai et al. 2022); DPO formulates preference alignment as a direct optimization objective without online RL sampling during training (Rafailov et al. 2023).
    • Group-relative and process rewards: GRPO compares multiple sampled solutions within the same problem group; DeepSeekMath uses it to improve mathematical reasoning (Shao et al. 2024). Stable Adaptive Thinking uses advantage shaping and length-aware gradient adjustment to stabilize reasoning length optimization (Xu et al. 2026). TabSieve jointly optimizes in-table evidence selection and prediction correctness (Wang et al. 2026a). The authors state that Janus differs from these methods: it applies group-relative RL to predictive guards, coupling look-ahead and adjudication rewards so that future summaries are optimized only when they improve safety decisions before harmful actions are executed.

    Data Synthesis and Agent-Specific Risks

    • Simulation-based synthesis: The authors use a simulation-based multi-agent pipeline to synthesize high-risk trajectories (Li et al. 2023; Tang et al. 2025; Zheng et al. 2023), with a ReAct-style execution loop (Yao et al. 2022). User-source risks are organized by harm domain (Ghosh et al. 2025), citing HarmBench (Mazeika et al. 2024) and AgentHarm. Typical agent-source failures include ignoring potential dependencies, being overly literal with instructions, acting on incorrect assumptions, and generating inefficient plans (Zhang et al. 2024; Chen et al. 2026a; Liu et al. 2026a).

    Baseline Methods and Benchmarks

    • Baseline methods: Guard models are Qwen3-8B, Llama-Guard-3-8B, Qwen3Guard-Gen-8B, TS-Guard, which terminate execution upon detecting unsafe behavior; framework-level defenses are Sandwich Defense and LlamaFirewall, using their respective default intervention mechanisms; there is also a no-guard reference.
    • Benchmarks/datasets: AgentDojo, Agent-SafetyBench, AgentLAB, LPS-Bench. Ablations are also conducted on AgentDojo, AgentLAB, LPS-Bench.

    The authors position predictive guards as a core need for long-horizon agent safety: risks come from delayed consequences rather than immediate harmful intent; Janus combines simulated long-horizon trajectories with CoAA-RL to train Vanguard.

  3. How does the paper address this problem?

    Janus first simulates and labels three types of risk trajectories, then uses CoAA-RL to tie the anticipation summary's reward to downstream safety adjudication utility.

    Janus consists of two parts: a simulation-based trajectory synthesis pipeline, and a reinforcement learning framework CoAA-RL that jointly trains a shared guard policy with two coupled tasks. At inference, Vanguard first predicts a safety-relevant future summary from the trajectory prefix, then adjudicates based on it and intercepts before execution.

    Problem Setting and Risk Classification

    • Formalization: Each training sample is (x, τpre, s, y). x is the user instruction, τpre is the observed trajectory prefix, s is a natural language summary of the subsequent trajectory, and y is the safety label. The shared policy πθ uses a task indicator m∈{A, D} to distinguish look-ahead mode and adjudication mode.
    • Three sources: Table 4 classifies where unsafe behavior originates. User source: instructions encode harmful goals, often disguised as business or efficiency tasks; harm domains include cyber abuse, fraud, harassment, hate, sexual exploitation, disinformation, copyright abuse, drugs, violence, terrorism. Environment source: appears in tool outputs, retrieved files, or emails; subcategories include prompt injection, Goal Hijack, Tool-use steering, Data exfiltration, Memory poisoning, Resource exhaustion. Agent source: appears when instructions are ambiguous or imperfect; subcategories include Planning Failure, Instruction-Following Failure, Incorrect assumption, as well as Missing clarification, Scope expansion, Preparation-to-execution escalation, High-impact default.
    • Scenario representation: Given a generation policy π, scenario c = (x, T, r, e). T is the set of available tools, r is the evaluation criteria, and e is instantiated only in environment-source samples, representing the environment injection policy.

    Simulation Data Construction

    • Scenario construction: The Manager decomposes the policy into subtasks. The Instructor generates user instructions, ToolDesigner specifies the tool environment, Grader generates evaluation criteria; environment-source samples have EnvInjector specify how risk content is injected via tool outputs or environment artifacts; multi-turn samples have Decomposer split instructions into multi-turn user rounds that jointly pursue the same risk goal. Synthesis does not execute real tools.
    • Trajectory rollout and quality control: The Executor rolls out trajectories in a ReAct-style loop; when tools are called, the Simulator returns structured observations based on the tool schema, call arguments, and previous trajectory, while environment-source samples embed risk content into observations according to e. The Reviewer performs rejection sampling on task consistency, risk coverage, and trajectory completeness; samples are kept only if all three are satisfied; otherwise, they are regenerated until passing or reaching the maximum retry count. When the Reviewer points out specific issues, the Manager incorporates feedback and re-dispatches the corresponding subtasks. The paper does not give the numerical value of this retry limit.
    • Step-level annotation: For each trajectory τ that passes review, at key decision points the trajectory is split into an execution prefix τpre and the remainder τafter. Safe means the task can continue without harmful execution; Unsafe means the agent has expressed clear intent to execute a harmful action; Potential Unsafe means the prefix has non-trivial risk but lacks clear harmful intent. A summary s describing how the risk unfolds is also generated. All annotations are produced by GPT-5.5. This yields 75,180 training samples: Safe 34,100, Unsafe 18,665, Potential Unsafe 22,415.
    • Figure 2 distribution: User source 55.0% (of which Cyber abuse 14.6%, Fraud 9.6%, Disinformation 7.4%, Violence 5.7%, Harassment 4.5%, Others 13.1%); environment source 29.2% (prompt injection 9.6%, Goal Hijack 6.3%, Tool-use steering 4.8%, Data exfiltration 4.1%, Others 4.5%); agent source 15.8% (Planning Failure 5.7%, Instruction-Following Failure 4.3%, Incorrect assumption 3.6%, Others 2.2%). Safety labels: Safe 45.4%, Potential unsafe 29.8%, Unsafe 24.8%.

    CoAA-RL: Coupled Look-Ahead and Adjudication

    • Look-ahead task: Given (x, τpre), sample GA future summaries Sk. The summary abstracts the future execution path and should capture high-risk tool calls, following environment injections, scope expansion, or unsafe consequential actions, rather than step-by-step retelling. Bidirectional NLI similarity Sim(Sk, s) measures consistency with the true subsequent summary (Laban et al. 2022; Zha et al. 2023).
    • Adjudication task: For each Sk, sample GD adjudications Jk,j, parsed into predicted label ŷk,j and a brief rationale. The adjudication reward is r^D_{k,j} = λD ℓ_{k,j} + (1−λD) ϕ_{k,j}, where ℓ is label correctness and ϕ is format validity. The utility uk of a summary is the average adjudication reward conditioned on it. The look-ahead reward is r^A_k = (1−λA) Sim(Sk, s) + λA uk. λA trades off future consistency and adjudication utility. The paper does not give values for GA, GD, λD in the main text; the main setting uses λA = 0.5 (Figure 4).
    • Group-relative joint optimization: Both tasks use GRPO (Shao et al. 2024). Look-ahead advantages are computed among the GA summaries of the same trajectory prefix; adjudication advantages are computed within a look-ahead group k̃ whose adjudication reward variance is non-zero. The joint objective is θ⋆ = arg min_θ [L^A_GRPO(θ) + η L^D_GRPO(θ)], where η controls the relative weight of the adjudication objective. The paper does not report the value of η. The authors state that because πθ is shared, look-ahead focuses on events important for safety adjudication, and adjudication rewards push look-ahead toward foresight useful for decisions.

    Two-Stage Judgment at Inference

    • Process: At each trajectory step, Vanguard first decodes ŝ in look-ahead mode, then decodes adjudication Ĵ on (x, τpre, ŝ), parsed into safety label ŷ and a brief rationale. At inference there is no ground-truth continuation; adjudication relies only on the observed prefix and the model's own anticipated future summary.
    • Intervention: In evaluation, the guard is queried before candidate actions are executed; guard model baselines terminate execution after detecting unsafe behavior. The appendix provides prompt templates for sample generation, look-ahead, adjudication, etc.; their specific constraints are not repeated here.
  4. What experiments did the paper conduct?

    Vanguard's average ASR across four benchmarks is 0.071, the lowest in all cases; AgentDojo benign Utility is 0.680, on par with no guard.

    Experimental Setup

    • Tested objects: Defense methods are Vanguard, Qwen3-8B, Llama-Guard-3-8B, Qwen3Guard-Gen-8B, TS-Guard, Sandwich Defense, LlamaFirewall, and No Guard. They are added to ReAct-style LLM agents. Ablations are stated to be run with Qwen3-32B. The paper does not specify in the main text the exact model names of the guarded agent backbones in the main experiments; Limitations states that evaluation is limited to a fixed set of agent backbones.
    • Benchmark sizes: AgentDojo has 97 benign instances and 949 adversarial instances, with attack type important_instructions. Agent-SafetyBench has the official 2,000 examples. AgentLAB has 400 adversarial instances, 200 each for tool_chaining and memory_poisoning. LPS-Bench samples 570 examples from the official repository.
    • Metrics: AgentDojo reports benign task Utility (official task success evaluator) and adversarial ASR (official injection success evaluator). The other three benchmarks primarily use ASR. Protection rate is defined as 1−ASR. Higher Utility is better, lower ASR is better.
    • Review: Agent-SafetyBench uses the ShieldAgent judge to give safe/unsafe; if the agent reaches a benchmark-defined unsafe state or executes an unsafe action before guard intervention, it counts as an attack success. AgentLAB's planner, attacker, and reviewer use official code and official default models; the paper does not name these default models; ASR is the proportion of rounds where adaptive attack goals are achieved. LPS-Bench uses the official evaluator's PASS/FAIL and execution status signals to compute ASR.
    • Training data: 75,180 step-wise labeled samples. The paper does not report training repetitions, evaluation random seeds, or number of queries in the main experiments.

    Main Results

    According to Table 1 (higher Utility is better, lower ASR is better):

    Swipe horizontally to read the table

    GuardAgentDojo Util ↑AgentDojo ASR ↓Agent-SafetyBench ASR ↓AgentLAB ASR ↓LPS-Bench ASR ↓
    No Guard0.6800.1670.2930.2870.842
    Qwen3-8B0.5880.0660.1280.1220.323
    Llama-Guard-3-8B0.5880.0690.1270.1400.381
    Qwen3Guard-Gen-8B0.6800.1510.1590.2200.500
    TS-Guard0.6190.0800.1020.1630.332
    Sandwich Defense0.7010.1090.2550.2870.844
    LlamaFirewall0.5980.0620.2180.1450.530
    Vanguard0.6800.0540.0680.0870.075
    • Authors' summary: Averaging the four ASR columns, Vanguard's average ASR is 0.071, the six guard baselines average 0.230, and the no-guard reference is 0.397. Using 1−ASR as protection rate, Vanguard's average protection rate is 15.9 percentage points higher than the guard baselines. On AgentDojo benign tasks, Vanguard's Utility is 0.680, 5.1 percentage points higher than the guard baseline average of 0.629, and equal to the no-guard reference.
    • Relative to step-wise guard models: The authors state that Qwen3-8B, Llama-Guard-3-8B, Qwen3Guard-Gen-8B, and TS-Guard primarily judge based on observed trajectories, with average ASR across four benchmarks between 0.160 and 0.258. Relative to the strongest step-wise model on each benchmark, Vanguard reduces ASR from 0.066 to 0.054 on AgentDojo, 0.102 to 0.068 on Agent-SafetyBench, 0.122 to 0.087 on AgentLAB, and 0.323 to 0.075 on LPS-Bench. The authors argue the gains are especially notable on LPS-Bench, indicating that anticipating delayed consequences is particularly important for long-horizon planning safety. AgentDojo Utility is 0.680, the same as no guard and Qwen3Guard-Gen-8B, while reducing ASR on that benchmark from Qwen3Guard-Gen-8B's 0.151 to 0.054.
    • Relative to framework-level defenses: Sandwich Defense has ASR of 0.287 and 0.844 on AgentLAB and LPS-Bench; LlamaFirewall has 0.218, 0.145, and 0.530 on Agent-SafetyBench, AgentLAB, and LPS-Bench. Vanguard has 0.068, 0.087, and 0.075 on these three benchmarks. AgentDojo Utility is 0.680, 0.021 lower than Sandwich Defense's 0.701, and higher than LlamaFirewall's 0.598. The authors state that learned trajectory-level anticipation provides stronger protection without sacrificing benign task performance. In Table 1, Sandwich Defense's AgentDojo Utility is the highest cell among defense methods, and its LPS-Bench ASR of 0.844 is higher than No Guard's 0.842.

    Anticipation and Coupled Reward Ablations

    Table 2 compares AgentDojo, AgentLAB, and LPS-Bench on Qwen3-32B. Oracle uses the true future continuation, which the authors call a non-deployable upper bound.

    Swipe horizontally to read the table

    SettingAgentDojo UtilAgentDojo ASRAgentLAB ASRLPS-Bench ASR
    Vanguard0.6800.0540.0870.075
    w/o Anticipation0.5260.0920.1420.211
    w/o Infer. Sum.0.5570.0780.1280.164
    w/ Oracle Sum.0.6800.0410.0630.052
    Sim-only0.3510.0890.1510.194
    Util-only0.3920.0810.1340.172
    Decoupled0.6390.1040.1750.484
    • RQ1: The authors report that removing the anticipation task during training raises the average ASR across three benchmarks from 0.072 to 0.148, and AgentDojo Utility drops from 0.680 to 0.526; removing the future summary at inference raises average ASR to 0.123 and Utility drops to 0.557. Oracle summaries further reduce average ASR to 0.052. The authors argue that accurate future information can clearly improve adjudication, and Vanguard internalizes decision-useful anticipation through CoAA-RL, approaching this upper bound.
    • RQ2: Sim-only uses only the similarity between the generated summary and the true future summary; Util-only uses only adjudication utility; Decoupled trains the two tasks separately. The authors state that relative to Vanguard, Sim-only reduces AgentDojo Utility by 48.4% and increases average ASR by 101.9%; Util-only reduces Utility by 42.4% and increases average ASR by 79.2%. Decoupled still has a higher AgentDojo Utility of 0.639, but average ASR rises from 0.072 to 0.254, with the largest degradation on LPS-Bench (0.484). The authors argue that a reward coupling summary fidelity and adjudication usefulness is needed, rather than optimizing either objective alone.

    Early Prediction under Prefix Budgets

    Table 3 is still step-level evaluation, but the guard can only see 25%, 50%, 75%, or 100% of the full execution prefix. In the table, LlamaGuard and QwenGuard correspond to the main text's Llama-Guard and QwenGuard notations; the paper does not rewrite them column-by-column into the full names used in Table 1.

    Swipe horizontally to read the table

    PrefixGuardAgentDojo UtilAgentDojo ASRAgentLAB ASRLPS-Bench ASR
    25%Vanguard0.6390.1410.2000.498
    25%LlamaGuard0.6490.1620.2420.640
    25%QwenGuard0.6230.1540.2530.331
    25%TS-Guard0.6490.1630.2350.842
    50%Vanguard0.6700.0720.1720.279
    100%Vanguard0.6800.0540.0870.075
    • Authors' interpretation: Vanguard's average ASR across three benchmarks drops from 0.280 at 25% prefix to 0.174, 0.121, and 0.072 at 50%, 75%, and 100%. At 25%, evidence is sparse; Vanguard already has the lowest ASR on AgentDojo and AgentLAB, but on LPS-Bench QwenGuard's 0.331 is lower than Vanguard's 0.498; the authors argue that planning risks often require later contextual evidence. From 50% onward, Vanguard achieves the best ASR on all three benchmarks; at 100% prefix, average ASR is reduced by 57.6% relative to the strongest baseline (relative reduction, per the authors).
    • Remaining cells for 50% and 75% (Table 3): At 50%, LlamaGuard has Util 0.598, ASR 0.108 / 0.203 / 0.461; QwenGuard has 0.662, 0.151 / 0.245 / 0.516; TS-Guard has 0.649, 0.167 / 0.217 / 0.440. At 75%, Vanguard has 0.629, 0.062 / 0.150 / 0.151; LlamaGuard has 0.588, 0.069 / 0.313 / 0.523; QwenGuard has 0.611, 0.134 / 0.245 / 0.502; TS-Guard has 0.629, 0.117 / 0.193 / 0.393. At 100%, LlamaGuard has 0.588, 0.069 / 0.140 / 0.381; QwenGuard has 0.680, 0.151 / 0.155 / 0.353; TS-Guard has 0.619, 0.080 / 0.145 / 0.284. The 100% QwenGuard numbers do not match Table 1's Qwen3Guard-Gen-8B numbers; the paper does not state whether they are the same model and setting.

    Other Ablations and Analyses

    • λA (Figure 4, RQ3): At λA = 0, AgentDojo Utility is 0.351 and average ASR is 0.145; at λA = 1, Utility is 0.392 and average ASR is 0.129. At λA = 0.25, average ASR drops to 0.078 and Utility rises to 0.567. At λA = 0.50, Utility is highest at 0.680, with average ASR 0.072. At λA = 0.75, average ASR is lowest at 0.034, but Utility drops to 0.464. The authors argue the method is robust in the moderate range, and balancing summary fidelity with adjudication usefulness is needed to preserve both benign task performance and protection; λA = 0.75 corresponds to a more conservative guard that may over-intercept benign tasks. The curve shape in Figure 4 is not visible in plain text; the above values come from the main text.
    • Table 2 does not include Agent-SafetyBench, and the prefix experiments also do not include that benchmark. The paper does not report statistical significance tests.
  5. What are some points that can be further explored?

    The authors note that simulated trajectories and fixed backbones, tools, and benchmark scenarios limit generalization judgments to real deployments and new adversaries.

    Limitations and Future Directions Noted by the Authors

    • Simulation rather than deployment data: The Limitations state that training trajectories are constructed by multi-agent simulation, not collected from deployed agent systems. Simulation can control risk sources and synthesize diverse long-horizon failures, but may not fully capture tool behavior, environment feedback, and user interaction distributions in real deployments.
    • Generalization scope: The Limitations state that evaluation is still limited to a fixed set of agent backbones, tool-use environments, and benchmark-defined risk scenarios, so the generalization of the learned look-ahead–adjudication policy to unseen tools, new forms of adversarial adaptation, or safety policies very different from those used in data construction and evaluation is not fully characterized. The paper does not have a separate Future Work section; the Conclusion states that these findings mark future risk look-ahead as a key capability for building proactive, trajectory-aware safety measures for tool-based agents, without additional experimental plans.

    Experimental Coverage

    • Main evaluation: Comparison of Vanguard, four stepwise guard models, Sandwich Defense, LlamaFirewall, and No Guard on four benchmarks (Table 1). Sizes: AgentDojo 97 benign instances and 949 adversarial instances, Agent-SafetyBench 2,000 cases, AgentLAB 400 adversarial instances, LPS-Bench 570 cases.
    • Ablations and sensitivity: With/without look-ahead, with/without inference summary, Oracle summary, Sim-only, Util-only, Decoupled are reported on AgentDojo, AgentLAB, LPS-Bench, and stated to be under Qwen3-32B (Table 2). λA takes 0, 0.25, 0.50, 0.75, 1 (Figure 4 and main text). Prefix budgets are 25%, 50%, 75%, 100% (Table 3).
    • Training scale and labels: 75,180 samples, Safe / Unsafe / Potential Unsafe are 34,100 / 18,665 / 22,415 respectively; Figure 2 gives proportions for three risk sources and several subcategories. Annotation model is GPT-5.5.
    • Settings not reported in the paper: The main text does not give GA, GD, λD, η, or the Reviewer's maximum retry count, nor does it report the specific model names of the guarded agents in the main experiments, the name of AgentLAB's official default evaluation model, the number of repetitions, or significance tests. The 100% prefix in Table 3 does not exactly match the same-named direction numbers in Table 1; the paper does not explain this discrepancy.
  6. Summarize the main content of the paper

    Janus trains the anticipatory guard Vanguard with simulated trajectories and CoAA-RL, reducing ASR across four benchmarks while maintaining benign Utility on AgentDojo.

    Janus is a forward-looking guard training framework for long-horizon agent safety, producing the model Vanguard that intercepts before action execution.

    • Problem: Tool-based agent failures are operational; unsafe actions may appear very late. The authors argue that reactive guards evaluate behaviors already present in the trajectory, and by the time a dangerous step is flagged, it is too late to prevent harm.
    • Method: The simulation pipeline generates trajectories from three sources—user, environment, and agent—without calling real tools, and a Reviewer filters them for consistency, risk coverage, and completeness; GPT-5.5 labels decision-point prefixes as Safe, Unsafe, or Potential Unsafe, totaling 75,180 entries. CoAA-RL makes a shared policy perform both future summarization and safety adjudication, with the anticipation reward combining the NLI similarity between the summary and the actual future with the adjudication utility brought by that summary, then jointly updated with GRPO. At inference, the model first writes a future summary, then gives a label and brief rationale.
    • Main results: In Table 1, Vanguard has the lowest ASR on all four benchmarks: AgentDojo 0.054, Agent-SafetyBench 0.068, AgentLAB 0.087, LPS-Bench 0.075, with an average ASR of 0.071 across the four benchmarks. The authors report its average protection rate is 15.9 percentage points higher than the six guard baselines; AgentDojo benign Utility is 0.680, the same as no guard, and 5.1 percentage points higher than the guard baseline average. Sandwich Defense has a higher AgentDojo Utility of 0.701.
    • Ablations: Removing anticipation or removing the summary at inference raises the average ASR across three benchmarks from 0.072 to 0.148 or 0.123 (Table 2). Optimizing only similarity, only adjudication utility, or decoupling the two tasks all increase average ASR; after decoupling, LPS-Bench ASR is 0.484. At λA = 0.5, Utility is 0.680 and average ASR is 0.072; at λA = 0.75, average ASR is 0.034 but Utility drops to 0.464. At 25% prefix, Vanguard's ASR on LPS-Bench is higher than QwenGuard.
    • Authors' conclusion: The authors argue that predictive guards can reduce attack success while preserving benign task utility, and future risk anticipation is a key capability for building proactive, trajectory-aware defenses. They also note that trajectories come from simulation, and evaluation is limited to fixed backbones, tool environments, and benchmark risk scenarios.

Related papers

Both use: LPS-Bench
Show 3 more papers
Read originalarxiv.org