A Comprehensive Evaluation of Large Language Models on Legal Judgment Prediction

Ruihao Shui, Yixin Cao, Xiang Wang, Tat-Seng Chua
10/18/2023
cs.CL

Official code: srhthu/LM-CompEval-Legal (13 stars, last commit 2023-10-20).

Abstract

Large language models (LLMs) have demonstrated great potential for domain-specific applications, such as the law domain. However, recent disputes over GPT-4's law evaluation raise questions concerning their performance in real-world legal tasks. To systematically investigate their competency in the law, we design practical baseline solutions based on LLMs and test on the task of legal judgment prediction. In our solutions, LLMs can work alone to answer open questions or coordinate with an information retrieval (IR) system to learn from similar cases or solve simplified multi-choice questions. We show that similar cases and multi-choice options, namely label candidates, included in prompts can help LLMs recall domain knowledge that is critical for expertise legal reasoning. We additionally present an intriguing paradox wherein an IR system surpasses the performance of LLM+IR due to limited gains acquired by weaker LLMs from powerful IR systems. In such cases, the role of LLMs becomes redundant. Our evaluation pipeline can be easily extended into other tasks to facilitate evaluations in other domains. Code is available at https://github.com/srhthu/LM-CompEval-Legal

View on arXivView PDF

Code Implementations(1)

Code for the paper "A Comprehensive Evaluation of Large Language Models on Legal Judgment Prediction"

130Shell, PythonOct 11, 20233 years ago

Similar Papers

Cite this paper

@article{shui2023comprehensive,
  title  = {A Comprehensive Evaluation of Large Language Models on Legal Judgment Prediction},
  author = {Ruihao Shui and Yixin Cao and Xiang Wang and Tat-Seng Chua},
  year   = {2023},
  eprint = {2310.11761},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.11761v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.11761.svg)](https://codeofpaper.com/paper/2310.11761)

Discussion