Breaking Bureaucracy: Evaluating open-source LLMs for legal document review
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.
Create a lesson
Related papers
Open-Source FUTO Keyboard Layouts and Predictive Text for a Few Endangered Languages
Shared title terminologycs.CLMika Hämäläinen, Jack Rueter, Khalid Alnajjar
JHealthBench-L: Clinician-Reviewed Localization of HealthBench for Rubric-Based Medical LLM Evaluation in Japan
Shared title terminologycs.CLShohei Hisada, Keisuke Orimo, Kenji Igarashi et al.
PHRBench: A Behavioral Evaluation of Post-Hallucination Reasoning in LLMs
Shared title terminologycs.CLLinghao Meng, Feng He, Xuan Yang et al.
A Comparative Study of Evaluation Metrics for Long-Document Financial Narrative Summarization with Transformers
Shared title terminologycs.CLNadhem Zmandar, Mo El-Haj, Paul Rayson
Quad-State Safety Evaluation of Open-Weight Large Language Models on Non-Canonical Inputs
Shared title terminologycs.CLPavan Maddula
The Missing Minimal Pair: Stereotype Evaluation in LLMs
Shared title terminologycs.CLNataliya Stepanova, Ivan Titov, Emily Allaway et al.