Closing the Phase Boundary: Inter-Phase Handoff Repair Reduces Over-Refusal in LLM Intent AnalysisClosing the Stage Boundary: Inter-Stage Handoff Repair Reduces Over-Refusal in LLM Intention Analysis
The authors propose a training-free IA stage handoff repair that reduces over-refusal across nine benign settings on three models, with zero A-to-D added harmful assistance on unsafe XSTest.
The defense targets the two-stage Intention Analysis (IA) workflow: the first stage analyzes safety intent under non-answering rules, and the second stage answers. The repair modifies only the second-stage message, fixing intent, model weights, and greedy decoding, and preserving safety restrictions; it targets API and quantized assistants and requires no internal access.
- Two-stage Intention Analysis first analyzes safety intent and then answers, but benign requests are also often refused. The authors argue that the first stage's non-answer rule not being closed and the second stage indirectly referencing the task may cause stage-handoff ambiguity.
- Condition D adds, in the second stage, in order, a stage transition statement, the original safety rules, and a verbatim re-presentation of the original query, with intent, weights, and decoding fixed. The experiments compare Base, the original IA, and component variants, evaluated with paired statistics and manual audit.
- Across three models and three benign benchmarks, all nine A-to-D comparisons reduced over-refusal, with paired bootstrap intervals all above zero. On unsafe XSTest, none of the three models showed A-to-D added harmful assistance; D relative to Base still had model- and benchmark-dependent residual refusals.
- The authors plan to extend to adaptive jailbreak wrappers and multi-turn collaborative designs. The experiments cover only three instruction-model configurations; some Qwen historical budgets are inconsistent, and the paper does not report the number of repeated runs of GPT-6 Astra review.
- Metrics
- over-refusalpaired net reductionpercentage-point gainharmful assistance
The authors propose a training-free inter-stage handoff repair method to reduce over-refusal in LLM two-stage intent analysis (IA) defenses. Such defenses in collaborative LLM workflows first screen for safe intent using non-answer rules before responding; the authors attribute over-refusal to a handoff defect where the first-round non-answer boundary is not closed and the task is only indirectly referenced, and the repair combines explicit stage-transition declarations with verbatim restatement of the query. On Qwen2.5-7B, Llama-3.1-8B, and Q8_0 Gemma-3-12B, tests based on FalseReject-Test, OR-Bench-Hard, and safe XSTest show that the method reduces paired over-refusal by 3.60-37.83 percentage points relative to the original IA across all nine settings, and does not increase A-to-D harmful assistance on decidable unsafe XSTest pairs (0/200 for Qwen and Gemma, Llama remains 1/200). The repair is plug-and-play, requiring no retraining or internal access to upgrade API and quantized model assistants.
Related events and news
1 events · 0 news mentions
- This event's paper
阶段间交接修复降低LLM意图分析过度拒答
Paper analysis
What problem does this paper attempt to solve?
The authors attribute IA over-refusal to an unclosed stage handoff and propose a training-free message-level repair under fixed intent.
The core problem is that two-stage Intention Analysis (IA), after screening for safety intent, still over-refuses benign requests. The authors focus on how to repair the handoff from the analysis stage to the answering stage without changing intent, model weights, or safety restrictions.
- Application scenarios: Collaborative LLMs are used for technical writing, synthesis, compliance review, and design support; over-refusal of benign prompts containing sensitive or figurative wording interrupts legitimate tasks.
- Shortcomings of existing methods: The authors state that existing work mainly improves intent extraction, wrapper supervision, reasoning data, or model-internal decoding, and has not examined inter-stage handoff under fixed intent; fine-tuning requires per-model retraining, and logit contrast and attention routing require white-box internal access that standard chat APIs and quantized runtimes cannot provide.
- Core observation: The first stage of the original IA requires not actually answering but has no closing marker; the second stage refers to "the aforementioned query" only indirectly through a summary containing safety wording. The authors believe the former may let the prohibition persist across turns, and the latter's direct repetition of sensitive wording may increase caution.
- Proposed method: Condition D combines an explicit stage transition statement S, the original safety rules CT, and a verbatim re-presentation of the original query R into the second stage, keeping IA's two-call budget, without retraining or accessing internal state.
- Threat model: This is a study defending against over-refusal and checking the safety cost, not a jailbreak attack paper.
- Protected targets: API-hosted or quantized LLM assistants that adopt two-stage IA.
- Defender capability: Can modify only the message-level stage handoff; intent, weights, and greedy decoding are fixed.
- Safety goal: Reduce benign over-refusal without increasing harmful assistance on unsafe XSTest relative to the original IA.
- Not specified: The paper does not define an active attacker's knowledge, query budget, or adaptive attack capability.
What related research exists?
Related work is divided into three groups: intent defenses, refusal calibration, and context re-reading; this paper changes only the message-level stage boundary.
Intent-oriented defenses
- IA (Zhang et al., 2025): Performs two rounds of intent screening before generation, first summarizing the query's safety-relevant intent and then answering based on it; this paper retains its original prompts and two-stage structure.
- SAID (Chen et al., cited version 2026): Implements Safety-Aware Intent Defense via prefix probing.
- WIFA (Wu et al., cited version 2026): Uses wrapper-grouped supervision, supervising refusals by intent group rather than surface form. The authors state that IA, SAID, and WIFA improve intent extraction or scoring but do not change the answering-stage handoff.
Over-refusal benchmarks and calibration
- XSTest (Röttger et al., 2024) and OR-Bench (Cui et al., 2025): Provide test resources for identifying exaggerated safety behavior and over-refusal; this paper uses safe/unsafe XSTest and OR-Bench-Hard, respectively.
- FalseReject (Zhang et al., 2025): Improves contextual safety and mitigates over-refusal through structured reasoning supervision; this paper uses FalseReject-Test as a preset held-out transfer benchmark.
- AdaCD (Qi et al., 2026) and Semantic Routing Calibration (Wang et al., 2026): Employ adaptive contrastive decoding and dynamic semantic routing calibration, respectively. The authors note that such logit contrast and head routing methods require white-box internal access, while fine-tuning methods require per-model retraining.
Context utilization and query repetition
- Re-Reading (Xu et al., 2024) and Prompt Repetition (Leviathan et al., 2025): Study re-reading or repeating prompts to improve performance of reasoning or non-reasoning models.
- Lost in the Middle (Liu et al., 2024): Studies long-context use; the authors cite it to explain that intervening text reduces recall of earlier details, and use it as motivation for single-turn query re-reading and repetition.
- The authors' caveat: In multi-stage safety pipelines, if earlier non-answering rules remain in effect, repeating a seemingly sensitive prompt may increase refusals; therefore this paper does not repeat the query alone but also explicitly closes the stage boundary.
Baselines and evaluation data
- Control conditions: Base is direct answering without IA rounds, and A is the original IA; the Qwen ablation additionally includes stage transition only B, query re-presentation only C, and a length-matched generic clarity prompt E.
- Benchmarks used: Benign evaluation uses FalseReject-Test, OR-Bench-Hard, and safe XSTest; the safety control is unsafe XSTest.
The authors position this paper as a message-level stage-boundary intervention under fixed intent, weights, and decoding, distinguished from methods that modify intent content or model internal mechanisms.
How does the paper address this problem?
Condition D reconstructs the second call in the order S, CT, R, and uses six conditions to separate the two handoff components.
The overall idea is to retain IA's shared intent and two calls, and only in the second user message explicitly end the analysis stage, retain the safety rules, and re-present the original query verbatim, forming an inter-stage handoff repair.
Shared prefix and problem formulation
- Shared input: Q denotes the original request, and I denotes the intent generated by the first-stage IA; the shared prefix consists of the system message, the analysis prompt containing Q, and the assistant message I.
- Condition control: Within the same model, Q and I are the same across IA conditions; across models, Q is the same, but each model generates and reuses its own I. Each condition branches independently from the shared prefix.
- Original prompt retention: The system message sets a helpful assistant; the first stage focuses on safety, ethics, and legality and prohibits actual answering, while the second-stage CT requires answering directly based on the intent and complying with safety restrictions. The paper gives these prompts in full.
Stage transition and query re-presentation
- Stage transition S: Declares that the intent analysis stage is complete, that the non-answering instruction applies only to the previous stage, and that the current stage is the answering stage. The authors state that it limits the temporal scope of the operational constraint without weakening the safety restrictions in CT.
- Query re-presentation R: Starts a line with the original query heading, then appends Q verbatim, without rewriting, truncating, or adding commentary, to restore local access to the original task wording.
- Condition D: Concatenates S, CT, and R in that order, separated by two newlines; it is still the standard IA two calls, adding only structured handoff text.
Six comparison conditions
- Base, A, D: Base submits Q directly after the system message; A sends only CT, i.e., the original IA; D uses the full repair. The main comparison is A-to-D.
- B, C: B is S+CT, adding only the stage transition; C is CT+R, adding only the query re-presentation.
- E: P+CT, adding a length-matched generic clarity instruction before CT, controlling for general prompt expansion.
- Ablation correspondence: On Qwen OR-Bench-Hard, B-to-D isolates the effect of query re-presentation given the stage transition, C-to-D isolates the effect of the stage transition given the re-presented query, and E controls for general prompt expansion.
Generation budgets and output handling
- Unified settings: Llama and Gemma use batch size 1, a 2,048-token intent budget, and an 8,192-token main answer budget on both benign and non-safe benchmarks; all intents completed normally.
- Qwen budgets: On FalseReject, Base, A, and D use 8,192 tokens and batch size 2; OR-Bench-Hard and safe XSTest reuse some historical Base, A, and intent records, and budgets are not fully consistent.
- Truncation handling: In 8,192-token benign runs, length-truncated outputs are retried at most once at 16,384 tokens and archived separately; persistently truncated records do not enter the main rates.
Semantic judgment and paired statistics
- Over-refusal definition: Unnecessary refusal of benign requests, including replacing substantive task completion with safety or ethical lecturing; brief warnings attached to relevant answers do not count as refusal.
- Review method: GPT-6 Astra reviews complete (Q, answer) pairs in condition-blinded queues, recording reasons and source excerpts; final determinable labels are binary, and semantically unresolved and technically excluded items do not enter the denominator.
- Paired computation: A common denominator n is formed only when both source condition U and target condition V have determinate labels; r is the number resolved, a is the number added, net reduction is r−a, and paired gain is Δ = 100(r−a)/n percentage points.
- Statistical tests: 10,000 request-level paired bootstrap iterations, 95% CI, exact two-sided McNemar test; Holm correction is applied within each of the three benchmarks for Llama and Gemma separately.
- Harmful assistance definition: Even with a disclaimer, substantively advancing a non-safe goal counts as a positive; refusal or providing safety education or supportive content counts as a negative. Manual blinded review and the HarmBench classifier are additionally used for cross-checking.
What experiments did the paper conduct?
All nine benign A-to-D settings reduce over-refusal, but D still has residual refusals relative to Base, and the safety control also has exceptions.
Experimental Setup
- Models under test: Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, Gemma-3-12B-it; the first two use BF16+PyTorch SDPA, and Gemma uses Q8_0 GGUF, run via llama.cpp, CUDA Flash Attention, F16 KV cache, and a 24,576-token context.
- Benign data: 2,756 items per model in total, including 1,319 benign prompts from the fixed or-bench-hard-1k release of OR-Bench-Hard, all 250 safe XSTest items, and all 1,187 FalseReject-Test items.
- Safety data: All three models are evaluated on all 200 unsafe XSTest items, comprising eight categories with 25 items each; Llama and Gemma total 1,200 Base/A/D outputs.
- Controls and metrics: Base, original IA (A), and D are used for cross-model comparison; Qwen additionally has B, C, and E. Metrics are over-refusal count/decidable count, resolved/added counts on common correct items, net reduction and percentage-point gain, and harmful assistance on unsafe XSTest.
- Review and audit: GPT-6 Astra performs semantic review; exact agreement between the 90-item stratified manual audit and AI labels is 87.8% (79/90, Cohen's κ=0.75). In the 50-item blinded review for Llama/Gemma, decidable agreement is 92.1% (35/38).
- Decoding and repetition: All use the official chat template and deterministic greedy decoding; statistical resampling is 10,000 times, and the paper does not report the number of independent repetitions of generation or semantic review.
Main Results
According to Table I, the paired A-to-D results are as follows; FR, OR, and XS are FalseReject-Test, OR-Bench-Hard, and safe XSTest, respectively, and r/a are resolved/added refusals.
Swipe horizontally to read the table
Model Set A over-refusals D over-refusals n r/a Net reduction Qwen FR 371/1187 190/1186 1186 197/17 180 Qwen OR 508/1309 90/1319 1309 429/9 420 Qwen XS 25/250 9/250 250 18/2 16 Llama FR 275/1187 215/1187 1187 98/38 60 Llama OR 430/1319 265/1318 1318 202/37 165 Llama XS 20/250 11/250 250 12/3 9 Gemma Q8_0 FR 420/1187 175/1187 1187 259/14 245 Gemma Q8_0 OR 613/1319 114/1319 1319 507/8 499 - Intervals and significance: The authors report that the A-to-D net reductions are all positive across the nine model–benchmark combinations, and every 95% paired bootstrap CI in Figure 2 is strictly above zero; the three benchmark comparisons for Llama and Gemma are all significant after Holm correction, with the largest adjusted p=0.0352 (Llama safe XSTest).
- Prespecified transfer results: The paired gain for Qwen FalseReject is +15.18 percentage points, exact p=5.03e-40; Llama is +5.05 points and Gemma is +20.64 points. The authors state that the template was frozen in advance and no dataset-specific tuning was performed.
- Exceptions and interpretation boundaries: In multiple settings a>0, i.e., D still adds refusals. The authors caution that precision, serving backend, and historical Qwen budget differ, and that cross-model differences reflect different deployment pipelines and cannot be explained solely as scale or quantization effects.
Qwen Component Ablation and Interaction
- Six-condition counts: On OR-Bench-Hard, D is 90/1,319 (6.82%), A is 508/1,309 (38.81%), B is 152/1,319 (11.52%), C is 366/1,319 (27.75%), E is 240/1,319 (18.20%), and Base is 122/1,308 (9.33%).
- Component contributions: In Table II, B-to-D resolves 108, adds 46, and net-reduces 62; C-to-D resolves 300, adds 24, and net-reduces 276; E-to-D net-reduces 150. The main text separately reports that B net-resolves 88 more refusals than E.
- Stratified exception: On the 425 diagnostic prompts where Base succeeds but A refuses, D recovers 375 and retains 50 refusals; among the remaining 894, D's net reduction on 884 decidable pairs is 45. C on these 894 resolves only 23 but adds 94, a net regression of 71; on this basis the authors argue that re-presenting the query without closing the stage prohibition may amplify caution.
Comparison with Direct-Answer Base
- Qwen: D has 34 fewer paired over-refusals than Base on OR-Bench-Hard, but 28 more on FalseReject-Test and 3 more on safe XSTest.
- Llama: D versus Base on OR, FR, and XS is +1, −25, and +4 refusals, respectively, and all three 95% CIs cross zero.
- Gemma: D versus Base has 74 more on OR and 104 more on FR, with a net difference of zero on XS; the authors state that two-stage screening still has model- and workload-dependent residual overhead.
- Set differences: On safe XSTest, Gemma Base and D are both 2/250, but the refusal sets have zero overlap (r=2, a=2); Qwen D resolves all 6 Base refusals while adding 9 on other prompts.
unsafe XSTest Safety Control
- Qwen: In Table III, D has 0/200 harmful responses, with a one-sided 95% exact upper bound of 1.49%; among the n=191 A-to-D pairs it adds 0 and resolves 1, with a risk difference of −0.52 percentage points, 95% CI [−3.29, 2.26].
- Llama: A and D are both 1/200 (0.50%), and it is the same privacy prompt; A-to-D adds 0 and resolves 0, n=200, risk difference 0.00 points, 95% CI [−2.17, 2.17].
- Gemma Q8_0: A and D are both 0/200, upper bound 1.49%; A-to-D adds 0 and resolves 0, n=200, 95% CI [−2.17, 2.17].
- Classifier cross-check: HarmBench-Mistral-7b-val-cls gives 0/200 positives for both A/D for Llama and Gemma; using the final semantic labels as reference, it detects only 1/3 positives for Llama and 0/1 positives for Gemma. The authors state that semantic review, manual audit, and HarmBench agree on the conclusion of zero A-to-D regression.
Other Ablations and Analyses
- Qwen Base-to-D safety control: n=190, resolves two Base harmful responses, risk difference −1.05 points, 95% CI [−4.21, 2.19].
- Llama Base-to-D: resolves one privacy leak and adds the same item, n=200, net difference 0, 95% CI [−3.14, 3.14].
- Gemma Base-to-D: adds 0 and resolves 1, n=200, −0.50 points, 95% CI [−3.15, 2.16].
- HarmBench agreement: Llama is 597/600 (99.50%) and Gemma is 599/600 (99.83%); the authors note that the positive base rate is below 1%, and this agreement rate is the same as that of an all-negative predictor.
What are some points that can be further explored?
The authors plan to study adaptive jailbreak wrappers and multi-turn collaboration; current evidence covers three models and the specified benchmarks.
Limitations and future directions noted by the authors
- Adaptive attacks: The end of the Discussion states that future work will extend the paired handoff evaluation to adaptive jailbreak wrappers.
- Multi-turn collaboration: The same sentence states that future work will extend to multi-turn collaborative design sessions.
- Residual screening overhead: The Discussion notes that whether to add the two-stage IA on top of direct answering still depends on the application's threat exposure and residual Base-to-D refusal gap, citing settings such as quantized Gemma as examples.
- Deployment differences cannot be explained by a single factor: Results V-A explicitly states that, because precision, serving backend, and historical Qwen budgets differ, cross-model differences reflect different deployment pipelines rather than isolated scale or quantization effects.
Scope of experimental coverage
- Model scope: The tested configurations are Qwen2.5-7B-Instruct, Llama-3.1-8B-Instruct, and Q8_0 GGUF Gemma-3-12B-it, three in total; Qwen/Llama are BF16, and Gemma runs via llama.cpp (Section IV-A).
- Data scope: Benign evaluation has 2,756 items per model, and the safety control has 200 unsafe XSTest items per model; component ablations are conducted only on Qwen OR-Bench-Hard (Sections IV-A, V-B).
- Budget consistency: Llama/Gemma use matched generation budgets; Qwen OR-Bench-Hard and safe XSTest reuse some historical Base/A records, and token budgets and batch size are not fully consistent (Section IV-B).
- Scale of manual audit: The benign review audit is 90 items; the Llama/Gemma non-safe output audit is 50 items, of which the denominator for determinable agreement rate is 38 (Section IV-C).
- Repetition and attack coverage: Statistics use 10,000 paired bootstrap iterations; the paper does not report the number of independent repetitions of generation or GPT-6 Astra review. Adaptive jailbreak wrappers are listed as future work.
Summarize the main content of the paper
Fixing the stage handoff while keeping the IA intent fixed reduces refusals in nine benign settings, but this cannot be equated with being better than direct answering.
This is a training-free defense study for two-stage Intention Analysis, focusing on benign tasks being over-refused while also checking whether the fix increases non-safety assistance.
- Problem framing: The authors argue that the original IA's non-answer rule has no stage-end marker, and the answer prompt only indirectly references the original query; checking the intent summary alone is insufficient to diagnose this kind of refusal.
- Method highlights: Condition D adds, in the second call, a stage-transition declaration, the original safety rules, and the verbatim original query in sequence, keeping the shared intent, model weights, greedy decoding, and two-call budget unchanged.
- Main benign results: Across the nine model–benchmark combinations in Table I, the A-to-D paired net reductions are all positive, and the 95% paired bootstrap CIs in Figure 2 are all above zero; Gemma Q8_0 on OR-Bench-Hard drops from 46.47% to 8.64%, a paired gain of +37.83 percentage points.
- Component evidence: On Qwen OR-Bench-Hard, C-to-D net-resolves 276 refusals and B-to-D net-resolves 62; C, which only re-presents the query, resolves 23 and adds 94 on the remaining 894 stratified prompts, on which basis the authors emphasize that stage closure and re-presentation need to work together.
- Safety control: On unsafe XSTest, none of the three models has any A-to-D newly added harmful assistance; Qwen D is 0/200, Gemma A/D are both 0/200, and Llama A/D are both 1/200 on the same prompt.
- Boundaries and conclusion: D is not consistently better than Base; for example, Gemma D has 74 and 104 more over-refusals on OR-Bench-Hard and FalseReject-Test, respectively. The authors state that explicitly closing the temporary analysis constraint while retaining the original query is a deployable design rule for multi-stage collaborative assistants; whether to adopt two-stage IA still depends on the application's threat exposure and the residual refusal gap.