Introduction
In the legal domain, the validity of a decision is inextricably linked to the rigor of its justification. While Large Language Models (LLMs) have shown promise in LegalAI tasks such as judgment prediction and contract analysis, they often exhibit "fast-thinking"—a tendency to produce final answers without reliable, multi-step reasoning. Existing Reinforcement Learning (RL) techniques, such as those using verifiable rewards, typically focus on the correctness of the final output, neglecting the logical coherence of the reasoning trajectory. LegalΔ addresses this by introducing a novel "information-gain" reward mechanism that mathematically evaluates the quality of Chain-of-Thought (CoT) processes without requiring expensive human preference data.
Methodology
LegalΔ utilizes a two-stage training pipeline built upon the Qwen2.5-Instruct architecture.
1. Supervised Fine-Tuning (SFT)
The model is initially trained on high-quality reasoning traces distilled from DeepSeek-R1. This stage ensures the model learns expert-level legal formatting and basic logical structures.
2. Reinforcement Learning via GRPO
The core innovation of LegalΔ is the integration of Information-Gain Enhanced Reward Modeling within the Group Relative Policy Optimization (GRPO) framework.
As shown in Figure 1, the framework operates in two modes:
- Mode 1 (CoT): The model generates reasoning steps followed by an answer.
- Mode 2 (Direct): The model provides an answer directly.
By leveraging the mathematical equivalence between next-token logits and RL Q-values, the system calculates the information gain (ΔQ). This is defined as the model's confidence (logits) in the correct answer when provided with reasoning steps, minus its confidence when answering directly. A high ΔQ indicates that the reasoning effectively bridges the gap between the query and the answer, while a low or negative ΔQ penalizes disconnected or hallucinated reasoning.
Experimental Evaluation
The framework was evaluated using subsets of CAIL2018 and JEC_QA for training, with testing conducted across five knowledge-intensive legal tasks (SPP-F, CCP, SLP, CAS, and CAC) and the out-of-domain DiscLaw benchmark.
Key Results
- Performance Gains: LegalΔ achieved an average performance boost of ~10% across Qwen2.5 models (7B and 14B). On the 14B model, it reached an average in-domain score of 72.19%, significantly outperforming standard Direct Preference Optimization (DPO) at 68.35%.
- Logit Prominence and Reasoning Quality: As illustrated in Figure 6, the RL process naturally increased the model's attention to domain-specific legal tokens (6c). Furthermore, the information-gain reward led to lower perplexity (6d), indicating higher reasoning quality compared to versions of the model trained without this mechanism.
- Ablation Study: Removing the information-gain reward resulted in a performance drop from 73.45% to 70.48% on the 14B model, confirming that ΔQ is a critical driver of reasoning efficacy.
Conclusion
LegalΔ demonstrates that rewarding the logical utility of reasoning steps—rather than just final answer correctness—significantly enhances the performance and reliability of LLMs in specialized domains. By using internal model logits as a compute-efficient reward signal, the framework provides a scalable path for improving complex reasoning in fields like law, medicine, and mathematics. Future work will explore reducing the reliance on high-end distillation models for the initial SFT phase.
Summary updated