Legal RAG Bench: an end-to-end benchmark for legal RAG
本文提出了Legal RAG Bench,一个用于评估法律RAG系统端到端性能的基准和评估方法。
更新于 2026-03-18。作者:Abdur-Rahman Butler、Umar Butler。
中文摘要
我们推出了法律 RAG 基准测试,这是一种评估法律 RAG 系统端到端性能的基准和评估方法。作为一个基准,法律 RAG 基准测试由来自维多利亚刑事指控手册的 4,876 篇段落以及 100 个复杂的手工制作问题组成,这些问题要求对刑法和程序有专业知识。同时提供了长篇答案和相关段落。作为一个评估方法,法律 RAG 基准测试利用了全因子设计和新颖的分层错误分解框架,使得检索和推理模型在 RAG 中的贡献可以进行苹果对苹果的比较。我们评估了三种最先进的嵌入模型(Isaacus 的 Kanon 2 嵌入器、Google 的 Gemini Embedding 001 和 OpenAI 的 Text Embedding 3 Large)以及两种前沿的大型语言模型(Gemini 3.1 Pro 和 GPT-5.2),发现信息检索是法律 RAG 性能的主要驱动力,大型语言模型对正确性和相关性有更温和的影响。特别是 Kanon 2 嵌入器对性能的提升最大,平均正确性提高了 17.5 分,相关性提高了 4.5 分,检索准确率提高了 34 分。我们观察到,许多归因于法律 RAG 系统中幻觉的错误实际上是检索失败触发的,结论是检索设定了许多现代法律 RAG 系统性能的上限。我们记录了为什么以及如何构建法律 RAG 基准测试以及我们评估的结果。我们还公开发布了我们的代码和数据,以帮助他人重现我们的发现。
英文摘要
We introduce Legal RAG Bench, a benchmark and evaluation methodology for assessing the end-to-end performance of legal RAG systems. As a benchmark, Legal RAG Bench consists of 4,876 passages from the Victorian Criminal Charge Book alongside 100 complex, hand-crafted questions demanding expert knowledge of criminal law and procedure. Both long-form answers and supporting passages are provided. As an evaluation methodology, Legal RAG Bench leverages a full factorial design and novel hierarchical error decomposition framework, enabling apples-to-apples comparisons of the contributions of retrieval and reasoning models in RAG. We evaluate three state-of-the-art embedding models (Isaacus' Kanon 2 Embedder, Google's Gemini Embedding 001, and OpenAI's Text Embedding 3 Large) and two frontier LLMs (Gemini 3.1 Pro and GPT-5.2), finding that information retrieval is the primary driver of legal RAG performance, with LLMs exerting a more moderate effect on correctness and groundedness. Kanon 2 Embedder, in particular, had the largest positive impact on performance, improving average correctness by 17.5 points, groundedness by 4.5 points, and retrieval accuracy by 34 points. We observe that many errors attributed to hallucinations in legal RAG systems are in fact triggered by retrieval failures, concluding that retrieval sets the ceiling for the performance of many modern legal RAG systems. We document why and how we built Legal RAG Bench alongside the results of our evaluations. We also openly release our code and data to assist with reproduction of our findings.
解读
一句话总结
本文提出了Legal RAG Bench,一个用于评估法律RAG系统端到端性能的基准和评估方法。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:目前缺乏高质量、端到端的法律RAG评估基准,导致应用开发者难以评估其应用的真正性能。
- 现有方案不足:大多数公共基准要么针对通用应用,要么仅评估法律RAG的一个组件,且存在标签质量低、方法学缺陷等问题。
- 研究目标:开发一个新基准Legal RAG Bench,用于评估法律RAG系统的端到端性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出Legal RAG Bench,包含来自维多利亚刑事指控书的4,876个段落和100个复杂问题,以及长篇答案和支持段落。
- 方法改进:利用全因子设计和新颖的层次错误分解框架,允许对检索和推理模型在RAG中的贡献进行苹果对苹果的比较。
- 优势:通过实验证明检索质量是法律RAG性能的主要驱动因素,且LLM对正确性和扎根度的影响较为适中。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:评估了三种最先进的嵌入模型和两种前沿LLM,发现信息检索是法律RAG性能的主要驱动因素。
- 性能提升:Kanon 2 Embedder在性能上具有最大的积极影响,平均正确性提高了17.5分,扎根度提高了4.5分,检索准确性提高了34分。
- 对比结果:与基线方法相比,Kanon 2 Embedder在各种性能指标上均有显著提升。
问题4:这个研究的实际应用价值是什么?
- 应用场景:为法律RAG系统的开发者提供了一种可靠的评估工具,有助于提高法律RAG系统的质量和实用性。
- 实施建议:鼓励开发者使用Legal RAG Bench进行性能评估,并根据评估结果优化其RAG系统。
- 局限与展望:虽然Legal RAG Bench是一个重要的基准,但仍需进一步研究以解决法律RAG系统的其他挑战,如幻觉和推理错误。
来源
机器可读索引:llms.txt