Saved in:
Bibliographic Details
Main Authors: Li, Changyi, Wang, Jiayi, Pan, Xudong, Hong, Geng, Yang, Min
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.17244
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912647587299328
author Li, Changyi
Wang, Jiayi
Pan, Xudong
Hong, Geng
Yang, Min
author_facet Li, Changyi
Wang, Jiayi
Pan, Xudong
Hong, Geng
Yang, Min
contents Large Reasoning Models (LRMs) leverage transparent reasoning traces, known as Chain-of-Thoughts (CoTs), to break down complex problems into intermediate steps and derive final answers. However, these reasoning traces introduce unique safety challenges: harmful content can be embedded in intermediate steps even when final answers appear benign. Existing moderation tools, designed to handle generated answers, struggle to effectively detect hidden risks within CoTs. To address these challenges, we introduce ReasoningShield, a lightweight yet robust framework for moderating CoTs in LRMs. Our key contributions include: (1) formalizing the task of CoT moderation with a multi-level taxonomy of 10 risk categories across 3 safety levels, (2) creating the first CoT moderation benchmark which contains 9.2K pairs of queries and reasoning traces, including a 7K-sample training set annotated via a human-AI framework and a rigorously curated 2.2K human-annotated test set, and (3) developing a two-stage training strategy that combines stepwise risk analysis and contrastive learning to enhance robustness. Experiments show that ReasoningShield achieves state-of-the-art performance, outperforming task-specific tools like LlamaGuard-4 by 35.6% and general-purpose commercial models like GPT-4o by 15.8% on benchmarks, while also generalizing effectively across diverse reasoning paradigms, tasks, and unseen scenarios. All resources are released at https://github.com/CosmosYi/ReasoningShield.
format Preprint
id arxiv_https___arxiv_org_abs_2505_17244
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ReasoningShield: Safety Detection over Reasoning Traces of Large Reasoning Models
Li, Changyi
Wang, Jiayi
Pan, Xudong
Hong, Geng
Yang, Min
Computation and Language
Artificial Intelligence
Large Reasoning Models (LRMs) leverage transparent reasoning traces, known as Chain-of-Thoughts (CoTs), to break down complex problems into intermediate steps and derive final answers. However, these reasoning traces introduce unique safety challenges: harmful content can be embedded in intermediate steps even when final answers appear benign. Existing moderation tools, designed to handle generated answers, struggle to effectively detect hidden risks within CoTs. To address these challenges, we introduce ReasoningShield, a lightweight yet robust framework for moderating CoTs in LRMs. Our key contributions include: (1) formalizing the task of CoT moderation with a multi-level taxonomy of 10 risk categories across 3 safety levels, (2) creating the first CoT moderation benchmark which contains 9.2K pairs of queries and reasoning traces, including a 7K-sample training set annotated via a human-AI framework and a rigorously curated 2.2K human-annotated test set, and (3) developing a two-stage training strategy that combines stepwise risk analysis and contrastive learning to enhance robustness. Experiments show that ReasoningShield achieves state-of-the-art performance, outperforming task-specific tools like LlamaGuard-4 by 35.6% and general-purpose commercial models like GPT-4o by 15.8% on benchmarks, while also generalizing effectively across diverse reasoning paradigms, tasks, and unseen scenarios. All resources are released at https://github.com/CosmosYi/ReasoningShield.
title ReasoningShield: Safety Detection over Reasoning Traces of Large Reasoning Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2505.17244