paper-with-me

홈 › Papers

Legal2LogicICL: Improving Generalization in Transforming Legal Cases to Logical Formulas via Diverse Few-Shot Learning

2026-04-13 · Jieying Xue, Phuong Minh Nguyen, Ha Thanh Nguyen, May Myo Zin, Ken Satoh arxiv

This work aims to improve the generalization of logic-based legal reasoning systems by integrating recent advances in NLP with legal-domain adaptive few-shot learning techniques using LLMs. Existing logic-based legal reasoning pipelines typically rely on fine-tuned models to map natural-language legal cases into logical formulas before forwarding them to a symbolic reasoner. However, such approaches are heavily constrained by the scarcity of high-quality annotated training data. To address this limitation, we propose a novel LLM-based legal reasoning framework that enables effective in-context learning through retrieval-augmented generation. Specifically, we introduce Legal2LogicICL, a few-shot retrieval framework that balances diversity and similarity of exemplars at both the latent semantic representation level and the legal text structure level. In addition, our method explicitly accounts for legal structure by mitigating entity-induced retrieval bias in legal texts, where lengthy and highly specific entity mentions often dominate semantic representations and obscure legally meaningful reasoning patterns. Our Legal2LogicICL constructs informative and robust few-shot demonstrations, leading to accurate and stable logical rule generation without requiring additional training. In addition, we construct a new dataset, named Legal2Proleg, which is annotated with alignments between legal cases and PROLEG logical formulas to support the evaluation of legal semantic parsing. Experimental results on both open-source and proprietary LLMs demonstrate that our approach significantly improves accuracy, stability, and generalization in transforming natural-language legal case descriptions into logical representations, highlighting its effectiveness for interpretable and reliable legal reasoning. Our code is available at https://github.com/yingjie7/Legal2LogicICL.

📄 PDF Abstract BibTeX arXiv:2604.11699

Code (0)

등록된 구현이 없습니다.

Tasks

Few-Shot LearningSemantic ParsingLegal Reasoning

Similar Papers 제목 키워드 기반

Towards A Structured Overview of Use Cases for Natural Language Processing in the Legal Domain: A German Perspective

2024-04-29 · Juraj Vladika, Stephen Meisenbacher, Martina Preis, Alexandra Klymenko 외

In recent years, the field of Legal Tech has risen in prevalence, as the Natural Language Processing (NLP) and legal disciplines have combined forces to digitalize legal processes. Amidst the steady flow of research solu…

Systematic Literature Review

LegalSearchLM: Rethinking Legal Case Retrieval as Legal Elements Generation

2025-05-28 · Chaeeun Kim, Jinu Lee, Wonseok Hwang

Legal Case Retrieval (LCR), which retrieves relevant cases from a query case, is a fundamental task for legal professionals in research and decision-making. However, existing studies on LCR face two major limitations. Fi…

Retrieval

Legal Fairness Analysis via Treatment Effect Estimation

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Legal fairness is one of the most important principles pursued by modern legal systems. Unfortunately, unfairness may be inevitably introduced in real-world cases due to both objective and subjective uncertainty, such as…

Fairness

Legal Element-oriented Modeling with Multi-view Contrastive Learning for Legal Case Retrieval

2022-10-11 · Zhaowei Wang

Legal case retrieval, which aims to retrieve relevant cases given a query case, plays an essential role in the legal system. While recent research efforts improve the performance of traditional ad-hoc retrieval models, l…

Contrastive LearningLanguage ModellingRetrieval

A Path Towards Legal Autonomy: An interoperable and explainable approach to extracting, transforming, loading and computing legal information using large language models, expert systems and Bayesian networks

2024-03-27 · Axel Constant, Hannes Westermann, Bryan Wilson, Alex Kiefer 외

Legal autonomy - the lawful activity of artificial intelligence agents - can be achieved in one of two ways. It can be achieved either by imposing constraints on AI actors such as developers, deployers and users, and on …