arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.10072cs.CL
收藏

Unilaw-R1:基于强化学习和迭代推理的法律推理大语言模型

Unilaw-R1: A Large Language Model for Legal Reasoning with Reinforcement Learning and Iterative Inference

UniDT;Fudan University(复旦大学)

Hua Cai, Shuang Zhao, Liang Zhang, Xuli Shen, Qing Xu, Weilin Shen, Zihao Wen, Tianke Ban

AI总结:

Unilaw-R1通过强化学习和迭代推理,提升法律推理能力,在多个基准测试中超越同类模型。

摘要:

专注于推理的大型语言模型(LLMs)正在各个领域快速演变,但其在处理复杂法律问题方面的能力仍待深入探索。在本文中,我们介绍了Unilaw-R1,一个专门用于法律推理的大型语言模型。具有轻量级的70亿参数规模,Unilaw-R1在显著降低部署成本的同时,有效应对了法律领域中的三个核心挑战:法律知识不足、推理逻辑不可靠以及业务泛化能力弱。为解决这些问题,我们首先构建了Unilaw-R1-Data,一个包含17000个经过提炼和筛选的链式思维(CoT)样本的高质量数据集。基于此,我们采用结合监督微调(SFT)和强化学习(RL)的两阶段训练策略,显著提升了在复杂法律推理任务上的性能,并支持法律AI应用中的可解释决策。为了评估法律推理能力,我们还引入了Unilaw-R1-Eval,一个专门用于评估模型在单选和多选法律任务上的基准测试。Unilaw-R1在权威基准测试中表现强劲,优于所有相似规模的模型,并在与更大规模的DeepSeek-R1-Distill-Qwen-32B(54.9%)相当的性能上取得了成绩。在领域特定训练后,它在LawBench和LexEval上也表现出显著优势,平均比Qwen-2.5-7B-Instruct(46.6%)高出6.6%。

英文摘要:

Reasoning-focused large language models (LLMs) are rapidly evolving across various domains, yet their capabilities in handling complex legal problems remains underexplored. In this paper, we introduce Unilaw-R1, a large language model tailored for legal reasoning. With a lightweight 7-billion parameter scale, Unilaw-R1 significantly reduces deployment cost while effectively tackling three core challenges in the legal domain: insufficient legal knowledge, unreliable reasoning logic, and weak business generalization. To address these issues, we first construct Unilaw-R1-Data, a high-quality dataset containing 17K distilled and screened chain-of-thought (CoT) samples. Based on this, we adopt a two-stage training strategy combining Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL), which significantly boosts the performance on complex legal reasoning tasks and supports interpretable decision-making in legal AI applications. To assess legal reasoning ability, we also introduce Unilaw-R1-Eval, a dedicated benchmark designed to evaluate models across single- and multi-choice legal tasks. Unilaw-R1 demonstrates strong results on authoritative benchmarks, outperforming all models of similar scale and achieving performance on par with the much larger DeepSeek-R1-Distill-Qwen-32B (54.9%). Following domain-specific training, it also showed significant gains on LawBench and LexEval, exceeding Qwen-2.5-7B-Instruct (46.6%) by an average margin of 6.6%.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑