A Multi-Source Heterogeneous Knowledge Injected Prompt Learning Method for Legal Charge Prediction

Jingyun Sun, Chi Wei, Yang Li
8/5/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Legal charge prediction, an essential task in legal AI, seeks to assign accurate charge labels to case descriptions, attracting significant recent interest. Existing methods primarily employ diverse neural network structures for modeling case descriptions directly, failing to effectively leverage multi-source external knowledge. We propose a prompt learning framework-based method that simultaneously leverages multi-source heterogeneous external knowledge from a legal knowledge base, a conversational LLM, and related legal articles. Specifically, we match knowledge snippets in case descriptions via the legal knowledge base and encapsulate them into the input through a hard prompt template. Additionally, we retrieve legal articles related to a given case description through contrastive learning, and then obtain factual elements within the case description through a conversational LLM. We fuse the embedding vectors of soft prompt tokens with the encoding vector of factual elements to achieve knowledge-enhanced model forward inference. Experimental results show that our method achieved state-of-the-art results on CAIL-2018, the largest legal charge prediction dataset, and our method has lower data dependency. Case studies also demonstrate our method's strong interpretability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{sun2024multisource,
  title  = {A Multi-Source Heterogeneous Knowledge Injected Prompt Learning Method for Legal Charge Prediction},
  author = {Jingyun Sun and Chi Wei and Yang Li},
  year   = {2024},
  eprint = {2408.02233},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.02233v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.02233.svg)](https://codeofpaper.com/paper/2408.02233)

Discussion