Elamur Research

Masked prediction and interdependence network of the law using data from large-scale Japanese court judgments

Paper · 2022 · Ryoma Kondo, Takahiro Yoshida and Ryohei Hisano

Summary

A court judgment explains a decision using facts, arguments and legal authorities. Sometimes the explanation is specific enough that a reader could identify an authority even if its name were removed. A judgment can also bring together provisions and precedents whose connection would be hard to see by reading each authority by itself. The authors use roughly 110,000 Japanese judgments from 1998–2018, covering district courts through the Supreme Court, to turn these observations into tests. They ask how much a sentence reveals about the citation it contains, and how much earlier judgments reveal about combinations of authorities that will appear in later ones. Both questions matter to legal AI because a useful search may need to recover an exact article as well as find other authorities that bear on the same dispute.

In the citation task, the authors identify references in the reasoning sections of judgments and replace them with markers. The surrounding words remain visible, and the task is to recover the article or precedent the judgment actually cited. Across the categories, word counts often gave the best accuracy, especially when a distinctive expression pointed to a familiar authority. A pretrained sentence encoder frequently did better on measures that give each citation label equal weight. Its advantage appeared in examples where the point of the sentence depended on how its parts fit together, though unfamiliar legal characters could cause it to miss decisive terms. T5, which writes the citation as text, led on civil articles, the largest category. When allowed as many answers as there were hidden labels, it scored 70.32 in reported accuracy for civil articles, compared with 57.84 for word counts paired with gradient boosting.

For the network task, the authors connect authorities cited in the same judgment and pool those connections across cases. They train on judgments before January 1, 2010 and test whether the resulting scores rank new connections that appear in the later judgments. Shared neighbors already provide substantial evidence. A graph convolutional network that uses both text and citation connections performs best overall in the reported comparison. On civil cases, its area under the receiver operating characteristic curve is 0.901, and its area under the precision–recall curve is 0.716. The positions it learns for authorities also produce recognizable groupings, including civil provisions and precedents associated with trademarks and unfair competition.

The tasks capture different aspects of how courts use legal authority. Citation recovery measures whether local wording identifies a recorded reference. Link prediction measures whether earlier patterns help anticipate later co-citation among authorities already present in the network. Rare citations remain difficult, generated citations can name nonexistent laws, and a predicted connection leaves open the legal reason the authorities might appear together. Those qualifications matter because the judgments provide both the evidence used to make the predictions and the record against which the predictions are judged.

Deep dive: Masked prediction and interdependence network of the law using data from large-scale Japanese court judgments

Japanese court judgments reveal how wording can identify a missing legal citation and how earlier cases can help predict new pairings of authorities. · about 37 minutes to read

The problem and its context

Why the written reasons matter

The paper starts from a practical fact about studying law. Reading the text of a statute tells a reader what the legislature enacted. Reading judgments shows the circumstances in which a court finds that wording relevant and the interpretation that allows the court to apply it. A reader interested in how a rule operates may need to move back and forth between those documents. The authors ask how far that movement can be studied systematically when the available evidence consists of a large collection of decisions.

In the account of Japanese law given by the paper, the Constitution stands above statutes and ordinances, and the Diet enacts and changes statutory law. The Supreme Court has final authority over interpretation, including questions of constitutionality. A judgment that settles an interpretation can guide the treatment of later disputes. The authors use the term kihan-teiritsu for this aspect of judging. It explains why a study of a civil law system includes precedents alongside articles of legislation. A precedent can become essential to understanding why a court invokes a particular provision and what it takes that provision to mean.

The paper illustrates this with Article 31 of the Constitution. A Supreme Court Grand Bench precedent describes how to assess whether a penal provision is too ambiguous. In the authors’ account, the inquiry turns on whether a person exercising ordinary judgment could tell if an act falls within the provision. Later courts can cite the constitutional article and rely on the precedent for the standard that gives it practical effect. For someone trying to recover a citation, the wording of that standard may point to the precedent. For someone studying repeated combinations of authorities, the use of the article with the precedent provides an observable relationship.

Japanese judgments typically distinguish the disposition, called shubun, from the reasons for it. The disposition states the court’s decision, such as whether a civil claim succeeds or whether the accused is guilty. The reasoning portion sets out the facts and the legal discussion behind that decision. The distinction determines which part of the document supplies the study’s evidence. A bare statement of the result might be enough for a study of outcomes. Here the relevant material includes a party’s argument, a court’s account of a rule and the way a reference is introduced or explained.

The interest in such evidence is both professional and institutional. A lawyer or prosecutor may want to see how an article has been applied to similar circumstances. A judge reviewing authorities may want to know which precedents bear on an interpretation. The authors also connect judicial interpretation to legislation because a decision can clarify a gap or raise a question that legislation may later address. Each use benefits from finding the right article or precedent with enough precision to read its relationship to the case.

From a citation’s wording to its identity

Earlier work described in the paper had already treated the immediate language around a citation as useful evidence. Zhang and Koppaka examined sentences in US opinions that cite earlier decisions. They paired the citing sentence with a passage in the older opinion that could explain why it was cited, and used the relationship to support navigation among decisions. Other studies classified the function served by the citation. A reference might supply a definition, an exception or authority for a proposition. Those distinctions describe the role of a citation once the documents involved are known.

The Japanese study asks what the sentence reveals when the target itself is hidden. An answer has to identify the authority at the level recorded in the judgment. A passage can be recognizably about civil liability while giving an ambiguous indication of the applicable article. Similarly, a reader may understand that a sentence states a rule from an earlier decision while being unable to tell which earlier decision established it. Topic, citation function and citation identity are therefore different targets, even when researchers start from the same sentence.

The paper also situates the task alongside work in information retrieval and search. The COLIEE competition included retrieval of Canadian cases and retrieval of Japanese statutes using bar examination material. Dadgostari and colleagues approached legal search as prediction, including prediction of citations from the content of US opinions and of results produced by people conducting searches. Tagarelli and Simeri examined how to identify relevant articles of the Italian Civil Code from a query sentence. Work on legal judgment prediction asked about outcomes, such as whether a violation had occurred. The observable answer in the Japanese citation experiment is the reference already printed in a sentence from an actual judgment.

The paper treats that answer as a way to create a large evaluation set. Courts follow conventions when naming statutes and reporting earlier decisions, so many references can be found systematically. Once a reference has been identified, removing it creates a question with an existing answer. A collection built this way can test how much the recorded wording reveals. It also keeps the task close to the language used by legal professionals, including terms or turns of phrase that might be absent from a question written for an examination.

Previous network studies described in the paper examined relations already expressed by links in legal documents. Some followed citations from a US opinion to an earlier one. Others examined cross-references among statutes and regulations in jurisdictions including the US, Germany and New Zealand. The paper also describes studies of the French and Italian legal codes, comparative work on European legal networks and an approach for representing connections within European Union legal sources. The common premise is that a collection of explicit references can reveal aspects of legal organization that are difficult to see by reading each provision on its own.

The present study draws a connection from a different event. If a judgment mentions a statute and a precedent, the fact that they appear in the same case is itself recorded as a relationship. One article might define the substantive issue, a precedent might specify its interpretation and other provisions might govern procedure. The resulting network can include all of them. It answers a question about their shared use in judgments, whereas a network built from direct references answers a question about which documents or provisions explicitly point to one another.

The distinction matters when a case introduces a factual situation that earlier law did not fully anticipate. The authors describe litigation over warrantless GPS investigations. Questions about whether the investigation was lawful and whether resulting evidence could be admitted brought several provisions and earlier decisions into the same dispute. The Supreme Court rejected the evidence in the case it considered and indicated that legislation should specify the conditions and procedures for such investigations. The example shows how familiar authorities can appear together because a new situation puts several existing rules in play.

That possibility gives the network experiment its time dimension. A connection absent from earlier judgments may later be observed when a suitable dispute reaches court. The authors ask whether earlier cases supply enough clues to rank such a connection in advance. The date split gives that question a concrete form. It turns the general observation that legal practice changes into a comparison between evidence available in an earlier period and combinations recorded in a later one.

The method, step by step

Turning judgments into examples

Both experiments depend on assigning a consistent identity to a reference found in a judgment. The authors start with the reasoning sections. For the text task, they leave out the disposition and document metadata such as case identifiers and judges’ names. The judgment date has a separate role in the network task because it determines which part of the history a connection belongs to. TKC Corporation supplied the corpus, in which personal and company names had been replaced by pseudonyms.

The authors use regular expressions for information extraction. A regular expression describes a pattern in a string. Here the patterns exploit conventions for writing citations, such as the form of a statutory article reference or the way a court and decision date are given for a precedent. For statutes, the authors also compile a list of legal code names and use it to check whether a matched phrase names a statute. The intended statutory target includes the article number. A system that returns the right act but a different article has missed the target.

Precedents require another step because the same decision can be cited in several forms. A citation can include the court, docket information, the bench and the place where the decision was reported. The authors normalize such variations with rules so that multiple spellings can count as mentions of the same authority. Their example takes a detailed citation to a Supreme Court Grand Bench decision and reduces it to a form centered on the court and judgment date. Normalization makes the set of answer labels more consistent and lets the same precedent appear as a single node when connections are counted across judgments.

From this point, the experiments preserve different parts of the evidence. The text experiment keeps the citation-bearing sentence and the identity of the authority removed from it. The network experiment keeps track of which authorities belong to the same judgment and when that judgment falls in the chronology. The text and network thus give different views of the same kind of reference. The former preserves the words around it. The latter preserves its association with other references within a decision.

From Japanese judgments to citation and link predictions

The steps in order.

From Japanese judgments to citation and link predictionsStep 1: Extract citations from the reasoning sections1. Extract citations from the reasoning sectionsStep 2: Normalize article and precedent references2. Normalize article and precedent referencesStep 3: Mask citations and retain the surrounding sentences3. Mask citations and retain the surrounding sentencesStep 4: Train sentence systems to recover hidden authorities4. Train sentence systems to recover hidden authoritiesStep 5: Connect authorities cited within the same judgment5. Connect authorities cited within the same judgmentStep 6: Split the connections by judgment date6. Split the connections by judgment dateStep 7: Score new pairings among previously observed authorities7. Score new pairings among previously observed authorities

What the masking leaves visible

The masked sentence retains markers for the kind of information removed. [MASK_LAWNAME] stands in for the name of the statute, [MASK_ARTICLE] for its article number and [MASK_PRECEDENT] for a cited decision. These markers preserve the location and type of a reference. The system receives a sentence recognizably built around a citation, along with its remaining legal and factual language. It has to infer which normalized answer fills the gap.

A sentence can cite several authorities. The authors therefore describe the answer as a set of labels. For systems that assign a score to each possible label, the experiment takes the highest-scoring candidates. It uses the number of hidden labels to set the length of that list, then varies the number of extra guesses. This setup makes it possible to ask how frequently the right authority is near the top even when the leading answer is wrong.

The source of supervision is the judgment itself. The label was established when the citation was extracted and normalized, before its identifying text was masked. During training, the system can learn associations between the remaining wording and the known answer. During testing, the experiment checks those associations against labels that have been hidden in the same way. This is a supervised text classification setup for the systems that choose from the established labels. The experiment also includes a system that produces citation text directly.

Representing the sentence

An encoder converts a sentence into numbers that a prediction system can use. The simplest encoder in the paper records word frequencies. To find the words, the authors first apply Japanese tokenization and segmentation using morphological analysis. They then count each retained term in the sentence. A vocabulary term had to occur at least 10 times in the dataset to be counted. The resulting vector has recognizable entries, such as the count for a term associated with compensation or detention.

The benefit of this representation is that a conspicuous legal term remains directly available to the classifier. If a word strongly signals a statutory article, the classifier can use its presence without needing to reconstruct the rest of the sentence. The cost is that rearranging the same words leaves the representation intact. A term naming a proposal and a term naming the provision under dispute may both be present, even though the sentence makes clear which role each one plays.

The multilingual Universal Sentence Encoder, or USE, supplies a different representation. The paper describes the version it uses as a convolutional encoder sensitive to word order. Its pretraining draws on natural language inference data expanded by translation into 16 languages, including Japanese. It can be used without training the encoder on the Japanese judgments. Its output represents the sentence through a vector whose individual entries are harder to connect to particular words. Specialized elements that its vocabulary fails to recognize are handled as unknown tokens. This approach comes from work on the multilingual Universal Sentence Encoder.

The authors also compare representations learned from the court sentences. Doc2vec learns vectors through a neural approach related to learning word representations. The experiment trains it from scratch on the masked training sentences. Latent Dirichlet allocation produces a topic representation. It learns topics as distributions over words using the training portion. For a test sentence, the learned topics supply a vector indicating how strongly the sentence reflects them. Both approaches make the sentence representation depend on the judgments themselves, with different assumptions about the useful information to preserve.

All of these encoders feed gradient boosting. This classifier combines decision trees, which make predictions by successively splitting examples according to features. Holding the type of classifier fixed helps the comparison address a specific question. If an encoder improves predictions, its representation gave the trees more useful evidence under the tested procedure. The comparison still bundles together several differences, since each representation handles vocabulary, training and sentence structure in its own way.

Generating the citation as text

The authors also test T5-base, using a Japanese adaptation pretrained on Japanese Wikipedia. T5 brings its own encoder and decoder. Its encoder uses attention to combine evidence from different parts of a sentence. Its decoder produces text. The experiment therefore lets a masking task with the same goal operate through a different output mechanism. The underlying approach is developed in the unified text-to-text Transformer study.

The difference is easiest to see in the treatment of an almost-correct article number. The authors compare Civil Code 709 and Civil Code 710. For a classifier over citations, each names a separate class. Choosing the wrong class misses the answer. In text generation, the strings share part of their form, and learning to generate the correct answer can take account of shared material. The authors suggest that this property could help when related provisions are grouped near one another in a code. The evaluation still expects the article that the court cited.

The open output space also changes the meaning of an error. Gradient boosting selects among established labels. T5 can produce a string that resembles a legal citation but has no matching authority. The authors examine such outputs in the results. This behavior follows from the task design: the decoder learns to produce text in the form of an answer, and the form itself can be plausible even when the cited act is absent from the law.

The paper reports T5 only at the setting with zero extra predictions. For the other systems, there is a ranked list of candidate labels to which the authors can apply several cutoffs. Their T5 evaluation does not provide comparable ranked scores for those additional guesses. The shared comparison is therefore the setting in which the number of predictions equals the number of hidden labels.

Scoring citation recovery

The text experiment devotes seventy percent of the data to training and uses the remainder for testing. The test first measures how much of each sentence’s ground truth appears in the allowed prediction list. A candidate contributes when its normalized label is among the labels actually present in the sentence.

C(l, Sᵢᵍᵗ) = 1 if l ∈ Sᵢᵍᵗ, and 0 otherwise

Here i identifies the input sentence. Sᵢᵍᵗ is the set of its true citation labels, and the superscript gt stands for ground truth. l is a proposed label. The membership sign ∈ asks whether the proposal is in the true set. The function C records a hit as 1 and a miss as 0.

The paper’s accuracy expression sums a hit fraction over sentences. Its printed expression shows the sentence sum without a division by the number of sentences. The reported accuracy scores are read as an average of the sentence contributions, each of which is scaled by the number of true labels for that sentence.

Accuracy = (1 / N) Σᵢ Σₗ∈T(Xᵢ, θ, |Sᵢᵍᵗ| + m) C(l, Sᵢᵍᵗ) / |Sᵢᵍᵗ|

N is the number of evaluated sentences, and Σᵢ adds their contributions. Xᵢ is the masked input sentence. θ denotes the fitted prediction system, and T returns its highest-scoring labels for that input at the specified list size. The vertical bars around Sᵢᵍᵗ denote the number of true labels. m is the number of guesses added beyond that count. The inner sum runs over proposed labels l in the returned list, and C supplies the hit indicator. The factor 1 / N makes the result a mean across sentences.

A sentence with several hidden labels can therefore receive partial credit. The metric counts the fraction recovered. Once the maximum number of guesses rises, a correct answer that was just outside the previous list can now count. The denominator remains the number of true labels, so the accuracy measure does not charge separately for each extra incorrect suggestion. That choice makes the score useful for studying ranked recovery. Its interpretation depends on how many suggestions were allowed.

The authors also calculate two forms of F-measure to examine how performance is distributed across labels. Precision for a label measures how frequently predictions of that label are correct. Recall measures how often actual examples of the label are found. An F-measure combines the two using a harmonic mean, which stays low when either component is low. The paper distinguishes between averaging a separate F-measure for every label and calculating an F-measure after averaging precision and recall.

Fμ = (1 / |L|) Σₗ∈L (2 Pₗ Rₗ / (Pₗ + Rₗ))

Fμ is the quantity the paper calls its micro-averaged F-measure. L is the set of labels included in the calculation and |L| is its size. Pₗ and Rₗ are precision and recall for label l. The summation takes the harmonic mean for each label, given by twice the product divided by the sum, and the factor 1 / |L| gives each label the same weight.

Pμ = (1 / |L|) Σₗ∈L Pₗ

Pμ denotes the mean of the label-wise precision values. Pₗ is the precision for label l, Σₗ∈L adds those values over the label set L, and |L| is the number of labels used to take the mean.

Rμ = (1 / |L|) Σₗ∈L Rₗ

Rμ is the mean of the label-wise recall values. Rₗ is the recall for label l. The sum runs over L, and 1 / |L| turns that sum into a mean over the labels.

Fᴍ = 2 Pμ Rμ / (Pμ + Rμ)

Fᴍ is what the paper calls its macro-averaged F-measure. Pμ and Rμ are mean precision and mean recall over the labels. The expression takes the harmonic mean after those averages have been formed. The labels “micro” and “macro” in the article follow the paper’s definitions. In both calculations, the per-label quantities are central to the interpretation. Success on a commonly cited article can contribute repeatedly to sentence accuracy, while each label enters these averages with the same weight.

Building and splitting the network

The network treats a normalized statutory article or precedent as a node. For each judgment, the authors make a clique, a group in which every pair of cited authorities is joined by an edge. Pooling the cliques gives a network based on co-occurrence. A provision that often appears with several others acquires several neighbors. A provision and a precedent can be linked because they take part in the same judgment even if neither document makes an explicit reference to the other.

A pairwise network keeps a record of shared use across judgments. It also changes the form of the evidence. A judgment groups all of its cited authorities in a single document. The clique expresses that group through a collection of pairs. When the cliques are pooled, a pair that stands beside other pairs may originate in a different judgment. This matters to the authors’ later discussion of hypergraphs, in which a connection can represent the full group of authorities from a case.

The authors describe a static test as one possible use of the graph. It would withhold edges at random and ask whether the remaining network supports their recovery. Their experiment uses chronology. The training network comes from judgments before January 1, 2010. The later judgments supply the test connections. The question is whether an authority pair absent from the training network will appear in the later period. Both members of a candidate pair must already be present in the training network.

That last requirement gives the task a defined source of information for every node. Each authority under consideration has a position in the observed network. A previously unobserved pairing can then be scored by comparing the positions of its members, or by combining those positions with text. In practical terms, it is a prediction about a new relation between familiar authorities. A wholly new authority poses the separate problem of predicting links for an item with no observed neighborhood.

The local network scores begin with a simple question. If two authorities have never been seen together, do they appear with some of the same other authorities? Shared neighbors give a reason to consider the pair, and the different scores disagree about how much each neighbor should count. Adamic–Adar gives greater weight to a shared neighbor that has few other links.

A(x, y) = Σᵤ∈N(x)∩N(y) 1 / log |N(u)|

A(x, y) is the Adamic–Adar score for candidate nodes x and y. N(x) and N(y) are their sets of neighbors. The intersection sign ∩ restricts the sum to shared neighbors u. |N(u)| is the number of neighbors of u, and log denotes a logarithm. The reciprocal gives a smaller contribution when the shared neighbor belongs to a larger neighborhood.

The Jaccard coefficient evaluates shared neighbors in relation to the overall size of the neighborhood the pair covers. A given overlap represents a greater proportion of a small combined neighborhood than of a large one.

J(x, y) = |N(x) ∩ N(y)| / |N(x) ∪ N(y)|

J(x, y) is the Jaccard score for nodes x and y. N(x) and N(y) are their neighbor sets. The intersection ∩ contains nodes shared by both, and the union ∪ contains nodes found in either set. The vertical bars count members. The quotient is the fraction of the combined neighborhood shared by the candidate pair.

Preferential attachment gives higher scores to pairs whose members each have many neighbors. It needs only their individual degrees, the counts of adjacent nodes.

PA(u, v) = |N(u)| × |N(v)|

PA(u, v) is the preferential attachment score for candidate nodes u and v. N(u) and N(v) are their respective neighbor sets. The vertical bars give their degrees, and the multiplication sign × forms the product. Resource allocation appears as a further graph-only baseline in the results.

The block approaches use patterns at the scale of groups of nodes. In the stochastic block formulation, each node belongs to a group, and the groups of a candidate pair determine the corresponding connection probability. The degree-corrected variant lets individual nodes have different propensities to form edges. That distinction matters in a setting where some authorities are linked widely and others participate in a small part of the network.

The authors also test methods that represent each node by a vector. Node2vec derives these embeddings from random walks, sequences of steps along the graph that give nodes a context defined by the connections around them. Attri2vec incorporates node attributes into a representation intended to preserve structural similarity. The graph convolutional network, or GCN, combines information from connected nodes through graph convolution. The GCN and Attri2vec are the entries marked as using text in the link results. Text therefore enters the comparison through more than one approach.

A link score orders candidates from more to less likely. Changing the threshold for calling a link alters how many future links are found and how many other pairs are treated as links. AUC-ROC, the area beneath the receiver operating characteristic curve, captures the tradeoff between how frequently positives are recovered and how frequently negatives are selected. The area under the precision–recall curve, AUC-PR, summarizes how the share of proposed links that are correct changes as the share of true links found rises. The authors report both measures for civil and criminal cases.

Experiments and results

The citation collection and its uneven coverage

The citation experiment distinguishes statutory articles in civil cases, statutory articles in criminal cases, precedents in civil cases and precedents in criminal cases. These categories separate the kinds of authority the system has to name and the kinds of judgments that supply the wording. In the corpus description, a sentence count measures instances of citation-bearing text, while a label count measures distinct targets. A large collection of examples can contain many repetitions of a few references. Examples for each distinct authority are what determine how much evidence is available about that authority.

The authors restrict the descriptive counts to authorities seen more than four times. The civil article category contains 600,558 sentences in that accounting. One civil article makes the imbalance concrete. Article 709 of the Civil Code, concerning liability for damage, occurs in 21,380 sentences. Many classes occur only five times. In the civil legal code evaluation, the authors report 8,797 labels and say Article 709 accounts for about 3.6 percent of the masks for statute names. Those figures describe different aspects of the same evaluation problem: a vast candidate set and a concentration of examples around a familiar part of it.

Frequency also varies with time. The paper shows a surge around 2012 in mentions of authorities associated with claims for repayment of excess interest. It traces the litigation to a difference between the 20 percent limit under the Interest Rate Restriction Act and the 29.2 percent limit under the Investment Act, together with a provision of the former Money Lending Business Act concerning voluntary payment. Supreme Court judgments clarified the conditions for treating payments as voluntary and the recovery of excess payments. The paper describes one of the relevant decisions as providing for statutory interest of 5 percent a year on the amount to be repaid.

The time series show why citation counts carry information about disputes and legal developments as well as about the enduring prominence of an article. A provision used repeatedly in a wave of similar cases can supply unusually many examples with related wording. A precedent that shaped the litigation can receive fewer explicit mentions than a later decision that deals with the remedy most of the subsequent cases seek. The counts are observations of what the decisions cite in that period.

Recovering articles and precedents

For the common evaluation at m = 0, civil articles are the category in which T5 leads. Word frequencies with gradient boosting have the strongest accuracy in much of the rest of the experiment. The civil article result is especially informative because the same comparison includes the pretrained sentence representation and the two approaches trained on the masked court text.

Held-out civil article citation accuracy at m = 0

T5 leads the civil article comparison when the prediction list matches the number of hidden labels.

Held-out civil article citation accuracy at m = 0Word frequencies with gradient boosting: 57.84Word frequencies with gradient boosting57.84USE with gradient boosting: 51.98USE with gradient boosting51.98Latent Dirichlet allocation with gradient boosting: 52.24Latent Dirichlet allocation withgradient boosting52.24Doc2vec with gradient boosting: 0.09Doc2vec with gradient boosting0.09T5 (this paper): 70.32T5 (this paper)70.32
The numbers
System or settingaccuracy %
Word frequencies with gradient boosting57.84
USE with gradient boosting51.98
Latent Dirichlet allocation with gradient boosting52.24
Doc2vec with gradient boosting0.09
T5 (this paper)70.32

The other categories show why the civil article result needs its category label. On the held-out criminal article sentences at m = 0, word frequencies with gradient boosting score 80.06 in accuracy. USE with gradient boosting scores 71.84 and T5 scores 54.13. Regression to broad subject matter is unnecessary to explain the contrast. The task demands exact labels, so a system can perform quite differently depending on how the language of the category points to those labels and how many examples it has to learn from.

For civil precedents at m = 0, word frequencies with gradient boosting have an accuracy of 68.12, and USE with gradient boosting has 61.54. T5 gets 24.11. On criminal precedents at the same setting, the respective scores are 68.32, 65.02 and 8.37. The prominence of the word-frequency approach in these categories is especially relevant to the hypothesis that conventional phrases or technical terms can identify a citation. An encoder trained for broad sentence meaning has to preserve those signals for its classifier to benefit from them.

The extra-prediction settings examine the rank of a correct suggestion. For held-out criminal articles, word frequencies with gradient boosting score 84.1 at m = 1 and 88.41 at m = 4, in the paper’s accuracy units. USE with gradient boosting reaches 82.60 at m = 4 in that category. For civil articles, the word-frequency system reaches 68.75 and USE reaches 67.21 at m = 4. These are recovery scores from longer lists. A reader comparing that setting with m = 0 is looking at how often the true reference can be retrieved with more chances.

The F-measures qualify the accuracy rankings. T5 also leads on the civil article F-measure, according to the authors’ discussion. Generally, USE tends to score better on the label-sensitive measures than the word-frequency representation, in spite of the latter’s stronger showing on overall sentence accuracy. In the civil article category, for example, the score in the paper’s Fμ column is 13.94 for USE with gradient boosting and 7.57 for word frequencies with gradient boosting. That comparison concerns the mean of the individual label F-measures. It indicates an advantage spread over labels that can be obscured when frequent targets appear in many test sentences.

The paper’s figures sort labels by frequency so that the common authorities appear together at one end and rarer ones at the other. They show the difference between the methods in a way a table of overall scores cannot. USE has stronger results for more labels, while the far end of the distribution remains difficult for both approaches. A sentence-level score can be quite strong alongside poor recovery of much of the label inventory, because that inventory contains many authorities for which the experiment has relatively few sentences.

Predicting new connections

The network split holds out approximately 10 percent of positive edges by using the later period for testing. The test concerns first appearances of pairings after the cutoff among authorities already observed before it. The authors evaluate civil and criminal graphs separately. In both graphs, simple local scores provide useful rankings. The civil results below place the most successful combined approach beside a local overlap score, a degree-based score and a group-based approach.

AUC-ROC for new links in the held-out civil judgment network

The graph convolutional network ranks future civil links ahead of the graph-only comparisons shown.

AUC-ROC for new links in the held-out civil judgment networkAdamic–Adar: 0.849Adamic–Adar0.849Resource allocation: 0.856Resource allocation0.856Jaccard coefficient: 0.761Jaccard coefficient0.761Preferential attachment: 0.823Preferential attachment0.823Degree-corrected stochastic block approach: 0.873Degree-corrected stochastic blockapproach0.873Graph convolutional network with text (this paper): 0.901Graph convolutional network with text(this paper)0.901
The numbers
System or settingAUC-ROC
Adamic–Adar0.849
Resource allocation0.856
Jaccard coefficient0.761
Preferential attachment0.823
Degree-corrected stochastic block approach0.873
Graph convolutional network with text (this paper)0.901

The difference among the local scores is clearer on the precision–recall measure. On held-out civil links, resource allocation records an AUC-PR of 0.686, Adamic–Adar 0.662 and Jaccard 0.391. The GCN reaches 0.716. Those numbers concern the ordering of positive links relative to other candidates over thresholds. In a search setting they reflect how well genuine later links can be concentrated in the set of suggestions when the threshold is varied.

The criminal network shows a similar strength for the graph convolutional approach. Its reported AUC-PR is 0.728, compared with 0.668 for resource allocation and 0.634 for Adamic–Adar. The ordinary stochastic block approach scores 0.678 on the same measure. Jaccard scores 0.310. The authors favor the degree-corrected approach over the ordinary block approach in their overall assessment and suggest degree heterogeneity as an explanation. Degree correction gives the grouping method a way to represent highly connected authorities without forcing them to behave like other members of their group.

The methods using learned node vectors produce a wide range of results. On held-out civil links, node2vec scores 0.730 in AUC-ROC and 0.396 in AUC-PR. Attri2vec, which uses text, scores 0.583 and 0.231 on those measures. The GCN’s lead is therefore a result for a particular way of using structure and text together. The comparisons also show that features defined directly from graph neighborhoods can be more predictive than some learned representations. Text availability alone offers little guidance about how well a method will rank future links.

What the network representations contain

Before interpreting the learned vectors, the paper examines the aggregated criminal network itself. The authors draw it without edge weights, arrange the nodes with Force Atlas 2 and identify communities by a modularity criterion, which seeks groups with relatively strong internal connectivity. They also report PageRank, a measure of importance based on the connectivity of the nodes that point to or are connected with each node. Penal Code Article 10 has a PageRank of 0.015, and Code of Criminal Procedure Article 396 has 0.014. Constitution Article 31 is among the prominent authorities, with 0.013. These scores describe the aggregated network. The authors connect the constitutional article’s prominence to its role in setting conditions for punishment.

The GCN representations supply a second kind of view. The authors use t-SNE to reduce the learned node vectors to a plane so that nearby authorities can be inspected visually. They use a Gaussian mixture procedure to identify groups and describe 29 in the civil network and 28 in the criminal network. A Gaussian mixture represents the distribution through overlapping components, while the reported group assignments give each authority a single cluster. The authors read the resulting groups by inspecting which statutes and precedents they contain.

The civil trademark group provides the most detailed example. Cluster 18 brings together provisions from the Trademark Act, the Unfair Competition Prevention Act and decisions on related disputes. A Supreme Court precedent of September 8, 2008 concerns similarity under Article 4(1)(11) of the Trademark Act. The older Supreme Court decisions of February 27, 1968 and December 5, 1963, used in developing the similarity criteria, are assigned to the same group. The authors also see related patent, design and copyright provisions in neighboring groups. The example ties the visual grouping to an identifiable relationship in the cases.

Tax provisions provide another check on the interpretation. Civil cluster 29 contains a collection of tax authorities, including constitutional provisions on tax obligations and taxation by law, alongside precedents on taxation. The criminal groups are harder for the authors to characterize consistently. They nonetheless identify road traffic and vehicle provisions together in cluster 17, and provisions concerning children and juveniles in cluster 5. Several of the often cited criminal authorities from the centrality analysis also appear together in cluster 9. These examples show the kinds of associations that the learned positions preserve.

What the ablations show

The paper reports no formal ablation in which it removes a component from an otherwise fixed system. It offers comparisons of sentence representations under a common classifier, sensitivity to the length of the prediction list, inspections of individual errors and comparisons of ways to score network links. Each supplies evidence at a different level. The closest controlled text comparison replaces the encoder while keeping gradient boosting as the decoder. The case studies then ask what evidence those different representations make easy or difficult to use.

When a single term carries the answer

The authors examine a criminal sentence about receiving a bribe. Its reference is to Article 197 of the Penal Code. The Japanese term for receiving a bribe includes a character that USE treats as unknown. The surviving character conveys the more general notion of receiving, which offers much weaker evidence for that article. A word-frequency representation can preserve the full technical term if it is in its vocabulary. The example locates the loss before the classification decision. The classifier downstream of USE has less specific evidence available because of how the input was represented.

A passage about aiding and abetting shows the same mechanism with Article 62 of the Penal Code. A character needed for the legal term becomes an unknown element in USE. That change obscures the expression most directly associated with the article. The two examples support the authors’ concern about general-purpose vocabulary. They show concrete cases where legal terminology is a direct clue, and where a sentence encoder’s treatment of unfamiliar text removes part of the clue. The analysis leaves open how often this accounts for errors in the full test set.

A different mistake occurs when the decisive term is present but has little space in the sentence. One passage describes evidence in the form of memoranda about explosives and then objects to the use of those documents to establish the truth of their contents. The system uses word frequencies to retrieve the Code of Criminal Procedure’s Article 320, which is the hearsay provision the passage cites. USE returns Article 3 of the Explosive Ordinance. The example illustrates an error in emphasis. The sentence devotes substantial space to the subject of the memoranda, while the citation concerns how the documents were used as evidence.

The feature-importance analysis checks whether the word-frequency classifier habitually relies on interpretable terms. The authors measure average gain when a feature is used to split examples in the boosted trees. In criminal article prediction, a term the authors translate as “counting” is highly influential. It is associated with accounting for detention before judgment, a matter addressed by Article 21 of the Penal Code. Wording about litigation expenses is also relevant and can lead to the Code of Criminal Procedure’s Article 181. These links between features and authorities make the ranking intelligible in ways that an individual coordinate of a sentence vector would be harder to explain.

The civil rankings tell a similar story. Words connected with damage and compensation are prominent, and Article 709 of the Civil Code is a frequent reference in passages about compensable harm. Interest-related terms recur around provisions implicated in refund litigation. The importance values summarize the classifier’s use of a feature across tree splits. When a passage contains several legally significant words, the ranking alone cannot identify the specific combination of features that produced its answer.

When the sentence’s argument carries the answer

Other examples show why a recognizable keyword can be misleading. The sentence describes a dispute in a criminal case over whether to examine a witness on a day different from the trial date. The defense mentions shielding measures as a way to protect the witness in an ordinary hearing. The word-frequency system tends toward the Code of Criminal Procedure’s Article 157-3, which deals with shielding. USE recovers Article 281, the provision at issue for examination outside the trial date. Both topics are in the sentence. The relationship between them makes shielding part of an argument about the need for a different examination procedure.

The self-surrender example tests a related distinction between a general rule and a special provision. A passage discusses a reduction tied to surrendering and handing over a firearm. The word-frequency system proposes Article 42 of the Penal Code, which concerns self-surrender generally. USE identifies Article 31-5 of the relevant firearms legislation. The authors read the correct result as a sign that the encoder retained the context in which self-surrender was discussed. The important clue is the combination of the action with a further condition, expressed over the course of the sentence.

These examples support an interpretation of the label-frequency plots. Distinctive terms can lead straight to often repeated authorities, giving word counts a strong route to high sentence accuracy. Contextual evidence can help with a wider range of labels, especially when the obvious keyword points to a neighboring issue. USE’s higher performance for more labels fits that explanation. The same figures show sparse labels at the far end that neither representation can handle reliably. The division between useful lexical cues and useful context explains particular cases while leaving the scarcity of examples as a separate difficulty.

What the differences in training leave open

The authors consider several explanations for T5’s lead on civil articles. The civil article collection is large, so it offers more examples for a system with substantial training demands. Its tokenizer has no unknown tokens in the study’s data, avoiding the loss of legal characters documented for USE. Its objective also rewards learning shared pieces of a citation string, allowing related output forms to influence one another in training. The systems differ along all of these dimensions at once. The scores establish the category in which T5 leads, while the separate contributions of data volume, vocabulary and objective remain unresolved.

The generated errors help show what that last difference entails. T5 sometimes creates an answer in the form of a statute and article whose legal name is invented. The authors give examples resembling names of laws on punishment for denouncing and compensation for a fire-related incident. These examples show that fluent production of the citation form can coexist with failure to retrieve an established label. The capacity to write a plausible name and the ability to identify the referenced authority are measured differently when the output space is open.

The extra-guess experiment controls a different variable, the number of suggestions the evaluator accepts. Within a ranked classifier it changes the cutoff while leaving the learned scores in place. The improvement then shows how much relevant material lies below the shorter cutoff. That comparison provides evidence about retrieval behavior. It gives no estimate of how the same systems would perform under an evaluation that charged for the time a reader spends checking each extra suggestion.

What the graph comparisons isolate

The local graph baselines isolate the value of earlier topology in a straightforward sense. They use prior edges and reach substantial scores without a textual representation. Shared neighborhoods carry evidence that future judgments will cite some authorities together. Jaccard’s weaker results also show that converting overlap into a proportion changes which candidates rise to the top. The degree-corrected block comparison addresses a complementary source of evidence. The authors’ interpretation is that allowing different connection propensities within a group suits a network with many modestly connected nodes and some very prominent ones.

The GCN comparison establishes that the tested combination of text and graph structure is effective. Attri2vec’s performance makes the comparison more informative because it too receives textual features and gives quite different results. There is no matched GCN run with text removed in the reported table, so the experiment does not quantify the gain due to text within that architecture. Its strongest evidence concerns the combined system as evaluated, with the text-free baselines showing the quality of predictions possible from structure alone.

The clustering analysis asks what can be recognized in the final representations. The authors can trace several groups back to legal topics and, in the trademark case, to decisions that explicitly build on earlier ones. This is qualitative evidence of meaningful structure. The grouping serves a different purpose from the held-out link test. The test measures rankings of future edges, while inspection of the groups examines whether the representation places identifiable families of authorities near one another.

Limitations

Limits the authors identify

The authors describe a classification problem with many possible labels and highly uneven evidence for them. In their conclusion, they characterize coverage for civil articles as 34 percent of law names. That statement concerns coverage across names and should be read separately from the accuracy for held-out sentences at a specified prediction cutoff. Their experiments show that common references can be recovered often and rarer ones still present a serious problem. They propose using the actual text of articles and precedents, as well as citation networks in the legal code, to provide information beyond the masked sentence.

Changes to the meaning of articles over time are another stated limit. The authors did not build a complete record of changes to the laws used during the period. One specific reason this matters is the Money Lending Business Act’s former Article 43. The paper distinguishes it from the current article bearing that number, whose subject differs. A label based on an act and article number can therefore represent a historical provision whose interpretation calls for knowledge of the date and version.

The authors also identify a need to retain both technical vocabulary and sentence context. Their examples show losses from unfamiliar legal expressions in USE, and failures of word counts when the sentence discusses a familiar concept as part of a more specific legal argument. They point to approaches adapted to legal writing as a direction for further work. Their results allow a precise statement of the challenge: a useful representation needs to preserve a small specialized clue even when it also captures meaning across a long passage.

For the link experiment, the paper explicitly excludes authorities that did not appear in the earlier graph. The authors outline a text-based way to estimate links even for nodes without training connections. They also suggest adding a network based on references within legal codes, giving a multiplex network in which different layers represent different kinds of connections. Both directions require additional data. The reported scores cover the case in which each member of a candidate pair has an observed history.

The paper recognizes that a judgment’s collection of authorities is naturally a hypergraph relation, a connection involving the whole set rather than a collection limited to isolated pairs. It leaves a hypergraph treatment tailored to time-ordered legal prediction for future research. It also acknowledges the restriction of hard clustering. A statutory provision or precedent can matter in several distinct settings, while hard clustering assigns it to a single group. A cluster label is thus a convenient account of one placement in the learned representation, with possible uses in other legal settings left unresolved.

Limits that follow from the design

The citation answers come from references already present in the judgments. An exact match establishes recovery of the recorded authority. Other authorities could also be relevant to the sentence, and the experiment gives them no credit unless they were cited there. This matters when translating the result into a claim about legal research. In the test, the user’s apparent question was constructed by hiding something a court cited. The study does not evaluate an open-ended question that may admit several useful authorities or require a researcher to cross-check a newly relevant one.

Selection begins with citation patterns that the extraction rules can recognize. Normalization makes the task possible at scale, but it also helps define which differences count and which strings are treated as the same target. The paper’s example demonstrates how citation variants can be reconciled. The study gives no independent measurement here of how missed or conflated references affect the performance estimates. The sentences and graph are both downstream of those extraction and normalization decisions.

The experiment supplies markers that indicate whether a statute name, article or precedent has been removed. The scoring procedure for ranked classifiers also uses the number of true labels to set the list length. In an unmarked legal query, locating the gap and deciding how many authorities are relevant would be additional tasks. The reported results concern the narrower situation in which a citation-bearing passage has already been found and prepared. A strong recovery score measures the value of its remaining language under those conditions.

The text and network evaluations address different forms of generalization. The authors describe the citation evaluation as a training and test split by proportion. The network evaluation explicitly withholds a later period. The citation scores therefore do not establish how the same systems would handle changes in wording and citation practice under the network’s chronological split. The refund litigation provides a reason to care about that distinction: distributions of authorities can change sharply when a group of disputes becomes prominent.

The graph connects authorities anywhere in the same reasoning document. They may participate in a common argument, in separate questions in the same case or in opposing accounts of how the law should apply. The edge itself records co-citation. The textual analysis of the trademark cluster supplies examples where the connection reflects a coherent area of doctrine, but it does not turn every edge into an explained legal relationship. Similarly, a pair that is absent from the observed test period may simply lack the kind of case that would bring it into the record.

Finally, the judgments are from a collection supplied by a Japanese legal search provider, and the authors explain that only a small portion of judgments are publicly available in Japan. Their study spans several levels of court and makes substantial use of that coverage. The evidence still describes citation behavior within this collection and period. The corpus does not establish how the same methods would fare under other publication practices, other citation conventions or a different mixture of cases. Those differences bear directly on both the text cues a system encounters and the networks it is able to construct.

What came after

No later citing work is documented here. The paper itself identifies several open directions. For citation recovery, it points to the text of the authorities as a way to help with labels that have few examples in judgments. For network prediction, it proposes using text or an additional reference network to handle authorities absent from the earlier graph. It also identifies whole judgments as groups of connected authorities that a hypergraph could retain, and overlapping legal uses as something a single cluster assignment cannot express. Those directions belong to the authors’ research agenda. The empirical results concern masked citation recovery and prediction of later co-citations among previously observed authorities.

Cite

Cite as Ryoma Kondo, Takahiro Yoshida and Ryohei Hisano. 2022. Masked prediction and interdependence network of the law using data from large-scale Japanese court judgments. Artificial Intelligence and Law (Springer).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/s10506-022-09336-5

@article{kondo2022masked,
  title = {{Masked prediction and interdependence network of the law using data from large-scale Japanese court judgments}},
  author = {Ryoma Kondo, Takahiro Yoshida and Ryohei Hisano},
  journal = {Artificial Intelligence and Law (Springer)},
  year = {2022},
  doi = {10.1007/s10506-022-09336-5},
  url = {https://doi.org/10.1007/s10506-022-09336-5}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kondo-2022-masked-prediction-interdependence-network/