Skip to content
Open access

Evaluating LLMs for named entity recognition: a cost-benefit analysis in the legal domain

Oct 2026 · Knowledge and Information Systems · Vol 68 · 0 citations · 80 references

TL;DR

A Few-Shot, Chain-of-Thought (CoT) prompting strategy for OpenAI’s GPT-4 LLM on a new CUAD-NER dataset that is repurposed for the task of Person and Organisation entity identification outperforms existing state-of-the-art models.

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 PDF

Similar papers

Open access Nov 2026

Improving Named Entity Recognition Using Multi-Domain Knowledge Transfer

Neural networks have been widely used for named entity recognition (NER) and have shown stateof-the-art performance. However, in real applications, we often need to consider new types of entities in new domains where we do not have sufficient annotated data, which inevitably leads to a degradation in NER model performa...

Zi-Yan Wang, Peng Zhu, Yuan-Zhe Chen et al. · 0 citations
Open access Oct 2026

Benchmarking Named Entity Recognition for Low-Resource Tarifit Berber: A Comparative Evaluation of Traditional, Neural, Transformer-Based, and Span-Based Models

Named Entity Recognition (NER) is a fundamental Natural Language Processing task, yet low-resource languages such as Tarifit Berber remain critically underexplored. This study introduces the first standardized and reproducible benchmark for Tarifit NER, addressing the lack of publicly available annotated corpora and un...

Amar Amakssoum, Mohamed Cherradi, Anass el Haddadi et al. · 0 citations
Open access Oct 2026

Deep-Learning-Based Named Entity Recognition for Turkish Industrial Property Law: Dataset Creation and Parameter Optimization

Artificial intelligence is gaining importance in the legal domain, while Named Entity Recognition (NER) research on Turkish legal texts remains limited by the scarcity of annotated resources. This study introduces a manually annotated NER dataset derived from the full text of the Turkish Industrial Property Law (SMK),...

Yasemin Şahin, Yağmur Gül, Elif Saka et al. · 0 citations
#small language model Open access Oct 2026

Named Entity Recognition Across Datasets and Domains: Resources and Models for Galician

Automatic named entity recognition (NER) is essential for many natural language processing applications, particularly in low-resource languages and those with corpora restricted to a single domain, where the lack of diverse data may hinder cross-domain generalisation. In this context, we attempt to contribute to the...

A. Sarymsakova, Ettore Mariotti, Helena Pérez Puente et al. · 0 citations
Open access Oct 2026

Comparison of CRF and BiLSTM Models for Disease Named Entity Recognition on the NCBI Disease Dataset

Named Entity Recognition (NER) is a fundamental task in Natural Language Processing (NLP) aimed at identifying and classifying named entities in text. In the biomedical domain, disease entity recognition is crucial for supporting automated medical information extraction. This study compares two NER model approaches, Co...

Agus Siswanto, B. Tutuko, Firdaus et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.