Legal$Δ$: Enhancing Legal Reasoning in LLMs via Reinforcement Learning with Chain-of-Thought Guided Information Gain

Xin Dai, Buqiang Xu, Zhenghao Liu, Yukun Yan, Huiyuan Xie, Xiaoyuan Yi, Shuo Wang, Ge Yu

TL;DR

Legal$\Delta$ is a reinforcement learning framework designed to eliminate "fast-thinking" biases in legal LLMs by explicitly rewarding the quality and depth of their reasoning. By maximizing the information gain between a model's direct answer and its reasoning-augmented response, Legal$\Delta$ achieves a ~10% performance boost across complex legal tasks without relying on expensive human preference data.

What Problem Does This Paper Address?

In the legal domain, a conclusion is only as good as the arguments supporting it. While Large Language Models (LLMs) have made strides in legal applications, they frequently default to "fast-thinking" behavior—spitting out a direct answer or a legal judgment without providing a rigorous, step-by-step justification.

Existing methods attempt to fix this using Reinforcement Learning with Verifiable Rewards (RLVR), optimizing models based on whether the final answer matches a ground-truth label. However, this creates a major loophole: the model can generate completely superficial, redundant, or nonsensical Chain-of-Thought (CoT) explanations, as long as it happens to guess the right final answer. The challenge addressed here is how to algorithmically force an LLM to develop meaningful, robust reasoning strategies that actively improve its decision-making reliability.

Methods

The authors introduce Legal$\Delta$, a two-stage training framework built on top of the Group Relative Policy Optimization (GRPO) paradigm.

  1. Supervised Fine-Tuning (SFT): The base model ($M_{\text{Legal}}$) is first trained to mimic high-quality reasoning traces distilled from a powerful Large Reasoning Model (DeepSeek-R1).
  2. Information-Gain Enhanced RL: This is the core innovation. Instead of just rewarding final correctness, Legal$\Delta$ introduces a dual-mode input setup during the RL phase. It samples responses in two ways: Mode 1 (Response with CoT) and Mode 2 (Response Directly).
Fig. 1. Illustration of Legal∆.

To evaluate the quality of the reasoning chain ($r$), the framework leverages a recent theoretical insight: logits from next-token prediction are mathematically equivalent to Q-functions in offline inverse reinforcement learning.

Using this principle, they define the Information Quality Differential ($\Delta Q$): $$\Delta Q(r) = \text{logits}_\theta(a|q, r) - \text{logits}_\theta(a|q)$$

Where $a$ is the answer, $q$ is the query, and $r$ is the reasoning path. This differential measures the exact semantic shift and confidence boost that the reasoning process provides. If a reasoning path introduces confusion or adds no value, $\Delta Q$ is negative or zero. This delta is passed through a sigmoid function and multiplied by the standard correctness reward to dynamically scale the final reinforcement signal.

Datasets

The framework was trained and evaluated using well-established Chinese legal benchmarks:

  • Training Data: Sourced from CAIL2018 and JEC-QA, consisting of 450 high-quality DeepSeek-R1 distilled samples for initial SFT, followed by 6,981 training and 563 validation samples for the GRPO phase.
  • In-Domain Evaluation: Five knowledge-intensive tasks: Legal Article Prediction (SPP-F), Criminal Charge Prediction (CCP), Sentencing Prediction (SLP), Similar Case Analysis (CAS), and Financial Amount Calculation (CAC).
  • Out-of-Domain Evaluation: The DiscLaw benchmark was utilized to test the model's ability to generalize to unseen legal contexts.

Key Insights and Ideas

  • Logits as Free Critics: By exploiting the mathematical equivalence between logits and Q-values, Legal$\Delta$ eliminates the need for a separate, computationally expensive critic model to judge reasoning quality. The model acts as its own critic based on its internal representation space.
  • Decomposing Information Gain: The authors show that $\Delta Q$ mathematically breaks down into two distinct components:
  • Pointwise Mutual Information (PMI): Measures the local correlation between specific reasoning steps and the final answer.
  • Global Confidence Regularizer: Captures whether the reasoning chain sharpens the overall probability distribution (making the model more decisive) or introduces confusion.
  • Combating Superficial Explanations: Because the reward scales with the difference between the CoT mode and the direct mode, the model is explicitly penalized for generating long, rambling text that doesn't actually help it arrive at the correct answer.

Key Results

Legal$\Delta$ was evaluated against strong baselines, including standard SFT, Direct Preference Optimization (DPO), and specialized legal models like ChatLaw and DiscLaw-13B.

  • Performance Boost: Legal$\Delta$ achieved an average improvement of approximately 10% across both Qwen2.5-7B and Qwen2.5-14B architectures on in-domain tasks.
  • Task-Specific Excellence: The framework showed massive gains in highly complex tasks like Sentencing Prediction (SLP), jumping from a zero-shot accuracy of 42.60% to 67.10% on the 14B model.
  • Generalization: On out-of-domain DiscLaw tasks, Legal$\Delta$ maintained its edge, proving that the information-gain mechanism teaches generalized legal logic rather than simple pattern matching.
Fig. 2. Performance of Information-Gain Reward Modeling.

As shown in the training analysis (Figure 2), the inclusion of the information-gain reward (blue lines) progressively drives higher model confidence (average logits) over time, particularly in CoT prompting scenarios, while simultaneously increasing the prominence of legally relevant tokens.

Limitations and Future Work

Not explicitly discussed in the paper.

Summary updated

BibTeX
@misc{dai2025legal,
  author = {Xin Dai and Buqiang Xu and Zhenghao Liu and Yukun Yan and Huiyuan Xie and Xiaoyuan Yi and Shuo Wang and Ge Yu},
  title = {{Legal$Δ$: Enhancing Legal Reasoning in LLMs via Reinforcement Learning with Chain-of-Thought Guided Information Gain}},
  year = {2025},
  eprint = {2508.12281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12281},
}
Figure