Skip to main content
QUICK REVIEW

[论文解读] LexEval: A Comprehensive Chinese Legal Benchmark for Evaluating Large Language Models

Haitao Li, You Chen|arXiv (Cornell University)|Sep 30, 2024
Computational and Text Analysis MethodsSocial Sciences被引用 3
一句话总结

LexEval 提出了一套全面的中文法律基准,用于在23项任务和14,150道问题上评估大型语言模型(LLMs)的表现,这些任务依据一种新型的法律认知能力分类法(记忆、理解、逻辑推理、辨别、生成和伦理)进行组织。该基准揭示了38种 LLM 之间显著的性能差距,其中表现最好的模型在判决预测任务上的准确率仅为64.4%,凸显了法律人工智能应用中在可靠性与公平性方面存在的关键挑战。

ABSTRACT

Large language models (LLMs) have made significant progress in natural language processing tasks and demonstrate considerable potential in the legal domain. However, legal applications demand high standards of accuracy, reliability, and fairness. Applying existing LLMs to legal systems without careful evaluation of their potential and limitations could pose significant risks in legal practice. To this end, we introduce a standardized comprehensive Chinese legal benchmark LexEval. This benchmark is notable in the following three aspects: (1) Ability Modeling: We propose a new taxonomy of legal cognitive abilities to organize different tasks. (2) Scale: To our knowledge, LexEval is currently the largest Chinese legal evaluation dataset, comprising 23 tasks and 14,150 questions. (3) Data: we utilize formatted existing datasets, exam datasets and newly annotated datasets by legal experts to comprehensively evaluate the various capabilities of LLMs. LexEval not only focuses on the ability of LLMs to apply fundamental legal knowledge but also dedicates efforts to examining the ethical issues involved in their application. We evaluated 38 open-source and commercial LLMs and obtained some interesting findings. The experiments and findings offer valuable insights into the challenges and potential solutions for developing Chinese legal systems and LLM evaluation pipelines. The LexEval dataset and leaderboard are publicly available at \url{https://github.com/CSHaitao/LexEval} and will be continuously updated.

研究动机与目标

  • 解决中文法律 LLM 缺乏标准化、全面评估的问题,特别是在高风险法律情境下。
  • 识别当前 LLM 在事实准确性、推理能力以及法律决策中伦理偏见方面的关键局限。
  • 构建一个统一框架,系统性评估超越通用 NLP 基准的法律认知能力。
  • 在多样化的法律任务中评估开源与商业 LLM,揭示性能差异与潜在风险。
  • 通过透明、标准化的评估,推动 LLM 在中文法律系统中更安全、更可靠的部署。

提出的方法

  • 提出六维法律认知能力分类法(LexAbility),用于组织法律评估任务:记忆、理解、逻辑推理、辨别、生成和伦理。
  • 通过结合格式化现有数据集、考试题目以及法律专家新标注的数据,构建 LexEval,以确保领域相关性与高质量。
  • 设计23项独立的法律任务,涵盖案例摘要、法律推理、判决预测和伦理判断,以反映真实世界的法律工作。
  • 实施标准化评估协议,统一各项任务的度量指标,以实现公平的模型比较。
  • 集成零样本与少样本提示设置,以评估模型的泛化能力与微调效果。
  • 在 https://github.com/CSHaitao/LexEval 公开发布数据集与排行榜,供社区持续使用与模型开发。

实验结果

研究问题

  • RQ1当前中文 LLM 在多样化的法律认知能力(包括推理、事实记忆与伦理判断)上的表现如何?
  • RQ2LLM 在复杂法律任务(如案例检索与判决预测)中表现出可靠且可解释行为的程度如何?
  • RQ3不同模型架构与微调策略对法律推理与伦理决策能力的影响有多大?
  • RQ4LLM 在法律应用中的关键失败模式是什么,特别是关于事实幻觉与偏见?
  • RQ5像 LexEval 这样的标准化基准能否有效识别并量化在中国法律系统中部署 LLM 的风险?

主要发现

  • 表现最佳的模型 ChatLaw-33B 在判决预测任务上得分仅为64.4%,表明法律推理能力仍有巨大提升空间。
  • 少样本提示使辨别、生成与伦理任务的平均性能提升10.5个百分点,表明微调可有效增强伦理推理能力。
  • Vicuna-v1.3-7B 整体表现最差,其在1-1任务中的准确率仅为1.4%,凸显了特定模型在法律推理中的脆弱性。
  • 像 GoGPT2-13B 和 LLaMA-2-7B-Chat 这类模型在逻辑推理任务中得分超过50%,但在伦理判断任务中仍表现不佳,得分低于15%。
  • 该基准揭示,即使顶尖模型在法律解释与偏见检测等任务中也面临事实一致性与公平性挑战。
  • LexAbility 分类法成功捕捉了法律认知的复杂性,实现了对模型在六个核心维度上的优势与劣势的系统性分析。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。