ORFuzz: Fuzzing the "Other Side" of LLM Safety -- Testing Over-Refusal

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhang, Haonan, Wang, Dongxia, Liu, Yi, Chen, Kexin, Wang, Jiashui, Ying, Xinlei, Liu, Long, Wang, Wenhai
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909010820595712
author Zhang, Haonan
Wang, Dongxia
Liu, Yi
Chen, Kexin
Wang, Jiashui
Ying, Xinlei
Liu, Long
Wang, Wenhai
author_facet Zhang, Haonan
Wang, Dongxia
Liu, Yi
Chen, Kexin
Wang, Jiashui
Ying, Xinlei
Liu, Long
Wang, Wenhai
contents Large Language Models (LLMs) increasingly exhibit over-refusal - erroneously rejecting benign queries due to overly conservative safety measures - a critical functional flaw that undermines their reliability and usability. Current methods for testing this behavior are demonstrably inadequate, suffering from flawed benchmarks and limited test generation capabilities, as highlighted by our empirical user study. To the best of our knowledge, this paper introduces the first evolutionary testing framework, ORFuzz, for the systematic detection and analysis of LLM over-refusals. ORFuzz uniquely integrates three core components: (1) safety category-aware seed selection for comprehensive test coverage, (2) adaptive mutator optimization using reasoning LLMs to generate effective test cases, and (3) OR-Judge, a human-aligned judge model validated to accurately reflect user perception of toxicity and refusal. Our extensive evaluations demonstrate that ORFuzz generates diverse, validated over-refusal instances at a rate (6.98% average) more than double that of leading baselines, effectively uncovering vulnerabilities. Furthermore, ORFuzz's outputs form the basis of ORFuzzSet, a new benchmark of 1,855 highly transferable test cases that achieves a superior 63.56% average over-refusal rate across 10 diverse LLMs, significantly outperforming existing datasets. ORFuzz and ORFuzzSet provide a robust automated testing framework and a valuable community resource, paving the way for developing more reliable and trustworthy LLM-based software systems.
format Preprint
id arxiv_https___arxiv_org_abs_2508_11222
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ORFuzz: Fuzzing the "Other Side" of LLM Safety -- Testing Over-Refusal
Zhang, Haonan
Wang, Dongxia
Liu, Yi
Chen, Kexin
Wang, Jiashui
Ying, Xinlei
Liu, Long
Wang, Wenhai
Software Engineering
Artificial Intelligence
Computation and Language
Information Retrieval
Large Language Models (LLMs) increasingly exhibit over-refusal - erroneously rejecting benign queries due to overly conservative safety measures - a critical functional flaw that undermines their reliability and usability. Current methods for testing this behavior are demonstrably inadequate, suffering from flawed benchmarks and limited test generation capabilities, as highlighted by our empirical user study. To the best of our knowledge, this paper introduces the first evolutionary testing framework, ORFuzz, for the systematic detection and analysis of LLM over-refusals. ORFuzz uniquely integrates three core components: (1) safety category-aware seed selection for comprehensive test coverage, (2) adaptive mutator optimization using reasoning LLMs to generate effective test cases, and (3) OR-Judge, a human-aligned judge model validated to accurately reflect user perception of toxicity and refusal. Our extensive evaluations demonstrate that ORFuzz generates diverse, validated over-refusal instances at a rate (6.98% average) more than double that of leading baselines, effectively uncovering vulnerabilities. Furthermore, ORFuzz's outputs form the basis of ORFuzzSet, a new benchmark of 1,855 highly transferable test cases that achieves a superior 63.56% average over-refusal rate across 10 diverse LLMs, significantly outperforming existing datasets. ORFuzz and ORFuzzSet provide a robust automated testing framework and a valuable community resource, paving the way for developing more reliable and trustworthy LLM-based software systems.
title ORFuzz: Fuzzing the "Other Side" of LLM Safety -- Testing Over-Refusal
topic Software Engineering
Artificial Intelligence
Computation and Language
Information Retrieval
url https://arxiv.org/abs/2508.11222