NAACL 2025long0 citations

LegalViz: Legal Text Visualization by Text To Diagram Generation

Eri Onami, Taiki Miyanishi, Koki Maeda, Shuhei Kurita

Abstract

Legal documents including judgments and court orders require highly sophisticated legal knowledge for understanding. To disclose expert knowledge for non-experts, we explore the problem of visualizing legal texts with easy-to-understand diagrams and propose a novel dataset of LegalViz with 23 languages and 7,010 cases of legal document and visualization pairs, using the DOT graph description language of Graphviz. LegalViz provides a simple diagram from a complicated legal corpus identifying legal entities, transactions, legal sources, and statements at a glance, that are essential in each judgment. In addition, we provide new evaluation metrics for the legal diagram visualization by considering graph structures, textual similarities, and legal contents. We conducted empirical studies on few-shot and finetuning large language models for generating legal diagrams and evaluated them with these metrics, including legal content-based evaluation within 23 languages. Models trained with LegalViz outperform existing models including GPTs, confirming the effectiveness of our dataset.

BibTeX
@inproceedings{onami-etal-2025-legalviz,
    title = "{L}egal{V}iz: Legal Text Visualization by Text To Diagram Generation",
    author = "Onami, Eri  and
      Miyanishi, Taiki  and
      Maeda, Koki  and
      Kurita, Shuhei",
    editor = "Chiruzzo, Luis  and
      Ritter, Alan  and
      Wang, Lu",
    booktitle = "Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
    month = apr,
    year = "2025",
    address = "Albuquerque, New Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.naacl-long.339/",
    pages = "6657--6676",
    ISBN = "979-8-89176-189-6"
}
LegalViz: Legal Text Visualization by Text To Diagram Generation · NAACL 2025