Toward Robust Legal Text Formalization into Defeasible Deontic Logic using LLMs

Elias Horner, Cristinel Mateis, Guido Governatori, Agata Ciabattoni
6/10/2025
cs.CLcs.AIcs.CY

No confident code implementation found for this paper.

Abstract

We present a comprehensive approach to the automated formalization of legal texts using large language models (LLMs), targeting their transformation into Defeasible Deontic Logic (DDL). Our method employs a structured pipeline that segments complex normative language into atomic snippets, extracts deontic rules, and evaluates them for syntactic and semantic coherence. We introduce a refined success metric that more precisely captures the completeness of formalizations, and a novel two-stage pipeline with a dedicated refinement step to improve logical consistency and coverage. The evaluation procedure has been strengthened with stricter error assessment, and we provide comparative results across multiple LLM configurations, including newly released models and various prompting and fine-tuning strategies. Experiments on legal norms from the Australian Telecommunications Consumer Protections Code demonstrate that, when guided effectively, LLMs can produce formalizations that align closely with expert-crafted representations, underscoring their potential for scalable legal informatics.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{horner2025toward,
  title  = {Toward Robust Legal Text Formalization into Defeasible Deontic Logic using LLMs},
  author = {Elias Horner and Cristinel Mateis and Guido Governatori and Agata Ciabattoni},
  year   = {2025},
  eprint = {2506.08899},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.08899v3}
}

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

Discussion