用大模型嵌入技术提升法律判例检索效果
LLM-based Embedders for Prior Case Retrieval
- 利用大模型嵌入无监督生成文本向量,避免传统方法长度限制
- 在四个基准数据集上超越BM25和有监督模型,最高提升18.7%召回率
- 适合法律科技、司法AI领域研究者参考
在普通法体系中,律师和法官依赖判例构建论点。随着案件数量激增,高效检索先前判例成为关键。判例检索(PCR)是信息检索任务,旨在从大量候选案例中自动识别与查询最相关的判决。尽管信息检索技术近年经历多次范式转变,多数PCR方法仍依赖传统方法如BM25。当前最先进的深度学习模型在PCR中表现不佳,主要受两大挑战制约:一是法律文本过长,使用BERT类模型时存在输入长度限制,需截断或分段处理,导致法律上下文丢失;二是缺乏法律训练数据,因隐私问题,可用的PCR数据集规模有限,难以有效训练深度模型。本文提出利用大模型嵌入器解决上述问题:大模型嵌入器支持更长输入,且采用无监督方式,无需标注数据,同时克服了长度与数据稀缺难题。我们在四个PCR基准数据集上评估了最先进的大模型嵌入器,结果表明其性能显著优于BM25及有监督的Transformer模型。
原文摘要 · Abstract (English)
In common law systems, legal professionals such as lawyers and judges rely on precedents to build their arguments. As the volume of cases has grown massively over time, effectively retrieving prior cases has become essential. Prior case retrieval (PCR) is an information retrieval (IR) task that aims to automatically identify the most relevant court cases for a specific query from a large pool of potential candidates. While IR methods have seen several paradigm shifts over the last few years, the vast majority of PCR methods continue to rely on traditional IR methods, such as BM25. The state-of-the-art deep learning IR methods have not been successful in PCR due to two key challenges: i. Lengthy legal text limitation; when using the powerful BERT-based transformer models, there is a limit of input text lengths, which inevitably requires to shorten the input via truncation or division with a loss of legal context information. ii. Lack of legal training data; due to data privacy concerns, available PCR datasets are often limited in size, making it difficult to train deep learning-based models effectively. In this research, we address these challenges by leveraging LLM-based text embedders in PCR. LLM-based embedders support longer input lengths, and since we use them in an unsupervised manner, they do not require training data, addressing both challenges simultaneously. In this paper, we evaluate state-of-the-art LLM-based text embedders in four PCR benchmark datasets and show that they outperform BM25 and supervised transformer-based models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。