From Text to Structure: Using Large Language Models to Support the Development of Legal Expert Systems

Samyar Janatian, Hannes Westermann, Jinzhe Tan, Jaromir Savelka, Karim Benyekhlef
11/1/2023
cs.CLcs.AIcs.HC

No official code found. Best implementation: samyarj/JCAPG-JURIX2023 (6 stars, last commit 2024-03-30).

Abstract

Encoding legislative text in a formal representation is an important prerequisite to different tasks in the field of AI & Law. For example, rule-based expert systems focused on legislation can support laypeople in understanding how legislation applies to them and provide them with helpful context and information. However, the process of analyzing legislation and other sources to encode it in the desired formal representation can be time-consuming and represents a bottleneck in the development of such systems. Here, we investigate to what degree large language models (LLMs), such as GPT-4, are able to automatically extract structured representations from legislation. We use LLMs to create pathways from legislation, according to the JusticeBot methodology for legal decision support systems, evaluate the pathways and compare them to manually created pathways. The results are promising, with 60% of generated pathways being rated as equivalent or better than manually created ones in a blind comparison. The approach suggests a promising path to leverage the capabilities of LLMs to ease the costly development of systems based on symbolic approaches that are transparent and explainable.

View on arXivView PDF

Code Implementations(1)

60Jupyter NotebookOct 26, 20232 years ago

Similar Papers

Cite this paper

@article{janatian2023from,
  title  = {From Text to Structure: Using Large Language Models to Support the Development of Legal Expert Systems},
  author = {Samyar Janatian and Hannes Westermann and Jinzhe Tan and Jaromir Savelka and Karim Benyekhlef},
  year   = {2023},
  eprint = {2311.04911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.04911v1}
}

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/2311.04911.svg)](https://codeofpaper.com/paper/2311.04911)

Discussion