Skip to content

DDOR: Interpretable Over-Refusal Testing and Repair with Delta DebuggingDDOR: Delta Debugging for Explainable Overrefusal Testing and Repair

arXiv· arXiv:2606.03601· ISSTA 2026· Qinyan Zhou, Peixin Zhang, Jun Sun, Haonan Zhang, Dongxia WangSoutheast University; School of Computing and Information Systems, Singapore Management University; Zhejiang University; Zhejiang University Huzhou Institute of Industrial Control TechnologyIndexed by this site · 23 days ago· Originally publishedDefenses

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors propose DDOR, which uses delta debugging to localize the minimal refusal-triggering fragment (mRTF), generates and repairs overrefusal test cases on six LLMs, and the authors report an average ORR on OR-Bench 19.30% higher than the seeds.

Questions
Safety alignment and guardrails cause LLMs to also refuse benign requests that merely superficially resemble harmful requests (overrefusal); the authors treat this as a functional usability defect of LLM applications. Existing benchmarks are uninterpretable, static, and model-agnostic, and ORFuzz's samples are mostly templates plus malicious sentences, not truly benign.
Methods
Under black-box conditions, DDOR uses delta debugging (ddmin) to reduce a rejected prompt to a 1-minimal minimal refusal-triggering fragment (mRTF), then an auxiliary LLM embeds the mRTF into diverse benign contexts to generate test cases, which are filtered for unsafe samples via multi-model CoT scoring; during repair, only the mRTF portion is rewritten.
Experiments and results
On six LLMs, the test sets generated by DDOR have an average ORR 19.30% higher than the OR-Bench seeds, with 5.03 times more test cases than whole-sentence rewriting and an ORR 68.67% higher; repair reduces refusals by an average of 51.96% and 86.41% on OR-Bench and XSTest; oracle validation FNR is 0.51%, better than OR-Bench's 28.28%.
Limitations and future work
The paper has no dedicated limitations section. Methodologically, the authors state that each seed returns only one mRTF, does not enumerate all minimal triggers, and delta debugging's same-failure-cause assumption may not always hold for LLMs. Experiments cover six models and three datasets, with results averaged over 5 runs; the oracle reviewers are two models, gpt-4o-mini and gemini-2.5-flash.
Experimental setupgpt-oss-20b、qwen3-30b-a3b-instruct-2507 et al. · OR-Bench-Hard-1K、S-Eval_base_risk_en_small et al. · Overrefusal Rate (ORR)、Dataset Size et al.
Threat model
Black-box setting: only access to the target model's inputs and outputs (API access), with internal safety mechanisms opaque. The goal is to start from refusal seeds, generate prompts that are superficially sensitive but benign in intent, and test and repair the model's overrefusal of benign requests.
Evaluated models
gpt-oss-20bqwen3-30b-a3b-instruct-2507deepseek-v3.1gemma-3-1b-itgpt-5gpt-5-mini
Benchmarks
OR-Bench-Hard-1KS-Eval_base_risk_en_smallXSTest
Metrics
Overrefusal Rate (ORR)Dataset SizeRepair RateSemantic SimilarityFNRFPRF1Cohen's κ
AI summaryThe researchers propose the DDOR (Delta Debugging for OverRefusal) framework, which, in a black-box setting with access only to model inputs and outputs, automatically tests and fixes the over-refusal problem of large language models. The method first uses delta debugging to locate the minimal refusal-triggering fragment (mRTF) that causes refusal, providing phrase-level interpretable evidence; it then generates diverse, context-rich prompts based on these fragments, and after multi-oracle validation filters out samples that are inherently unsafe or ambiguous, building for each model an over-refusal test set of about 1K cases. On the fixing side, DDOR uses the located fragments for targeted prompt repair, substantially reducing over-refusal while preserving the original intent and safety against genuinely harmful inputs.

The researchers propose the DDOR (Delta Debugging for OverRefusal) framework, which, in a black-box setting with access only to model inputs and outputs, automatically tests and fixes the over-refusal problem of large language models. The method first uses delta debugging to locate the minimal refusal-triggering fragment (mRTF) that causes refusal, providing phrase-level interpretable evidence; it then generates diverse, context-rich prompts based on these fragments, and after multi-oracle validation filters out samples that are inherently unsafe or ambiguous, building for each model an over-refusal test set of about 1K cases. On the fixing side, DDOR uses the located fragments for targeted prompt repair, substantially reducing over-refusal while preserving the original intent and safety against genuinely harmful inputs.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Addressing LLM over-refusal to benign requests: existing benchmarks are uninterpretable and static, and ORFuzz samples are not truly benign.

    Core problem: LLM safety mechanisms also refuse benign requests that merely superficially resemble harmful requests (overrefusal); the authors treat this as a functional usability defect of LLM applications, requiring automated testing means that can explain, localize, and repair it.

    • Scenario and motivation: The authors take the command-line AI coding assistant Aider as an example: a developer asks it to generate a password testing program that complies with a website's terms of use, and the underlying LLM may misjudge this as building a hacking tool and refuse. The authors argue this reduces the reliability and usability of LLM-integrated software.
    • Shortcomings of existing benchmarks: The authors point out that benchmarks such as XSTest and OR-Bench have three limitations—they are not interpretable (cannot localize the specific words that trigger refusal), they are model-agnostic and static (cannot adapt to the refusal patterns of different models), and building from scratch is hard to scale; the authors also state that they observed mislabeling in the OR-Bench dataset (genuinely unsafe prompts retained as safe).
    • Criticism of ORFuzz: The authors state that the samples generated by ORFuzz are almost all of the "template instruction + malicious sentence" pattern, of which 48.02% use the same template instruction; the authors argue that these samples are not truly benign (restating malicious content should itself be refused), that the template space is narrow, and that fine-grained localization and repair are not supported.
    • Paper's approach: Proposes DDOR (Delta Debugging for OverRefusal), a fully automatic, black-box, model-specific framework: uses delta debugging to localize the minimal refusal-triggering fragment (mRTF), generates test cases based on it and performs multi-model oracle validation, then uses the mRTF for targeted prompt repair.
    • Setting (black-box): The paper explicitly adopts a black-box setting—only API access to the target model is required, only inputs and outputs can be observed, and access to internal states is not assumed; the authors state this is close to the actual deployment of closed-source models. This is not an attack paper and has no attacker threat model; its goal is to evaluate and mitigate the model's own overrefusal.
  2. What related research exists?

    Related work falls into four groups: safety alignment and refusal mitigation, LLM testing, over-refusal benchmarks, and reasoning-based safety filtering and delta debugging.

    Safety alignment and overrefusal mitigation

    • Alignment techniques: RLHF (Ouyang et al. 2022), Constitutional AI (Bai et al. 2022), runtime guardrails (Huang et al. 2025); the paper cites the "safety tax" notion, i.e., excessive caution harms reasoning and instruction-following ability.
    • Mitigation methods: safety-reflection fine-tuning (Si et al. 2025), safety representation ranking (Du et al. 2025), representation steering (Wang et al. 2025), dual-objective optimization (Zhao et al. 2025).
    • SAE activation steering (O'Brien et al. 2025): localizes and suppresses the "refusal feature." The paper criticizes it for modifying the model's internal safety mechanism, causing the model to improperly answer genuinely harmful questions, and potentially harming general capabilities.

    LLM testing

    • Safety testing frameworks: S-Eval (Yuan et al. 2025) generates adversarial prompts and uses a scalable oracle to detect harmful behavior; ASTRAL (Ugarte et al. 2025) makes safety testing an end-to-end toolchain.
    • ORFuzz (Zhang et al. 2025): mutation-based fuzzing to generate prompts that induce refusal. The paper criticizes it for coarse granularity, uninterpretability, and inability to localize refusal-triggering factors, thereby limiting evaluation and targeted repair.

    Overrefusal benchmarks

    • XSTest (Röttger et al. 2024): the paper states it is the first test set targeting overrefusal, with 250 hand-written safe prompts (10 categories) plus 200 unsafe contrast prompts.
    • OR-Bench (Cui et al. 2025): automatic generation pipeline—an LLM creates harmful seeds, rewrites them into "seemingly harmful but actually harmless" prompts, and a multi-model ensemble (gpt-4-turbo, llama-3-70b, gemini-1.5-pro) filters them, 80,000 in total across 10 categories, including a 1,000-item hard subset. The paper criticizes its rewriting for staying at the prompt level with poor interpretability, and the authors observed mislabeled cases.

    Reasoning-based safety filtering and delta debugging

    • GuardReasoner (Liu et al. 2025): Reasoning-SFT plus Hard-Sample DPO to train a "reason first, then adjudicate" guardrail; TBR (Si et al. 2025) has the model reason before refusing; Llama Guard (Inan et al. 2023) is mentioned as a structured guardrail baseline.
    • Delta debugging: Zeller & Hildebrandt (2002)'s ddmin, HDD (Misherghi & Su 2006), C-Reduce (Regehr et al. 2012); the paper states these successes prompted it to apply delta debugging to localizing LLM refusal triggers.

    Baselines and benchmarks: generation compared against OR-Bench-Hard-1K, whole-sentence rewriting, ORFuzz, RASS (white-box, Pan et al. 2025); repair compared against whole-sentence rewriting and RASS; seed sets are OR-Bench-Hard-1K and S-Eval, repair evaluation uses OR-Bench and XSTest. The authors position this paper as: compared with the above work, DDOR provides phrase-level interpretability, model-specific adaptivity, full automation, and more realistic benign contexts.

  3. How does the paper address this problem?

    DDOR three steps: ddmin localizes the mRTF → generate diverse benign prompts based on the mRTF → multi-model CoT scoring and filtering; repair rewrites only the mRTF.

    Overall approach: treat overrefusal as a localizable "software defect," use the DDOR framework to first localize the minimal refusal-triggering fragment (mRTF) under black-box conditions, then use it as a causal anchor to generate model-specific test sets and perform targeted repair.

    Fault Localization

    • mRTF definition: a prompt is represented as a sequence of fragments P = {f1, f2, ..., fn}; the mRTF is a 1-minimal subset satisfying test(SmRTF)=FAIL and becoming PASS when any unit is removed; test is determined by whether the target model's answer constitutes a refusal.
    • Algorithm: uses ddmin (Algorithm 1): starting from n=2, splits the current fragment sequence into n contiguous blocks and performs a complement test on each block; if the input still refuses after deleting a block, shrinks the input and decreases n, otherwise doubles n to refine; until no further splitting is possible, returns the remaining text as the mRTF.
    • Three adaptation designs: two-stage granularity (first split by sentence, then after shrinking to a single sentence split by spaces) preserves linguistic validity; refusal judgment uses Qwen3Guard-Gen-0.6B to classify the target model's answer (FAIL/PASS); the complement test adds adaptive partitioning to control query overhead.
    • Property notes: the authors explicitly state that each seed returns only one mRTF (for reasons of efficiency, sufficiency, and stability), guaranteeing 1-minimality at the chosen granularity without enumerating all minimal triggers; they also point out that delta debugging's assumption that "a subset fails for the same reason" may not always hold for LLMs, and the mRTF should be regarded as a minimal sufficient trigger rather than the unique root cause.

    Test case generation

    • Template constraints: generated prompts must contain the specified mRTF (order or contiguity not required), appear superficially sensitive, and keep the underlying intent benign.
    • Trigger combination parameter k: a single mRTF is often insufficient to stably induce refusal; the default is k=2, i.e., generation with the joint condition of two mRTFs.
    • Same-category combination: an auxiliary LLM assigns each mRTF to one of ten sensitive domains, and combinations are made only within the same domain, avoiding incoherence caused by semantically unrelated combinations.

    Oracle validation

    • Motivation: the authors criticize OR-Bench's filtering for being mediated through the output of Mistral-7B-Instruct-v0.3, so labels may reflect that model's safety behavior rather than the prompt semantics; DDOR instead directly evaluates the original candidate prompts.
    • Mechanism: N reviewer models each perform a three-step CoT (context interpretation, intent inference, consequence assessment) and give a harmfulness score θi from 1–5; the retention condition is that no reviewer gives a score of 5 and the mean score falls within (τlow, τhigh), thereby excluding high-risk, overly benign, and borderline harmful samples.

    Overrefusal repair

    • Two-step process: first use Algorithm 1 to localize the mRTF of the refused benign prompt, then give the mRTF and the original prompt to the rewriting model for replacement-style editing.
    • Three rewriting principles: minimal changes preserve the original meaning; replace sensitive phrases with semantically equivalent but safer expressions; all edits are confined within the mRTF.
    • Property: the authors emphasize that this is a client-side transformation that does not modify the model's internal safety alignment, and genuinely harmful queries should still be refused. The complete prompts for generation and repair are provided as online supplementary material (Section 6).
  4. What experiments did the paper conduct?

    Six LLMs, three datasets: on generation, DDOR's average ORR is 19.30% higher than the seeds; on repair, it reduces refusals by an average of 51.96%/86.41%; oracle FNR 0.51%.

    Experimental setup

    • Models tested (6): open-source gpt-oss-20b, qwen3-30b-a3b-instruct-2507 (qwen3-30b), deepseek-v3.1, gemma-3-1b-it; commercial gpt-5, gpt-5-mini.
    • Datasets: generation uses OR-Bench-Hard-1K (OR-Bench for short) and S-Eval_base_risk_en_small (S-Eval for short) as seeds; repair evaluation uses OR-Bench and XSTest.
    • Baselines: generation compared against OR-Bench-Hard-1K, whole-sentence rewriting (with the same oracle validation as DDOR), ORFuzz, RASS (white-box); repair compared against whole-sentence rewriting and RASS (DPO fine-tuning).
    • Metrics: generation looks at Dataset Size (number retained after filtering) and ORR (proportion of safe prompts still refused); repair looks at Repair Rate and Semantic Similarity (cosine similarity of text-embedding-3-large embeddings).
    • Auxiliary models and judgment: refusal detection uses Qwen3Guard-Gen-0.6B; generation classifier gpt-4.1-nano, generator gpt-4o; oracle reviewers are gpt-4o-mini and gemini-2.5-flash (N=2), acceptance interval τ_low=1.5, τ_high=3.5, excluded if any reviewer gives a score of 5; repair rewriting uses gpt-4o.
    • Repetitions and decoding: all results are averaged over 5 independent runs; generation temperature 0.6, localization, validation, and repair use greedy decoding (temperature=0).

    Main results

    According to Table 1 (generation, Size/ORR) and Table 2 (repair, DDOR column):

    Swipe horizontally to read the table

    ModelDDOR ORR (OR-Bench seeds)DDOR ORR (S-Eval seeds)DDOR repair rate (OR-Bench)DDOR repair rate (XSTest)
    gpt-oss-20b76.6%72.5%40.08%72.41%
    qwen3-30b37.9%39.4%60.63%100.00%
    deepseek-v3.138.4%39.7%62.35%92.31%
    gpt-573.1%55.8%45.76%83.33%
    gpt-5-mini56.7%71.4%45.92%87.10%
    gemma-3-1b-it56.4%51.1%57.02%83.33%
    • Generation comparison: the authors report that DDOR's average ORR on OR-Bench is 19.30% higher than the original seeds; it generates 5.03 times more test cases than whole-sentence rewriting with an average ORR 68.67% higher; on S-Eval seeds it has 18.28 times more samples and an ORR 104.30% higher. RASS's ORR is only 1.17%–2.17% (Table 1), and its white-box setting cannot be used for gpt-5, gpt-5-mini, deepseek-v3.1 (N.A. in the table); ORFuzz's ORR across models is 1.33%–52.89%, and the authors state it lags DDOR by more than 50% on gpt-5 and gpt-5-mini.
    • Repair comparison: the authors report that DDOR reduces refusals by an average of 51.96% (OR-Bench) and 86.41% (XSTest). On OR-Bench, compared with whole-sentence rewriting, the repair rate is 11.92% lower but similarity is 7.01% higher; on XSTest both are better (+3.63%, +1.67%), which the authors attribute to XSTest prompts being shorter (average 8.45 words vs OR-Bench 18.43 words). RASS's average repair rate on gemma-3-1b-it is 55.54%, but only 10.70% and 22.23% on qwen3-30b and gpt-oss-20b.
    • Exceptions: in Table 2, on XSTest DDOR's similarity is lower than whole-sentence rewriting on gpt-oss-20b (0.798 vs 0.809) and deepseek-v3.1 (0.717 vs 0.733); on gemma-3-1b-it DDOR's repair rate of 83.33% is lower than whole-sentence rewriting's 95.83%.

    Ablation: number of trigger combinations k (RQ3)

    • Setup: target model qwen3-30b-a3b, all else fixed, k ∈ {1,2,3}, mRTFs sampled from the same cluster (Table 3).
    • Results: at k=1, |D_cand|=1170, |D_final|=352, ORR 29.55%; at k=2, 3660, 984, 37.91%; at k=3, 5960, 694, 31.12%.
    • Authors' interpretation: k=3 has more candidates but a lower validation pass rate, and the number retained is actually less than at k=2; Figure 4 shows that as k increases the average oracle score distribution shifts toward higher harmfulness scores, and the authors believe more triggers push prompts toward the genuinely unsafe boundary, so the default is k=2.

    Refusal detector reliability (RQ4)

    • Setup: double-blind human evaluation of N=400 answers stratified-sampled from the reduction loop (200 predicted FAIL, 200 PASS), with labels determined by majority vote of three safety experts (Table 4).
    • Results: confusion matrix TP=194, FP=6, FN=0, TN=200; F1=0.985, Cohen's κ=0.97. The authors state the detector is highly consistent with human judgment.

    Oracle validation effectiveness (RQ5)

    • Setup: 300 prompts (150 OR-Bench-Hard-1K + 150 OR-Bench Toxic), harmfulness labeled by three experts as ground truth, comparing five methods (Table 5).
    • Results: DDOR's FNR 0.51%, FPR 5.88%, accuracy 97.67%, F1 0.9825; the OR-Bench pipeline's FNR 28.28%; gemini-2.5-flash alone FNR 2.53%/FPR 3.92%, gpt-4o-mini alone FNR 9.09%/FPR 38.24%; Qwen3Guard-Gen-0.6B accuracy 70.00%, FPR 75.49%.
    • Authors' interpretation: the authors believe that for overrefusal test sets, false negatives (contamination) are more harmful than false positives (losing valid samples), and DDOR trades a small increase in FPR for the lowest FNR.

    Other ablations and analyses

    • mRTF semantic analysis (RQ6): on gpt-5, 994 mRTFs extracted from OR-Bench-Hard-1K, embedding clustering (Silhouette index automatically selecting 15 clusters within 5–20), grouped into 6 major categories; Illicit Activity and Cybersecurity account for 27.97% and 24.45%, the smallest cluster Gun Manufacturing 1.31% (Table 6, Figure 5).
    • Overhead (RQ7): Table 7 reports an average of 10.57/17.66 API calls per seed for localization on XSTest/OR-Bench, with token consumption 6.12×/9.34× that of the original prompt; in the RQ7 answer the authors give an overall average of 14.11 calls and 6.73× tokens. Compared with ORFuzz's default 50 iterations, 600 external generation requests in total.
    • Aider case (4.8): Aider with the GPT-5-mini backend, after adding software engineering scenario constraints and authenticity filtering, yields 482 benign prompts, of which 191 are overrefused (ORR 39.63%), and 121 are successfully repaired (repair rate 63.35%).
  5. What are some points that can be further explored?

    The paper has no dedicated limitations section; the method description returns only a single mRTF and the same-cause failure assumption may not always hold, and the experiments cover six models.

    Limitations noted by the authors and future directions

    • The paper does not specifically discuss limitations: The full text has no Limitations or Future Work section, and the Conclusion (Section 5) also does not list future directions.
    • Single mRTF (Section 3.1): The authors explicitly state that each seed returns only one mRTF, does not enumerate all minimal triggers, and does not guarantee global minimality; the mRTF should be regarded as "one valid minimal explanation."
    • Assumption may not hold (Section 3.1): The authors point out that delta debugging assumes a failing subset fails for the same reason as the original input, whereas in LLM overrefusal there may be non-monotonic interactions among prompt components, so this assumption may not always hold.
    • Residual triggers in repair (Section 4.2): The authors state that DDOR only modifies the mRTF, leaving a small number of residual triggers unmodified, which is the cost of the repair rate on OR-Bench being 11.92% lower than whole-sentence rewriting.

    Experimental coverage

    • Models tested: gpt-oss-20b, qwen3-30b, deepseek-v3.1, gemma-3-1b-it, gpt-5, gpt-5-mini, 6 in total; the white-box baseline RASS has results only on three open-source models, with gpt-5, gpt-5-mini, and deepseek-v3.1 as N.A. (Table 1, 2).
    • Datasets: generation seeds are OR-Bench-Hard-1K and S-Eval_base_risk_en_small; repair evaluation uses OR-Bench and XSTest; the real application case is only Aider (GPT-5-mini backend), one case.
    • Review and judgment: the oracle reviewers are fixed as two models, gpt-4o-mini and gemini-2.5-flash (N=2); refusal detection validates only one detector, Qwen3Guard-Gen-0.6B (N=400 manual comparison).
    • Number of repetitions: results are averaged over 5 independent runs (Section 4.1); the k ablation is performed only on one target model, qwen3-30b-a3b (Section 4.3).
    • Not reported in the paper: the impact of choices of auxiliary models other than the generator gpt-4o and the rewriting model; the agreement between the two oracle reviewers and human annotation (RQ5 reports only FNR/FPR/accuracy/F1 against human labels).
  6. Summarize the main content of the paper

    DDOR turns over-refusal into a software defect that can be localized, generated, and repaired, validated on six LLMs under black-box conditions.

    A software-engineering-perspective paper on overrefusal testing and repair: it treats LLM false refusals to benign requests as a usability defect and proposes the black-box framework DDOR.

    • Problem: benchmarks such as XSTest and OR-Bench are uninterpretable, static, and model-agnostic; the authors criticize ORFuzz's samples as "template instruction + malicious sentence" (48.02% use the same template), not truly benign.
    • Method: use ddmin to reduce a rejected prompt to a 1-minimal minimal refusal-triggering fragment (mRTF; refusal judgment uses Qwen3Guard-Gen-0.6B); by default k=2 embeds same-domain mRTFs into diverse benign contexts to generate cases; gpt-4o-mini and gemini-2.5-flash dual-reviewer CoT scoring (1–5 points; retained only if the mean is 1.5–3.5 and no score is 5); during repair, only the mRTF is rewritten.
    • Generation results: on six LLMs, under OR-Bench seeds the average ORR is 19.30% higher than the original seeds, with 5.03 times more cases than whole-sentence rewriting and ORR 68.67% higher; RASS's ORR is only 1.17%–2.17% and cannot be used for closed-source models (Table 1).
    • Repair results: on OR-Bench and XSTest, refusal is reduced by an average of 51.96% and 86.41%; relative to whole-sentence rewriting, on OR-Bench the repair rate is 11.92% lower in exchange for 7.01% higher similarity, and on XSTest both are better (Table 2).
    • Reliability evidence: refusal detector vs. manual labels F1=0.985, κ=0.97 (N=400); oracle validation FNR 0.51%, far below the OR-Bench pipeline's 28.28% (Table 5); in the Aider case, ORR 39.63%, repair rate 63.35%.
    • Authors' conclusion: the authors state that DDOR makes over-refusal interpretable, testable, and repairable, and that the multi-reviewer oracle is key to reducing unsafe samples; localization overhead averages 14.11 API calls. The authors also note that the mRTF is only a minimal sufficient trigger, not the unique root cause.

Related papers

Both use: OR-Bench-Hard-1K
Read originalISSTA 2026