Think Before Refusal : Triggering Safety Reflection in LLMs to Mitigate False Refusal Behavior

Shengyun Si, Xinpeng Wang, Guangyao Zhai, Nassir Navab, Barbara PlankarXiv 2025

Abstract

Recent advancements in large language models (LLMs) have demonstrated that fine-tuning and human alignment can render LLMs harmless. In practice, such "harmlessness" behavior is mainly achieved by training models to reject harmful requests, such as "Explain how to burn down my neighbor's house", where the model appropriately declines to respond. However, this approach can inadvertently result in false refusal, where models reject benign queries as well, such as "Tell me how to kill a Python process". In this work, we demonstrate that prompting safety reflection before generating a response can mitigate false refusal behavior. Building on this finding, we introduce the Think-Before-Refusal (TBR) schema and conduct safety-aware instruction fine-tuning incorporating safety reflection. In an ablation study across 15 pre-trained models, we show that models fine-tuned with safety reflection significantly reduce false refusal behavior while maintaining safety and overall performance compared to those fine-tuned without safety reflection.

Introduction

Safety alignment in Large Language Models (LLMs) typically relies on techniques like Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO) to ensure models refuse harmful instructions. However, these methods often lead to "over-refusal" or "false refusal," where models reject benign queries that contain sensitive keywords (e.g., "kill," "steal," "burn"). This behavior stems from a reliance on surface-level token triggers rather than a deep understanding of intent and context.

To address this, we propose the Think-Before-Refusal (TBR) framework. TBR encourages models to generate a "safety reflection" rationale before providing a final response. By explicitly reasoning about the nature of a query, models can better distinguish between truly malicious requests and pseudo-harmful ones, such as actions within a video game or technical commands.

Examples of the TBR schema handling normal, pseudo-harmful (GTA), and harmful queries.

Methodology: The TBR Schema

The TBR framework consists of a two-stage pipeline designed to augment the model's reasoning capabilities regarding safety.

1. Safety Reflection Generation

The first stage involves generating rationales for safety-related instructions. The authors explore two approaches:

  • Internal Reflection: Leveraging the model's own Chain-of-Thought (CoT) capabilities to explain why a prompt is or isn't harmful.
  • External Reflection: Using a more advanced model (e.g., GPT-4) to generate high-quality rationales, which serves as a form of knowledge distillation for the target model.

2. Safety-Aware Instruction Fine-Tuning

The model is fine-tuned on an augmented dataset. For standard instructions ($D_{Normal}$), the model learns to answer directly. For safety-critical instructions ($D_{Safety}$), the model is trained to output a [Reflection] block followed by the [Answer]. This structured output forces the model to evaluate the context before committing to a refusal or a response.

The Think-Before-Refusal (TBR) training pipeline, illustrating reflection generation and safety-aware fine-tuning.

Experimental Setup

The study evaluated TBR across 15 pre-trained models from the Gemma, Llama, and Falcon families. The training data comprised a curated set of 2,000 instruction-response pairs, including 1,800 general instructions from Alpaca and 200 safety queries from the Anthropic red team dataset. Evaluation focused on three areas:

  • False Refusal: Measured using XSTEST-SAFE and OR-BENCH-HARD datasets containing "pseudo-harmful" prompts.
  • Safety: Measured using XSTEST-HARM and MALICIOUSINSTRUCTION to ensure the model still refuses truly dangerous content.
  • General Performance: Standard benchmarks including MMLU, ARC-C, and GSM8K to ensure no degradation in core capabilities.

Key Results and Discussion

Experiments across various model sizes revealed several critical findings:

  • Significant Reduction in False Refusals: For Llama-2-70B, compliance on benign but sensitive queries (XSTEST-SAFE) improved from 0.64 with standard fine-tuning to 0.96 with external safety reflection.
  • Maintained Safety Standards: Reducing false refusals did not compromise safety. Compliance on truly harmful datasets remained near zero, indicating the model still correctly identifies and rejects malicious intent.
  • Contextual Reasoning vs. Keyword Matching: Attribution analysis confirms that TBR-tuned models move away from simple keyword triggers. Instead of refusing any prompt containing "kill," the model analyzes the context (e.g., "Python process") during the reflection phase.
  • Performance Stability: There was no significant "alignment tax"; general reasoning and knowledge benchmarks (MMLU, GSM8K) remained stable, proving that safety reflection does not degrade the model's core intelligence.

Conclusion

The Think-Before-Refusal (TBR) schema demonstrates that explicit reasoning is a powerful tool for improving LLM alignment. By training models to reflect on safety before responding, we can significantly mitigate over-refusal behavior without sacrificing safety or general performance. Future work will explore internalizing this reasoning to reduce inference overhead and extending the framework to a broader range of ethical categories.

Summary updated

BibTeX
@misc{si2025think,
  author = {Shengyun Si and Xinpeng Wang and Guangyao Zhai and Nassir Navab and Barbara Plank},
  title = {{Think Before Refusal : Triggering Safety Reflection in LLMs to Mitigate False Refusal Behavior}},
  year = {2025},
  eprint = {2503.17882},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.17882},
}
Figure