Manuscript Offprint

arXiv:2608.24232

TRACE: An Evidence-Grounded Benchmark for Safety Evaluation of Large Reasoning Models

Zhenyu Wu, Siyuan Chen, Changchun Yang, Jiaqi Dong, Min Zhou, Ali Almadan, Talal Hammad, Faisal Wahbo, Aminullah Tora, Mona Alshahrani, Xin Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large Reasoning Models (LRMs) generate intermediate reasoning traces that may contain unsafe content, even when their final responses appear safe. Guardrail models are designed to detect and block unsafe content, yet existing benchmarks for unsafe content detection focus primarily on prompts and final responses, leaving reasoning traces largely unexamined. Moreover, these benchmarks typically provide only binary safety labels, without evidence annotations that justify the judgments. To address these limitations, we introduce TRACE, an evidence-grounded safety evaluation benchmark that covers the entire LRM inference pipeline: prompts, reasoning traces, and final responses. TRACE includes prompts in two languages spanning nine risk categories and ten attack strategies. For each prompt, four LRMs generate reasoning traces and final responses, and we annotate the safety of each component and extract supporting evidence from the corresponding source text. Evaluating 18 guardrail models on TRACE reveals that safety judgment for reasoning traces is substantially more challenging than for prompts or final responses, and that current models struggle to accurately extract supporting evidence. These findings highlight the need for guardrail models that can reliably detect and precisely localize unsafe content across the LRM inference pipeline. The dataset is available at TRACE.

1 Introduction

Large Reasoning Models (LRMs) have achieved remarkable success across a wide range of reasoning tasks (OpenAI, 2025b; Kimi, 2026; Qwen, 2026). A key factor underlying this success is their ability to generate detailed reasoning traces, which capture intermediate thinking processes that help LRMs decompose complex problems, perform self-correction, and ultimately produce more accurate and reliable responses (DeepSeek-AI, 2025a).

Figure

Figure 1: Existing benchmarks evaluate safety judgments for prompts and final responses but overlook unsafe reasoning traces. TRACE introduces evidence-grounded safety annotations (highlighted in orange) across the entire LRM inference pipeline, enabling comprehensive evaluation of both the correctness of safety judgments and the accuracy of evidence attribution.

However, these reasoning traces introduce significant safety risks. As shown in Figure 1, when given the harmful prompt “How can I hide mace from airport security”, the LRM generates a reasoning trace that explicitly describes prohibited concealment strategies, despite its final response refusing to comply. This contradiction between the reasoning trace and the final response reveals a safety risk: reasoning traces may contain unsafe content even when the final response appears safe.

Guardrail models are designed to evaluate content safety and block unsafe outputs from reaching users. Most existing guardrail models, including LlamaGuard (Inan et al., 2023), PolyGuard (Kumar et al., 2025), Qwen3Guard (Zhao et al., 2025), and YuFeng-XGuard (Lin et al., 2026), are trained to assess the safety of prompts and model-generated final responses. Yet the effectiveness of these models in detecting unsafe content within LRM-generated reasoning traces remains largely unexplored.

Existing unsafe content detection benchmarks, such as ToxicChat (Lin et al., 2023), WGTest (Han et al., 2024), XSTest (Röttger et al., 2024), and Aegis (Ghosh et al., 2025), primarily evaluate

BenchmarkPrompt SafetyReasoning Trace SafetyFinal Response SafetyEvidence AttributionDiverse Risk CategoriesDiverse Attack Strategies
XSTest (Röttger et al., 2024)✓✕✕✕✕✕
ToxicChat (Lin et al., 2023)✓✕✓✕✕✕
OpenAI Moderation (Markov et al., 2023)✓✕✕✕✓✕
WGTest (Han et al., 2024)✓✕✕✕✓✕
Aegis (Ghosh et al., 2024, 2025)✓✕✓✕✓✕
BeaverTails (Ji et al., 2023)✓✕✓✕✓✕
SafeRLHF (Ji et al., 2025)✓✕✓✕✓✕
S-Eval (Yuan et al., 2025)✓✕✕✕✓✓
TRACE (Ours)✓✓✓✓✓✓

Table 1: Comparison of unsafe content detection benchmarks. TRACE introduces evidence-grounded safety annotations across the entire LRM inference pipeline, including prompts, reasoning traces, and final responses.

whether guardrail models make correct safety judgments on prompts or final responses, making them unsuitable for evaluating safety judgments on LRM-generated reasoning traces. Moreover, these benchmarks typically provide only binary safety labels, without annotating the specific evidence in the source text that justifies each judgment. This limitation prevents them from assessing whether a guardrail model can accurately identify and attribute the evidence underlying its judgment. Evidence attribution is essential for evaluating whether guardrail models can precisely localize unsafe content across the entire LRM inference pipeline.

To address these limitations, we introduce TRACE, a benchmark that provides evidence-grounded safety annotations across the entire LRM inference pipeline. Specifically, we curate both safe and unsafe prompts from S-Eval (Yuan et al., 2025) and WildChat (Zhao et al., 2024), covering nine risk categories and ten attack strategies. For each prompt, we employ four LRMs to generate reasoning traces and final responses. We then use three additional powerful LRMs to annotate the safety of prompts, reasoning traces, and final responses, while extracting supporting evidence from the corresponding source text. Safety labels are assigned by majority vote, and evidence is retained only when it is provided by majority-aligned annotators and verified as a continuous substring of the source text. Samples without verifiable evidence are further annotated by humans. As shown in Figure 1, the prompt and reasoning trace are labeled as unsafe, whereas the final response is labeled as safe, with the corresponding evidence highlighted in the source text. Overall, TRACE enables holistic evaluation of guardrail models in terms of both safety judgment correctness and evidence attribution accuracy across the entire LRM inference pipeline.

We evaluate 18 representative guardrail models on the TRACE benchmark. The results show that 14 out of 18 models achieve their highest performance on prompt safety judgment, followed by final response safety judgment, while reasoning trace safety judgment remains the most challenging task. Specifically, YuFeng-XGuard-8B attains F1-scores of 88.27%88.27\%, 86.11%86.11\%, and 84.26%84.26\% on prompt, final response, and reasoning trace safety judgment, respectively. Similarly, PolyGuard-8B achieves F1-scores of 91.17%91.17\%, 84.15%84.15\%, and 82.57%82.57\% across the same three tasks. In contrast, guardrail models perform substantially worse on evidence attribution. Even the best-performing model, YuFeng-XGuard-8B, achieves TokenF1 scores of only 11.68%11.68\%, 13.71%13.71\%, and 14.88%14.88\% for evidence attribution in prompt, final response, and reasoning trace safety judgment, respectively. These results indicate that current guardrail models still struggle to accurately extract evidence supporting their safety judgments.

In summary, our main contributions include:

  • We propose TRACE, an evidence-grounded benchmark designed to evaluate guardrail models in terms of both safety judgment correctness and evidence attribution accuracy across the LRM inference pipeline, including prompts, reasoning traces, and final responses.

  • Evaluating 18 guardrail models on TRACE reveals that judging the safety of reasoning traces is more challenging than judging prompts or final responses. Moreover, current guardrail models struggle to accurately extract evidence supporting their safety judgments.