Chatlaw: A Multi-Agent Legal Assistant based on a Role-Aligned Mixture-of-Experts Architecture
Jiaxi Cui, Munan Ning, Zongjian Li, Hao Li, Yan Yang, Bohua Chen et al. · 2026 · 309 citationsRead the paper
All 9 authors
Bin Ling, Yonghong Tian, Li Yuan
Artificial Intelligence (AI) holds great potential in legal services, yet Large Language Models (LLMs) face two major challenges: limited knowledge of the Chinese legal system and vulnerability to hallucinations. To address these issues, we present Chatlaw, a multi-agent legal assistant. Chatlaw’s framework is designed to emulate the Standard Operating Procedures (SOP) of real law firms, where different roles (e.g., assistant, researcher, senior lawyer) collaborate on a case. To computationally mirror this collaborative structure, we developed a novel Role-Aligned Mixture-of-Experts (RA-MoE) architecture. In this system, the internal "experts" are specifically trained to align with the distinct tasks of each agent role (e.g., inquiry, analysis, drafting). These specialized agents (Legal Assistant, Researcher, etc.) then form the collaborative framework. When they interact with users, retrieve legal knowledge, analyze case details, or generate reliable consultations, the RA-MoE architecture intelligently routes their computations to the corresponding dedicated expert, ensuring each step is handled by the most qualified parameters. In evaluations, Chatlaw surpasses general-purpose AI models, including GPT-4, achieving a 7.73% improvement in accuracy on the LawBench benchmark and an 11-point higher score on the Unified Qualification Exam for Legal Professionals. Real-case studies and expert assessments further confirm its robustness. Chatlaw enhances the accessibility and reliability of legal services, advancing the provision of legal support to the public. Chatlaw is an advanced AI legal assistant that improves the accuracy and reliability of legal services. It integrates a high-quality legal dataset, a Role-Aligned Mixture-of-Experts (RA-MoE) architecture, and a multi-agent system to provide precise, case-specific legal advice. By emulating real law firm workflows, it reduces errors and outperforms general AI models like GPT-4, achieving better results in legal benchmarks and real-world evaluations. Chatlaw makes legal services more accessible, marking a significant step forward in AI for law.
What the full text shows
Working prototype- Chatlaw-MoE outperformed GPT-4 on the LawBench benchmark across all cognitive levels. — 60.08 average score vs. 52.35 for GPT-4 (LawBench benchmark (Chinese legal system))
- Chatlaw-MoE showed superior performance on the Unified Qualification Exam for Legal Professionals. — 11-point higher score vs. GPT-4 (China's Unified Qualification Exam for Legal Professionals)
- Chatlaw-MoE demonstrated higher accuracy in legal knowledge memorization compared to GPT-4. — 43.86 vs. 35.29 (LawBench memorization category)
- Chatlaw-MoE demonstrated better comprehension of legal texts than GPT-4. — 62.11 vs. 54.41 (LawBench understanding category)
- Chatlaw-MoE showed stronger capability in applying legal knowledge to real-world tasks than GPT-4. — 61.60 vs. 54.05 (LawBench application category)
- Setup
- Training conducted on a GPU server with eight 80GB A100 GPUs and two Intel Xeon 8358P processors over 23.14 hours; training data included various legal tasks (e.g., 120k statute matching samples, 91k criminal amount calculation samples).
- How
- The researchers developed a Role-Aligned Mixture-of-Experts (RA-MoE) architecture that uses role-conditioned and knowledge-aware routing to align internal experts with specific agent roles (Assistant, Researcher, Editor, Senior Lawyer). This was integrated into a multi-agent collaborative framework that emulates law firm Standard Operating Procedures (SOP) and utilizes a legal knowledge graph to reduce hallucinations.
- Limitations
- Susceptibility to hallucinations (fabricating statutes or citing outdated cases) · Privacy and data retention concerns for sensitive legal matters · High computational resource demand during simultaneous user requests
Summarized by Gemma 4 from the open-access full text · 7 Nov 2026. Read it