Leveraging LLMs for legal terms extraction with limited annotated data
Abstract The legal industry is characterized by the presence of dense and complex documents, which necessitate automatic processing methods to manage and analyse large volumes of data. Traditional methods for extracting legal information depend heavily on substantial quantities of annotated data during the training phase. However, a question arises on how to extract information effectively in contexts that do not favour the utilization of annotated data. This study investigates the application of Large Language Models (LLMs) as a transformative solution for the extraction of legal terms, presenting a novel approach to overcome the constraints associated with the need for extensive annotated datasets. Our research delved into methods such as prompt-engineering and fine-tuning to enhance their performance. We evaluated and compared, to a rule-based and BERT systems, the performance of four LLMs: GPT-4, Miqu-1-70b, Mixtral-8x7b, and Mistral-7b, within the scope of limited annotated data availability. We implemented and assessed our methodologies using Luxembourg’s traffic regulations as a case study. Our findings underscore the capacity of LLMs to successfully deal with legal terms extraction, emphasizing the benefits of one-shot and zero-shot learning capabilities in reducing reliance on annotated data by reaching 0.690 F1 Score. Moreover, our study sheds light on the optimal practices for employing LLMs in the processing of legal information, offering insights into the challenges and limitations, including issues related to terms boundary extraction.
Authors
- Mokhtar Boumedyen Billami (ORCID: https://orcid.org/0000-0003-4428-4298)
- May Myo Zin
- Julien Breton (ORCID: https://orcid.org/0000-0001-8285-0399)
- Ken Satoh (ORCID: https://orcid.org/0000-0002-9309-4602)
- Cássia Trojahn dos Santos (ORCID: https://orcid.org/0000-0003-2840-005X)
- Max Chevalier (ORCID: https://orcid.org/0000-0001-5402-6255)
- Ha Thanh Nguyen (ORCID: https://orcid.org/0000-0002-5671-4243)
Institutions
- Université Toulouse III - Paul Sabatier (FR)
- National Institute of Informatics (JP)
- Université Toulouse-I-Capitole (FR)
- Institut de Recherche en Informatique de Toulouse (FR)
- Université Toulouse - Jean Jaurès (FR)
- Institut Polytechnique de Bordeaux (FR)
Publication Details
- Journal
- Artificial Intelligence and Law
- Published
- 2025-03-14
- DOI
- https://doi.org/10.1007/s10506-025-09448-8
- Citations
- 8
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 19.85
Funders
- Université de Toulouse