arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.20640cs.CLcs.IR
收藏

LexRAG:多轮法律咨询对话中检索增强生成的基准测试

LexRAG: Benchmarking Retrieval-Augmented Generation in Multi-Turn Legal Consultation Conversation

Tsinghua University(清华大学);Quan Cheng Laboratory(泉城实验室);Beijing University of Posts and Telecommunications(北京邮电大学);Shandong University(山东大学)

Haitao Li, Yifan Chen, Yiran Hu, Qingyao Ai, Junjie Chen, Xiaoyu Yang, Jianhui Yang, Yueyue Wu, Zeyang Liu, Yiqun Liu

AI总结:

提出首个法律领域多轮咨询RAG基准LexRAG,含1,013个对话样本和17,228条法律条文,涵盖检索与生成任务,并配套工具包和评估流水线,揭示现有系统局限。

摘要:

检索增强生成(RAG)已被证明在多个领域能有效提升大语言模型(LLMs)的性能。然而,目前尚无专门用于评估法律领域RAG有效性的基准,这限制了该领域的进展。为填补这一空白,我们提出了LexRAG,这是首个用于评估多轮法律咨询RAG系统的基准。LexRAG包含1,013个多轮对话样本和17,228条候选法律条文。每个样本均由法律专家标注,包含五轮递进式提问。LexRAG包含两项关键任务:(1)对话式知识检索,要求基于多轮上下文准确检索相关法律条文;(2)回答生成,侧重于生成具有法律合理性的答案。为确保可靠的可复现性,我们开发了LexiT,一个法律RAG工具包,为法律领域量身定制,提供RAG系统组件的全面实现。此外,我们引入了一个基于LLM作为评判者的评估流水线,以实现详细且有效的评估。通过对各种LLMs和检索方法的实验分析,我们揭示了现有RAG系统在处理法律咨询对话时的关键局限性。LexRAG为RAG系统在法律领域的实际应用建立了新的基准,其代码和数据可在https://github.com/CSHaitao/LexRAG获取。

英文摘要:

Retrieval-augmented generation (RAG) has proven highly effective in improving large language models (LLMs) across various domains. However, there is no benchmark specifically designed to assess the effectiveness of RAG in the legal domain, which restricts progress in this area. To fill this gap, we propose LexRAG, the first benchmark to evaluate RAG systems for multi-turn legal consultations. LexRAG consists of 1,013 multi-turn dialogue samples and 17,228 candidate legal articles. Each sample is annotated by legal experts and consists of five rounds of progressive questioning. LexRAG includes two key tasks: (1) Conversational knowledge retrieval, requiring accurate retrieval of relevant legal articles based on multi-turn context. (2) Response generation, focusing on producing legally sound answers. To ensure reliable reproducibility, we develop LexiT, a legal RAG toolkit that provides a comprehensive implementation of RAG system components tailored for the legal domain. Additionally, we introduce an LLM-as-a-judge evaluation pipeline to enable detailed and effective assessment. Through experimental analysis of various LLMs and retrieval methods, we reveal the key limitations of existing RAG systems in handling legal consultation conversations. LexRAG establishes a new benchmark for the practical application of RAG systems in the legal domain, with its code and data available at https://github.com/CSHaitao/LexRAG.

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

↑