Pretrial detention challenges the presumption of innocence, requiring courts in countries such as Brazil and Italy to justify the deprivation of liberty based on specific legal factors. However, the volume and complexity of judicial decisions make manual analysis of the underlying reasoning difficult. We propose a factor-guided extraction pipeline combining Large Language Models (LLMs) and Knowledge Graphs (KGs) to extract, structure, and visualize critical legal factors from appeal cases in the Supreme Court. Building on datasets from both countries, we employ LLMs to generate summaries constrained by an expert-defined factor schema. These summaries are mapped into KGs to visualize the relationships between legal factors and judgment outcomes. We evaluated this approach against a raw-text baseline using qualitative expert review and quantitative metrics. Results demonstrate that factor-guided prompting significantly improves extraction quality, achieving higher semantic similarity (LabSE scores 0.47 vs. 0.28) compared to unguided methods. Structurally, the KGs reveal convergent reasoning complexity across the two legal systems, despite distinct topological signatures. These findings suggest that integrating LLMs with structured legal knowledge enhances the interpretability of judicial reasoning, offering a robust, scalable tool for legal analytics.

Dal Pont, T.R., Billi, M., Sabo, I.C., Lagioia, F., Hübner, J.F., Sartor, G., et al. (2026). Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective. COMPUTER LAW & SECURITY REVIEW, 61, 1-18 [10.1016/j.clsr.2026.106280].

Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective

Dal Pont, Thiago Raulino;Billi, Marco;Lagioia, Francesca;Sartor, Giovanni;
2026

Abstract

Pretrial detention challenges the presumption of innocence, requiring courts in countries such as Brazil and Italy to justify the deprivation of liberty based on specific legal factors. However, the volume and complexity of judicial decisions make manual analysis of the underlying reasoning difficult. We propose a factor-guided extraction pipeline combining Large Language Models (LLMs) and Knowledge Graphs (KGs) to extract, structure, and visualize critical legal factors from appeal cases in the Supreme Court. Building on datasets from both countries, we employ LLMs to generate summaries constrained by an expert-defined factor schema. These summaries are mapped into KGs to visualize the relationships between legal factors and judgment outcomes. We evaluated this approach against a raw-text baseline using qualitative expert review and quantitative metrics. Results demonstrate that factor-guided prompting significantly improves extraction quality, achieving higher semantic similarity (LabSE scores 0.47 vs. 0.28) compared to unguided methods. Structurally, the KGs reveal convergent reasoning complexity across the two legal systems, despite distinct topological signatures. These findings suggest that integrating LLMs with structured legal knowledge enhances the interpretability of judicial reasoning, offering a robust, scalable tool for legal analytics.
2026
Dal Pont, T.R., Billi, M., Sabo, I.C., Lagioia, F., Hübner, J.F., Sartor, G., et al. (2026). Factor extraction from pretrial detention decisions by Italian and Brazilian Supreme Courts: A knowledge graph perspective. COMPUTER LAW & SECURITY REVIEW, 61, 1-18 [10.1016/j.clsr.2026.106280].
Dal Pont, Thiago Raulino; Billi, Marco; Sabo, Isabela Cristina; Lagioia, Francesca; Hübner, Jomi Fred; Sartor, Giovanni; Rover, Aires José...espandi
File in questo prodotto:
File Dimensione Formato  
1-s2.0-S2212473X26000210-main.pdf

accesso aperto

Tipo: Versione (PDF) editoriale / Version Of Record
Licenza: Licenza per Accesso Aperto. Creative Commons Attribuzione (CCBY)
Dimensione 2.19 MB
Formato Adobe PDF
2.19 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/1054471
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
social impact