Prompts Oriented Toward Legal Contexts Make LLMs Refuse More: Over-Refusal of Small Locally Deployed LLMs in Criminal Law ContextsLLMs Prompted for Legal Context Refuse More: Overrefusal from Small On-Premises LLMs in Criminal Legal Context
On four open-source models of ≤8B, legal-authority prefixes raised the refusal rate to 2–20 times that without a prefix (as stated in the abstract).
- Confidentiality requirements lead legal practitioners to switch to small local models and to declare a lawyer or court identity as the guidelines suggest. The authors aim to measure whether this authority framing causes refusals of benign, crime-related requests, resulting in unequal assistance.
- On four open-source instruction models of ≤8B, no prefix, lawyer, supreme court, and jailbreak-style prefixes are compared. 200 items from each of the five OR-Bench categories test answering, and the fact sections of 200 Swiss Federal Supreme Court criminal judgments test information extraction. Refusals are determined by Qwen2.5:14b and keywords.
- On English OR-Bench, the authority prefix raised refusal rates for Llama, Gemma and Apertus, while the Qwen3 baseline was 21/1000. On real judgments, Llama in English rose from 18.8% to 69.0%. In Table 3, Llama's German total is higher than its French total.
- The authors note that 200 items per cell gives limited statistical power, especially for rare refusals and particularly for Qwen3; sensitive criminal texts are hard to collect in large quantities, and indirect off-topic answers make detection harder. Mechanistic explanations and extension to lower-resource languages and other legal systems are listed as future work. The experiments use four local models of no more than 8B, five OR-Bench categories and Swiss judgments in three languages.
- Evaluated models
- llama3.1:8bgemma4:e4bqwen3:8bApertus-8B-Instruct-2509
- Benchmarks
- OR-BenchSwiss Federal Supreme Court criminal-law judgments
- Metrics
- refusal rateMcNemar exact test p-value (Holm-Bonferroni)
The researchers evaluate over-refusal of four modern small open-weight LLMs under benign legal-domain prompts and find that authoritative identity prefixes such as "I am a lawyer" raise the refusal rate to 2 to 20 times the no-prefix baseline. The test scenarios correspond to the practice of legal practitioners completing everyday tasks such as summarization, translation, and rewriting on local devices for confidentiality, with users self-reporting their identity as suggested by conventional prompting. Known role-play jailbreak prefixes have mixed effects, greatly increasing refusal on some models and barely changing the refusal rate on others. On this basis, the authors propose that such small locally deployable models perform unstably under context framings that real institutional users naturally introduce, and that further research is needed to reduce the bias.
Paper analysis
What problem does this paper attempt to solve?
The routine prompt of declaring a legal identity increases small-parameter local models' refusal of benign criminal-law-related requests.
In criminal-law scenarios, does routinely declaring a lawyer or court identity make small-parameter local models refuse benign requests they could otherwise answer?
- Where this arises: The authors state that confidentiality requirements push legal practitioners to hand summarization, translation and rewriting to small models kept locally, and to declare roles in system prompts per public guidance. The authors cite a UNESCO guideline that 44% of judges have used LLMs, and write that the Swiss Federal Supreme Court has turned to an internal model, ChatTF, since 2021 to avoid handing confidential data to commercial clouds.
- What existing work does not cover: The authors state that LawBench, LexEval and SafeLawBench evaluate legal knowledge and reasoning, not how user framing changes refusal. XSTest and OR-Bench measure over-refusal, but the original OR-Bench detector is English-only; the authors state that medium-resource European languages remain understudied.
- The authors' hypothesis: The topics of criminal documents overlap with content models are trained to refuse. The authors state that the habit of declaring an authoritative identity selectively refuses legitimate requests, making access to assistance uneven.
- What this paper measures: On four open-source instruction models with no more than 8B parameters, it compares no prefix, a lawyer prefix, a supreme court prefix and a jailbreak-style prefix, using five categories of benign prompts from OR-Bench and Swiss Federal Supreme Court criminal judgments, measuring over-refusal in English, French and German.
What related research exists?
The authors position this paper between over-refusal evaluation and legal benchmarks, and contrast it with authorization refusal in cybersecurity.
The related work, grouped by the authors, falls under over-refusal, legal-capability benchmarks, and authority-conditioned refusal in high-risk domains.
Over-refusal
- XSTest (Röttger et al., 2024): 250 hand-written safe prompts. The authors relay that this work attributes one main cause of false refusals to lexical overfitting.
- OR-Bench (Cui et al., 2025): 80,000 prompts that are superficially harmful but actually benign, in 10 categories. This paper uses five of them; the authors state that the original detector is English-only, and they extend it with French and German word lists derived from the models' original text rather than from translation.
- Mitigation and other modalities: Xue et al. (2026) analyze refusal triggers as linguistic cues learned by safety fine-tuning; Dabas et al. (2025) use internal activation steering to reduce false refusals; Cheng et al. (2025)'s OVERT extends over-refusal evaluation to text-to-image generation.
Legal-capability benchmarks
- LawBench, LexEval, SafeLawBench: from Fei et al. (2023), Li et al. (2024), and Cao et al. (2025), respectively. The authors write that they evaluate legal knowledge and reasoning, not whether refusals change with the user's framing.
Authority-conditioned refusal
Campbell et al. (2026): studies refusal bias in cybersecurity and finds that explicit authorization increases refusals. The authors describe this as a counterintuitive result and observe the same phenomenon with legal authority framing; this work appeared concurrently with this paper.
Baselines: no prefix; two authority prefixes, lawyer and supreme court; a JailbreakBench-style role-play jailbreak prefix.
Benchmarks: OR-Bench's violence, sexual, harmful, illegal, and unethical; fact sections of Swiss Federal Supreme Court criminal judgments.
The authors state that, to their knowledge, this paper is the first systematic study of over-refusal in the legal–judicial domain, and describe Campbell et al. as the closest prior work.
How does the paper address this problem?
On four local models of no more than 8B, an authority prefix is compared with no prefix and a jailbreak prefix to detect whether benign requests are refused.
What the authors do is a condition comparison: the same benign, criminal-law-related request, with prefixes of different authority levels added, to see whether refusals rise.
Problem setting and deployment constraints
- Users: The authors assume a moderately skilled legal expert who, for privacy, uses an on-device small model and, following public guidelines, uses a system prompt to state the situation and role. The experiments report adding the prefixes to the prompt; it is not stated whether these prefixes are placed in the system prompt.
- Deployment: The text rules out commercial APIs on grounds of data residency and confidentiality (citing a Swiss Federal Supreme Court decision as an example), and evaluates only open-source instruction models with ≤8B parameters, run locally via Ollama. The authors state that using a remote API might trigger other guardrails and bias the results. The introduction also mentions MLX, which the experiments did not use.
- Tasks: The first half requires answering questions, with OR-Bench as the material; the second half requires extracting key information, with fact sections of real judgments as the material.
Models and sampling
- Four models tested: llama3.1:8b (8.0B), gemma4:e4b (effectively about 4.5B / original 8B), qwen3:8b (8.2B), Apertus-8B-Instruct-2509 (8.0B). Apertus has no official GGUF, so bartowski's Q4_K_M community quantization is used. The paper does not state the quantization of the other three.
- Inference: temperature T=0, with other parameters at Ollama defaults. Qwen3's default context window is 40,960 tokens, with num_predict unlimited. Each round runs on one NVIDIA RTX 4090 (24GB), with Ubuntu 22.04 LTS.
- Translation: The prefixes and prompts for the multilingual experiments were translated with DeepL.
Prefix conditions
- Four levels: (i) no prefix; (ii) lawyer, declaring a defense-lawyer identity; (iii) supreme court, declaring service as legal counsel at a national supreme court; (iv) jailbreak, a JailbreakBench-style role-play override template. The jailbreak template text is not reproduced here.
- Source and purpose: The supreme court prefix is adapted from a prompt actually in use at a national supreme court, with the institution name anonymized; the lawyer prefix follows the role-specification wording in legal-practitioner guidelines. The two authority levels are used to see whether the effect depends on the specific title or generalizes within the legal domain. The jailbreak prefix is used to see whether models treat legal-authority framing as adversarial role-play.
- Wording: Section 3 states that the exact wording does not affect the results and points to Appendix A. Appendix A does not report test p-values for this comparison.
Data
- OR-Bench: 200 items each from violence, sexual, harmful, illegal, and unethical. The authors state that this benchmark is generated by an automatic rewriting pipeline, with no difficulty or date ordering, so taking the first prompts is an arbitrary sample.
- Real texts: 200 criminal judgments from the Swiss Federal Supreme Court's public database, retrieved in the criminal files using offense-related terms. Only the fact sections are extracted, split by paragraph, with a minimum of 100 characters, yielding 1,652 paragraphs aligned across three languages. Table 2 states that 1,652 texts are tested per cell. The ethics statement states that these public documents include one sensitive real case, used only to measure refusals, with outputs released only in aggregate form.
Refusal determination and tests
- Detector: Qwen2.5:14b as an llm-as-a-judge, used together with Cui et al. (2025)'s keyword matching. The French and German keyword lists were manually refined by native speakers based on the models' original text rather than translated from the English list. The paper does not report the decision threshold, nor the agreement rate between the two detectors.
- Tests: For each prompt, the no-prefix answer is paired with the prefixed answer, and a one-sided McNemar exact test asks whether the prefix increases refusals, with odds ratios reported. Holm-Bonferroni correction is applied to 20 tests on OR-Bench and 12 on the real judgments; the significance level in the table notes is α=0.05.
What experiments did the paper conduct?
The authors report that authority prefixes often raise the refusal rate; Qwen3 rarely refuses, and German is not always weaker than French.
Experimental setup
- Models tested: llama3.1:8b, gemma4:e4b, qwen3:8b, Apertus-8B-Instruct-2509. The abbreviations in the results tables correspond to these (Gemma is 4 E4B). The judge model is Qwen2.5:14b, used together with keyword matching.
- Data: 200 items from each of the five OR-Bench categories, with the task of answering the question. The real texts are the fact sections of 200 Swiss Federal Supreme Court criminal judgments, 1,652 items per cell in Table 2, with the task of extracting key information, in English, French, and German.
- Conditions: English OR-Bench compares no prefix, lawyer, supreme-court, and jailbreak. French and German OR-Bench and the real texts compare only no prefix and supreme-court.
- Metrics: refusal rate; paired, one-sided McNemar exact tests, Holm-Bonferroni correction, α=0.05. 20 tests are corrected on OR-Bench and 12 on the real texts.
- Sampling: T=0. The paper does not report the number of repetitions. Figure 1 gives English refusal counts by model, topic, and prefix, with a denominator of 200; the values on the bars do not appear in the text, and the total rates use Table 3.
Main results
English OR-Bench five-category total refusal rates (no prefix→with prefix), according to Appendix Table 3.
Swipe horizontally to read the table
Model lawyer supreme-court jailbreak Llama 3.1 8B 7.2%→11.1% 7.3%→13.2% 7.3%→27.5% Gemma 4 E4B 10.7%→15.2% 10.7%→21.8% 10.7%→9.3% Apertus 8B 5.6%→14.3% 5.6%→12.2% 5.6%→9.5% Qwen 3 8B 2.2%→3.8% 2.2%→2.6% 2.2%→3.1% - The authors' interpretation: The authors state that on Llama, Gemma, and Apertus both legal-authority prefixes raise refusals, and that the supreme court prefix is on average higher than the lawyer prefix, with the effect rising with the claimed institutional authority. In Table 3, Apertus's supreme court prefix is lower than its lawyer prefix, and for Qwen too supreme court is lower than lawyer; these two rows do not fit "supreme court is higher."
- Jailbreak control: The authors state that on Gemma and Apertus, the authority prefixes elicit more refusals than the explicit jailbreak prefix; the table above is consistent with this. On Llama the jailbreak prefix is higher than both authority prefixes. Gemma's jailbreak prefix is lower than no prefix, and Table 3 does not mark it as significant (p=9.4×10^−1).
- Qwen3 and tests: The main text states that Qwen3 almost never refuses (English baseline 21/1000), and that the authority-prefix shifts are small and not significant. The English baseline in Table 3 is 2.2%; lawyer is marked significant after correction with p=4.5×10^−2, while supreme-court (p=6.3×10^−1) and jailbreak (p=2.6×10^−1) are not marked significant. The main text states that the English authority-prefix increases for Llama, Gemma, and Apertus have p<0.01 after correction. The abstract and introduction state that authority prefixes raise the refusal rate to 2–20 times that of no prefix; the results section lists Qwen3 as an exception.
French and German OR-Bench
- What was tested: Only the supreme-court prefix, the strongest signal in English, is retained. Total rates are according to Table 3, and per-topic rates according to Table 1. The table titles say refusal rate (%), 200 items per cell; the main text states that Table 1 reports counts. The following are treated as percentages per the table titles.
- Totals: Llama French 16.8%→46.9%, German 16.5%→53.3%; Gemma French 6.3%→12.7%, German 4.0%→7.4%; Apertus French 1.4%→25.1%, German 1.9%→3.5%; Qwen French 0.0%→0.2%, German 0.0%→0.3%. Llama, Gemma, and Apertus are marked significant in both languages (p<0.05 after correction); Qwen is not marked significant. In Table 1, Llama German sexual is 6%→59% and French sexual is 9%→56%; Apertus French violence and illegal both rise to 32%, and German illegal is 4%→4%; Gemma German unethical is 4%→4%.
- The authors' interpretation: The authors state that the effect persists in French, and even strengthens for Llama and Apertus, while Apertus is much weaker in German. Llama's German total in Table 3 is higher than its French total, which does not fit "German is always weaker." The authors state that the German gap is not a detection miss: they manually checked Apertus's German non-refusal samples and confirmed genuine compliance. The paper does not state the number of items checked. The authors state that refusal behavior is not uniform across the languages a model is trained on.
Real legal texts
Table 2: refusal rates (%) on fact sections of Swiss Federal Supreme Court judgments, no prefix→supreme-court, 1,652 items per cell.
Swipe horizontally to read the table
Model English French German Llama 3.1 8B 18.8%→69.0% 12.5%→23.4% 25.6%→28.5% Gemma 4 E4B 0.5%→0.1% 0.4%→0.1% 0.1%→0.1% Apertus 8B 1.4%→3.9% 1.1%→19.3% 0.8%→2.5% Qwen 3 8B 0.2%→0.2% 0.0%→0.1% 0.1%→0.4% - Tests: Table 4 marks all three languages as significant for Llama and Apertus, and as not significant for Gemma and Qwen. Llama English paired rates are written as 18.8%→68.9%, and Apertus German with no prefix is written as 1.0%, differing from Table 2 by 0.1 percentage points. Llama English p=3.9×10^−249, French p=2.3×10^−40, German p=1.8×10^−2.
- The authors' interpretation: The main text states that Llama's three-language total goes from 19.0% to 40.3%, and describes it as nearly doubling; Apertus's change is concentrated in French. The authors describe this as preliminary confirmation on real texts. The main text states that Gemma 4 and Qwen 3 refuse almost no sections (both ≤0.3%), consistent with their near-zero baselines on OR-Bench. In Table 2, Gemma English with no prefix is 0.5%, and Qwen German with prefix is 0.4%; in Table 3, Gemma English with no prefix is 10.7%, which is not near zero.
Other ablations and analyses
- Appendix A, English sexual category, 200 items: Llama's rewording versus the original is lawyer 11 vs 12, supreme-court 15 vs 16. For Apertus the text gives lawyer 34 vs 57, supreme-court 29 vs 55, and states that the rewording yields higher refusals. Gemma supreme court is 43 vs 34. The authors state that the direction is unchanged and the magnitude varies with wording. No p-values are reported; this set of numbers does not include Qwen.
- Table 3: Qwen French p after correction is 2.5×10^−1, and German likewise 2.5×10^−1, neither marked significant. Apertus German OR-Bench supreme-court p after correction is 1.1×10^−2, marked significant.
- Table 1: Qwen French and German are 0 for most topics; the highest non-zero cell is 1%.
- Table 2: Gemma's English and French refusal rates with prefix are lower than with no prefix, and Table 4 marks them as not significant.
What are some points that can be further explored?
The authors point out sample size, the availability of sensitive case law, and indirect refusal detection, and leave the mechanism and cross-legal-system extension to future work.
Limitations and future directions pointed out by the authors
- Sample size (Limitations): 200 items per cell give stable estimates for larger effects, but statistical power is limited for cells with few refusals (especially Qwen 3); expanding the prompt set is a natural next step.
- Sensitive case law (Limitations): the authors state that large-scale multilingual sensitive legal cases are difficult to collect; cases are often not refused, which hinders analysis, for the sole reason that there is insufficient access to restricted criminal-law texts. A richer dataset would benefit the generalizability of the claims.
- Refusal detection (Limitations): indirect answers are ambiguous; a model may give completely irrelevant information without explicitly protesting.
- Mechanism (Conclusion): the authors state that a complete explanation of why this phenomenon occurs is itself a research program, covering training-data provenance and interpretability.
- Domains and languages (Conclusion): the authors believe that restricted domains such as medicine, the military, and human-rights review may have the same problem; multilingual gaps already exist among high-resource languages, which motivates extending the evaluation to lower-resource languages and different legal systems.
Scope of the experiments
- The models tested are llama3.1:8b, gemma4:e4b, qwen3:8b, and Apertus-8B-Instruct-2509, all run locally via Ollama with temperature T=0 (Section 3). Apertus uses Q4_K_M. The paper does not report the quantization of the other three, nor the number of repetitions.
- OR-Bench covers violence, sexual, harmful, illegal, and unethical, with 200 items per category. English has four prefixes; French and German have only no prefix and supreme-court (Sections 3–4, Table 1, Table 3).
- The real texts are the fact sections of 200 criminal judgments of the Swiss Federal Supreme Court; Table 2 has 1,652 items per cell, in three languages, comparing only no prefix and supreme-court.
- Refusal detection uses Qwen2.5:14b together with keyword matching; the French and German word lists were refined by native speakers. The paper does not report the decision threshold, the agreement rate between the two detectors, or the number of German items manually checked.
- Significance testing uses one-sided McNemar exact tests, with Holm-Bonferroni correction for 20 tests on OR-Bench and 12 on the real texts (Appendix B). The prefix rewording in Appendix A is reported only for the English sexual category.
Summarize the main content of the paper
Legal-authority prefixes make several small local models more often refuse benign criminal-law-related requests, with large differences across languages and models.
Small open-parameter models refuse benign, crime-related requests more often when the user declares a legal identity.
- Problem: Local deployment is meant to avoid handing confidential case files to commercial clouds. The authors ask whether declaring a lawyer or court role, as the guidelines suggest, makes legitimate assistance unequally available.
- Approach: llama3.1:8b, gemma4:e4b, qwen3:8b, and Apertus-8B-Instruct-2509 run on Ollama at temperature 0. The same request is compared with no prefix, lawyer, supreme court, and jailbreak-style prefixes. 200 items from each of the five OR-Bench categories are used for answering; fact sections of Swiss Federal Supreme Court criminal judgments are used for information extraction. Refusals are determined by Qwen2.5:14b and keywords, with paired McNemar tests.
- OR-Bench: In the English totals in Table 3, under the supreme court prefix Llama goes from 7.3% to 13.2% and Gemma from 10.7% to 21.8%. Apertus's lawyer prefix goes from 5.6% to 14.3%, higher than its supreme court prefix. Qwen3's main-text baseline is 21/1000. The abstract states that authority prefixes raise the refusal rate to 2–20 times that of no prefix; the results section lists Qwen3 as an exception. In Table 3, Apertus French goes from 1.4% to 25.1% and German from 1.9% to 3.5%.
- Real judgments: In Table 2, Llama English goes from 18.8% to 69.0%; the main text gives its three-language total as 19.0% to 40.3%. Apertus French goes from 1.1% to 19.3%. The highest cells for Gemma and Qwen are Gemma English with no prefix in Table 2 at 0.5%; Table 4 does not mark the changes for these two models as significant.
- The authors' conclusion: The authors state that the results are contrary to naive expectations. The authors argue that benign prompts in legally related categories sit near the refusal boundary of safety alignment, and authority prefixes push them across that boundary. When institutions use small local models for legally sensitive work, they should check, beyond answer quality, whether the model answers legitimate professional requests. The mechanism explanation, and extension to lower-resource languages, other legal systems, and medicine, the military, and human-rights review, are left by the authors to future work.