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

TL;DR
This paper explores using large language models like GPT-4 to automatically extract structured legal representations from legislation, aiming to streamline the development of transparent, rule-based expert systems in law.
Contribution
It demonstrates that LLMs can generate legal pathways comparable to manual ones, reducing the time and effort needed for formalizing legislation in expert systems.
Findings
60% of generated pathways rated as equivalent or better than manual ones
LLMs can effectively support the encoding of legislative texts
Potential to significantly reduce development time for legal expert systems
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Law · Law, AI, and Intellectual Property · Multi-Agent Systems and Negotiation
MethodsAttention Is All You Need · Linear Layer · Residual Connection · Byte Pair Encoding · Dropout · Softmax · Multi-Head Attention · Label Smoothing · Absolute Position Encodings · Dense Connections
