Abstract: In this paper, we review legal testing methods based on Large Language Models (LLMs), using the OPENAI o1 model as a case study to evaluate the performance of large models in applying legal provisions. We compare current state-of-the-art LLMs, including open-source, closed-source, and legal-specific models trained specifically for the legal domain. Systematic tests are conducted on English and Chinese legal cases, and the results are analyzed in depth. Through systematic testing of legal cases from common law systems and China, this paper explores the strengths and weaknesses of LLMs in understanding and applying legal texts, reasoning through legal issues, and predicting judgments. The experimental results highlight both the potential and limitations of LLMs in legal applications, particularly in terms of challenges related to the interpretation of legal language and the accuracy of legal reasoning. Finally, the paper provides a comprehensive analysis of the advantages and disadvantages of various types of models, offering valuable insights and references for the future application of AI in the legal field.
Introduction
The legal field represents a high-stakes environment where language is the primary "source code." Applying Large Language Models (LLMs) to this domain involves navigating specialized terminology, complex reasoning requirements, and cross-jurisdictional differences. While many benchmarks focus on single legal systems, this research evaluates models across both Common Law (US) and Civil Law (China) systems to determine if AI performance translates across distinct legal frameworks and languages.
Methodology
The study utilizes a curated dataset of 26 representative legal cases (13 Chinese and 13 US cases) sourced from official judgment databases. Each case includes background facts, disputed issues, legal analysis, and the final judgment. The authors evaluated three categories of models:
- Closed-source SOTA: GPT-4o, o1-preview, Claude 3.5 Sonnet, and Gemini 1.5.
- Open-source General: Llama 3, Mistral, Qwen2, GLM-4, and Phi-3.5.
- Legal-specific: LawGPT, ChatLaw, and Lawyer-Llama.
Performance was measured using a dual-metric approach: algorithmic metrics (ROUGE and BLEU) to measure text overlap with court judgments, and human evaluation by legal professionals scoring reasoning quality and accuracy on a 1-5 scale.
Key Results and Analysis
The evaluation revealed a significant "Reasoning Gap." Models like o1-preview and GPT-4o achieved the highest human evaluation scores despite relatively low algorithmic scores. This suggests that these models generate original, contextually appropriate reasoning rather than simply parroting existing legal text.
Generalists vs. Specialists
Surprisingly, legal-specific models like LawGPT_zh and Lawyer-Llama often scored lower in human evaluation (2.00–2.58) than general-purpose models. This indicates that current legal fine-tuning may degrade a model's broader reasoning capabilities or fail to capture the complexity of real-world cases. Conversely, Qwen2-7B-Instruct emerged as a strong open-source contender, nearly matching the human evaluation scores of proprietary models.
The Metric Mismatch
Lexical overlap proved to be a poor indicator of legal quality. For instance, Phi-3.5-mini achieved the highest ROUGE-1 score (0.41) but received a modest human evaluation score (2.62). In the legal domain, "sounding" like a judge is not equivalent to "thinking" like one.
Discussion and Challenges
Despite the potential of LLMs, several "red lines" remain:
- Interpretative Depth: Models still struggle with the nuances of different legal systems and the ethical weight of judicial decision-making.
- Technical Constraints: A lack of interpretability is a major hurdle; judicial systems require a clear explanation of why a conclusion was reached.
- Privacy and Liability: Unresolved questions persist regarding who is liable when an AI provides incorrect legal advice—the developer, the user, or the model provider.
Conclusion
The research demonstrates that raw reasoning power, as seen in models like o1-preview, currently outperforms domain-specific fine-tuning in high-level legal judgment. While LLMs show promise in understanding and applying legal texts, their low BLEU scores highlight a continued unreliability in generating precise, verbatim legal citations. Future work must scale these evaluations to larger datasets to ensure statistical robustness and address the ethical and technical limitations identified.
Summary updated