LegalLens: Leveraging LLMs for Legal Violation Identification in Unstructured Text

Dor Bernsohn, Gil Semo, Yaron Vazana, Gila Hayat, Ben Hagag +3 more
2/6/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: darrow-labs/LegalLens (10 stars, GPL-3.0, last commit 2024-07-15).

Abstract

In this study, we focus on two main tasks, the first for detecting legal violations within unstructured textual data, and the second for associating these violations with potentially affected individuals. We constructed two datasets using Large Language Models (LLMs) which were subsequently validated by domain expert annotators. Both tasks were designed specifically for the context of class-action cases. The experimental design incorporated fine-tuning models from the BERT family and open-source LLMs, and conducting few-shot experiments using closed-source LLMs. Our results, with an F1-score of 62.69\% (violation identification) and 81.02\% (associating victims), show that our datasets and setups can be used for both tasks. Finally, we publicly release the datasets and the code used for the experiments in order to advance further research in the area of legal natural language processing (NLP).

View on arXivView PDF

Code Implementations(1)

GPL-3.0
100Jupyter NotebookFeb 1, 20242 years agoGPL-3.0

Similar Papers

Cite this paper

@article{bernsohn2024legallens,
  title  = {LegalLens: Leveraging LLMs for Legal Violation Identification in Unstructured Text},
  author = {Dor Bernsohn and Gil Semo and Yaron Vazana and Gila Hayat and Ben Hagag and Joel Niklaus and Rohit Saha and Kyryl Truskovskyi},
  year   = {2024},
  eprint = {2402.04335},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.04335v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.04335.svg)](https://codeofpaper.com/paper/2402.04335)

Discussion