arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.16092cs.CL
收藏

Chatlaw: 基于角色对齐的混合专家架构的多智能体法律助手

Chatlaw: A Multi-Agent Legal Assistant based on a Role-Aligned Mixture-of-Experts Architecture

Shenzhen Graduate School, Peking University(北京大学深圳研究生院);Peng Cheng Laboratory(鹏城实验室);Law School, Peking University(北京大学法学院);Pandalla.ai

Jiaxi Cui, Munan Ning, Zongjian Li, Bohua Chen, Yang Yan, Hao Li, Bin Ling, Yonghong Tian, Li Yuan

AI总结:

提出Chatlaw多智能体法律助手,采用角色对齐的混合专家架构模拟律所协作流程,在LawBench基准上准确率比GPT-4提升7.73%,并通过真实案例验证。

摘要:

人工智能在法律服务中具有巨大潜力,但大型语言模型面临两大挑战:对中国法律体系知识有限且易产生幻觉。为解决这些问题,我们提出Chatlaw,一个多智能体法律助手。Chatlaw的框架旨在模拟真实律所的标准操作流程,其中不同角色(如助理、研究员、资深律师)协作处理案件。为了在计算上镜像这种协作结构,我们开发了一种新颖的角色对齐混合专家架构。在该系统中,内部“专家”经过专门训练,以与每个智能体角色(如咨询、分析、起草)的不同任务对齐。这些专业智能体(法律助理、研究员等)随后形成协作框架。当它们与用户交互、检索法律知识、分析案件细节或生成可靠咨询时,RA-MoE架构智能地将计算路由到相应的专用专家,确保每一步由最合格的参数处理。在评估中,Chatlaw超越了包括GPT-4在内的通用AI模型,在LawBench基准上准确率提升7.73%,在法律职业统一资格考试中得分高出11分。真实案例研究和专家评估进一步证实了其稳健性。Chatlaw提高了法律服务的可及性和可靠性,推动了向公众提供法律支持的进步。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑