arXiv:2610.26211cs.AIOct 2026

Manuscript Offprint

arXiv:2610.26211

LLMs Prompted for Legal Context Refuse More: Overrefusal from Small On-Premises LLMs in Criminal Legal Context

Anastasiia Kucherenko, Francois Brouchoud, Dimitri Percia David, Andrei Kucharavy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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.

1 Introduction

The use of artificial intelligence (AI) in the legal domain is a long-standing topic that predates large language models (LLMs) by decades (Bench-Capon et al., 2012) and is active with their release as efficient tools for processing large volumes of unstructured natural language text (Chalkidis et al., 2020; Xiao et al., 2021; Guha et al., 2023). With the release of GPT4 (OpenAI, 2023) and claims as to its performance on professional lawyer exams (Katz et al., 2024), the adoption of and research into LLMs in the legal domain exploded (Dehghani et al., 2025; Lai et al., 2024) with UNESCO's Guidelines for the Use of AI Systems in Courts and Tribunals (Gutiérrez and UNESCO, 2025) showing that 44% of judges have used LLMs. All of this happens despite major concerns with LLMs reliability (Dahl et al., 2024; Magesh et al., 2024; Martínez, 2025) and issues with data protection due to security challenges and global politics such as 2018 CLOUD Act (United States Congress, 2018).

Therefore, LLMs are often deployed internally precisely to avoid sending confidential data to commercial cloud providers. For example Swiss Federal Supreme Court since 2021 moved towards fully internal LLM (ChatTF) and AI anonymization tool as an alternative to ChatGPT (Swiss Federal Audit Office (EFK), 2026). In this work, we focus on just such a setting. We assume a moderately competent legal expert using a small on-device LLM for privacy reasons, such as <8B members of the LLaMA, Gemma, Qwen, or Apertus families (Team, 2024; Gemma Team, 2026; Yang et al., 2025; Apertus, 2025) deployed on support platforms such as Ollama or MLX (Marcondes et al., 2025; Hannun et al., 2023). We also consider that they are using system prompts to indicate to the model context and their role, consistently with the general public LLM guidances (Google, 2024).

In such a setting, we evaluate models overrefusal for assistance in the context of criminal law. Criminal law poses a particular challenge, given that the topics covered in related documents often overlap with those against which LLMs are trained and inclined to refuse providing any help. To model this behavior, we analyze samples from the Violence, Sexual, Harmful, Unethical, and Illegal classes of benign prompts in the widely used Overrefusal-Bench (Cui et al., 2025) and validate the generalization of our results to real-world multilingual cases of Swiss Federal Tribunal (Swiss Federal Supreme Court, 2026).

We observe that, counterintuitively, ordinary prompting with a legal role consistently and significantly raises refusal rates by a factor of 2 to 20 across the model families tested, exceeding even the refusal triggered by a jailbreak prompt that LLMs are often trained to resist (Zou et al., 2023; Liu et al., 2023). To the best of our knowledge, this is the first systematic study of over-refusal in the legal-judicial domain. Our contributions are threefold: (i) we identify and quantify this authority-induced over-refusal effect across four small open-weight models; (ii) we extend the analysis to a multilingual setting (English, French, and German), and find that the effect varies markedly across languages; (iii) we work with both benign OR-Bench prompts and real legal documents, showing the observed effect persists on genuine text.