EMNLP Findings2025
Legal Mathematical Reasoning with LLMs: Procedural Alignment through Two-Stage Reinforcement Learning
Kepu Zhang, Guofu Xie, Weijie Yu, Mingyue Xu, Xu Tang, Yaxin Li, Jun Xu
摘要
Legal mathematical reasoning is essential for applying large language models (LLMs) in high-stakes legal contexts, where outputs must be both mathematically accurate and procedurally compliant. However, existing legal LLMs lack structured numerical reasoning, and opendomain models, though capable of calculations, often overlook mandatory legal steps. To address this, we present LexNum, the first Chinese legal mathematical reasoning benchmark, covering three representative scenarios where each instance reflects legally grounded procedural flows. We further propose LexPam, a two-stage reinforcement learning framework for efficient legal reasoning training. Leveraging curriculum learning, we use a stronger teacher model to partition data into basic and challenging subsets. A lightweight 1.5B student model is then fine-tuned with Group Relative Policy Optimization, which avoids costly value networks and enables stable training from sparse, end-of-sequence rewards. The first stage improves accuracy and format; the second introduces a novel reward to guide procedural alignment via task-specific legal elements. Experiments show that existing models perform poorly on LexNum, while LexPam enhances both mathematical accuracy and legal coherence, and generalizes effectively across tasks and domains.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- LEVEN: A Large-Scale Chinese Legal Event Detection Dataset 引用了 JEC-QA: A Legal-Domain Question Answering Dataset
- LawBench: Benchmarking Legal Knowledge of Large Language Models 引用了 JEC-QA: A Legal-Domain Question Answering Dataset
- LawBench: Benchmarking Legal Knowledge of Large Language Models 引用了 LEVEN: A Large-Scale Chinese Legal Event Detection Dataset
它引用的 Paper14
- Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng 等SOSP 2023 · 1,016 次引用
- ZeRO: memory optimizations toward training trillion parameter modelsSamyam Rajbhandari, Jeff Rasley, Olatunji Ruwase, Yuxiong HeSC 2020 · 852 次引用
- JEC-QA: A Legal-Domain Question Answering DatasetHaoxi Zhong, Chaojun Xiao, Cunchao Tu, Tianyang Zhang 等AAAI 2020 · 212 次引用
- LEVEN: A Large-Scale Chinese Legal Event Detection DatasetFeng Yao, Chaojun Xiao, Xiaozhi Wang, Zhiyuan Liu 等ACL Findings 2022 · 68 次引用
- LawBench: Benchmarking Legal Knowledge of Large Language ModelsZhiwei Fei, Xiaoyu Shen, Dawei Zhu, Fengzhe Zhou 等EMNLP 2024 · 59 次引用
相关 Paper
- LexChain: Modeling Legal Reasoning Chains for Chinese Tort Case AnalysisHuiyuan Xie, Chenyang Li, Huining Zhu, Chubin Zhang 等AAAI 2026 · 2 次引用
- CLaw: Benchmarking Chinese Legal Knowledge in Large Language Models - A Fine-grained Corpus and Reasoning AnalysisXinzhe Xu, Liang Zhao, Hongshen Xu, Chen ChenEMNLP Findings 2025 · 2 次引用
- Evaluating Test-Time Scaling LLMs for Legal Reasoning: OpenAI o1, DeepSeek-R1, and BeyondYinghao Hu, Yaoyao Yu, Leilei Gan, Bin Wei 等EMNLP Findings 2025 · 1 次引用
- Find Tailored Step Example for Next Step: a Targeted Step-wise Retrieval Framework for Guiding LLM ReasoningCheng Yang, Zhenya Huang, Liyang He, Weibo Gao 等KDD 2026
- LexRel: Benchmarking Legal Relation Extraction for Chinese Civil CasesYida Cai, Ranjuexiao Hu, Huiyuan Xie, Chenyang Li 等ACL 2026
