---
title: "Charge Prediction by Constitutive Elements Matching of Crimes"
authors:
  - "Jie Zhao"
  - "Ziyu Guan"
  - "Cai Xu"
  - "Wei Zhao"
  - "Enze Chen"
doi: "10.24963/ijcai.2022/627"
url: "https://ijcai.org/proceedings/2022/627"
pdf: "https://ijcai.org/proceedings/2022/0627.pdf"
venue: "Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence"
year: 2022
pages: "4517-4523"
track: "Main Track"
keywords:
  - "Natural Language Processing: Applications"
  - "Natural Language Processing: Text Classification"
  - "Natural Language Processing: Information Retrieval and Text Mining"
  - "Machine Learning: Deep Reinforcement Learning"
---

# Charge Prediction by Constitutive Elements Matching of Crimes

Jie Zhao, Ziyu Guan, Cai Xu, Wei Zhao, Enze Chen

*Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence*, pages 4517-4523. DOI: [10.24963/ijcai.2022/627](https://doi.org/10.24963/ijcai.2022/627)

## Abstract

Charge prediction is to automatically predict the judgemental charges for legal cases. To convict a person/unit of a charge, the case description must contain matching instances of the constitutive elements (CEs) of that charge. This knowledge of CEs is a valuable guide for the judge in making final decisions. However, it is far from fully exploited for charge prediction in the literature. In this paper we propose a novel method named Constitutive Elements-guided Charge Prediction (CECP). CECP mimics human's charge identification process to extract potential instances of CEs and generate predictions accordingly. It avoids laborious labeling of matching instances of CEs by a novel reinforcement learning module which progressively selects potentially matching sentences for CEs and evaluates their relevance. The final prediction is generated based on the selected sentences and their relevant CEs. Experiments on two real-world datasets show the superiority of CECP over competitive baselines.

## Full text

## 1 Introduction

Charge prediction is to identify the final charges/crimes (e.g., fraud and bribery) on the basis of fact descriptions of legal cases. As a considerable application of legal artificial intelligence, charge prediction is pivotal for legal assistant systems. For legal professionals, it provides a handy reference to relieve the burdensome work and increase working efficiency. For ordinary people, a qualified charge prediction system can provide useful and inexpensive legal services.

In the past decades, charge prediction has been studied as a text classification problem. Different from the ordinary text classification, a large amount of legal knowledge (e.g., law articles in the Criminal Law and related judicial interpretations) could be exploited for predicting charges precisely. There are mainly two general ideas for exploiting the legal knowledge. The first one is to assess the correlations between fact descriptions and law articles and incorporate the results for charge prediction [Luo et al., 2017;

∗Corresponding Author

Figure 1: Four CEs of the charge "arson". The instances are marked with the same colors as the corresponding CEs, respectively.

![Image](https://ijcai.org/proceedings/2022/fulltext/627/image_000000_41f0b07d1915928545f23b3a916f5afa6b03158caad0c67762851e850308bd78.png)

Shen et al., 2018; Xu et al., 2020]. However, leveraging legal knowledge at the article-level would be too coarse-grained since one article can involve multiple charges. Such articles fail to provide distinct support for distinguishing confusing charges. The second idea is to manually derive several legal attributes, such as whether the criminal has the act of violence, from law articles or judicial interpretations in advance [Ashley and Br¨uninghaus, 2009; Hu et al., 2018; Zhong et al., 2020a]. These legal attributes are then extracted from fact descriptions and used to predict charges. However, manually defining attributes requires significant expertise and effort, and is hard to be comprehensive.

For countries with a civil law system, constitutive elements (CEs) of a charge are important judicial interpretations (not included in law articles) and guides for convicting a person/unit of the charge in practice. That is, the fact of the case must match the CEs of the corresponding charge [Gao, 2009]. Consider the four-CEs system of China. Each charge is described by subject element, subjective element, object element and objective element, all of which are crucial for distinguishing different charges. Figure 1 shows an example where the matching instances and the corresponding CEs are shown in the same colors, respectively. Tang is convicted of arson because the fact matches the four CEs of arson. However, the knowledge of CEs has not been adequately exploited in charge prediction. Recently, Li et al. [2021] designed a double-layer criminal system for interpretable charge prediction, where objective and subjective information was extracted. However, this work ignores the object and subject elements which are also important. For instance, when someone steals cables, he/she will be convicted of theft if the object is cables in a warehouse, and of damage of communication equipment if the object is cables used for communication.

Furthermore, different CEs follow a logical order. A typical charge identification process is: the judicial officials first discover a certain detriment fact (objective), then find out its cause (subject) and whether/how the perpetrator should be responsible for it (subjective), and finally determine which kind of social relationship (object) is violated and whether the crime is established [Zhao, 2003]. Take "arson" as an example. First, the occurrence of a fire (objective) is discovered. Then it is investigated whether the fire is caused by human behavior (subject), because no one will be convicted if it is caused by non-human behavior (e.g., a naturally occurring forest fire). If so, the next focus is the psychological attitude (subjective) of the involved person. This is the key to distinguishing arson from fire by imprudence. Last, based on the above identified substance, whether the public safety (object) has been violated and whether anyone should be convicted are determined. We can see in this process the subsequent tasks are based on the previously identified substance. Therefore, the logical order, objective element → subject element → subjective element → object element, could be useful and important knowledge for charge prediction.

In order to better exploit the knowledge of CEs, we propose a novel method for charge prediction named Constitutive Elements-guided Charge Prediction (CECP). CECP mimics human's charge identification process to extract potential instances of CEs and generate predictions accordingly. To avoid laborious labeling of matching instances of CEs, we design a reinforcement learning module which defines a legal agent to mine instances of CEs automatically. The agent is formulated in the actor-critic framework [Mnih et al., 2016] and takes the embeddings of fact descriptions and CEs from an encoder network as observations. It groups CEs of different charges by types (i.e., object, objective, subject, subjective) and follows the logical order of CEs circularly to iteratively select the most crucial sentences (i.e., instances) for each type. In a step concerning CE type p, it first performs weighted aggregations of the previously selected sentences for type p and the type p CEs respectively, where the weights are calculated by relevance estimation between them. This provides summarized representations of selected sentences and CEs focusing on the most relevant instances and charges respectively. Then the agent selects an un-selected sentence by considering both the summarized representation of CEs and a history embedding which encodes the previously selected sentences for all CE types (emphasizing sentences with high relevance weights). This history embedding represents the "previously identified substance" and is updated by the summarized representation of selected sentences for type p. Finally, we feed the summarized representations of selected sentences and CEs for all CE types into a prediction network to generate charge prediction. We design a reward function for the agent by the prediction result and the duplication degree of selected sentences. In summary, the contributions of this work are: (1) we provide the first solution for charge prediction which comprehensively exploits the knowledge of constitutive elements of charges; (2) a novel reinforcement learning model is proposed to avoid laborious labeling of matching instances of CEs; (3) we conduct plentiful experiments on two real-world datasets to verify the effectiveness of our model and show its significant improvements over competitive baselines.

## 2 RelatedWork

Charge Prediction. Convicting someone or a unit of a certain charge is a key step of legal judgment. Due to the relatively small scale of data and limited computing power, inchoate works for charge prediction mainly relied on mathematical methods [Kort, 1957] or shallow textual features [Lin et al., 2012]. Since these works are severely limited by manual efforts, they are difficult to be applied to diverse scenarios. Recently, researchers began to take advantage of deep learning methods and proposed a series of neural-based models which utilized the legal knowledge to enhance prediction. Luo et al. [2017] proposed an attention-based neural network, where law articles were incorporated and a two-stack attention mechanism was adopted to jointly model charge prediction and relevant article extraction. Xu et al. [2020] proposed a novel graph neural network to automatically learn subtle differences among confusing law articles, which were taken as the legal basis to attentively extract discriminative features from fact descriptions. Hu et al. [2018] introduced several discriminative attributes of charges as the internal mapping between fact descriptions and charges, and proposed an attribute-attentive charge prediction model. Nevertheless, most existing works either leverage the correlations to law articles or manually define attributes for incorporating legal knowledge. As aforementioned, (1) correlations at the articlelevel cannot well deal with multiple charges in the same article; (2) manually defining attributes is hard to be comprehensive. Although recent work [Li et al., 2021] exploited objective and subjective elements of charges, the knowledge of CEs was far from being fully exploited.

Extractive Summarization. The state-of-art neural extractive summarization (NES) models are mainly based on sentence (or smaller linguistic unit) scoring and selecting [Zhong et al., 2020b]. These models aim to assess the representativeness scores of a sentence w.r.t contextual sentences, title sentences, or query sentences [Ren et al., 2018]. In CECP, the legal agent also scores and selects sentences from fact descriptions. However, the existing NES techniques cannot well solve our problem. This is because in our case we need to assess multiple scores of a sentence w.r.t the four types of CEs of hundreds of charges, while NES only considers the representativeness of a sentence w.r.t some target sentences. Moreover, the logical order of the four CE types cannot be captured by NES.

Reinforcement Learning. Reinforcement learning is designed for sequential decision-making problems. Recently, deep reinforcement learning (DRL) which integrates the perception ability of deep learning with the decision-making ability of reinforcement learning has been proposed [Lange et al., 2012]. There are two mainstreams of DRL: valuebased models and policy-based models. Thanks to the great progress in this domain, many DRL based methods were proposed to solve various computer vision and natural language processing tasks and obtained desirable results [Rennie et al., 2017]. In this work, we design a new DRL agent for mining matching instances of CEs and employ the A3C framework [Mnih et al., 2016] for model training.

## 3 Method

## 3.1 ProblemFormulation andModel Overview

A legal case contains a fact description F and the corresponding charge y. The fact description is comprised of n sentences (F = {si}ni=1 ) and the i-th sentence, si, contains mi words, i.e., si = {wi,j}mi j=1 . The corresponding charge y belongs to the charge set Y with C charges in total. We introduce CEs of charges as legal knowledge. Assume that there are P CE types. We regard each CE as a word sequence and denote the p-th CE (p ∈ {1, . . . , P}) of the c-th charge (c ∈ {1, . . . , C}) by ep,c = {wp,c,j}lp j=1 , where lp is the sequence length. In this paper, we use bold face lower/upper case letters to denote vectors/matrices respectively. Our goal is to develop a model that can accurately predict y for a given F and the auxiliary knowledge of CEs, {ep,c}.

In CECP, we utilize the knowledge of CEs to extract potential instances of CEs from the fact description of a legal case, and predict the corresponding charge accordingly. As shown in Figure 2(a), the proposed CECP consists of encoder, reinforcement learning (RL) module and predictor. The encoder is responsible for learning sentence-level embeddings of the fact description and CEs. In the RL module, we develop a legal agent which observes these embeddings and mines instances of CEs from the fact description automatically. Specifically, it follows the logical order of CEs circularly to iteratively select the most crucial sentences for each CE type. After enough sentences are selected, the fact description can be represented by P parts, where the p-th part contains the instances (i.e., sentences) of type p CEs. We feed these P parts and the corresponding P groups of CEs (both after aggregation for each type according to the relevance estimation between selected sentences and CEs) to a predictor to get the prediction. In the following, we will elaborate on the three components of CECP.

## 3.2 Encoder Network

The encoder network is dedicated to learning embeddings of the fact description F and CEs {ep,c}.

Fact Encoder. In CECP, the fact description is represented as sentence-level embeddings. We use the GRU [Cho et al., 2014] to capture the dependencies among words of sentences and utilize the scaled dot-product attention [Vaswani et al., 2017] to capture informative words and aggregate hidden states of GRU into a single embedding accordingly. A slight difference with the standard scaled dot-product attention is that we compute the query vector by a max-pooling operation over hidden states of GRU to better capture important sentence-level features. Full details can be found in Appendix A.1 1 . Since different types of CEs often show language discrepancies, we use one GRU for detecting the instances for one CE type (with identical network architecture and separate parameters). Finally, for each sentence si ∈ F, we obtain P d-dimensional embeddings {fp,i} (p ∈ {1, . . . , P}).

CE Encoder. We treat each CE (ep,c) as a long sentence, encode it in the same way as encoding the sentences in the fact description, and obtain a basic feature vector ebasep,c for it. Motivated by the fact that different types of CEs could show different amounts of information, we design a Pivotal Feature Identification (PFI) layer to extract key features and ignore features showing low variances among different charges. Let varp[a] represent the variance of [ebasep,1[a], . . . , ebasep,C[a]], where a in the square brackets represents the a-th dimension of a vector. We use up which is obtained according to varp to identify whether the a-th dimension of ebasep,c should be ignored:

<!-- formula-not-decoded -->

where ◦ is the pointwise product. Due to the properties of sigmoid, when varp[a] is not close to 0, up[a] will be close to 0 and the impact of PFI on ep,c[a] is very small (pivotal); when varp[a] is close to 0, up[a] will be close to 1. Then ep,c[a] will approach 0 (eliminated) since the subtracted averageterm is close to each ebasep,c due to very small variance.

## 3.3 Reinforcement LearningModule

We model the selection of crucial sentences for each CE type as an RL problem. We formulate our task in the actor-critic framework and define a legal agent which takes the embeddings of the fact description and CEs, {fp,i}, {ep,c}, ∀p, i, c, as its observations. The agent groups CEs of different charges by types (i.e., {e1,c}∀c, . . . , {eP,c}∀c) and iteratively selects the most crucial sentences for each CE type.

Figure 2(b) shows how the agent selects a sentence in step t concerning CE type ˜ p = 1 + [(t - 1) mod P ]. Here, we denote the set of embeddings of the selected sentences for type ˜ p as {f˜ p,is }t and that of the remaining un-selected sentences 2 for type ˜ p as {f˜ p,iu }t . The agent first performs weighted aggregations of the selected sentences {f˜ p,is }t and the set of type ˜ p CEs {e˜ p,c} respectively, where the weights are calculated by relevance estimation between them. This provides summarized representations, ˆf t˜ p and ˆet˜ p , of the selected sentences and CEs, focusing on the most relevant instances and charges respectively. The agent then updates a history embedding ht with ˆf t˜ p , i.e., recording the most relevant selected sentences for type ˜ p. Hence, ht memorizes salient sentences selected in all previous steps. Next, the agent computes a probability distribution on {f˜ p,iu }t based on each f˜ p,iu 's interactions with ˆet˜ p and ht , and selects one accordingly. It means we consider both the current type ˜ p CEs (emphasizing the most promising ones) and previously selected sentences

[1 Available at: https://github.com/jiezhao6/CECP](https://github.com/jiezhao6/CECP)

2 Note that sometimes one sentence connects to multiple CE types. Hence, we need to maintain one un-selected set for each type.

Figure 2: (a) The framework of CECP; (b) The workflow of the legal agent in step t: for CE type ˜ p = 1 + [(t - 1) mod P ], it observes three sets, {f˜ p,is }t , {f˜ p,iu }t and {e˜ p,c}, representing selected/un-selected sentences and CEs for type ˜ p respectively. It takes an action to select a sentence according to the policy π defined in Eqs. (2) ∼ (5).

![Image](https://ijcai.org/proceedings/2022/fulltext/627/image_000001_575c175c954a41202e7e4bb094d52eff20ab88d59c1f86b97f277d15f7189e76.png)

(previously identified substance) for sentence selection. The agent continuously selects sentences cyclically for the P CE types until the total number of selected sentences meets a preset value. Finally, the selected sentences for all CE types are delivered to the predictor to generate a prediction. Formally, {fp,i} and {ep,c} can be considered as the environment in an ordinary RL problem. The parameters θa, which contain the parameters in Eqs. (3) ∼ (5) that we describe later, define a policy π which results in an action of selecting a sentence. In the following, we present the details.

Aggregation. Let nt = |{f˜ p,is }t |. First, we take a maxpooling operation over these selected sentences:

<!-- formula-not-decoded -->

Here ˜f t˜ p captures the most informative features of selected sentences in a type-view and could be regarded as a matching "instance" of type ˜ p. For the aggregation of CEs, We can just take the CE of a certain charge that is most relevant to ˜f t˜ p . However, different charges may have very similar CE descriptions for type ˜ p, so we summarize the type ˜ p CEs of all charges in a weighted sum manner instead of risking missing important information by just taking the most relevant CE:

<!-- formula-not-decoded -->

where αt˜ p,c is computed as the relevance degree between ˜f t˜ p and e˜ p,c, and W˜ p ∈ Rd×d is a bilinear term [Chen et al., 2016] which allows estimating the relevance between ˜f t˜ p and e˜ p,c more flexibly.

Note that ˜f t˜ p is CE-independent, i.e., the max-pooling aggregation fails to explicitly utilize the knowledge of CEs. Therefore, we also use a weighted sum to summarize the selected sentences, where the weights are the relevance scores between f˜ p,is and ˆet˜ p :

<!-- formula-not-decoded -->

To a certain extent, the above computing process is similar to the bi-directional attention [Seo et al., 2016]. However, the bi-directional attention is not suitable for our problem. This is because bi-directional attention computes pairwise relevance between two sets of items (in our case, sentences and CEs). To obtain aggregations of sentences and CEs, we need to first aggregate these pairwise relevance scores, either by maxpooling or average-pooling. However, (1) max-pooling is vulnerable to noises; (2) average-pooling would promote sentences with moderate scores to many CEs. Since the CEs of different charges general form clusters due to similar charges, a matching instance (sentence) of a CE in the fact description would show high relevance scores to a few CEs. Hence, our method, which first identifies a few relevant CEs according to the salient features in the selected sentences and then extracts relevant sentences to these CEs, is more suitable for mining matching instances.

Action. The summarized representations ˆf t˜ p and ˆet˜ p focus on the most relevant sentences (instances) and charges respectively. ˆet˜ p can provide an external legal knowledge guide for selecting an un-selected sentence for type ˜ p. In step t, we first incorporate ˆf t˜ p into ht-1 , the previous history embedding, to add the latest most salient sentences for type ˜ p and get ht . Then, both ˆet˜ p and ht are considered for selecting an un-selected sentence. We design a learnable interpolation weight gt iu to tune the relative importance between them, since they may have different contributions in different stages (e.g., in the initial steps, the history embedding is weak, so the agent should pay more attention to the knowledge of CEs; as t increases, the history embedding is enhanced, and could be more important in evaluating sentences). Formally, the selecting probabilities of un-selected sentences {f˜ p,iu }t for type ˜ p are computed as follows:

<!-- formula-not-decoded -->

where Whis, bhis, Wg, bg, We and Wh are trainable parameters. Based on the probability of each un-selected sentence, the agent will take an action at that selects the sentence with max probability (when testing) or samples a sentence by probability (when training).

The critic in our model, i.e., the value function, learns to evaluate how "good" the selected sentences are under the current policy. Hence, we feed the summarized representations of selected sentences to the critic. It is defined as a network containing two fully connected (FC) layers (parameters: θv) with a tanh nonlinearity following the first FC layer:

<!-- formula-not-decoded -->

Reward Function. Naturally, the prediction results shall be a part of the reward signal. Besides, to encourage the diversity of selected sentences and enhance the exploration ability of the agent when training, we design a penalty term to penalize actions which select previously selected sentences. The reward function is defined as:

<!-- formula-not-decoded -->

The penalty term dupt = ntdup /P measures the duplication degree of the currently selected sentence, where ntdup is the number of times the sentence selected in the current step has been selected in previous steps. This term will make the agent pay attention to the selection of diverse information. What's more, it is also a form of exploration to discourage premature convergence, which is different from the entropy regularization [Mnih et al., 2016] in the actor-critic framework. The entropy regularization term encourages exploration in one action, whereas this penalty term encourages exploration in multiple actions since it concerns previous steps. λ is a weight hyperparameter. predt is defined as:

<!-- formula-not-decoded -->

where ˆytc∗ is the prediction softmax output for c∗ , the class index of the ground truth. When the predictor returns a correct prediction, the agent will be rewarded the corresponding probability score, to encourage it to generate a high score for the correct class. On the contrary, it will be punished with a negative reward if the prediction is wrong (still encourage it to generate high scores for ground truth charges).

## 3.4 Prediction Network

The prediction network outputs the final prediction according to the sentences selected by the legal agent. It in turn provides feedback that partly reflects the quality of the agent's action. Supposing that np sentences have been selected for type p, we apply Eqs. (3) ∼ (4) on the final set of selected sentences for type p to obtain the summarized representations of the selected sentences and type p CEs, respectively. Then we use a concatenation operation to represent them as fep = [ˆfp; ˆep; ˆfp ◦ ˆep], where ˆfp ◦ ˆep further enhances the interaction between the aggregated sentences and CEs. Finally, we calculate the probability distribution of charges by a linear classifier with parameters W and b:

<!-- formula-not-decoded -->

Table 1: Statistics of the Criminal and CAIL datasets. The real numbers represent the average number of sentences in a sample.

| Statistics   | Training Cases   | Test Cases    |   Charges |
|--------------|------------------|---------------|-----------|
| Criminal-S   | 61,589 (24.4)    | 7,702 (24.1)  |       149 |
| Criminal-M   | 153,521 (24.4)   | 19,189 (24.4) |       149 |
| Criminal-L   | 306,900 (24.4)   | 38,368 (24.5) |       149 |
| CAIL         | 101,275 (22.3)   | 26,661 (22.2) |       119 |

To train the encoder and predictor, the standard crossentropy loss function is used. For training the RL module, we employ the A3C [Mnih et al., 2016] framework. We alternately optimize them, and the details and the pseudocode of the training process are described in Appendix A.2.

## 4 Experiments

We evaluate the performance of CECP on Criminal [Hu et al., 2018] and CAIL [Xiao et al., 2018], which are both collected from the China Judgments Online 3 . Important statistics of them are summarized in Table 1. Criminal consists of roughly 500, 000 legal cases of 149 charges. Each case contains a fact description and the corresponding charge. Three sub-datasets with different sizes are constructed: CriminalS, Criminal-M and Criminal-L. CAIL is a legal dataset for competition. Since it is a multi-label dataset, we perform preprocessing on it (details in Appendix A.3).

We compare CECP with the following ordinary text classification (OTC) baselines and legal knowledge based (LKB) baselines. The OTC baselines just take the fact description as input and totally neglect legal knowledge. TextCNN [Kim, 2014] and DPCNN [Johnson and Zhang, 2017] are two convolutional neural network based models and HARNN [Yang et al., 2016] is a recurrent neural network based model. Based on the transformer, BERT [Devlin et al., 2019] can benefit from pre-trained models. SAttCaps [Le et al., 2020] is the state-of-the-art OTC baseline, which captures long-range dependencies of lengthy fact descriptions. The LKB baselines exploit law articles or legal attributes as auxiliary information to predict charges. FewShot [Hu et al., 2018] is an attributeattentive charge prediction model. FLA [Luo et al., 2017] and the state-of-the-art LKB baseline, LADAN [Xu et al., 2020], are two models which exploit law articles. LADAN cannot be applied to the Criminal dataset due to lack of required information (details in Appendix A.3).

Following the work of [Le et al., 2020; Xu et al., 2020], we employ Accuracy (Acc.), Macro-Precision (MP), MacroRecall (MR), and Macro-F1 (F1) as the evaluation metrics. Note that Criminal and CAIL are imbalanced datasets. Hence, Acc. might be dominated by high-frequency charges, while MP, MR, F1 are fairer. For CEs construction and more experimental settings, we describe them in Appendix A.3.

## 4.1 Results

Table 2 shows the experimental results on the Criminal and CAIL datasets. We can obtain the following observations: (1) the models (SAttCaps, FLA, FewShot, LADAN, CECP)

[3 https://wenshu.court.gov.cn/](https://wenshu.court.gov.cn/)

Table 2: Results on the Criminal and CAIL datasets. The underlined values denote the optimal results of baselines.

| Methods    |         | TextCNN              | DPCNN                | HARNN                | BERT                 | SAttCaps             | FLA                  | FewShot              | LADAN   | CECP                 |
|------------|---------|----------------------|----------------------|----------------------|----------------------|----------------------|----------------------|----------------------|---------|----------------------|
| Criminal-S | Acc.    | 0.9438 0.6438 0.6390 | 0.9353 0.5804 0.5843 | 0.9429 0.6476 0.6466 | 0.9447 0.5251 0.5039 | 0.9448 0.6700 0.6766 | 0.8965 0.6018 0.5039 | 0.9425 0.6514 0.6798 | - - -   | 0.9497 0.7107 0.7031 |
|            | MP      |                      |                      |                      |                      |                      |                      |                      |         |                      |
|            | MR      |                      |                      |                      |                      |                      |                      |                      |         |                      |
|            | F1      | 0.6288               | 0.5687               | 0.6377               | 0.5038               | 0.6637               | 0.5352               | 0.6492               | -       | 0.6940               |
| Criminal-M |         | 0.9516               | 0.9481               | 0.9525               | 0.9571               | 0.9563               | 0.9114               | 0.9562               | -       | 0.9591               |
|            | Acc. MP | 0.7040               | 0.6766               | 0.6897               | 0.6581               | 0.7329               | 0.6547               | 0.7129               | -       | 0.7617               |
|            | MR      | 0.6838               | 0.6595               | 0.6891               | 0.6318               | 0.7163               | 0.5197               | 0.7230               | -       | 0.7516               |
|            | F1      | 0.6805               | 0.6543               | 0.6778               | 0.6369               | 0.7146               | 0.5657               | 0.7038               | -       | 0.7450               |
| Criminal-L | Acc.    | 0.9567               | 0.9554               | 0.9594               | 0.9630               | 0.9600               | 0.9604               | 0.9627               | -       | 0.9618               |
| Criminal-L | MP      | 0.7639               | 0.7425               | 0.7856               | 0.7697               | 0.7823               | 0.7590               | 0.7799               | -       | 0.8087               |
| Criminal-L | MR      | 0.7177               | 0.7034               | 0.7350               | 0.6839               | 0.7392               | 0.7227               | 0.7564               | -       | 0.7792               |
| Criminal-L | F1      | 0.7277               | 0.7072               | 0.7463               | 0.7068               | 0.7467               | 0.7281               | 0.7511               | -       | 0.7794               |
| CAIL       | Acc.    | 0.8435               | 0.8431               | 0.8550               | 0.8502               | 0.8465               | 0.8156               | 0.8572               | 0.8400  | 0.8646               |
|            | MP      | 0.8260               | 0.8224               | 0.8324               | 0.8415               | 0.8261               | 0.7871               | 0.8327               | 0.8302  | 0.8563               |
|            | MR      | 0.8271               | 0.8195               | 0.8347               | 0.8157               | 0.8318               | 0.7612               | 0.8470               | 0.8356  | 0.8599               |
|            | F1      | 0.8205               | 0.8145               | 0.8291               | 0.8195               | 0.8243               | 0.7693               | 0.8341               | 0.8262  | 0.8520               |

that are carefully designed for legal tasks usually perform better than universal models (TextCNN, DPCNN, HARNN, BERT). This demonstrates a specialized model is essential in the legal domain. (2) SAttCaps shows good performance on Criminal-S and Criminal-M. The reason might be that SAttCaps uses the self-attentive dynamic routing to explicitly capture charge-related contents in fact descriptions. Our CECP also achieves this by selecting crucial sentences. (3) BERT does not achieve satisfactory performance mainly because the maximum length that BERT can handle is 512, which is much less than the length of legal texts. (4) We use ttest with significance level 0.05 to test the significance of performance difference. Results show that in most cases CECP significantly outperforms all the baselines on both datasets.

## 4.2 Analysis

In this subsection, we analyze CECP from three perspectives, i.e., ablation experiments, case study and ethical analysis.

We conduct ablation experiments on the CAIL dataset to demonstrate the effectiveness of two mechanisms of CECP: (1) the PFI layer. We remove the PFI layer to form a variant called No-PFI. (2) the logical order exploited by the RL Module. We randomly choose two new orders and construct two variants (Order-1: subjective→object→objective→subject and Order-2: object→subject→subjective→objective). From Figure 3 (left) (details in Appendix A.4) we can see that the performance of these variants drops apparently, which confirms the effectiveness of the PFI layer and the logical order.

We select a representative case for the charge of abuse of power (AP) to explore what CECP can mine from the fact description. In Figure 3 (right), we illustrate the selected sentences with maximum aggregation weights for each CE type. Simply put, AP's objective element is the behavior of overstepping authority, subject element is the functionary of state organ, subjective element is the deliberate destruction of normal management order, and object element is the serious damage to the interests of state and people. Here we can find that the CECP can effectively mine the instances of CEs.

Figure 3: Ablation experiments and case study.

![Image](https://ijcai.org/proceedings/2022/fulltext/627/image_000002_efb9641c10cae3892bcdf4117d668e1e10596946cd61cbc0e5c9efa876c39523.png)

Ethical issues such as gender bias and racial discrimination may be learned by embedding-based legal models. The prediction error produced by these models may even be fatal to the suspect. However, it is still an open problem in this field. For CECP, the goal is not to replace legal professionals, but to ease their work and help non-professionals get help. Therefore, we should only use the result of CECP as a reference.

## 5 Conclusion

In this paper, we propose a novel method for charge prediction, CECP. We design a legal agent to mimic the human's charge identification process to extract potential instances of CEs. It utilizes the sequential decision-making ability of RL and avoids laborious labeling of matching instances of CEs. Experimental results confirm the effectiveness of CECP compared to competitive baselines.

## Acknowledgments

This research was supported by the National Natural Science Foundation of China (Grant Nos.62133012, 61936006, 61876144, 61876145, 62073255, 62103314), the Key Research and Development Program of Shaanxi (Program No.2020ZDLGY04-07), and Innovation Capability Support Program of Shaanxi (Program No. 2021TD-05).

## References

1. [Ashley and Brüninghaus, 2009] Kevin D Ashley and Ste- fanie Brüninghaus. Automatically classifying case texts and predicting outcomes. Artificial Intelligence and Law, 17(2):125-165, 2009.
2. [Chen et al., 2016] Danqi Chen, Jason Bolton, and Christo- pher D Manning. A thorough examination of the cnn/daily mail reading comprehension task. In ACL, pages 2358- 2367, 2016.
3. [Cho et al., 2014] Kyunghyun Cho, Bart Van Merriënboer, Caglar Gulcehre, Dzmitry Bahdanau, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. arXiv preprint, 2014.
4. [Devlin et al., 2019] Jacob Devlin, Ming-Wei Chang, Ken- ton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understand- ing. In NAACL, pages 4171-4186, 2019.
5. [Gao, 2009] Mingxuan Gao. On the rationality of quadrilat- eral essentials of crime composition and stick to china's criminal legal system. China Legal Science, 2, 2009.
6. [Hu et al., 2018] Zikun Hu, Xiang Li, Cunchao Tu, Zhiyuan Liu, and Maosong Sun. Few-shot charge prediction with discriminative legal attributes. In COLING, pages 487- 498, 2018.
7. [Johnson and Zhang, 2017] Rie Johnson and Tong Zhang. Deep pyramid convolutional neural networks for text cat- egorization. In ACL, pages 562-570, 2017.
8. [Kim, 2014] Yoon Kim. Convolutional neural networks for sentence classification. In EMNLP, pages 1746-1751, 2014.
9. [Kort, 1957] Fred Kort. Predicting supreme court deci- sions mathematically: A quantitative analysis of the "right to counsel" cases. American Political Science Review, 51(1):1-12, 1957.
10. [Lange et al., 2012] Sascha Lange, Martin Riedmiller, and Arne Voigtländer. Autonomous reinforcement learning on raw visual input data in a real world application. In IJCNN, pages 1-8. IEEE, 2012.
11. [Le et al., 2020] Yuquan Le, Congqing He, Meng Chen, Youzheng Wu, Xiaodong He, and Bowen Zhou. Learn- ing to predict charges for legal judgment via self-attentive capsule network. In ECAI 2020, pages 1802-1809. 2020.
12. [Li et al., 2021] Lin Li, Lingyun Zhao, Peiran Nai, and Xi- aohui Tao. Charge prediction modeling with interpreta- tion enhancement driven by double-layer criminal system. World Wide Web, pages 1-20, 2021.
13. [Lin et al., 2012] Wanchen Lin, Tsungting Kuo, Tungjia Chang, Chuehan Yen, Chaoju Chen, and Shoude Lin. Ex- ploiting machine learning models for chinese legal docu- ments labeling, case classification, and sentencing predic- tion. Processdings of ROCLING, page 140, 2012.
14. [Luo et al., 2017] Bingfeng Luo, Yansong Feng, Jianbo Xu, Xiang Zhang, and Dongyan Zhao. Learning to predict charges for criminal cases with legal basis. arXiv preprint, 2017.
15. [Mnih et al., 2016] Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asyn- chronous methods for deep reinforcement learning. In ICML, pages 1928-1937. PMLR, 2016.
16. [Ren et al., 2018] Pengjie Ren, Zhumin Chen, Zhaochun Ren, Furu Wei, Liqiang Nie, Jun Ma, and Maarten De Ri- jke. Sentence relations for extractive summarization with deep neural networks. ACM Transactions on Information Systems (TOIS), 36(4):1-32, 2018.
17. [Rennie et al., 2017] Steven J Rennie, Etienne Marcheret, Youssef Mroueh, Jerret Ross, and Vaibhava Goel. Self- critical sequence training for image captioning. In CVPR, pages 7008-7024, 2017.
18. [Seo et al., 2016] Minjoon Seo, Aniruddha Kembhavi, Ali Farhadi, and Hannaneh Hajishirzi. Bidirectional attention flow for machine comprehension. arXiv preprint, 2016.
19. [Shen et al., 2018] Yatian Shen, Jun Sun, Xiaopeng Li, Lei Zhang, Yan Li, and Xiajiong Shen. Legal article-aware end-to-end memory network for charge prediction. In CSAE, pages 1-5, 2018.
20. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NIPS, pages 5998-6008, 2017.
21. [Xiao et al., 2018] Chaojun Xiao, Haoxi Zhong, Zhipeng Guo, Cunchao Tu, Zhiyuan Liu, Maosong Sun, Yansong Feng, Xianpei Han, Zhen Hu, Heng Wang, and Jianfeng Xu. CAIL2018: A large-scale legal dataset for judgment prediction, 2018.
22. [Xu et al., 2020] Nuo Xu, Pinghui Wang, Long Chen, Li Pan, Xiaoyan Wang, and Junzhou Zhao. Distinguish confusing law articles for legal judgment prediction. In ACL, pages 3086-3095, 2020.
23. [Yang et al., 2016] Zichao Yang, Diyi Yang, Chris Dyer, Xi- aodong He, Alexander J. Smola, and Eduard H. Hovy. Hi- erarchical attention networks for document classification. In NAACL, pages 1480-1489, 2016.
24. [Zhao, 2003] Bingzhi Zhao. The logic order of constitutive elements of crime. The Political Science and Law Tribure, 6, 2003.
25. [Zhong et al., 2020a] Haoxi Zhong, Yuzhong Wang, Cun- chao Tu, Tianyang Zhang, Zhiyuan Liu, and Maosong Sun. Iteratively questioning and answering for inter- pretable legal judgment prediction. In AAAI, pages 1250- 1257, 2020.
26. [Zhong et al., 2020b] Ming Zhong, Pengfei Liu, Yiran Chen, Danqing Wang, Xipeng Qiu, and Xuan-Jing Huang. Ex- tractive summarization as text matching. In ACL, pages 6197-6208, 2020.
