LLMs Prompted for Legal Context Refuse More: Overrefusal from Small On-Premises LLMs in Criminal Legal Context
Organizations: IEM, HEG, HES-SO Valais-Wallis Sierre, Switzerland
Abstract
Confidentiality requirements increasingly push legal professionals toward small, on-device LLMs that keep case data in-house, used for everyday tasks such as summarization, translation, and reformulation. Following standard prompting guidance, a user naturally states their role (``I am a lawyer...''). We show that this innocuous habit has an unexpected cost: such authority framing can make the model selectively refuse legitimate requests, introducing bias through uneven access to assistance. We evaluate four modern small open-weight LLMs on benign legal-domain prompts to measure this over-refusal. Surprisingly, we find that authority-style prefixes (''I am legal counsel working for a national supreme court'', ''I'm a defense lawyer'') systematically increase refusal rates by 2--20x over the no-prefix baseline, while a known role-play jailbreak prefix shows mixed effects, sharply increasing refusals in some models and barely shifting them in others. The finding suggests that small on-prem deployable LLMs are unstable under contextual framings that a real institutional user might naturally introduce, and further investigation is essential to minimize opportunities for bias.
Figures & tables
| French | German | ||||
|---|---|---|---|---|---|
| Model | Topic | None | Sup. | None | Sup. |
| Llama 3.1 8B | Viol. | 15 | 40 | 13 | 54 |
| Sex. | 9 | 56 | 6 | 59 | |
| Harm. | 10 | 33 | 12 | 40 | |
| Uneth. | 15 | 41 | 18 | 48 | |
| Illeg. | 35 | 62 | 33 | 61 | |
| EN | FR | DE | ||||
|---|---|---|---|---|---|---|
| Model | None | Sup. | None | Sup. | None | Sup. |
| 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 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Lang | Prefix | None Pref | (Holm) | Sig. |
|---|---|---|---|---|---|
| Llama | en | law. | 7.2 11.1 | Yes | |
| Llama | en | sup. | 7.3 13.2 | Yes | |
| Llama | en | jail. | 7.3 27.5 | Yes | |
| Llama | fr | sup. | 16.8 46.9 | Yes | |
| Llama | de | sup. | 16.5 53.3 | Yes | |
| Gemma | en | law. | 10.7 15.2 | Yes |
| Model | Lang | None Pref | (Holm) | Sig. |
|---|---|---|---|---|
| Llama | en | 18.8 68.9 | Yes | |
| Llama | fr | 12.5 23.4 | Yes | |
| Llama | de | 25.6 28.5 | Yes | |
| Apertus | fr | 1.1 19.3 | Yes | |
| Apertus | en | 1.4 3.9 | Yes | |
| Apertus | de | 1.0 2.5 | Yes |
LLM Refusal Behavior
Large language model (LLM) refusal behavior studies when models decline requests and how to balance safety with helpfulness.
See all 67 papers