Gaps or Hallucinations? Gazing into Machine-Generated Legal Analysis for Fine-grained Text Evaluations

Abe Bohan Hou, William Jurayj, Nils Holzenberger, Andrew Blair-Stanek, Benjamin Van Durme
9/16/2024
cs.CLcs.CY

No official code found. Best implementation: abehou/GapHalu (1 star, MIT, last commit 2024-11-06).

Abstract

Large Language Models (LLMs) show promise as a writing aid for professionals performing legal analyses. However, LLMs can often hallucinate in this setting, in ways difficult to recognize by non-professionals and existing text evaluation metrics. In this work, we pose the question: when can machine-generated legal analysis be evaluated as acceptable? We introduce the neutral notion of gaps, as opposed to hallucinations in a strict erroneous sense, to refer to the difference between human-written and machine-generated legal analysis. Gaps do not always equate to invalid generation. Working with legal experts, we consider the CLERC generation task proposed in Hou et al. (2024b), leading to a taxonomy, a fine-grained detector for predicting gap categories, and an annotated dataset for automatic evaluation. Our best detector achieves 67% F1 score and 80% precision on the test set. Employing this detector as an automated metric on legal analysis generated by SOTA LLMs, we find around 80% contain hallucinations of different kinds.

View on arXivView PDF

Code Implementations(1)

abehou/GapHaluCommunity100%
MIT

This is the repo for the paper "Gaps or Hallucinations? Gazing into Machine-Generated Legal Analysis for Fine-grained Text Evaluations"

10PythonSep 27, 20241 years agoMIT

Similar Papers

Cite this paper

@article{hou2024gaps,
  title  = {Gaps or Hallucinations? Gazing into Machine-Generated Legal Analysis for Fine-grained Text Evaluations},
  author = {Abe Bohan Hou and William Jurayj and Nils Holzenberger and Andrew Blair-Stanek and Benjamin Van Durme},
  year   = {2024},
  eprint = {2409.09947},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.09947v2}
}

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/2409.09947.svg)](https://codeofpaper.com/paper/2409.09947)

Discussion