A Comparative Study of Large Language Models for Named Entity Recognition in the Legal Domain
Named Entity Recognition (NER) in the legal domain presents unique challenges due to specialized terminology and complex linguistic structures inherent in legal texts. While large language models (LLMs) like GPT-4, Llama-3, and others have significantly advanced natural language processing, their effectiveness in domain-specific tasks like legal Named Entity Recognition remains underexplored. This study conducts a comprehensive comparative analysis of eleven state-of-the-art LLMs on legal NER tasks across seven diverse datasets in five languages, namely English, Portuguese, German, Turkish, and Ukrainian. We evaluate the models’ performance using F<inf xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">1</inf> scores, focusing on their ability to accurately identify and classify legal entities. Our findings reveal significant variability in LLM performance across different languages and legal contexts, with proprietary models like GPT-4 achieving the highest overall scores. The results highlight the influence of model architecture, dataset characteristics, and prompt design on the effectiveness of legal NER tasks. This study provides valuable benchmarks for legal NER applications and offers insights into the strengths and limitations of current LLMs, guiding future research and development in legal natural language processing.
Authors
- Tobias Deußer (ORCID: https://orcid.org/0000-0003-4685-0847)
- Christian Bauckhage (ORCID: https://orcid.org/0000-0001-6615-2128)
- Cong Zhao (ORCID: https://orcid.org/0000-0001-7186-0567)
- Maren Pielka (ORCID: https://orcid.org/0000-0001-9610-6026)
- Rafet Sifa (ORCID: https://orcid.org/0009-0004-6680-8210)
- Lars Hillebrand (ORCID: https://orcid.org/0000-0002-5496-4177)
- Daniel Uedelhoven
- Armin Berger (ORCID: https://orcid.org/0009-0003-1924-8401)
- Lorenz Sparrenberg
Institutions
- University of Bonn (DE)
- Fraunhofer Institute for Intelligent Analysis and Information Systems (DE)
Publication Details
- Published
- 2024-12-15
- DOI
- https://doi.org/10.1109/bigdata62323.2024.10825695
- Citations
- 5
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 1.74
Funders
- Ministry of Education