LexPam: Legal Procedure Awareness-Guided Mathematical Reasoning

  • 2025-04-03 14:54:53
  • Kepu Zhang, Guofu Xie, Weijie Yu, Mingyue Xu, Xu Tang, Yaxin Li, Jun Xu
  • 0

Abstract

The legal mathematical reasoning ability of LLMs is crucial when applyingthem to real-world scenarios, as it directly affects the credibility of theLLM. While existing legal LLMs can perform general judicial question answering,their legal mathematical reasoning capabilities have not been trained.Open-domain reasoning models, though able to generate detailed calculationsteps, do not follow the reasoning logic required for legal scenarios.Additionally, there is currently a lack of legal mathematical reasoningdatasets to help validate and enhance LLMs' reasoning abilities in legalcontexts. To address these issues, we propose the first Chinese legalMathematical Reasoning Dataset, LexNum, which includes three common legalmathematical reasoning scenarios: economic compensation, work injurycompensation, and traffic accident compensation. Based on LexNum, we tested theperformance of existing legal LLMs and reasoning LLMs, and introduced LexPam, areinforcement learning algorithm guided by legal procedural awareness to trainLLMs, enhancing their mathematical reasoning abilities in legal scenarios.Experiments on tasks in the three legal scenarios show that the performance ofexisting legal LLMs and reasoning models in legal mathematical reasoning tasksis unsatisfactory. LexPam can enhance the LLM's ability in these tasks.

 

Quick Read (beta)

loading the full paper ...