LexReward:一种面向法律语言模型的分类驱动奖励框架

·

研究论文 · 2026/10/05

法律语言模型需要能够捕捉答案正确性以及法律回答多维质量的奖励信号。现有奖励方法通常依赖粗粒度的整体判断,领域特异性和可解释性有限。我们提出LexReward,一个由分类学驱动的法律奖励建模框架。LexReward从三个互补维度刻画法律回答质量:风格(涵盖词汇和句法质量)、要素(评估法律主体、事实、法规和裁决)和链条(评估法律推理的顺序、完整性、正确性和非冗余性)。针对每个维度,我们制定了评分标准,明确了评估准则和质量等级。所得到的奖励用于构建成对偏好数据,以进行直接偏好优化(DPO)和奖励模型训练。实验表明,基于评分标准的奖励能够可靠地区分不同质量的法律回答,并且基于偏好数据的DPO训练在所有三个维度上均提升了性能。学习到的奖励模型LexRM也支持有效的下游优化:每个维度特定的奖励模型通过强化学习提升其对应维度的策略性能,且在奖励阶段无需参考回答。维度分析进一步支持了所提出的分类学和奖励构建的有效性。

该研究针对法律语言模型奖励信号领域特异性和可解释性不足的问题,提出了一个多维度的分类学驱动框架,并通过实验验证了其在偏好优化和强化学习中的有效性,为法律AI的奖励建模提供了新思路。

Legal language models require reward signals that capture not only answer correctness but also the multidimensional quality of legal responses. Existing reward methods, however, often rely on coarse-grained holistic judgments, providing limited domain specificity and interpretability. We introduce LexReward, a taxonomy-driven framework for legal reward modeling. LexReward characterizes legal response quality along three complementary dimensions: Style, covering lexical and syntactic quality; Element, assessing legal subjects, facts, statutes, and decisions; and Chain, evaluating the order, completeness, correctness, and non-redundancy of legal reasoning. For each dimension, we develop rubrics that specify evaluation criteria and quality levels. The resulting rewards are used to construct pairwise preference data for Direct Preference Optimization (DPO) and reward-model training. Experiments show that the rubric-based rewards reliably distinguish legal responses of different quality and that DPO training on the preference data improves performance across all three dimensions. The learned reward models, LexRM, also support effective downstream optimization: each dimension-specific reward model improves policy performance in its corresponding dimension through reinforcement learning, without requiring reference answers at reward time. Dimension-wise analyses further support the effectiveness of the proposed taxonomy and reward construction.

阅读原文

参与讨论