NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LegalReasoner: Step-wised Verification-Correction for Legal Judgment Reasoning

Weijie Shi, Han Zhu, Jiaming Ji, Mengze Li, Jipeng Zhang, Ruiyuan Zhang, Jia Zhu, Jiajie Xu, Sirui Han, Yike Guo

Abstract

Legal judgment prediction (LJP) aims to function as a judge by making final rulings based on case claims and facts, which plays a vital role in the judicial domain for supporting court decision-making and improving judicial efficiency. However, existing methods often struggle with logical errors when conducting complex legal reasoning. We propose LegalReasoner, which enhances LJP reliability through step-wise verification and correction of the reasoning process. Specifically, it first identifies dispute points to decompose complex cases, and then conducts step-wise reasoning while employing a process verifier to validate each step’s logic from correctness, progressiveness, and potential perspectives. When errors are detected, expert-designed attribution and resolution strategies are applied for correction. To fine-tune LegalReasoner, we release the LegalHK dataset, containing 58,130 Hong Kong court cases with detailed annotations of dispute points, step-by-step reasoning chains, and process verification labels. Experiments demonstrate that LegalReasoner significantly improves concordance with court decisions from 72.37 to 80.27 on LLAMA-3.1-70B.

Introduction

Legal Judgment Prediction (LJP) is a critical task in AI for Law, aiming to predict court rulings from case facts and claims. While Large Language Models (LLMs) have shown promise, they often fail in complex legal scenarios due to "hallucinations" or logical "snowballing"—where an initial minor error propagates into a flawed final judgment. Legal reasoning requires strict adherence to statutory provisions and precise handling of conflicting contentions, which standard LLM inference often misses. This paper introduces LegalReasoner, a framework designed to provide robust process supervision through step-wise verification and correction.

Methodology: Step-wised Verification-Correction

The core of LegalReasoner is a four-stage pipeline designed to mimic judicial thinking:

  1. Dispute Identification: Complex cases are decomposed into specific "dispute points" (e.g., "Was the sale at arm's length?"). This simplifies the reasoning task into manageable sub-problems.
  2. Step-wise Reasoning: The model generates a chain of reasoning for each identified dispute.
  3. Process Verification: A specialized "Process Verifier" evaluates each step based on three metrics: Correctness (alignment with facts), Progressiveness (advancement toward a judgment), and Potential (likelihood of reaching the correct final decision).
  4. Attribution and Resolution: If a step is flagged as erroneous, the system categorizes the error (e.g., Legal Principle Misapplication) and applies a tailored resolution strategy, such as law article retrieval or fact tracking.
The LegalReasoner framework: from dispute identification to step-wise reasoning and verification-correction.

The LegalHK Dataset

To support this framework, the authors introduce LegalHK, a dataset of 58,130 Hong Kong court cases. Unlike existing datasets, LegalHK provides fine-grained annotations including dispute points, reasoning chains, and process verification labels. The framework's generalizability was also tested on the CMDL (Chinese criminal case) dataset to ensure robustness across different legal systems.

Experimental Results

LegalReasoner achieves state-of-the-art performance for open-source models in LJP. On the LegalHK dataset, it improved the Case-Level Accuracy (CL-Acc) of Llama-3.1-70B from 72.37 to 80.27, outperforming proprietary models like GPT-o1 (77.15) and Claude-3.5-Sonnet (73.80).

Evaluation results showing (a) Case-Level Accuracy, (b) Element Coverage, (c) Annotator Accuracy, and (d) Ablation study on verification aspects.

Key findings from the evaluation include:

  • Decomposition is Essential: Removing dispute identification led to the most significant performance drops, highlighting the importance of breaking down complex cases.
  • Verification Superiority: The "verify-correct" loop proved more effective than standard "Best of N" or self-consistency strategies.
  • Element-Level Precision: The model showed significant improvements in predicting specific judgment details, such as fine amounts or injunctions, reaching an Element Precision of 65.41 compared to the base model's 55.70.

Discussion and Limitations

While LegalReasoner significantly advances LJP reliability, it faces challenges regarding computational cost due to the iterative verification loop. Additionally, while the framework generalizes across Hong Kong and Mainland Chinese law, its application to other legal systems (e.g., US or EU law) requires further study. Future work will focus on optimizing retrieval efficiency and extending the framework to other high-stakes reasoning domains like medicine or engineering.

Summary updated

BibTeX
@inproceedings{shi2025legalreasoner,
  author = {Weijie Shi and Han Zhu and Jiaming Ji and Mengze Li and Jipeng Zhang and Ruiyuan Zhang and Jia Zhu and Jiajie Xu and Sirui Han and Yike Guo},
  title = {{LegalReasoner: Step-wised Verification-Correction for Legal Judgment Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=Gq8rilwxcE},
}
Figure