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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cost–benefit analysis of deploying shallow, deep learning and generative models for legal text classification

Kevin Curran, Kim Sloan, William Duffy, Eoin O’Connell et al.
Artificial Intelligence and Law
Topic Modeling
article

Cost–benefit analysis of deploying shallow, deep learning and generative models for legal text classification

Kevin Curran, Kim Sloan, William Duffy, Eoin O’Connell, Eugene McNamee, A. J. Brammer, Angela Clist, Niall McCarroll
article en

Abstract

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.

Artificial Intelligence and Law
University of Ulster (GB), Ulster Hospital (GB), Queens University (BD)
Openalex Percentile: Top 82%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Cost–benefit analysis of deploying shallow, deep learning and generative models for legal text classification — Kevin Curran, Kim Sloan, et al. · Artificial Intelligence and Law (2025) | TGRS Research Map | TGRS