CaseGNN:面向法律案例检索的带文本属性图的图神经网络
CaseGNN: Graph Neural Networks for Legal Case Retrieval with Text-Attributed Graphs
AI总结:
针对法律案例检索中结构信息缺失与长文本限制问题,提出基于图神经网络的CaseGNN模型,通过构建文本属性案例图、边图注意力层和对比损失优化实现检索,在COLIEE基准上取得最优效果。
摘要:
法律案例检索是法律领域的一项信息检索任务,旨在针对给定的查询案例检索出相关案例。当前法律案例检索研究主要依赖传统词袋模型和语言模型,尽管这些方法在检索准确率上已取得显著提升,但仍存在两大挑战:(1)法律结构信息被忽视。现有神经法律案例检索模型大多将案例的非结构化原始文本编码为案例表示,导致案例中重要的法律结构信息缺失,进而造成案例表示效果不佳;(2)法律文本过长的限制。使用性能强大的基于BERT的模型时,存在输入文本长度限制,不可避免地需要通过截断或分割缩短输入,从而损失法律上下文信息。\n本文提出了一种基于图神经网络的法律案例检索模型CaseGNN,以应对上述挑战。为在编码过程中有效利用法律结构信息,研究首先将案例转换为文本属性案例图(Text-Attributed Case Graph,TACG),随后通过设计的边图注意力层(Edge Graph Attention Layer)和读出函数得到案例图表示。CaseGNN模型采用精心设计的对比损失函数进行优化,该损失函数结合了简单负采样和困难负采样。由于案例图中的文本属性来自单个句子,该方法进一步规避了语言模型的使用限制,且不会损失法律上下文。\n研究在COLIEE 2022和COLIEE 2023的两个基准数据集上开展了大量实验,结果表明CaseGNN的性能优于其他现有最先进的法律案例检索方法。相关代码已发布于https://github.com/yanran-tang/CaseGNN。
英文摘要:
Legal case retrieval is an information retrieval task in the legal domain, which aims to retrieve relevant cases with a given query case. Recent research of legal case retrieval mainly relies on traditional bag-of-words models and language models. Although these methods have achieved significant improvement in retrieval accuracy, there are still two challenges: (1) Legal structural information neglect. Previous neural legal case retrieval models mostly encode the unstructured raw text of case into a case representation, which causes the lack of important legal structural information in a case and leads to poor case representation; (2) Lengthy legal text limitation. When using the powerful BERT-based 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. In this paper, a graph neural networks-based legal case retrieval model, CaseGNN, is developed to tackle these challenges. To effectively utilise the legal structural information during encoding, a case is firstly converted into a Text-Attributed Case Graph (TACG), followed by a designed Edge Graph Attention Layer and a readout function to obtain the case graph representation. The CaseGNN model is optimised with a carefully designed contrastive loss with easy and hard negative sampling. Since the text attributes in the case graph come from individual sentences, the restriction of using language models is further avoided without losing the legal context. Extensive experiments have been conducted on two benchmarks from COLIEE 2022 and COLIEE 2023, which demonstrate that CaseGNN outperforms other state-of-the-art legal case retrieval methods. The code has been released on https://github.com/yanran-tang/CaseGNN.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。