arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.06356cs.CLcs.AI
收藏

PL-CA:一种参数化法律案例增强框架

PL-CA: A Parametric Legal Case Augmentation Framework

Ao Chang, Yubo Chen, Jun Zhao

AI总结:

PL-CA提出参数化RAG框架,将法律知识编码为参数向量并通过LoRA注入LLM,缓解上下文压力,并构建专家标注的多任务法律数据集,在保持性能的同时降低开销。

摘要:

传统RAG被认为是解决模型知识不足和幻觉问题的最有效方法之一,尤其是在要求高度知识严谨性、逻辑一致性和内容完整性的司法领域。然而,传统RAG方法仅将检索到的文档直接注入模型的上下文,这严重限制了模型,因为其上下文窗口有限,并且过长的上下文引入了额外的计算开销,从而干扰了模型的注意力,降低了在下游任务上的性能。此外,许多现有基准缺乏专家标注,且仅关注单个下游任务,而现实法律场景由多个混合法律任务组成,表明传统基准不足以反映模型的真实能力。为解决这些局限性,我们提出了PL-CA,它引入了一个参数化RAG(P-RAG)框架,对语料库知识进行数据增强,并将这些法律知识编码为参数向量,然后通过LoRA将这些参数化知识集成到LLM的前馈网络(FFN)中,从而缓解模型的上下文压力。此外,我们还构建了一个包含超过2000个训练和测试实例的多任务法律数据集,所有实例均经过专家标注和人工验证。我们在我们的数据集上进行了实验,实验结果表明,与传统RAG相比,我们的方法减少了与过长上下文相关的开销,同时在下游任务上保持了有竞争力的性能。我们的代码和数据集在附录中提供。

英文摘要:

Conventional RAG is considered one of the most effective methods for addressing model knowledge insufficiency and hallucination, particularly in the judicial domain that requires high levels of knowledge rigor, logical consistency, and content integrity. However, the conventional RAG method only injects retrieved documents directly into the model's context, which severely constrains models due to their limited context windows and introduces additional computational overhead through excessively long contexts, thereby disrupting models' attention and degrading performance on downstream tasks. Moreover, many existing benchmarks lack expert annotation and focus solely on individual downstream tasks while real-world legal scenarios consist of multiple mixed legal tasks, indicating conventional benchmarks' inadequacy for reflecting models' true capabilities. To address these limitations, we propose PL-CA, which introduces a parametric RAG (P-RAG) framework to perform data augmentation on corpus knowledge and encode this legal knowledge into parametric vectors, and then integrates this parametric knowledge into the LLM's feed-forward networks (FFN) via LoRA, thereby alleviating models' context pressure. Additionally, we also construct a multi-task legal dataset comprising more than 2000 training and test instances, which are all expert-annotated and manually verified. We conduct our experiments on our dataset, and the experimental results demonstrate that our method reduces the overhead associated with excessively long contexts while maintaining competitive performance on downstream tasks compared to conventional RAG. Our code and dataset are provided in the appendix.

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

↑