Evaluating LLMs for named entity recognition: a cost-benefit analysis in the legal domain
Shefali Singhal, Eoin O’Connell, Niall McCarroll, Niamh Keogh, Mary Doherty, Vishva Munasinghe, Sujata Rani, Kevin Curran,
Key points
From the paper's conclusion- Within the legal domain, named entity recognition (NER) is an essential pre-processing tool for important tasks such as information extraction and redaction.
Abstract
Within the legal domain, named entity recognition (NER) is an essential pre-processing tool for important tasks such as information extraction and redaction. Research to date has focused on rule-based approaches or machine learning strategies that require significant time and effort to train through labelled corpora. Large, multi-purpose generative large language models (LLMs) have been successfully employed on natural language processing (NLP) tasks with no prior supervised training and may represent a way forward in addressing these existing bottlenecks. Despite promising results in certain NLP use cases, the Few-Shot LLM performance on unfamiliar, domain-specific NER tasks has, to date, remained uncertain. In this legal clause NER task, we evaluate a Few-Shot, Chain-of-Thought (CoT) prompting strategy for OpenAI’s GPT-4 LLM on a new CUAD-NER dataset that we have repurposed for the task of Person and Organisation entity identification. In a comparative study, we demonstrate that the GPT4 + Few-Shot CoT prompt strategy outperforms existing state-of-the-art models, achieving a 5% percentage point improvement in Micro F1 score over the best performing BERT base (cased) competitor. 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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Legal citation prediction with LLMs: a comparative evaluation of instruction tuning, retrieval, and jurisdiction-specific pre-training on the AusLaw citation benchmarkArtificial Intelligence and Law · 2026
- Natural Language Processing for the Legal Domain: A Survey of Tasks, Datasets, Models, and ChallengesACM Computing Surveys · 2025
- Further Exploration of Legal Case Retrieval: A SurveyApplied Sciences · 2026
- LexPilot: Benchmarking the Proactive Interaction Ability of Legal LLMs with Laypeople in Chinese Civil Case ConsultationarXiv · 2026
- A Reusable Prompting Framework for Applying Large Language Models to Legal TasksIEEE Access · 2026
- When Citations Mislead? A Claim-Level Benchmark for Legal Hallucination DetectionarXiv · 2026