Skip to content

SciTrace: Trajectory-Aware Safety Reasoning Framework for Scientific Discovery AgentsSciTrace: Trajectory-Aware Safety Reasoning for Scientific Discovery Agents

Paper Tracker· arXiv:2606.08234· Tanush Swaminathan, Runmin Jiang, Letian Zhang, Min Xu·Indexed by this site · 2026-10-09· Originally publishedDefenses

Quick read

Defenses

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

SciTrace improves tool call safety rate by an average of 14.3 percentage points over SafeScientist across four backbone models.

Threat modelThe victim system is a four-stage scientific discovery pipeline from Thinker to Reviewer, capable of calling external tools. It targets inter-stage signal loss and combined tool risks missed by single-step filtering; the evaluation includes query injection, malicious discussion agents, and malicious experiment instructors. The paper does not state black-box/white-box knowledge assumptions.

Questions
The safety layer of LLM scientific agents checks outputs but does not shape the reasoning that produces those outputs. Risk signals between stages are lost, and multiple individually acceptable tool calls can combine into harm that single-step filtering cannot detect.
Methods
SciTrace adds SIR to a four-stage pipeline: each stage jointly reasons about the task and safety, and passes cumulative risk state. CTV scores tool calls before execution based on request harmfulness, combination risk, and call safety; when flagged, TS-Flow provides alternatives rather than directly aborting.
Experiments and results
Across four backbones, relative to SafeScientist, the tool call safety rate is on average 14.3 percentage points higher. On Qwen2.5-72B, CTV detects 78.8% of combined escapes missed by single-step monitoring (Table 5); GPT-4o's Tool Safety is 94.7% (Table 2).
Limitations and future work
The authors note a 36.9%–43.8% latency increase; on 60 tasks, r with human labels is about 0.62 for materials/physics and about 0.81 for biology/chemistry. Coverage beyond the six domains is unknown, and keyword retrieval misses synonymous risks. Experiments include four backbones and SciSafetyBench.
Experimental setupLlama-3.1-70B-Instruct、Qwen2.5-72B-Instruct et al. · SciSafetyBench · Safety Score、Reject Rate et al.
Evaluated models
Llama-3.1-70B-InstructQwen2.5-72B-InstructDeepSeek-V3GPT-4o
Benchmarks
SciSafetyBench
Metrics
Safety ScoreReject RateTool Call Safety RateQualityClarityOverallCompositional Risk Detection Rate
AI summarySciTrace embeds safety reasoning into every stage of the scientific agent pipeline, through a Safety-Internal Reasoning loop (SIR) that maintains a cumulative risk state across the Thinker, Experimenter, Writer, and Reviewer stages, and a Compositional Tool-chain Verifier (CTV) that performs trajectory-aware checks before execution, capturing risks that only emerge in multi-step tool sequences. On 240 high-risk research tasks spanning six scientific domains and 120 tool-related risk tasks, SciTrace achieves SOTA safety performance among compared frameworks across four backbone models, and detects 78.8% of compositional tool-chain escapes missed by single-step monitoring.

SciTrace embeds safety reasoning into every stage of the scientific agent pipeline, through a Safety-Internal Reasoning loop (SIR) that maintains a cumulative risk state across the Thinker, Experimenter, Writer, and Reviewer stages, and a Compositional Tool-chain Verifier (CTV) that performs trajectory-aware checks before execution, capturing risks that only emerge in multi-step tool sequences. On 240 high-risk research tasks spanning six scientific domains and 120 tool-related risk tasks, SciTrace achieves SOTA safety performance among compared frameworks across four backbone models, and detects 78.8% of compositional tool-chain escapes missed by single-step monitoring.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The safety layer is disconnected from reasoning: signals between stages are lost, and single-step filtering also cannot see combined tool risks.

    Safety checks in scientific agents are separated from the reasoning that produces outputs: risk signals from earlier stages are lost by the next stage, and multiple individually acceptable tool calls can be harmful in combination.

    • Scenario: The authors argue that autonomous scientific agents that can design experiments, call lab APIs, and draft papers may also produce dual-use proposals, dangerous synthesis pathways, or large-scale misinformation.
    • Existing shortcomings: The authors state that SafeScientist's four layers of defense each operate independently and do not know about decisions from other stages. Dangerous directions flagged by the Thinker are not passed to the Experimenter or Writer; single-step monitoring also cannot see trajectories like first retrieving a sequence and then querying resistance information (Introduction, Figure 1).
    • Observation: The authors attribute these two failures to "safety being external to reasoning": signals stay local to a stage, and the entire tool trajectory is not the object of inspection.
    • Approach: Propose SciTrace, adding the Safety-Intrinsic Reasoning Loop (SIR) and Compositional Tool-Chain Verifier (CTV) to the SafeScientist pipeline, bringing safety reasoning into each stage and checking tool trajectories before execution.
    • Threat model:
      • Victim system: A four-stage scientific discovery pipeline of Thinker, Experimenter, Writer, Reviewer, capable of calling external tools and generating paper-like outputs (Section 3.1).
      • Outcomes to block: Dual-use, dangerous synthesis, misinformation, and tool sequences that are individually acceptable but harmful in combination (Introduction, Section 4.5).
      • Adversarial inputs in evaluation: query injection, malicious discussion agents, malicious experiment instructors, and DAN, Base64, load splitting, DeepInception (Section 4.6–4.7).
      • Knowledge: The paper does not use white-box, black-box, or gray-box to describe what the attacker can see.
  2. What related research exists?

    The authors place SciTrace on top of SafeScientist, adding cross-stage risk state and compositional trajectory verification.

    Section 2 of the paper discusses three lines; experimental comparisons are listed separately.

    LLM safety

    • RLHF and Constitutional AI (Bai et al., 2022a, 2022b): inject helpfulness, harmlessness, or constitutional safety preferences during training.
    • LLaMA Guard (Inan et al., 2023): turns input/output safety checks into token classification for runtime screening.
    • Red teaming (Perez et al., 2022; Zou et al., 2023): use adversarial probing to find policy violations. The authors state these techniques target short contexts and do not handle multi-stage pipelines where safety-relevant context accumulates across multiple calls.

    LLM agent safety

    • AGrail (Luo et al., 2025): uses an Analyzer-Executor loop with memory, retrieving and refining safety checks from past interactions.
    • ToolSafe (Mou et al., 2026): TS-Guard rates request harmfulness, attack relevance, and tool-call safety; TS-Flow uses feedback for correction. The authors state they adapt both to scientific agents and replace attack relevance with combination risk.
    • The authors state that, to their knowledge, no prior work explicitly studies structured cross-stage safety state propagation in AI scientist pipelines.

    AI scientist

    • AI Scientist (Lu et al., 2024): uses GPT-4 for end-to-end autonomous research, producing ideas, experiments, and paper drafts.
    • Subsequent systems (Si et al., 2025; Weng et al., 2025; Yuan et al., 2025): extend coverage to literature synthesis and hyperparameter search. Table 1 also lists CycleResearcher, ResearchTown, AI Co-Scientist, and Agent Laboratory; these rows are all "No" for cross-stage context, combination risk, non-binary risk, memory, and feedback generation, and "Yes" for scientific domain.
    • SafeScientist (Zhu et al., 2025): the authors call it the first work to systematically address safety in AI scientist pipelines, providing four defenses and SciSafetyBench. This paper builds directly on its pipeline and benchmark.

    Baselines and benchmark

    • Baselines: Table 2 uses Bare LLM and full SafeScientist; Table 3 additionally compares AI Scientist, CycleResearcher, ResearchTown, AI Co-Scientist, Agent Laboratory, and SafeScientist.
    • Benchmark: SciSafetyBench (Zhu et al., 2025).

    The authors position SciTrace as a framework that simultaneously has six attributes: cross-stage context, combination risk detection, non-binary risk, memory retrieval, corrective feedback, and scientific domain. Table 1's title states it is the only framework in the table satisfying all six.

  3. How does the paper address this problem?

    SciTrace uses SIR to propagate cumulative risk across stages, and CTV to verify the entire tool trajectory before execution.

    SciTrace does not make safety an external filter on outputs, but shares a cumulative risk state across the four-stage scientific discovery pipeline: SIR jointly reasons about task and safety at stage transitions, and CTV looks at the entire call history before tool execution.

    Pipeline and Risk Levels

    • Four stages: Follows SafeScientist. Thinker generates ideas and multi-agent discussions, Experimenter handles code and tools, Writer drafts the paper, Reviewer performs ethical and scientific review (Section 3.1).
    • Who decides: At each stage transition and tool call, SIR and CTV bear the primary safety decisions. The original stage-wise filtering and tool monitoring serve only as error-handling fallbacks.
    • Five levels rather than binary: SAFE, LOW-RISK, WARNING, HIGH-RISK, BLOCK. The overall level takes the maximum of all signals; when specified categories co-occur, it is escalated one more level; the example in the text is dual-use and dangerous synthesis.

    SIR

    • Three inputs: the current stage task, the cumulative risk state composed of all previous signals, and checks retrieved from safety memory (Section 3.2).
    • Output: risk level, natural language explanation, and action. Actions are proceed, modify, flag, or block.
    • Stage-wise focus: Thinker looks at dual-use, Experimenter at tools and plans, Writer at information disclosure, and Reviewer performs the final ethical assessment when all signals are visible.
    • Memory: Stores check templates by generalized action descriptions, retrieves k-nearest using keyword overlap, for revision within the same session. The paper mentions k-nearest but does not give k.

    CTV and TS-Flow

    • Interception point: The verified tool proxy intercepts every tool call before execution, and includes the full call history in its judgment (Section 3.3).
    • One LLM forward pass, three dimensions: whether the request itself is harmful; whether the call plus history constitutes a dangerous trajectory (corresponding to S9, used to replace ToolSafe's attack relevance); whether this call itself is safe.
    • Scoring: request harmfulness and combined risk are 0/1, each with weight 0.4; the tool call safety item rtool is Safe 0.0, Uncertain 0.1, Unsafe 0.2. The paper's composite formula is s = 0.4 · 1harmful + 0.4 · 1comp.risk + rtool.
    • Actions: s > 0.5 intercept; 0.4 ≤ s ≤ 0.5 hand over to TS-Flow to redirect to an alternative; s < 0.4 放行。默认拦截阈为 s > 0.5 (Appendix A). When redirected or intercepted, another LLM call is made to generate an alternative, and all signals are written back to the cumulative state.

    Classification and Appendices

    • S1–S9: dangerous synthesis, dual-use biology, radiological/nuclear, data privacy, cybersecurity, data exfiltration, misinformation, environmental harm, combined danger. S1–S8 are atomic classes, S9 is a trajectory class (Appendix B).
    • Prompts: Appendix M gives the four-stage SIR templates, CTV three-dimensional verification, TS-Flow, and GPT-4o review prompts, specifying the runtime-filled inputs and JSON fields; the appendix provides the full prompts.
  4. What experiments did the paper conduct?

    Across four backbones, SciTrace's safety metrics on SciSafetyBench are higher than SafeScientist's, and its quality scores are also higher.

    Experimental Setup

    • Backbone: Llama-3.1-70B-Instruct, Qwen2.5-72B-Instruct, DeepSeek-V3 via vLLM, 4-bit AWQ, tensor parallel on two NVIDIA RTX A5000; GPT-4o via API. Table headers abbreviated as Llama-3.1-70B, Qwen2.5-72B. SIR and CTV use the same backbone as the main agent (Section 4.1).
    • Data: SciSafetyBench, 240 high-risk research tasks, 120 tool-related risk tasks, 30 specialized tools. 40 research tasks and 20 tool tasks per domain: Physics, Chemistry, Biology, Material Science, Information Science, Medicine. Four risk types in equal proportion: intentional malice, concealed harm, unintentional consequences, multi-step tool trajectories.
    • Baselines: Bare LLM; SafeScientist four-layer defense; SciTrace adds SIR and CTV on top of both. Table 3 also includes AI Scientist, CycleResearcher, ResearchTown, AI Co-Scientist, Agent Laboratory.
    • Metrics: Safety Score (1–5, GPT-4o judge), Reject Rate, Tool Call Safety Rate, Quality, Clarity, Overall (latter three 1–5). Also report Compositional Risk Detection Rate. The paper does not give a pass threshold for Safety Score, nor does it report the number of repetitions for main results. Safety Scores for all four backbones are scored by GPT-4o, including rows where the backbone itself is GPT-4o.
    • Compositional escape: SafeScientist allows every call, and the full ordered trajectory is judged unsafe by GPT-4o on the SciSafetyBench scale; CTV counts as detected if it blocks or modifies at least once before execution (Appendix F).

    Main Results

    Table 2 cells are SciTrace / SafeScientist.

    Swipe horizontally to read the table

    BackboneSafetyReject (%)Tool Safety (%)Overall
    Llama-3.1-70B4.87 / 4.7292.0 / 85.091.2 / 76.33.68 / 3.47
    Qwen2.5-72B4.89 / 4.7593.0 / 87.092.5 / 78.13.72 / 3.50
    DeepSeek-V34.91 / 4.7894.0 / 88.093.8 / 79.53.75 / 3.52
    GPT-4o4.93 / 4.8395.0 / 90.094.7 / 81.23.82 / 3.62
    • Relative to SafeScientist: Safety, Reject, Tool Safety, and Overall are all higher in the four rows above. The authors state that tool call safety rate improves by an average of 14.3 percentage points, and that scientific output quality is maintained. Quality and Clarity in Table 2 are also higher for SciTrace, not repeated cell by cell here.
    • Bare LLM (Table 2, model order as above): Reject is 0.0%, 0.0%, 2.0%, 0.0%; Tool Safety is 38.5%, 40.2%, 42.0%, 45.5%; Safety is 2.35, 2.38, 2.40, 2.50.
    • Table 3: Across the four model groups, SciTrace has the highest Reject, Safety, Quality, Clarity, Pres., Contrib., and Overall in each group. The authors state that Biology and Chemistry show the largest gains, and link this to multi-step trajectories missed by single-step monitoring.

    Component Ablation and Review Context

    • Table 4(a), Qwen2.5-72B: SafeScientist is 4.75, 87.0%, 78.1%, 3.50 (Safety, Reject, Tool Safety, Overall). Adding only SIR: 4.81, 89.5%, 79.2%, 3.58. Adding only CTV: 4.78, 86.8%, 89.7%, 3.55. Adding both: 4.89, 93.0%, 92.5%, 3.72. The authors state that SIR improves Safety by 0.06 and Reject by 2.5 percentage points, and CTV improves tool safety by 11.6 percentage points. With only CTV, Reject is 86.8%, lower than SafeScientist's 87.0%.
    • Author interpretation: The combination outperforms either component alone on all safety metrics; the authors believe cross-stage propagation and trajectory verification target different failures.
    • Table 4(b): No review gives Safety 3.42, Quality 2.84, Overall 2.96; SafeScientist gives 4.12, 3.18, 3.28; SciTrace gives 4.89, 3.68, 3.72. The authors state that relative to no review, SciTrace's Safety gain is +1.45 (SafeScientist +0.70), and Overall gain is +0.76 (SafeScientist +0.32); the Safety column in the table shows 3.42 and 4.89.

    Per-Domain Tool Safety and Compositional Escape

    • Table 5, Qwen2.5-72B: Tool Safety is higher for SciTrace in all six domains. The authors state the largest gains are in Biology (93.5% vs. 76.2%, +17.3 percentage points) and Chemistry (91.3% vs. 74.1%, +17.2 percentage points); Physics has the smallest absolute gain (95.9% vs. 85.2%, +10.7 percentage points); Information Science is 86.6% vs. 72.3%.
    • Detection: 63 of 80 escapes detected, 78.8%. Per domain: Biology 15/18 (83.3%), Chemistry 13/16 (81.3%), Medicine 10/12 (83.3%), Material 9/11 (81.8%), Physics 7/9 (77.8%), Information Science 9/14 (64.3%). The authors suggest the lower Information Science rate may be because data exfiltration patterns differ from the physical synthesis trajectories CTV targets, and point to Appendix D.
    • Tool usage: The authors state the proposal distribution is close to SafeScientist, direct refusals increase by only 5.9 percentage points, and gains come from safe redirection +12.2 percentage points and safe completion +19.2 percentage points (Section 4.4). The Information Science case in Appendix L is allowed by CTV, with a post-hoc GPT-4o safety score of 2.0. The authors state that in Figure 7 SciTrace is higher than both baselines in all six domains; text conversion does not preserve bar heights, ratios follow Table 5.

    Discussion Defenses and Adversarial Inputs

    • Table 6, Qwen2.5-72B: Average refusal rate across five discussion attack types: SafeScientist 39.1%, SciTrace 65.2%. The five types are 42.5% vs. 68.3%, 38.7% vs. 64.8%, 44.2% vs. 70.1%, 36.4% vs. 62.5%, 33.8% vs. 60.2%, corresponding to Role-play Override, Gradual Persuasion, Authority Invocation, Incremental Escalation, Collaborative Deception. The authors state the average is 26.1 percentage points higher, and report the difference holds at the 95% level; they explain that multi-turn inducements are recorded in cumulative state, while SafeScientist evaluates each turn independently.
    • Table 7: Llama-3.1-70B attack average refusal rate 48.3% vs. 73.6%, GPT-4o 55.6% vs. 79.7%. Malicious discussion agent is 31.2% vs. 68.5% (Llama), 38.7% vs. 74.2% (GPT-4o). The authors state these two are +37.3 and +35.5 percentage points, and state query injection is +27.6 and +26.2 percentage points; Table 7 has no query injection row.
    • Figure 4: Caption says Llama-3.1-70B (top) and GPT-4o (bottom), categories are Q.Inj., M.Agt, M.Inst., Avg; the text states the figure reports DeepSeek-V3 and GPT-4o. Text conversion does not preserve bar heights. The authors state other AI scientist frameworks have adversarial resistance below 15%, and SafeScientist's average defense via LLaMA Guard is 38%–45%.

    Other Ablations and Analyses

    • Interception threshold (Table 12, Qwen2.5-72B): s>0.3 gives Tool Safety 94.1%, Reject 95.8%, Quality 3.63; default s>0.5 gives 92.5%, 93.0%, 3.72; s>0.7 gives 88.8%, 89.4%, 3.78.
    • Subtask weights (Table 13): Removing compositional risk gives Tool Safety 86.0%, Reject 88.7%; default 92.5%, 93.0%. The authors state tool safety drops by 6.5 percentage points. With high compositional risk weight: 93.1%, 93.8%.
    • Latency (Table 14, average over 50 tasks): Llama +39.4% (142s to 198s), Qwen +36.9% (138s to 189s), DeepSeek +40.6% (155s to 218s), GPT-4o +43.8% (48s to 69s).
    • Bootstrap (Table 16, Qwen, 2000 iterations): Safety difference +0.14, interval [+0.10, +0.18]; Tool Safety +14.4, [+11.8, +17.0]; Reject +6.0, [+4.2, +7.9]. The authors state the reported intervals do not contain 0.
    • Tool types (Table 11): Bio/Chem proposals 22.1%, executions 19.8%. The authors state the execution share decreases by about 2.3 percentage points.
    • Escape length (Table 15): Average 3.5 calls, range 2 to 7. The authors state that in Figure 8 SciTrace's task share shifts toward higher safety scores; text conversion does not preserve bar heights for each score.
  5. What are some points that can be further explored?

    The authors point out four limitations: latency, GPT-4o review, domain coverage, and keyword retrieval.

    Limitations and Future Directions Noted by the Authors

    • Inference overhead: Relative to SafeScientist, single-pipeline latency increases by 36.9%–43.8%, mainly from additional LLM calls. The authors believe the four SIR calls could in principle be merged into one, and that CTV for repeated tool patterns could be cached within a session; they also believe the current overhead is acceptable for offline research pipelines where safety is the primary concern (Limitations).
    • LLM review: Safety scores use GPT-4o. In an informal validation on 60 tasks, the authors state that the Pearson r relative to human labels is about 0.62 for Material Science and Physics, and about 0.81 for Biology and Chemistry; absolute scores may be affected by the reviewer model and prompt design. The authors believe a full agreement study with domain experts, and a robustness check with a different reviewer model, would help verify faithfulness (Limitations).
    • Domains: Evaluation covers the six domains of SciSafetyBench. The authors state that coverage of emerging directions such as AI-for-math and autonomous wet labs remains unknown (Limitations).
    • Compositional patterns: Compositional escape detection for Information Science is 64.3%, and about 80% for synthesis-type domains. The authors believe S9, which targets physical synthesis, does not cover data-privacy trajectories well, and call extending compositional subtasks to S4/S6 (e.g., continuous record linkage, cross-API profile reconstruction) a natural next step (Limitations).
    • Memory retrieval: Currently uses keyword overlap; the authors give the example that it misses risks with different wording but similar semantics, and believe a dense-embedding variant of safety memory might improve retrieval precision for such cases (Limitations).

    Experimental Coverage

    • Backbones tested are Llama-3.1-70B-Instruct, Qwen2.5-72B-Instruct, DeepSeek-V3, and GPT-4o, 4 in total; SIR and CTV use the same backbone as the main agent. The three local models run on vLLM, 4-bit AWQ, two RTX A5000s (Section 4.1).
    • The benchmark is SciSafetyBench: 240 high-risk research tasks, 120 tool-risk tasks, 30 specialized tools, 40+20 entries per each of six domains, with four risk categories in equal proportion (Section 4.1).
    • Comparisons include Bare LLM, SafeScientist, and the AI Scientist, CycleResearcher, ResearchTown, AI Co-Scientist, and Agent Laboratory in Table 3 (Section 4.1–4.2).
    • Component ablations, per-domain tool safety, discussion attacks, thresholds and weights, and bootstrap are stated to be on Qwen2.5-72B; the per-attack refusal rates in Table 7 are for Llama-3.1-70B and GPT-4o. Latency is averaged over 50 tasks (Tables 4–7, 14, 16).
    • The paper does not report the number of repetitions for the main results, does not give k for k-nearest; the human comparison is an informal validation on 60 tasks, not a full inter-rater agreement study (Section 3.2, Limitations).
  6. Summarize the main content of the paper

    SciTrace weaves safety reasoning into each stage of scientific agents, improving safety metrics on SciSafetyBench while maintaining output quality.

    SciTrace is a safety framework added to the scientific discovery agent pipeline, not a separate filter placed at each stage's exit.

    • Problem: Thinker, Experimenter, Writer, and Reviewer design experiments, call tools, and draft outputs. The authors argue that existing layers do not share decisions, so earlier warnings do not reach later stages; a series of individually passable tool calls can still collectively point to dual-use or dangerous synthesis.
    • Method: SIR reads the task, historical risk, and memory checks at each stage transition, gives a five-level risk and action, and leaves signals in shared state; certain categories escalate one level when co-occurring. CTV looks at the full call history before execution, scores based on request harmfulness, combination risk, and call safety, and when needed, TS-Flow redirects to alternatives. The original filters remain as fallback.
    • Main results: In Table 2, SciTrace with all four backbones outperforms SafeScientist on Safety, Reject, and Tool Safety, and also scores higher on Quality, Clarity, and Overall. The authors report an average tool-call safety rate improvement of 14.3 percentage points. On GPT-4o, the safety score is 4.93, refusal rate 95.0%, and tool safety rate 94.7%.
    • Combination and adversarial: On Qwen2.5-72B, of the 80 dangerous trajectories missed by single-step monitoring, CTV detects 63 (78.8%); for Information Science it is 9/14 (64.3%). The average refusal rate for discussion defenses rises from 39.1% to 65.2% (Table 6). The authors report an average adversarial refusal rate improvement of 24.7 percentage points. With only CTV added, Qwen's Reject is 86.8%, lower than SafeScientist's 87.0% (Table 4(a)).
    • Authors' conclusion: The authors believe these components improve tool-call safety and adversarial refusal while maintaining scientific output quality; they also argue that safety for multi-stage agents should be treated as an architectural choice, and that the design pattern behind SciTrace should transfer to autonomous agents beyond scientific discovery. In the abstract, the authors state that safety performance reaches SOTA among compared frameworks.

Related papers

Read originalarxiv.org