Can Large Language Models Grasp Legal Theories? Enhance Legal Reasoning with Insights from Multi-Agent Collaboration

Weikang Yuan, Junjie Cao, Zhuoren Jiang, Yangyang Kang, Jun Lin, Kaisong Song, Tianqianjin Lin, Pengwei Yan, Changlong Sun, Xiaozhong Liu

Abstract

Large Language Models (LLMs) could struggle to fully understand legal theories and perform complex legal reasoning tasks. In this study, we introduce a challenging task (confusing charge prediction) to better evaluate LLMs' understanding of legal theories and reasoning capabilities. We also propose a novel framework: Multi-Agent framework for improving complex Legal Reasoning capability (MALR). MALR employs non-parametric learning, encouraging LLMs to automatically decompose complex legal tasks and mimic human learning process to extract insights from legal rules, helping LLMs better understand legal theories and enhance their legal reasoning abilities. Extensive experiments on multiple real-world datasets demonstrate that the proposed framework effectively addresses complex reasoning issues in practical scenarios, paving the way for more reliable applications in the legal domain.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable capabilities in text processing and general reasoning, their application in the legal domain reveals significant limitations. A critical challenge identified is "Confusing Charge Prediction"—the ability to distinguish between criminal charges that share similar factual patterns but differ in subtle legal nuances. For instance, an LLM might correctly identify a case as "Misappropriation of Funds" but fail to recognize that the charge of "Misappropriation of Public Funds" is inapplicable if the defendant is not a state official.

Researchers identify three primary hurdles in current LLM legal reasoning: inconsistent multi-step logic, oversight of legally "load-bearing" details, and a documented "Yes-bias," where models overconfidently agree that a case fits a suggested charge even when it does not.

The MALR Framework

To address these challenges, we propose the Multi-Agent Legal Reasoning (MALR) framework. MALR utilizes a multi-agent architecture combined with non-parametric learning to mimic the human legal reasoning process.

The MALR framework architecture, illustrating task decomposition, sub-task agents, and the adaptive rule-insights training module.

The framework operates in four distinct stages:

  1. Auto-Planner for Task Decomposition: Breaks down complex legal rules into four fundamental dimensions based on the "Four Elements Theory": Subject, Mental, Object, and Conduct.
  2. Sub-task Agents: Specialized agents evaluate case facts against a single dimension to prevent cognitive overload and maintain focus on specific legal requirements.
  3. Adaptive Rule-Insights Training: Employs a "trial-and-error" approach where a Self-Reflector agent analyzes errors to generate "if-then" insights (e.g., "If the defendant is not a state functionary, the subject requirement is not met"). These insights are stored in a knowledge base.
  4. Reasoning with Rule-Insights: Agents retrieve these learned insights to supplement raw legal text, providing specific guidance for nuanced decision-making.

Experimental Evaluation

The framework was evaluated using Chinese criminal law datasets (CAIL2018, CJO) and a newly introduced "innocent" dataset (CAIL-I) designed to test the model's adherence to the presumption of innocence. The researchers specifically curated 16 pairs of "confusing charges" to evaluate nuanced reasoning.

Key Results

MALR consistently outperformed standard prompting methods such as Zero-Shot Chain-of-Thought (CoT) and Legal Reasoning Prompting (LRP). On the CAIL2018 dataset, MALR achieved an accuracy of 56.8% with GPT-4, compared to 35.8% for standard CoT.

A comparative example showing how MALR correctly identifies a false charge by applying specific subject requirements, whereas other methods fail due to the "Yes-bias".

Notably, the framework provided a substantial boost to smaller models; Qwen-2-1.5B saw a 67.7% improvement in performance, suggesting that structured reasoning can bridge the capability gap for resource-constrained models. Furthermore, in controlled tests, MALR (65% accuracy) outperformed human annotators without specialized legal backgrounds (62.5%).

Conclusion

The MALR framework represents a significant step toward enabling LLMs to grasp complex legal theories. By decomposing tasks and learning from failures, the system mitigates common biases and improves the precision of legal judgments. Future work will focus on deeper integration with Retrieval-Augmented Generation (RAG) and expanding the framework to other high-stakes domains like medicine.

Summary updated

BibTeX
@inproceedings{yuan2024can,
  author = {Weikang Yuan and Junjie Cao and Zhuoren Jiang and Yangyang Kang and Jun Lin and Kaisong Song and Tianqianjin Lin and Pengwei Yan and Changlong Sun and Xiaozhong Liu},
  title = {{Can Large Language Models Grasp Legal Theories? Enhance Legal Reasoning with Insights from Multi-Agent Collaboration}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=9zJNnd6fj7},
}
Figure