Cost–benefit analysis of deploying shallow, deep learning and generative models for legal text classification
Abstract Recent advances in Generative Language Models (GLMs) have renewed focus on promising results in zero-shot text classification. However, their off-the-shelf performance on unfamiliar and domain specific tasks remains uncertain. In this legal clause classification task we evaluate a plug-and-play zero-shot prompting strategy for OpenAI’s GPT-4 GLM on a contract clause dataset. We introduce the new CUAD-SL dataset that has been refactored as a single label classification problem as a fairer and more robust legal classification benchmark. In a comparative study, we show that fine-tuning on legal domain data adapts smaller, less complex models to the task at hand, with significant classification accuracy improvement of up to 20.6%, with a best overall performance of 87.8% for the DeBERTa Transformer model compared to GPT-4's 67.2% performance. This study also takes the novel approach of assessing the business feasibility of deploying each of these machine learning models through a detailed cost–benefit analysis that measures the trade-off between performance metrics and low and high usage running costs.
Authors
- Kevin Curran (ORCID: https://orcid.org/0000-0001-5237-5355)
- Kim Sloan
- William Duffy (ORCID: https://orcid.org/0000-0003-0634-6283)
- Eoin O’Connell (ORCID: https://orcid.org/0000-0002-3173-140X)
- Eugene McNamee (ORCID: https://orcid.org/0000-0003-0264-7345)
- A. J. Brammer
- Angela Clist (ORCID: https://orcid.org/0009-0007-3811-3667)
- Niall McCarroll (ORCID: https://orcid.org/0000-0003-2287-6778)
Institutions
- University of Ulster (GB)
- Ulster Hospital (GB)
- Queens University (BD)
Publication Details
- Journal
- Artificial Intelligence and Law
- Published
- 2025-11-11
- DOI
- https://doi.org/10.1007/s10506-025-09484-4
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00