Elamur Research

Do Charge Prediction Models Learn Legal Theory?

Paper · 2022 · Zhenwei An, Quzhe Huang, Cong Jiang et al.

Summary

A charge predictor reads an account of a criminal case and proposes a label such as Theft or Robbery. A correct answer shows that the system matched the recorded charge. It leaves open how the system reached that answer. The authors ask whether Chinese charge predictors behave in ways that reflect the Four Elements Theory, which the paper describes as the dominant approach in Chinese criminal trials. Under that theory, a charge requires a qualifying subject, an object protected by law, conduct that meets the definition of the offense, and the required mental state. A system could be good at predicting the charge from descriptions of conduct while giving the other elements little weight.

The authors test three kinds of behavior. For selectivity, they freeze each trained charge encoder and see whether a simple classifier can tell which criminal elements a sentence concerns from its encoded representation. For sensitivity, they edit details that distinguish similar charges and check how frequently the original charge survives the edit. For the presumption of innocence, they remove every sentence annotated as relevant to a particular element and check whether the system gives up the charge or predicts innocence. The tests use CAIL-I, an extension of the Chinese charge benchmark with 462 reviewed innocent cases, and SCE, a collection of case descriptions with sentence-level annotations for criminal elements.

All the evaluated charge predictors beat a frequency-based random baseline on the sentence task. Pretrained encoders without charge-specific training also did well, suggesting that understanding what a sentence says can account for some of the apparent legal competence. The tests that changed the input exposed larger weaknesses. In the Forcible seizure cases edited to satisfy the requirements for Robbery, BERT still predicted Forcible seizure in 88.0% of cases under the uncommon circumstance and 14.5% under the common one. On SCE, Lawformer retained its complete-description prediction at a consistency ratio of 0.924 after subject-related sentences were removed. Its CAIL-I charge accuracy was 91.0.

The evidence supports a narrow conclusion about selectivity. Information about the criminal elements is accessible in the encoders, including in systems whose final predictions often survive the removal of element-related evidence. The authors find that most of the evaluated systems fall short on sensitivity and that the deletion tests give little evidence of a dependable completeness check. The paper contributes a way to examine those failures alongside benchmark accuracy.

Deep dive: Do Charge Prediction Models Learn Legal Theory?

The paper tests whether Chinese charge predictors follow the Four Elements Theory by probing what they encode and changing the facts they read. · about 34 minutes to read

The problem and its context

What a charge label leaves unexplained

Charge prediction is a task in Legal AI in which a system receives the factual portion of a case and chooses a charge from a defined inventory. The paper presents it as a possible aid for legal professionals. A system might help a lawyer, prosecutor, or judge distinguish closely related charges or draw attention to facts that bear on that distinction. The paper also treats unfairness as a reason to examine how such a system makes decisions before relying on its outputs.

Most existing approaches, in the authors’ account, frame charge prediction as text classification. From the standpoint of training, a case narrative is an input and its recorded charge is the target. From the standpoint of the law, the charge is justified only when the facts satisfy the relevant requirements. Those descriptions of the task can lead to the same answer for different reasons. A training procedure rewards a correct label whenever the system produces it. The label by itself gives the procedure no way to tell whether the system checked the full basis for the charge or relied on a familiar part of the narrative.

This distinction matters especially for cases that share much of their factual description. A system can learn from recurring combinations of actions, people, and objects. In ordinary examples, those combinations may be informative. A closely related charge may involve much the same combination, with a particular fact supplying the legal distinction. Such a case asks a different question of the system. The surrounding similarities need to carry less weight than the detail that changes the applicability of the charge. An aggregate benchmark score gives only an indirect view of that behavior.

The question also arises when an account omits a fact. A reader might recognize the conduct typically associated with a crime and still lack the basis for attributing the required mental state. A classification system trained chiefly to associate descriptions with charges can encounter a strong pattern for one label even though the information supporting a different element has disappeared. The issue is whether the system treats that gap as a constraint on its answer. The authors regard that constraint as part of the task once charge prediction is assessed under a legal theory.

The inquiry belongs to interpretability because it asks what information an encoder makes available and how changes to the input affect the result. The authors take up an account of legal explanation in which people should be able to identify intelligible factors behind a decision and understand how a change in the facts would change the outcome. In this setting, the relevant factors can be specified before looking at the system’s output. The Four Elements Theory supplies a vocabulary for the evidence a system should recognize and a basis for predicting how particular edits ought to matter.

What counts as an element

The paper describes the Four Elements Theory as a framework Chinese judges use to justify criminal decisions. Each element asks a different question. The subject concerns who can bear responsibility for the offense, whether a person or, where applicable, an organization. The object concerns what the law protects and the offense puts at risk. It can be property, a person, an interest, or a social relationship. The conduct concerns what happened. The mental state concerns the actor’s intent or negligence, as required for the charge in question.

Subject and object have particular meanings here. In a sentence about an offense, a grammatical subject may happen to name the person whose responsibility is at issue. The legal subject includes whatever makes that person a qualifying actor for the offense. Similarly, a physical item mentioned in a description can help identify the object, but the legal category directs attention to the interest protected by the law. The classification task in the paper is about what the text says in relation to these categories, including where the relevant information takes the form of a condition on the actor or on the event.

The paper illustrates the distinction using Theft. In its account, the subject must be someone who has reached the applicable age of criminal responsibility, given as 16 years old in the example. The object is public or private property. The conduct concerns stealing a large amount of property or stealing repeatedly. The mental state includes intent and a purpose of unlawful possession. Even if the narrative establishes the actor, the property and the physical act, the reason for taking possession still matters. The example makes the theory concrete because the reader can separate a description of an action from an account of why someone performed it.

The requirement that the elements be satisfied together gives the paper a stronger standard than the expectation that helpful facts appear somewhere in an explanation. A system could identify conduct with considerable precision and attach the conduct label to the right sentence. The question of completeness concerns how that information is combined with evidence about the rest of the charge. If any required element lacks adequate support, recognizable conduct alone cannot supply it. Consequently, the elements serve both as categories for annotating narratives and as conditions for testing how a decision changes.

The authors translate that standard into selectivity, sensitivity, and a test tied to the presumption of innocence. Selectivity begins with finding potentially relevant information within a longer description. Sensitivity concerns changes to a fact that distinguishes similar offenses. The presumption-of-innocence test concerns the response to incomplete evidence, using innocence as the expected label when the edited description lacks support for a required element. Each asks a different empirical question about the same charge predictor.

How earlier research approached the question

Earlier charge prediction research, as described in the paper, included systems that learned directly from labeled cases and systems that incorporated additional legal information. Some learned representations of the facts with familiar classification architectures. Others jointly predicted a charge, a statutory article, and a sentence term. Another line introduced legally informed attributes intended to distinguish similar charges or help with charges represented by few training examples. The paper also describes pretrained encoders as effective starting points for charge prediction, including an encoder trained in advance on Chinese legal documents. TopJudge, Few-Shot Charge Prediction with Discriminative Legal Attributes, Lawformer

Work on explaining charge decisions sought to provide material that a reader could inspect. Some studies used reinforcement learning to find short passages that supported the predicted label. Others divided the problem into attribute judgments or questions, with the answers contributing to the charge determination. The paper also notes work that traces important evidence through causal graphs or chains, and work that retrieves subjective and objective elements from descriptions. These approaches differ in what they expose. A phrase offers a piece of text for inspection. An attribute or question indicates what the system was asked to establish about the text.

The authors examine those approaches in light of the theory’s coverage requirement. Some earlier work considered an object element involving life while leaving monetary objects outside its treatment. Several of the approaches they discuss omitted the subject element. The concern is practical. An explanation can make a decision easier to inspect and still cover only part of the legal basis for that decision. To the authors, an explanation that identifies a relevant fact and a procedure that verifies all required elements are distinct achievements.

The paper borrows another kind of analysis from work on neural natural language processing. In probing, a researcher freezes a representation and trains an auxiliary classifier to recover a specified feature from it. Earlier probes investigated such topics as morphology, sentence structure, and the meanings of words. Other studies used probes to investigate systems already trained for a particular task, including relation extraction. The authors apply the same general technique to the legal role of a sentence, an application they describe as previously unexplored. What do you learn from context?, Probing Linguistic Features of Sentence-Level Representations in Neural Relation Extraction

The second line of influence is work that deliberately changes text to examine the output of a predictor. Such work had already raised the possibility that small changes could cause surprising behavior. This study defines the intended effect of an edit in legal terms. Some edits make a related charge applicable under the authors’ analysis, while others remove evidence for an element. The expected direction of the response therefore comes from the legal significance of the change. BERT-ATTACK

The method, step by step

From a case narrative to a label

The starting input is the factual description of a case. The paper expresses it as a sequence of words.

x = {x₁, x₂, ⋯, xₙ}

Here x is the fact description, = introduces its representation, and the braces surround the sequence in the paper’s notation. Each x with a subscript is a word at the indicated position. The subscripts ₁ and ₂ identify the first and second positions. The ellipsis ⋯ stands for the intervening positions, and ₙ marks the last word. The symbol n is the length of the description. The order of the words is part of the input.

The charge is drawn from the task’s inventory of possible labels.

y ∈ Y

Here y is the charge selected for the description, ∈ means “is a member of,” and Y is the set of possible charges. The extended benchmark also provides an innocent category. The ordinary prediction task takes the narrative as a whole and returns a label. The sentence probe differs in both its input and its prediction target. It works with representations pooled at sentence level and predicts which criminal elements those sentences concern.

How the paper evaluates charge predictors

The steps in order.

How the paper evaluates charge predictorsStep 1: Add reviewed innocent cases to the charge benchmark1. Add reviewed innocent cases to the charge benchmarkStep 2: Annotate sentences for their criminal elements2. Annotate sentences for their criminal elementsStep 3: Train predictors on complete case descriptions3. Train predictors on complete case descriptionsStep 4: Probe frozen encoders for sentence-level elements4. Probe frozen encoders for sentence-level elementsStep 5: Rewrite facts that distinguish similar charges5. Rewrite facts that distinguish similar chargesStep 6: Delete sentences supporting a selected element6. Delete sentences supporting a selected elementStep 7: Compare the resulting predictions and probabilities7. Compare the resulting predictions and probabilities

The benchmark, the sentence annotations, and the edited inputs serve different purposes. The benchmark supplies the ordinary charge task and gives innocence a place among the possible outputs. The annotations supply a reference for the probe and identify what to remove in the deletion experiment. The rewritten narratives supply cases where the authors expect a specific change in the charge. All the tests begin with systems that encode factual accounts, but each test defines its own unit of comparison and its own expected behavior.

Add an innocent category and annotate the evidence

The authors start with CAIL, a dataset of Chinese legal cases with labels such as charges and law articles. That information is useful for training a charge classifier. The authors identify gaps when applying it to their questions. An inventory made up of criminal charges leaves no suitable response for a case in which the system should predict innocence. A charge label for a whole case also gives no sentence-level record of which evidence bears on subject, object, conduct, or mental state. The authors address those gaps through separate additions. CAIL2018

They collect non-prosecution records from the Chinese Prosecutor’s Website. A decision to stop or forgo prosecution can have several grounds. The paper gives death before prosecution as an example of a record that would be inappropriate for the new innocent category. The authors have 2 law school graduate students review the records case by case and retain those judged to involve innocent defendants. The procedure yields 462 cases. They allocate the cases across the training, validation, and test partitions of CAIL in a ratio of 5:3:2 and call the resulting benchmark CAIL-I.

Those reviewed records provide examples from which a classifier can learn an innocent output. They also supply an important distinction within the evaluation. The cases added to CAIL-I originate in non-prosecution records that have been reviewed for innocence. The incomplete cases used later in the experiment come from descriptions of criminal cases edited by deleting relevant sentences. A natural innocent case and an edited account can receive the same expected prediction in this framework while placing different demands on the classifier. An edited account may still contain many positive cues for the charge under examination.

The other addition is the Sentence-level Criminal Elements dataset, SCE. An annotator sees a fact description together with its charge. For each sentence, the annotator assigns the applicable element labels. A sentence can carry several labels when, for example, a description of an action also gives information about the actor’s state of mind. The label NA marks text that concerns none of the elements. This is linguistic annotation informed by legal judgment, since whether a fact bears on an element depends on the charge as well as on the words written in the sentence.

The authors select 7 charges for SCE because the fine-grained annotation is demanding and the selected offenses can be hard to distinguish in practice. The dataset covers Traffic accident, Negligent homicide, Forcible seizure, and Robbery. It also covers Corruption, Misappropriation of funds, and Misappropriation of public funds. Two paid law school graduate students annotate the sentences. Their Cohen’s kappa is 0.64. This statistic compares observed agreement with the agreement expected by chance under the measure. It gives the reader context for how consistently people assigned the labels used in the probe.

SCE serves the deletion experiment as well. If a sentence bears on the subject, its subject tag puts it among the sentences to remove in a subject deletion. The sentence’s other labels, if any, remain relevant to understanding what the operation does. The authors use the sentence as the practical unit of intervention. That gives the deletion procedure a repeatable rule across the dataset, while leaving the semantic contents of each removed sentence as broad as the annotations indicate.

Train charge predictors with different sources of information

The paper evaluates architectures that represent prior approaches to the task. BiLSTM encodes the words of the fact description with a bidirectional recurrent network. An attention mechanism combines the encoded word representations into a representation of the facts for classification. Attention here is a learned way of giving different contributions to parts of the input as the system builds that representation. It is part of the architecture that produces the prediction. The later probe examines a separate property of the encoded words. Hierarchical Attention Networks for Document Classification

TopJudge uses a convolutional encoder to represent the description. Its prediction component uses a directed acyclic graph to express dependencies among related tasks. The tasks are charge prediction, law article prediction, and sentence-term prediction, and the training procedure optimizes them together. This gives TopJudge a different source of supervision from a system trained only to return a charge. The graph relates the legal outputs to one another. The paper’s evaluation asks separately whether the resulting system responds to the factual requirements for a charge. TopJudge, Convolutional Neural Networks for Sentence Classification

FewShot encodes the facts with a recurrent network and learns to predict both the charge and a set of discriminative attributes. Its attributes are chosen to separate confusing charges and make additional information available for charges with few examples. That design makes it a relevant comparison for the sensitivity test. Attributes specified in advance can guide training towards some legal distinctions, and the experiment examines whether the resulting behavior extends to the particular distinctions selected by the authors. Few-Shot Charge Prediction with Discriminative Legal Attributes

The other charge predictors begin from pretrained encoders. BERT uses the final representation of the special [CLS] token as the input to its charge classifier. In this use, the token gives the classifier a representation of the description as a whole. Lawformer is based on Longformer and was pretrained on a large collection of Chinese legal cases. The authors also use its [CLS] representation for charge classification. Both systems then receive training for the specific prediction task, a procedure known as fine-tuning. Their corresponding pretrained encoders can also be examined before that task-specific step. BERT, Lawformer, Longformer

The architectural diversity helps the authors ask whether a behavior recurs across different ways of learning from cases. It also affects how to interpret the comparisons. TopJudge’s auxiliary outputs, FewShot’s attribute supervision, and Lawformer’s legal pretraining differ in kind. The design uses them as existing approaches to evaluate. An advantage or weakness observed for a system belongs to the system as configured, with its architecture and sources of supervision taken together.

Probe the representation of each sentence

The selectivity test starts after charge training. The authors freeze the encoder, leaving its parameters fixed while they train the probe. They use the word representations associated with a sentence and take their mean to obtain a single sentence representation. Mean pooling, as this operation is called, averages the word vectors component by component. The result provides a fixed-size input for the probe even when sentences differ in length. Any contextual information already incorporated into the word vectors can contribute to the pooled representation.

A linear classifier learns to predict the element labels from those pooled sentence vectors. Its training examples pair each sentence representation with the labels assigned by the annotators. Only the probe’s parameters change during this stage. The distinction matters because the test asks what a trained encoder already makes available. Training the encoder jointly with the probe would give it a new reason to represent the elements, changing the question. In the paper’s design, element labels supervise the reader of the representation while the representation-producing parameters stay fixed.

The classifier’s target is element relevance, instead of an independent legal judgment about whether the sentence proves the element. An annotated sentence can mention a fact that bears on mental state without settling what the defendant intended. Another can provide conduct information as part of a longer description of events. Recovering those tags shows that the sentence vectors support a distinction that humans made about the role of the sentences. The ultimate question of whether all the relevant conditions are met belongs to the charge decision and is examined separately.

The authors apply the same probing procedure to pretrained ELMo, BERT, and Lawformer without charge-specific training. These encoders give the analysis a point of comparison for what can already be recovered before charge supervision. A sentence about a collision, for example, contains ordinary semantic cues that it describes an event. The probe can use those cues when learning to identify conduct-related sentences. Successful prediction of an element label can therefore reflect an encoder’s representation of the meaning of the sentence, even without a learned procedure for determining whether an offense has been established. Deep Contextualized Word Representations

Random supplies a simpler comparison. It assigns sentence labels according to how often the labels occur in the training portion, without looking at the sentence’s content. That makes common labels easier to guess in proportion to their prevalence. Performance above that baseline shows that the probe benefits from information about the particular sentence. The pretrained comparisons ask the further question of how much of that information becomes available specifically through training to predict charges.

Change the fact that separates the charges

The sensitivity experiment uses paired inputs. The authors select groups of charges that, in their analysis, differ in a single criminal element. They start from descriptions corresponding to the original charge and edit facts relevant to the distinguishing element. The rest of the description supplies the shared context. The intended result is a case description whose facts fit the other charge. A predictor sensitive to the difference should change its answer in the expected direction as the legally relevant circumstance changes.

One group concerns Forcible seizure and Robbery. The paper treats conduct as the distinguishing element in this setting. In its analysis, being armed can give the taking the coercive character relevant to Robbery. The authors add a fact about a knife in one version and a fact about a baton in another. The knife is the more common circumstance. The intended charge is Robbery in either version, which lets the authors ask whether the system reacts to the underlying distinction across both expressions of it.

In the Theft-to-Robbery comparison, the edit introduces violence in the circumstances specified by the paper. The alternatives concern pepper spray used on security guards and a switchblade used against pursuers. The Traffic accident-to-Negligent homicide comparison changes the status of the road. The alternatives describe sewer repairs or a road closed for construction, representing a location outside the public traffic setting relevant to the original charge. These examples illustrate how the legal condition appears indirectly. A classifier sees an account of what happened or where it happened, and the evaluator has to determine what that account implies for the charge.

For each charge pair the authors randomly select 200 cases from the CAIL-I validation and test partitions. They modify the descriptions using the two circumstances designed for that pair. The design gives each circumstance the same legal role within its comparison. It also places substantial weight on the legal validity of the edits. For an unchanged answer to count as evidence of insensitivity, the new circumstance must actually alter the charge as the authors intend while leaving the relevant shared circumstances in place.

Remove the evidence for an element

The presumption-of-innocence experiment begins with an SCE fact description and its sentence tags. The authors choose an element and remove all sentences annotated as relevant to it. They run the charge predictor on the complete and modified descriptions. They then compare the selected labels and inspect the probabilities of the original charge and of innocence. The experiment repeats this intervention for the different element categories, which makes it possible to ask which kinds of deletion have the greatest effect.

The paper motivates the operation with an example about a passenger who picks up property dropped by someone else and tries to return it. Physical possession can resemble part of the factual pattern for Theft. The purpose of returning the property bears directly on the required mental state. In that example, the facts supply a reason to reject the inference of unlawful intent. In the deletion experiment, the test is whether a predictor treats the lack of support for a required element as sufficient reason to withhold a charge. The two situations illustrate different routes to a failed element check, an affirmative fact about the actor’s purpose and an account from which the relevant evidence has been removed.

The innocence output has a specific meaning within this experiment. It is the response the authors expect when an account no longer supplies a required part of the basis for guilt. The classification comparison is anchored to what the system can read in the edited description. The actual outcomes of the source cases remain part of the benchmark data from which the edited descriptions were made. The paper releases the study’s code and data, including the additions that support these evaluations.

Experiments and results

Charge prediction on CAIL-I

The benchmark evaluation establishes how well the systems predict labels from complete descriptions before the diagnostic tests. Alongside accuracy, the paper reports macro-averaged F1, precision, and recall. Accuracy is the share of predictions that match the reference label. Precision asks how often an assigned label is correct, and recall asks how often the reference instances of a label are found. F1 balances precision and recall. A macro average gives each label equal weight in the metric, so it describes performance across the label inventory in a different way from overall accuracy.

Charge prediction accuracy on CAIL-I

Lawformer leads the comparison, with BERT the closest system.

Charge prediction accuracy on CAIL-IBiLSTM: 82.4BiLSTM82.4TopJudge: 82.7TopJudge82.7FewShot: 82.9FewShot82.9BERT: 90.4BERT90.4Lawformer (this paper): 91.0Lawformer (this paper)91.0
The numbers
System or settingAccuracy %
BiLSTM82.4
TopJudge82.7
FewShot82.9
BERT90.4
Lawformer (this paper)91.0

The CAIL-I results span ordinary recurrent and convolutional approaches alongside pretrained encoders. Lawformer leads on the paper’s reported measures, with macro F1 of 83.8, macro precision of 84.4, and macro recall of 81.1. BERT reports 81.9 macro F1, 83.2 macro precision, and 79.8 macro recall. The proximity of their reported accuracy values is accompanied by the same ordering on the macro measures. That pattern gives the authors a strong benchmark comparison when they evaluate the response to edited descriptions.

The aggregate accuracy scores of FewShot, TopJudge, and BiLSTM are close. Their macro F1 scores show more separation. FewShot reports 71.7 macro F1, with macro precision of 75.9 and macro recall of 71.6. TopJudge has 60.6 macro F1 and BiLSTM has 59.8. Performance averaged over charges thus brings out differences that are less visible in the overall share of correct predictions. The paper reports these as CAIL-I classification metrics. They describe assigning labels across the benchmark, while the later metrics concern particular interventions.

This distinction is especially important for the innocent category. A case-weighted score reports the result across the cases included in the benchmark. A macro score gives the innocent label the same weight as the others but still combines it with them in the reported average. The paper’s general classification results therefore supply context for the diagnostic tests. The deletion experiment asks a narrower question about whether a predictor changes its answer when support for an element disappears.

Recovering element labels on SCE

The SCE evaluation uses 5-fold cross-validation. The probe is trained on the training folds and evaluated on held-out data, with the result averaged across folds. For each charge, the paper reports micro precision, micro recall, and micro F1 in percent. The micro measures pool label decisions within the charge before calculating the score. That differs from giving every element label equal weight. A frequent kind of annotated sentence can contribute more decisions to the result than a rare one.

The annotation counts show why that distinction matters. For Robbery, SCE has 98 case descriptions, and the paper counts 435 sentences labeled for conduct and 109 labeled for subject. It also records 673 sentences related to no element. For Traffic accident, the dataset has 100 cases, with 258 sentences tagged for conduct, 102 for subject, and 833 for NA. These are counts of labels or cases as specified, rather than interchangeable counts. A sentence can contribute to the counts for more than one element when the annotators assign more than one tag.

The Traffic accident probes illustrate both the improvement over Random and the strength of the pretrained comparisons. Random has a micro F1 of 19.3 on that charge. The charge-trained BERT probe reaches 84.9, and BiLSTM reaches 84.7. Pretrained Lawformer has 85.9 and pretrained BERT has 85.8. Every result refers to the sentence-label prediction task on SCE, averaged across the held-out folds for the specified charge. The strong pretrained results show that the diagnostic task can be performed well without training the encoder to predict charges.

The difficulty varies by charge. For Negligent homicide, the Lawformer probe reaches a micro F1 of 69.5 after charge training, compared with 22.3 for Random. For Robbery, the corresponding scores are 60.9 and 26.9. For Misappropriation of funds, the charge-trained Lawformer probe reaches 73.0, and its pretrained counterpart reaches 75.9. On Misappropriation of public funds, charge-trained BERT scores 62.1 and pretrained BERT scores 66.5. The fact that all the trained charge encoders beat Random across the selected charges supports the authors’ account of selectivity. The variation in the absolute scores qualifies what can be recovered reliably for a given charge.

The probe metrics also separate the accuracy of the tags a classifier assigns from its ability to find them. In Corruption, for instance, the TopJudge probe reports micro precision of 73.9 and micro recall of 49.7. Charge-trained Lawformer reports 73.1 precision and 60.1 recall for the same charge. The precision values are close, while the recall values show that the probes capture different shares of the annotated element labels. This is the reason to retain the precision and recall columns alongside F1. A change in one can affect the pattern of errors that matters for interpreting the probe.

Response to facts that change the expected charge

The sensitivity test reports the percentage of modified descriptions for which the system predicts the original charge. A low percentage indicates that the system more frequently leaves that label after the edit. A switch to the intended alternative is the desired behavior. The reported percentage, taken alone, measures retention of the original label. It does not specify the destinations of all changed predictions.

BERT original-charge retention after Forcible seizure edits on CAIL-I

The common circumstance dislodges the original label much more often than the uncommon circumstance.

BERT original-charge retention after Forcible seizure edits on CAIL-IUncommon circumstance, baton: 88.0Uncommon circumstance, baton88.0Common circumstance, knife (this paper): 14.5Common circumstance, knife (this paper)14.5
The numbers
System or settingOriginal-charge retention %
Uncommon circumstance, baton88.0
Common circumstance, knife (this paper)14.5

For the Forcible seizure-to-Robbery comparison, the chart shows that two edits with the same intended legal consequence can produce very different behavior in BERT. The pattern is visible across other systems, though the size of the response varies. TopJudge retains Forcible seizure at 73.5% under the uncommon circumstance and 45.5% under the common one. Lawformer reports 84.0% and 48.0% in the same order. FewShot retains the original charge at 93.5% and 91.0%, respectively. The differences show that sensitivity to the more familiar circumstance is uneven and that explicit attribute training offers little help in this particular comparison.

In the Theft-to-Robbery condition, BERT’s original-charge retention is 88.0% under the uncommon circumstance and 26.0% under the common one. Lawformer reports 59.5% and 33.5%, respectively. The paper describes this charge pair as the easiest of the selected pairs for the evaluated systems overall, though retention remains substantial and some settings have low retention. The per-circumstance results show why an overall characterization of a charge pair gives an incomplete picture of the behavior.

The Traffic accident-to-Negligent homicide comparison is particularly difficult. Lawformer retains Traffic accident for 98.0% of the descriptions under the uncommon circumstance and 97.5% under the common one. For some systems, changing the road setting therefore makes little difference to the selected charge. This is a different result from a system that reacts strongly to one version of an edit while regularly missing the other. Both patterns matter to the paper’s interpretation. They separate weak sensitivity to a particular expression from weak sensitivity across the tested expressions of a distinction.

Response to incomplete evidence

The deletion experiment reports prediction consistency between complete and incomplete SCE descriptions. The complete-description output is the reference for that comparison. A value near the top of the scale means the selected label is typically the same after the deletion. Low consistency indicates a response to the missing sentences, with innocence as the response expected by the authors. The metric captures the frequency of a label change without establishing the correctness of either the original or the revised label.

Lawformer prediction consistency after element deletions on SCE

Removing conduct-related sentences changes the selected charge more often than removing sentences for any other element.

Lawformer prediction consistency after element deletions on SCESubject removed: 0.924Subject removed0.924Mental state removed: 0.880Mental state removed0.880Object removed: 0.841Object removed0.841Conduct removed (this paper): 0.712Conduct removed (this paper)0.712
The numbers
System or settingPrediction consistency ratio
Subject removed0.924
Mental state removed0.880
Object removed0.841
Conduct removed (this paper)0.712

The pattern extends across the evaluated systems. After subject-related sentences are removed, BERT has a consistency ratio of 0.920 and BiLSTM has 0.844. TopJudge reports 0.772 for the same deletion, the lowest subject consistency in the comparison. Its conduct-deletion consistency is 0.574, while BiLSTM’s is 0.572. FewShot reports 0.826 after subject removal and 0.619 after conduct removal. Across these paired descriptions, dropping conduct sentences has a greater effect on the selected label than dropping subject sentences.

The authors also inspect score distributions. Lawformer assigns more probability to innocence when evidence for an element is removed. That movement can coexist with a stable label if a charge still receives the highest probability. Its confidence in the original charge changes most visibly when the conduct sentences are removed. When the deleted material concerns subject, object, or mental state, the authors report that its confidence in the original charge remains greater than 80% in most cases. The appendix presents corresponding confidence comparisons for the other evaluated systems, and the authors describe the broader pattern as similar.

The probability and consistency results answer complementary questions. Consistency tracks which label wins. Probability can register a response to missing information even when the same label wins. The paper finds evidence that the edited descriptions sometimes weaken a charge or strengthen innocence in the output scores. The persistence of guilty labels under the deletions is the result that leads the authors to conclude that such responses fall short of the completeness check they set out to test.

What the ablations show

What charge training adds to the sentence representation

The paper’s controlled comparisons vary charge training, the circumstance used in a rewrite, and the element targeted for deletion. The comparison between a pretrained encoder and its charge-trained counterpart asks what happens to accessible element information when an encoder is adapted for the final task. Since the linear probe is trained on a frozen representation in both settings, differences in probe results can be examined in relation to the representations available before and after charge training.

Pretrained BERT exceeds 60% micro F1 on each of the selected charges. Several conditions favor pretrained encoders over charge-trained ones. This challenges a simple interpretation in which all recoverable element information was acquired through training to predict legal charges. The authors’ example is a sentence about a car collision. Knowing the meanings of its words can be enough to recognize that the sentence describes an event, making a conduct tag plausible. Knowing that a sentence describes conduct is an early step toward analyzing a charge. It leaves further work in deciding whether the particular conduct meets the legal requirement.

The authors also inspect errors for recurring phrases. In descriptions involving Misappropriation of funds, an unpaid sum can be a cue relevant to conduct. The paper gives one example where a defendant’s use of access through work and the failure to repay the money form part of the conduct description. It contrasts that with a case in which the person’s failure to repay occurs after an investigation has begun. Under the legal account used in the paper, the latter event comes too late to establish the conduct element for the offense being decided. The same broad wording about repayment can consequently receive different tags.

The authors interpret such mistakes as evidence of shortcuts learned during charge training. A phrase can be valuable for predicting a charge across many training cases, encouraging a representation that associates the phrase with a particular legal role even where the chronology makes it irrelevant. The aggregate probe results offer supporting context. In the Misappropriation of public funds comparison, for example, BERT’s pretrained representation gives micro precision of 79.3 and recall of 57.2. After charge training, the corresponding figures are 72.6 and 54.3. Here the loss in precision is more pronounced, which fits the explanation that spurious element assignments help drive the decline.

The shortcut explanation is based on the authors’ comparisons and inspection of examples. The training contrast changes the representation in many respects. It shows that charge training can leave some element information less accessible to this probe, while the repayment example supplies a plausible account of a particular kind of error. A broader causal explanation would need to isolate the contribution of the phrase, its timing, and the other details in the input.

Whether the same distinction works in different wording

The paired circumstances in the sensitivity test ask whether a system can respond to the same legal condition across different facts that instantiate it. For the Forcible seizure cases, the relevant question is whether the added description supports the coercive conduct that would change the authors’ assessment to Robbery. A high response to the customary knife description and weak response to the baton description are compatible with learning a familiar cue. A system that follows the legal distinction should be able to connect both circumstances to the same change of charge.

BERT’s responses on this pair provide the clearest example because its retention of the original charge varies sharply across the alternate circumstances. The traffic comparison provides another perspective. Lawformer continues to predict Traffic accident under both of the alternatives to a public traffic setting. An analysis confined to the common form could therefore give different impressions for different charge pairs. It could overstate robustness when a common cue happens to work and still reveal a broad blind spot where neither form leads the classifier to give up its first label.

FewShot’s inclusion gives the authors a specific architectural question. Its task already asks it to predict legal attributes alongside charges, yet it responds weakly in much of the sensitivity test. The authors propose that the attributes are too sparse and general to capture the distinctions being tested. For more than 200 charges, the system uses 10 legal attributes, and the paper identifies a road’s status as a distinction those attributes miss. This is an explanation based on the contents of the attribute scheme and the system’s observed behavior. An experiment that added the missing attribute and retrained FewShot would address a separate causal question.

Which deletions have the largest effect

Removing an element’s annotated sentences is the paper’s principal ablation of evidence. The comparison holds the predictor fixed and varies which parts of the description are available. Conduct removal produces the largest shift in Lawformer’s confidence in the original charge and the lowest consistency for each evaluated system. The authors interpret the pattern as evidence that conduct matters more to these predictors’ decisions than the other elements do under this deletion procedure. The behavior is understandable in a task where recognizable actions provide strong cues to offense names.

The subject deletion is particularly informative because the theory treats the subject as necessary. Yet a system can continue to produce the same charge, at high confidence, when the sentences linked to that element disappear. This can happen in a predictor whose encoder still performs well on the sentence probe. Those results are compatible because the probe and the deletion test measure different properties. A probe identifies information that a separate classifier can recover. Deletion tests the sensitivity of the original charge output to a particular intervention on the description.

The score distributions add a distinction within the deletion results. Lawformer can assign more probability to innocence and still retain the original charge. The output is registering a change in its relative support without changing the chosen class. In the authors’ operational test, a successful response requires the missing support to make a difference at the decision level. A confidence shift gives evidence of partial responsiveness. The label-level result shows how often that responsiveness is insufficient to displace the charge.

Limitations

Limits the authors state

The paper offers an evaluation framework and uses it to examine existing charge predictors. The authors leave the construction of a system that consistently follows all the principles as future research. This bounds the contribution. The experiments establish where evaluated systems show the expected behavior and where they fail ordinary checks of legal relevance or completeness. They provide no demonstration that a particular training method can reliably produce a system that checks all the elements before returning a charge.

The authors also emphasize the amount of expertise needed for the sensitivity test. Constructing a useful pair requires a legal account of what separates the charges and careful editing of the facts so the distinction applies. Extending the exercise to a different legal theory means identifying the applicable requirements and building changes whose legal consequences can be defended under that theory. The sentence annotation is demanding for a related reason. A person needs to connect particular facts to the requirements of the charge, including where a sentence concerns several elements.

The supply of innocent cases is another stated limit. The authors could obtain a subset of the cases they wanted from public criminal records. Their review of non-prosecution cases gives the benchmark examples suitable for an innocent label, with coverage bounded by what they could collect and verify. They also caution against independent charge prediction in place of judges. In their account, strong benchmark results and the ability to recover element tags leave the failures of sensitivity and completeness unresolved.

Limits visible in the experiments

The scope of SCE is a selected group of charges. The authors chose them because their distinctions are difficult in practice and the annotation workload required a manageable subset. That makes them appropriate for the study’s questions about closely related offenses. It also limits what the results establish about charges outside the group. The same applies to the legal setting. The framework is described in general terms, but the evidence comes from case descriptions and legal requirements examined through the Four Elements Theory in China. Its application elsewhere would require a new specification and evaluation.

A probe demonstrates recoverability under particular choices of pooling, classifier, and labels. Mean pooling combines information across a sentence, and the linear probe learns statistical associations between that vector and the human annotations. A strong result shows that those associations are accessible. It leaves open whether the charge predictor’s own classification component uses them. The pretrained results make the distinction important because ordinary semantic information can help predict the labels. The probe averages also leave room for widely different performance on individual elements, especially when annotated labels have different frequencies. Probing Classifiers: Promises, Shortcomings, and Advances, Probing the Probing Paradigm

The annotations give the study a concrete reference, with the annotators’ agreement reported as 0.64 Cohen’s kappa. The use of the known charge helps annotators determine which facts are relevant to which element. It also means that the annotation task begins with information the deployed predictor would have to infer. A label conveys that a sentence concerns an element of the known charge. Evaluating whether a complete case meets every requirement of that charge would call for judgments about how the sentences fit together and how adequate the evidence is.

The sensitivity test covers selected legal differences and realizations of those differences. Its common-versus-uncommon comparison is consistent with reliance on familiar patterns. It does not measure how much of the effect comes from expression frequency, what the encoders understand about the objects or circumstances, or how those details interact with the rest of the narrative. Even so, an unchanged label where the authors have established a change in the applicable charge is an observable failure under the setup. The narrower inference concerns the reason for the failure.

Original-charge retention also leaves some questions about revised answers open. A system can give up the initial charge and return a label other than the intended alternative. A low retention rate shows movement away from the old label. Measuring how often the system made the legally expected switch would require a direct count of the destination predictions. The same concern applies to prediction consistency after deletion. Changing a charge establishes responsiveness to the intervention. A complete account of the innocence test would also track which changes actually end at innocence.

Sentence removal is an intervention on text, with consequences beyond removing an abstract legal fact. The annotation scheme allows a sentence to concern several elements. Deleting it for one tag can therefore also delete evidence for another, change the length of the account, and interrupt context for the sentences left behind. The conduct category has many annotated sentences in SCE, and removing its sentences can take away a substantial part of what happened. The observed confidence shift supports a conclusion about the relative effects of the paper’s deletions. Separating the legal importance of conduct from the amount and kind of text removed would require additional controls.

Finally, the deletion test uses inadequate support in a constructed description as its operational target for an innocence prediction. The case from which that description came may have had adequate evidence in its complete form. An edited narrative can also retain indirect cues about the removed element. These features affect how to read the results. The paper provides evidence about whether a classifier continues to assign a charge when sentences marked as relevant to a required element are withheld. A real proceeding must assess a broader body of evidence, and the paper’s evaluation does not establish how a system would perform that assessment.

What came after

No subsequent citing study is identified here. The paper ends with open research directions that follow from its results. The first is to expand datasets with genuine innocent cases. An evaluation of that direction would need to ask whether experience with such cases transfers to descriptions that closely resemble a known offense but lack evidence for a required element. The paper puts both kinds of input in view through the reviewed additions to CAIL-I and the deletions from SCE.

The authors also call for systems that handle legal distinctions across different expressions of the same condition. The sensitivity comparison gives this direction a concrete test. A system would have to follow the expected change of charge in the shared factual context across familiar and uncommon circumstances, with the resulting charge checked directly. This goes beyond learning that a phrase frequently appears in cases carrying a particular label.

Their final direction is explicit checking of all required elements before a charge is returned. The paper’s experiments explain why that remains an open problem. A frozen encoder can yield sentence representations from which a simple classifier recovers evidence categories. The charge predictor can still retain a guilty label when material supporting one of those categories is removed. An explicit check would make the adequacy of support for each element part of the decision itself.

Cite

Cite as Zhenwei An, Quzhe Huang, Cong Jiang, Yansong Feng and Dongyan Zhao. 2022. Do Charge Prediction Models Learn Legal Theory?. Findings of the Association for Computational Linguistics: EMNLP 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-emnlp.275

@inproceedings{an2022do,
  title = {{Do Charge Prediction Models Learn Legal Theory?}},
  author = {Zhenwei An, Quzhe Huang, Cong Jiang, Yansong Feng and Dongyan Zhao},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.275},
  url = {https://doi.org/10.18653/v1/2022.findings-emnlp.275}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/an-2022-do-charge-prediction-models-learn/