arXiv:2610.06345cs.CLOct 2026

Manuscript Offprint

arXiv:2610.06345

Breaking Bureaucracy: Evaluating open-source LLMs for legal document review

Farrukh Baratov, Niki van Stein, Suzan Verberne

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

Abstract

In this paper, we evaluate open-source generative LLMs on legal Natural Language Inference (NLI). Legal inspectorial processes take place in specific domains and often deal with confidential data. This creates a need for working with local models that do not require labeled training data. We evaluate our models on the ContractNLI benchmark and two NLI4Wills datasets. We successfully reproduce the baseline for the task (Span NLI BERT) and we evaluate multiple open-source LLMs on the same task. We analyze the invalid rate of the models, and their stability across temperature settings and domains. Among the generative models, Gemma-4 26B performs the best, reaching an accuracy of 81.2%, even outperforming the supervised model on one metric. On accuracy, it is not possible to beat the supervised model with zero-shot approaches. Qwen-3.6 35B performs well on both ContractNLI and additional datasets in the legal wills domain. Our findings indicate that zero-shot, open-source, generative LLMs are a viable alternative for real-world legal NLI when no supervised data is available. Our code is available at https://github.com/fbaratov/contractnli-llms.

1 Introduction

Document review is a task that involves human experts investing considerable hours reading and reviewing a number of legal documents, and is a large burden on legal processes for organizations (Nithya et al., 2024). This includes government inspectorates, whose administrative inspections are heavily focused on document review for regulatory non-compliance detection. As a result, there has been an interest from inspectorates in applying computational methods to their inspections, hence reducing the workload for human experts.

One potential method for computer-assisted document review is natural language inference (NLI). NLI is especially fitting to assist inspectors in their responsibility of reviewing documents with regards to government regulations in order to assess their regulatory compliance. However, there are several obstacles in effectively integrating deep learning-based methods into inspectorial processes. First, inspections are expected to be confidential, meaning that API-based proprietary models would pose a security risk. Second, inspectorial processes take place in specific legal domains, such as education and transport, thus supervised methods require substantial data labeling for each newly presented domain. This issue is often exacerbated by the bureaucratic obstacles of gaining access to potentially viable data, eliminating the option of extensive training or fine-tuning supervised methods.

In this paper, we evaluate open-source LLMs on ContractNLI (Koreeda and Manning, 2021), an English-language legal NLI dataset, to investigate the potential of these models in settings without labelled training data. Open-source LLMs are especially suited for our use case, as they (a) can be run locally, and can thus be trusted with sensitive documents, (b) can be used without extensive fine-tuning through zero-shot and few-shot learning, and (c) have accessible inner workings, allowing them to convey predictive uncertainty.

Our contributions are as follows: (1) We reproduce Koreeda and Manning (2021)'s model for ContractNLI, Span NLI BERT, in order to verify their results and confirm it as a reliable baseline; (2) We evaluate several state-of-the-art open-weight quantized LLMs on ContractNLI, finding that they do not meet the supervised results but reach reasonable accuracy (up to 81%) without any finetuning. We additionally assess generalizability to different legal domains by validating on the NLI4Wills dataset; (3) We conduct a temperature and logit-based stability analyses, finding that the models are robust against changes in temperature, but that logits for most models do not reliably reflect uncertainty.