TraceSafe: A Systematic Assessment of LLM Guardrails on Multi-Step Tool-Calling Trajectories
Yen-Shan Chen, Sian-Yao Huang, Cheng-Lin Yang, Yun-Nung Chen

TL;DR
This paper introduces TraceSafe-Bench, a comprehensive benchmark for assessing safety guardrails in multi-step tool-use trajectories of LLMs, revealing key factors influencing risk detection performance.
Contribution
It presents the first benchmark specifically designed to evaluate mid-trajectory safety of LLMs and analyzes factors affecting guardrail effectiveness.
Findings
Guardrail efficacy depends more on structural data competence than semantic safety.
Model architecture impacts risk detection more than size, with general-purpose LLMs outperforming specialized guardrails.
Risk detection accuracy remains stable or improves over extended trajectories.
Abstract
As large language models (LLMs) evolve from static chatbots into autonomous agents, the primary vulnerability surface shifts from final outputs to intermediate execution traces. While safety guardrails are well-benchmarked for natural language responses, their efficacy remains largely unexplored within multi-step tool-use trajectories. To address this gap, we introduce TraceSafe-Bench, the first comprehensive benchmark specifically designed to assess mid-trajectory safety. It encompasses 12 risk categories, ranging from security threats (e.g., prompt injection, privacy leaks) to operational failures (e.g., hallucinations, interface inconsistencies), featuring over 1,000 unique execution instances. Our evaluation of 13 LLM-as-a-guard models and 7 specialized guardrails yields three critical findings: 1) Structural Bottleneck: Guardrail efficacy is driven more by structural data…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
