Introduction
The legal domain presents a formidable challenge for Large Language Models (LLMs). Effective legal reasoning requires more than just logical consistency; it demands the precise synthesis of statutes and the rigorous application of complex rules to nuanced, real-world factual scenarios. While general-purpose LLMs have made significant strides, their performance in specialized fields like law—where jurisdictional differences (e.g., Civil Law vs. Common Law) are critical—has remained inconsistent.
This research presents the first systematic evaluation of "reasoning-centric" LLMs, such as OpenAI o1 and DeepSeek-R1, within the legal sphere. These models utilize a "test-time scaling" paradigm, allowing them to engage in extended Chain-of-Thought (CoT) processing before delivering an answer. To further advance the field, the authors developed Legal-R1-14B, a specialized model distilled from DeepSeek-R1 that achieves competitive performance with much larger general-purpose models.
Methodology and Evaluation Framework
The study benchmarks 12 models across a comprehensive set of 17 legal tasks, spanning both Chinese (Civil Law) and English (Common Law) jurisdictions. The evaluation framework, illustrated in Figure 1, categorizes models into General LLMs, Test-Time Scaling (TTS) LLMs, and the newly developed Legal-R1 baseline.
To create Legal-R1-14B, the researchers employed Rejection Sampling Distillation. They used DeepSeek-R1 to generate multiple reasoning paths for legal queries, retaining only those that led to correct answers. This resulted in a high-quality bilingual dataset of approximately 96,500 samples. The model was then trained using a two-stage Progressive Supervised Fine-Tuning (SFT) approach, first establishing a foundation in Legal Judgment Prediction before expanding to broader legal tasks.
Key Results and Insights
The evaluation reveals that the "thinking time" afforded by test-time scaling significantly enhances legal accuracy. By deliberating through an extended CoT, models can identify and rectify logical inconsistencies that might otherwise lead to errors.
As shown in Figure 2, performance varies notably by jurisdiction and task type:
- Jurisdictional Specialization: DeepSeek-R1 emerged as the leader in Chinese legal reasoning, particularly in complex tasks like Legal Multi-hop Reasoning (LMHR), where it achieved 71.67%. Conversely, OpenAI’s o1-preview excelled in English/Common Law tasks, reaching 96.36% on Legal Reasoning Causality (LRC).
- Efficiency of Distillation: The 14B parameter Legal-R1 model demonstrated that domain-specific reasoning traces are highly potent. It significantly outperformed its base model and remained competitive with massive models like GPT-4o and Llama-3.1-405B.
- The "Overthinking" Phenomenon: Error analysis highlighted a unique challenge for reasoning models: "excessive reasoning." In some cases, models correctly identified the core legal issue but then pursued tangential arguments, ultimately missing the primary conclusion.
Discussion and Future Outlook
Despite these advancements, several hurdles remain for legal AI. Models still struggle with outdated knowledge when laws are amended and occasionally suffer from factual hallucinations, such as inventing non-existent legal citations. Furthermore, highly complex tasks involving intricate judicial ethics or advanced legal mathematics continue to be difficult.
Future research should focus on deeper integration of real-time legal knowledge bases (Retrieval-Augmented Generation) into the reasoning process. Developing architectures capable of self-verifying citations against official legal registries will be crucial for ensuring the reliability and trustworthiness of AI in professional legal practice.
Reference: The dataset and model are available at https://github.com/YinghaoHu/Legal-R1-14B.
Summary updated