arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.11798cs.CLcs.AIcs.IRcs.LG
收藏

法律领域大型语言模型的事实性

The Factuality of Large Language Models in the Legal Domain

Télécom Paris(巴黎电信学院);Institut Polytechnique de Paris(巴黎综合理工学院);Université Paris-Saclay(巴黎萨克雷大学);CentraleSupélec(中央高等电力学院);INRIA(法国国家信息与自动化研究所)

Rajaa El Hamdani, Thomas Bonald, Fragkiskos Malliaros, Nils Holzenberger, Fabian Suchanek

AI总结:

本研究探讨法律领域LLM的事实性,通过允许答案变体和弃权(不执行)机制,采用多种匹配评估,发现别名/模糊匹配、弃权(不执行)及上下文示例提升精确度,额外法律预训练使精确度从63%升至81%。

摘要:

本文研究了大型语言模型(LLMs)作为知识库在法律领域的事实性,在一个现实的使用场景中:我们允许答案存在可接受的变体,并让模型在不确定时弃权(不执行)回答。首先,我们设计了一个包含关于判例法和立法的多样化事实问题的数据集。然后,我们使用该数据集在不同的评估方法下评估了几个LLMs,包括精确匹配、别名匹配和模糊匹配。我们的结果表明,在别名和模糊匹配方法下,性能显著提高。此外,我们探讨了弃权(不执行)和上下文示例的影响,发现这两种策略都能提高精确度。最后,我们证明在法律文档上进行额外的预训练,如SaulLM所示,进一步将事实精确度从63%提高到81%。

英文摘要:

This paper investigates the factuality of large language models (LLMs) as knowledge bases in the legal domain, in a realistic usage scenario: we allow for acceptable variations in the answer, and let the model abstain from answering when uncertain. First, we design a dataset of diverse factual questions about case law and legislation. We then use the dataset to evaluate several LLMs under different evaluation methods, including exact, alias, and fuzzy matching. Our results show that the performance improves significantly under the alias and fuzzy matching methods. Further, we explore the impact of abstaining and in-context examples, finding that both strategies enhance precision. Finally, we demonstrate that additional pre-training on legal documents, as seen with SaulLM, further improves factual precision from 63% to 81%.

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

↑