A Knowledge Graph Construction Approach for Legal Domain
Paper · 2021 · Biao Dong*, Haoze Yu and Haisheng Li
Summary
Court judgments accumulate faster than people can organize the information they contain. China Judgments Online already classifies cases, but a classification tells a reader only part of what is in a judgment. Details about parties, legal provisions and other case attributes may be recorded in a designated part of the case page or embedded in the judgment itself. Biao Dong and colleagues propose a way to bring these sources together so that both case categories and specific facts about cases can be represented in a knowledge graph.
The authors follow the court website’s own categories to recover a hierarchy of concepts and cases. As they encounter cases, they record the corresponding webpages and collect attributes from the pages’ party sections. They process the prose separately. After segmenting it into words, a bidirectional gated recurrent network reads the sequence in both directions and predicts an attribute label for each word. The authors change the network’s training objective so that it gives greater influence to difficult predictions and reduces the influence of predictions that already agree closely with their labels. Neo4j stores the resulting relationships as links among categories, cases and attributes.
The comparison of attribute extraction methods uses 2,000 court documents with attribute information labeled in more than 173k sentences. On the reported test comparison, the bidirectional network with the revised loss scores 83.32 on F₁. The same kind of network trained with the original loss scores 82.05, and the strongest alternative architecture, Bi-LSTM with a conditional random field, scores 82.93. The revised network also posts the highest reported values in the table’s P and recall columns. These results concern the extraction of attributes from judgment text.
The authors use cases in the category of illegal preservation compensation to demonstrate how the pieces fit together. They report more than 4K classification relationships from the site’s hierarchy and more than 12K pieces of attribute information from party sections. For text extraction in that category, they report more than 36,000 attribute relationships from 1,112 documents, with an accuracy of 82.57%. A displayed fragment of the resulting graph includes case attributes such as the claimant, principal agent and judgment date. The paper demonstrates construction and gives a measured comparison for the text extraction component. It describes how later additions or revisions could keep the graph current, leaving update performance and the accuracy of the assembled graph as open questions.
Deep dive: A Knowledge Graph Construction Approach for Legal Domain
How a legal knowledge graph combines court website categories, party records and facts extracted from judgments using a bidirectional network. · about 31 minutes to read
The problem and its context
What a court website already organizes
A collection of judgments presents two kinds of organization. There is the organization that lets someone find a case by navigating the website, and there is the organization of facts inside the case itself. China Judgments Online supplies the former through categories and search information such as keywords, causes and document types. The case page supplies details through a party section and through the text of the judgment. A system that captures the website’s categories can retain a case’s place in the collection. A system that captures the document’s attributes can describe what is recorded about that individual case. The paper’s construction problem is to retain both kinds of information and their different meanings.
The scale of the source is part of the motivation. At the time described by the authors, China Judgments Online had more than 100 million documents issued by people’s courts at different levels. The authors are concerned with continued growth as well as the number already available. If cases are represented as instances in a hierarchy and their attributes as separate graph relationships, additions can be expressed as changes to that graph. The paper treats this as a practical problem in Legal AI.
A graph makes the distinction between category and attribute explicit. A concept can have a narrower concept beneath it, and an individual case can appear beneath a concept as an instance. Once the case is represented, other links can describe it. The relationship between a category and a case answers a question about classification. A relationship between a case and a claimant answers a question about who appears in a particular role. Both can be stored as graph edges, while their labels preserve the difference between these questions. This use of a shared representation for different relationships is the paper’s connection to knowledge representation and reasoning.
The source also gives the authors different amounts of help in identifying those relationships. A category listing already indicates a relationship between a category and the items under it. A party section indicates where relevant information is likely to occur and provides recurring role labels, though the information is still embedded in a page. Running text requires decisions about which words express an attribute. The paper distinguishes structured, semi-structured and unstructured material on that basis. Its main design choice is to let the organization present in each source determine how the corresponding facts are recovered.
Where earlier graph construction left room for this approach
The authors situate the work among general knowledge graphs and graphs designed for particular domains. Probase, DBpedia and YAGO illustrate the breadth that a general resource can provide. In the paper’s account, Probase offers extensive concepts and web data, DBpedia provides a multilingual knowledge base, and YAGO is another broad resource. This breadth makes such graphs useful background for the legal project. The authors see the remaining problem at the level of individual cases. Even where a general graph contains legal information, managing detailed relationships from judgment documents requires a collection and extraction procedure tailored to those documents.
The paper also points to projects with narrower purposes, including WolframAlpha in mathematics, IMDb in film and television, a food knowledge graph, and a graph concerning internal controls at colleges. A bilingual resource, XLore, appears in the discussion as another example of organizing concepts and attributes. The food example is especially close to the distinction used in the legal graph because the earlier work sought hierarchical relationships as well as relationships outside a hierarchy. The legal study applies that distinction to a source in which the website provides a route to hierarchical information and the case pages provide a separate route to details about instances.
In reviewing these projects, the authors emphasize reliance on databases or other structured inputs. Structure is an advantage when it records relationships directly, as it does in their chosen website’s classification system. A construction process limited to sources with that degree of structure leaves facts in prose unused. The court website lets the authors exploit a ready-made hierarchy while also addressing this coverage problem. Their proposal joins established graph construction from structured material with information extraction from text.
What earlier relation extractors contributed
The paper divides earlier relationship extraction research by the supervision available to it. The unsupervised examples seek structure in data without starting from a fully labeled training collection. One line of work clusters the contexts in which entities occur and examines frequent words within a cluster to characterize its relationship. Another compares shallow syntactic trees to find similar contexts for named entities. A co-clustering example groups entity pairs and relation features together, making each kind of information available to the grouping of the other. The review also mentions Bayesian-network approaches in which relationships among factors are the object of analysis.
These approaches help explain why discovering a relationship and inserting it into a graph are separate tasks. Contexts grouped together by a clustering procedure still need an interpretation suitable for a graph where relationships have defined roles. The authors identify the work required to regularize such output as a drawback of unsupervised extraction for graph construction. Their own legal attributes are defined in advance, so the prose component faces the problem of assigning known labels to words. That gives the training procedure a more specific target than deciding what relationship categories should exist.
Weak supervision offers a different way to address the need for labeled material. In the paper’s account, an extractor starts from a small collection of examples and relationships, then uses those seeds to help classify further instances. StatSnowball is one example. Another application extracts links between compounds and their magnetic transition temperatures. The attraction is the ability to extend beyond an initial set of examples. The authors point out that the choice of seeds and the question of how many to use remain consequential. Their legal experiment proceeds with a corpus whose attribute information has been labeled.
The neural approaches in the review address several challenges that arise once extraction is treated as a learning problem. Some earlier researchers use trustworthy entity pairs to revise suspect labels during training. Others represent annotation noise through a changing transition matrix or use within-sentence noise reduction and transfer learning. The review also covers attention in capsule networks and an earlier bidirectional recurrent approach for extracting nonhierarchical relationships. These examples establish that learning from text can depend on how a system handles context, labels and the supervision attached to examples.
A particularly relevant predecessor combines a bidirectional long short-term memory network with a conditional random field for sequence labeling. In sequence labeling, the task is to assign categories to positions in an ordered input such as a sentence. A conditional random field can take relationships among output labels into account when assigning a sequence of categories. The authors raise concerns about the manual feature definitions that may accompany CRF-based extraction, and they argue for making better use of the order of words and their context. They address the latter through recurrent processing in both directions. They address training separately, by modifying how much a prediction contributes to the loss.
The method, step by step
From a category listing to a case record
The workflow begins with the court website’s own organization. A crawler follows a hierarchy from selected keywords and records the cases reached along the way. A case listing supplies a position within the hierarchy and a webpage that can be examined for attributes. The next two operations look at different parts of that source. Crawling the party section recovers information from a recurring part of the page, while a trained sequence classifier interprets words in the document’s prose. The graph brings these outputs together through their links to cases.
From court website categories to case relationships
The steps in order.
The classification algorithm takes a set of starting keyword nodes and a maximum crawl depth. The starting nodes determine which portions of the website’s organization the procedure reaches. At a given level, the crawler obtains two kinds of children under the current concepts. It finds narrower concepts to consider on a later pass, and it finds case instances associated with the current concepts. A narrower concept can lead to further navigation. A case instance is an individual document record, and the crawler saves its associated page in a separate table.
The algorithm names the active concept set Concept, the collection of newly recovered subconcepts Temp, and the newly found case instances Concept_Instance. It starts with an empty classification hierarchy and initializes the depth to 0. Within the depth bound, it obtains subconcepts and case instances, saves the case pages in the WPI table, advances the depth and records the newly acquired nodes in the hierarchy. The pseudocode clears the current case-instance collection before replacing the active concept set with the discovered subconcepts. The output consists of the classification hierarchy and the case-page table.
These outputs serve different purposes. The hierarchy retains the navigation relationships that led to cases. The page table keeps a record of where information about those cases can be fetched. If a starting keyword leads to another concept and that concept contains a case, the traversal preserves the intermediate concept as part of the hierarchy. Recording only the case page would lose that structure. Conversely, retaining the hierarchy without the pages would leave the subsequent attribute collection without its recorded input.
The depth bound controls how far below a starting concept the crawler goes. The authors say that the hierarchy can acquire more concepts, cases and relationships when more starting keywords are supplied or a greater depth is allowed. These are distinct ways of extending the crawl. Additional roots widen the portion of the classification system from which the procedure starts, while greater depth allows exploration further below the chosen roots. The pseudocode lays out this bounded traversal, and the paper leaves the particular root list and depth used in the reported construction unspecified.
Where party information comes from
The semi-structured route works with the party section of each case page. The authors give legal representative and respondent as examples of attributes typically explained there. The advantage of the section is that its location narrows the relevant material before extraction. The crawler visits the relevant pages and collects party information using that recurring organization. This route can contribute a case attribute even when the same attribute would be difficult to identify in a sentence elsewhere in the document.
The authors describe this part of the construction separately from both the classification traversal and the recurrent procedure. The classification traversal recovers the relationship already expressed by the site’s category system. The party crawler recovers descriptions of roles associated with an individual case. The sequence classifier is used for prose, where the words around an expression help determine which label it should receive. All of those outputs can be associated with the same case when represented as graph relationships. The paper identifies the party section and gives examples of its fields, leaving the page-specific parsing rules implicit.
Turning judgment prose into sequences
In the prose route, the unit sent into the recurrent network is a sequence of word vectors. The authors first use Jieba to divide the text into words. That operation provides the sequence positions at which the network will eventually assign labels. Choosing the boundaries matters because every resulting word becomes a separate input. A name or role expression made up of several words may therefore give rise to several predictions that have to be interpreted together at a later stage. The first operation is tokenization.
The authors then use word2vec to map each word to a vector. A vector gives the network a numeric input for the word at a given position. The mapping supplies a representation of the word, and the recurrent layer combines it with information carried from nearby and more distant positions in the sequence. A word’s vector and its context-sensitive hidden state play distinct roles. The vector is the input at the position, while the hidden state is the result of processing that input alongside a running representation of context. The word2vec inputs are word embeddings.
The annotation describes the roles the classifier is expected to recover. The authors include defendant, public prosecutor and legal provision among the categories, alongside a category for irrelevant words. The latter gives the classifier a way to assign a label to positions that contribute no target attribute. That is important for the architecture described in the paper, which produces a label at each word position. The authors obtain their supervision by labeling attribute information in the sentences collected from judgments, a form of linguistic annotation.
Attribute labels also clarify what the authors mean by relationship extraction in this component. A word or expression can supply a value for an attribute of the case in whose document it occurs. The relation type is given by the attribute label, and the containing document supplies the case context. A defendant label, for instance, marks text that can supply the party value for a case-to-defendant relationship. The classifier’s immediate output consists of word labels. The graph, further downstream, represents links between a case and a value. The paper describes that overall conversion while giving its most detailed account at the word classification stage.
How a gated recurrent unit carries context
A gated recurrent unit, or GRU, processes a sequence using a hidden state that is carried from one position to the next. On reaching a word, the unit can use the vector for that word and the hidden state from the preceding position in its reading direction. It also decides how much to keep from the prior state and how much to add from the latest calculations. These choices are represented by a reset gate and an update gate. The authors present the GRU as a simpler recurrent design than the long short-term memory unit, with fewer parameters to train.
The following is the paper’s expression for the candidate memory. It depends on the reset gate, which the authors define immediately afterwards.
h̃ᵢ = tanh(W · [rᵢ · hᵢ₋₁, xᵢ])
Here i is the position currently being processed in the sequence, h̃ᵢ is the candidate hidden state at that position, and hᵢ₋₁ is the state from the preceding position in the chosen reading direction. The vector xᵢ represents the current word. The vector rᵢ supplies the reset gate. The multiplication inside the brackets applies the gate element by element to the preceding state, and the brackets join the result with the current word vector. W is the learned weight matrix applied to that joined vector. The outer multiplication is the matrix operation, and tanh applies the hyperbolic tangent to the resulting components.
The candidate memory expresses what the unit could store using the current word and the part of the previous state made available by the reset gate. The gate that controls this access is calculated as follows.
rᵢ = σ(Wᵣ · [hᵢ₋₁, xᵢ])
Here rᵢ is the reset vector at position i, Wᵣ is the learned matrix for this gate, hᵢ₋₁ is the earlier hidden state, and xᵢ is the current input vector. The brackets denote concatenation, the dot represents multiplication of the matrix by the resulting vector, and σ is the sigmoid function applied to the components. Each component of the gate controls how much of the corresponding previous-state component enters the calculation of the candidate memory. A smaller gate value gives that previous component less influence on the candidate.
The unit also calculates an update gate. Whereas the reset gate acts inside the candidate calculation, the update gate determines how the candidate and the previous state contribute to the result that is carried onward.
zᵢ = σ(W_z · [hᵢ₋₁, xᵢ])
Here zᵢ is the update gate at position i, and W_z is its learned weight matrix. The inputs are the concatenated previous hidden state hᵢ₋₁ and current word vector xᵢ. The dot again denotes matrix multiplication, and σ denotes componentwise application of the sigmoid. The reset and update computations take the same kinds of inputs. Their separate weight matrices let them learn different responses to those inputs.
The finalized hidden state at the current position is the following mixture.
hᵢ = (1 − zᵢ) · hᵢ₋₁ + zᵢ · h̃ᵢ
Here hᵢ is the new hidden state, hᵢ₋₁ is the preceding state, h̃ᵢ is the candidate, and zᵢ is the update gate at position i. The subtraction from 1 is componentwise, and the dots denote elementwise multiplication. The addition combines the contributions into a new vector. In this convention a larger update-gate component increases the candidate’s contribution and gives less weight to the previous component. The matrices for the candidate, reset and update calculations are adjusted during training.
The distinction between the gates matters when interpreting this architecture. A unit can reduce the influence of earlier information inside the candidate and still retain part of the earlier state in its final output. It can also use earlier information to build the candidate and then make the candidate a large part of its output. The paper uses these operations to represent context that accrues as the recurrent computation proceeds along a judgment sentence. The temporal language in the paper refers here to the order of the words in that computation.
Combining the two directions and predicting an attribute
The authors run a GRU in each direction. When the forward unit is at a word, its preceding states summarize material earlier in the sentence. At the same word, the reverse unit has already processed material later in the ordinary reading order. Each unit therefore provides a representation of the current word with a different part of its context. The bidirectional output joins these representations.
Hᵢ = [h⃗ᵢ ⊕ h⃖ᵢ]
Here Hᵢ is the combined feature vector at position i. The right-pointing h⃗ᵢ denotes the forward hidden state and the left-pointing h⃖ᵢ the reverse hidden state. The symbol ⊕ and the enclosing brackets indicate the joining of the directional features into a single vector. This combination gives the next stage access to cues on both sides of the word whose attribute is being classified.
One reason for using both directions is that the evidence for a label can be outside the expression to be labeled. Words before an expression may introduce a role, while wording after it may clarify the role in the current sentence. The architectural choice makes both contexts available at the prediction position. The two hidden states are learned from the sequence and are supplied together, so their contribution to a label is determined during training.
The paper collects the positional feature vectors under the symbol H and writes the classification-stage normalization in compact form.
f = softmax(H)
Here H denotes the features supplied by the bidirectional layer and f the resulting normalized output at the sequence positions. The softmax operation turns a set of class scores into relative scores that can be read as a distribution across the label alternatives. The paper describes taking the highest-scoring category as the final label for the input word. Its notation describes the relationship between recurrent features and classification at a high level. The dimension of the features and the details of any separate projection to class scores are left unspecified.
The output is supervised at the attribute level used in the annotation. If the strongest score belongs to legal provision, for instance, the position is labeled accordingly. If the strongest score belongs to the irrelevant category, the word is treated as background by the classifier. The authors use the same sequence classification framework with ordinary cross-entropy and with their modified objective. That makes the ordinary version important when interpreting their experimental comparison.
Ordinary cross-entropy and the change to training
The network needs a way to compare its predictions with the annotated categories and decide how to alter its weights. Cross-entropy supplies a penalty based on the score given to the correct label. The penalty is small when that score is high and grows as the score falls. The paper first writes the ordinary objective as a total over sentences and relationship classes.
T_CE(θ) = −∑ₖ₌₁ᴺ ∑ᵢ₌₁ᴹ rₖᵢ log(ŷₖᵢ, θ)
Here T_CE is the total conventional cross-entropy, and θ denotes the parameters being learned. The first summation covers the sentence index k up to N, the number of sentences. The second covers the relationship category index i up to M, the number of categories. The value rₖᵢ indicates whether the category is the annotated target, and ŷₖᵢ is the corresponding prediction. The paper writes θ inside the logarithm’s argument to indicate that the predicted value depends on the parameters. log is the logarithm, and the leading minus sign makes a lower probability on the correct label increase the penalty.
The authors give the corresponding expression for an individual sample.
L_CE = −∑ᵢ₌₁ᴹ rᵢ log(ŷᵢ, θ)
Here L_CE is the individual cross-entropy contribution. The index i runs across M relation categories. The label indicator rᵢ takes a value in {0, 1}, and ŷᵢ is the predicted score for category i, dependent on parameters θ. The indicator selects the annotated class contribution in the sum. As in the total objective, log is the logarithm and the minus sign turns a low probability for the annotated category into a positive cost. The symbol rᵢ here denotes a label indicator, a different quantity from the recurrent reset vector.
The authors’ concern is the cumulative effect of predictions the network already handles well. Each confident correct prediction incurs a small ordinary cross-entropy penalty. Across a large set of such predictions, these contributions can still affect parameter updates. The authors introduce a further weighting factor intended to reduce their influence and keep attention on predictions for which the network assigns too little support to the annotation.
pₛ = 1 − rᵢ · ŷᵢ − (1 − rᵢ)(1 − ŷᵢ)
Here pₛ is the disagreement quantity used to weight the sample’s loss, i indexes a relationship category, rᵢ is the binary target indicator and ŷᵢ is the network’s predicted value for that category. The middle product represents agreement with the target when the class is present. The final product describes agreement when the class is absent, using the complements of the label and the prediction. Subtracting those terms from 1 makes pₛ small when the prediction agrees strongly with the label, and large when it strongly disagrees.
The expression distinguishes degrees of agreement. For a category marked present, confidence in that category makes the disagreement factor smaller. For one marked absent, a low predicted value does the same. This is more specific than simply placing each prediction into a correct or incorrect group according to its highest-scoring label. The factor responds to the scores themselves, so a poorly supported correct label and a strongly supported correct label can receive different weights. The paper expresses the complete revised training objective as follows.
T_CE(θ) = ∑ₖ₌₁ᴺ pₛᵅ L_CE
Here T_CE(θ) is the revised total loss, with the same name the authors used for the conventional total. The index k runs to N under the paper’s aggregation notation. L_CE is the ordinary loss contribution for the individual sample, pₛ is its disagreement factor in the weighting expression, and α is the focus parameter used as the exponent. A positive exponent gives a small factor to predictions close to the target, while predictions whose disagreement approaches 1 retain more of their original penalty. The paper says the focus parameter can be set differently for correctly and incorrectly classified samples. It leaves the experimental values and the precise mapping from the class-indexed disagreement expression to a weight in the outer sum unstated.
The change operates in training, where the loss determines the pressure to alter the learned weights. It leaves the reported prediction rule as the choice of the highest-scoring label. This distinction matters when comparing the results. The revised objective can produce different word predictions after training, while the system still uses a bidirectional recurrent layer and a classifier with the same described roles at inference. The experiment measures the result of training under this change, and the equations explain the intended weighting mechanism.
Bringing the outputs into Neo4j
The graph is constructed from triples. In this representation, a triple identifies an item, specifies the type of relationship and points to the item or value at the other end. The classification traversal supplies links in the hierarchy between concepts and between a concept and its case instances. The attributes from the party sections and the judgment prose supply links that describe cases. The relationship type on an edge lets a reader distinguish a classification link from an attribute link even when both lead outward from part of the same case graph.
Neo4j stores the graph. The authors show a fragment of the resulting structure and a portion of corresponding code. They describe leaf nodes that contain values for attributes such as a judgment date, a claimant or a principal agent. Such a leaf adds information to a case that already has a location in the classification hierarchy. The visual example demonstrates the intended organization. It does not specify all the rules by which word labels become complete attribute values or by which different sources are reconciled.
The authors regard the graph representation as amenable to revision. Additional documents give the construction process more cases and potentially more categories and attributes. Information about an existing case can also be changed by revising its nodes and edges. The paper describes these operations as the way the graph could follow changes to the source. The experimental results chiefly establish the initial construction and the quality of one of its extraction components.
Experiments and results
The annotated judgments and the comparison
The authors collect 2,000 documents from China Judgments Online and label attribute information in more than 173k sentences. The annotation defines twenty categories. Some describe case material, including a defendant, a public prosecutor or a legal provision. The irrelevant-word category accounts for text that falls outside the target attributes. The authors report a random split into a training set and a test set at a ratio of 7:3. They describe training the recurrent network on the labels using the revised loss and comparing its extraction performance with alternatives. The split description does not establish whether whole documents were assigned together or whether sentences were assigned independently.
The comparison includes a conditional random field, shown as CRF, and a bidirectional long short-term memory network paired with a CRF, shown as Bi-LSTM+CRF. The CRF approach provides a comparison with a structured labeler. The combined approach pairs recurrent processing of the word sequence with a CRF for the output decisions. The paper also reports a plain Bi-GRU. That row supplies the closest comparison because it represents the bidirectional gated recurrent approach before the substitution of the proposed loss.
The metrics are P, R and F₁. The authors call P the accuracy rate and R the recall rate. Recall indicates the extent to which the extractor recovers the target items under the evaluation procedure. In the table, P is the companion rate used with R to compute F₁. The paper gives the percentages but leaves the exact counting rule for P and the matching rule for an extracted item unstated. Its F₁ equation determines how the reported pair is combined.
F₁ = 2PR / (P + R)
Here F₁ is the combined score, P is the rate that the paper labels as accuracy, and R is recall. 2 is the coefficient in the numerator, PR is the product of the rates, and P + R is their sum. The formula is their harmonic mean. It requires both rates to be strong for the combined score to be strong. An extractor can therefore score below another on F₁ if a weakness on one rate offsets an advantage on the other.
The test comparison
Attribute extraction on the China Judgments Online test split by F₁
Bi-GRU with the revised loss leads the reported comparison, followed by Bi-LSTM with a CRF.
The numbers
| System or setting | F₁ |
|---|---|
| CRF | 78.89 |
| Bi-LSTM+CRF | 82.93 |
| Bi-GRU | 82.05 |
| Bi-GRU with revised loss (this paper) | 83.32 |
Attribute extraction on the China Judgments Online test split by recall
Bi-GRU with the revised loss retrieves the greatest share under the reported recall measure.
The numbers
| System or setting | Recall % |
|---|---|
| CRF | 79.06 |
| Bi-LSTM+CRF | 83.49 |
| Bi-GRU | 82.41 |
| Bi-GRU with revised loss (this paper) | 83.79 |
Attribute extraction on the China Judgments Online test split by the reported P measure
Bi-GRU with the revised loss ranks first on the paper’s reported accuracy measure.
The numbers
| System or setting | P % |
|---|---|
| CRF | 78.73 |
| Bi-LSTM+CRF | 82.38 |
| Bi-GRU | 81.70 |
| Bi-GRU with revised loss (this paper) | 82.85 |
The revised Bi-GRU leads the table on each metric. Its reported P is 82.85%, its recall is 83.79%, and its F₁ is 83.32. The plain Bi-GRU yields 81.70% P, 82.41% recall and 82.05 F₁. Seen together, the rates show that the increase in F₁ comes with higher reported values on both of its inputs. Under the comparison as run, the changed objective is associated with improvement across the table’s measures.
Bi-LSTM+CRF is the strongest alternative in the table. It scores 82.38% on P, 83.49% on recall and 82.93 on F₁. It ranks above the plain Bi-GRU on all three measures. That ordering matters when attributing the best result. The bidirectional GRU architecture by itself finishes behind the bidirectional long short-term memory approach with a CRF. The row with the revised loss changes that ordering. The standalone CRF has the lowest scores in the comparison, with 78.73% P, 79.06% recall and 78.89 F₁. These rankings describe the tested configurations on the reported split.
The experiment is focused on extraction from documents. None of its columns reports the number of categories discovered by the crawler, the accuracy of the party-section parser or the correctness of a graph query. The labeled comparison and the graph construction example serve different evidentiary purposes. The former evaluates an extraction task with alternative approaches and common metrics. The latter shows the scale and kind of material the authors put together using the approach.
The example from illegal preservation compensation
For a concrete construction example, the authors choose cases categorized as illegal preservation compensation. They report extracting more than 36,000 attribute relationships from 1,112 documents using the bidirectional network with the revised loss. They give 82.57% as the extraction accuracy for this example. That number belongs to this collection of documents and the reported text extraction exercise. The P value of 82.85% belongs to the comparative experiment. The paper presents the two as separate results and does not specify the relationship between the documents used for the category example and the comparative training and test collections.
The same category also supplies examples of what the other two routes contribute. Using the website’s classification system, the authors report more than 4K classification relationships. Using the party sections, they report more than 12K pieces of attribute information. The former count covers links obtained from the organized categories. The latter concerns attribute material collected from the pages’ designated sections. The figure of more than 36,000 refers to attribute relationships extracted from document prose in the category example. Each figure marks a different reported extraction output, and the paper leaves overlap among outputs and the final count of distinct stored triples unspecified.
The graph fragment illustrates what this combination looks like after storage. Classification edges place cases within an organized collection, while attribute edges lead to details of individual cases. The authors show that those relationships can be represented together in Neo4j and describe edits to graph nodes and edges as a way to reflect future changes in the documents. The result is a demonstration of graph construction for a named case category. Its counts describe the amount of material obtained through the constituent procedures, and the accuracy figures characterize the reported prose extraction exercises.
What the ablations show
What changes when the loss changes
The closest comparison to an ablation is the plain Bi-GRU against the Bi-GRU with the authors’ loss. The two rows use the same recurrent architecture as described in the paper, with the training objective as the distinguishing change. The plain network’s F₁ is 82.05 and the revised version’s is 83.32 on the attribute extraction comparison. The P and recall columns also favor the revised version. This comparison gives more direct evidence about the loss than the comparison with a CRF or a bidirectional long short-term memory network. It asks whether changing how training weights predictions is associated with better extraction while retaining the basic recurrent architecture.
The improvement is compatible with the authors’ explanation that difficult predictions benefit when confident, well-classified examples exert less influence. The evaluation observes the resulting extraction scores, while the explanation concerns what happens during parameter updates. The paper does not trace those updates, show learning curves for the alternative losses, or break the gains down by easy and difficult examples. The experiment therefore supports a better measured result with the changed objective. Faster or more stable convergence, and the distribution of the improvement across different kinds of predictions, remain unmeasured.
The exponent gives the proposal flexibility in principle, since it changes how strongly a low disagreement value reduces a sample’s contribution. The results contain a single row for the revised objective. There is no reported sweep over focus settings or comparison between sharing a focus setting and using different settings for correct and incorrect predictions. The paper demonstrates the performance of the reported configuration, leaving the sensitivity of that outcome to the focus parameter unresolved.
What the other comparisons can explain
The CRF and Bi-LSTM+CRF rows change several things together. They offer comparisons against other ways of labeling the same kind of data, but they do not isolate a gate, reverse processing, or the choice to make independent softmax decisions at word positions. In particular, the strongest comparator also processes context bidirectionally. It follows that the results can establish which system placed first in this test, while the specific contribution of seeing context in both directions would require a comparison between one-direction and two-direction variants. The paper gives the rationale for bidirectionality from the structure of text and the architecture, instead of a measured effect for that component alone.
The construction example offers a complementary kind of analysis. It shows the types and reported quantities of material obtained from categories, party sections and judgment prose. That illustrates why the authors gave these sources separate extraction routes. The numbers do not measure the marginal contribution of each source to a common graph task, since the sources supply different outputs and the paper supplies neither an overlap analysis nor a graph-level scoring procedure. The closest controlled evidence remains the ordinary-loss and revised-loss comparison on text extraction.
Limitations
The scope the authors set
The authors frame timelier updating as a motivation for their construction method. Their proposed route to timeliness is to repeat extraction as the court source grows and adjust nodes and edges as existing case information changes. In the conclusion, they identify further work on extraction for differently structured material from China Judgments Online. That work would complement the classification and attribute information in the existing graph. They also propose exploring knowledge management methods for other domains. These are the directions the authors state, and the evidence in the paper concerns the construction and experiments they carried out on the court website.
The authors also rely on the same source for navigation and for case information. They describe its classification system as credible and treat categories such as keywords, causes and document types as useful structured knowledge. Within that scope, the method can preserve the organization the source already supplies. Applying the approach in another domain would depend on whether the source offers a usable classification hierarchy, a recurring place for semi-structured attributes and labeled prose suitable for the text extraction route. The authors identify adaptation to other domains as future work.
What the extraction evaluation leaves open
The random split is described by its training-to-test proportion, with limited detail about the unit of assignment. This matters because sentences from the same judgment may share parties, subject matter and drafting patterns. If entire documents were held together, the test would address how well the extractor transfers to separate judgments under that split. If sentences were assigned independently, it could include test sentences from judgments also represented in training. The reported information leaves those interpretations open. The experiment also evaluates a random split, while the paper’s updating motivation raises a separate question about performance on newly published judgments.
The annotation defines a set of target attributes, yet the published result is aggregated across that set. The paper gives examples of the categories and identifies irrelevant words as a category. It leaves unspecified the distribution of labels, agreement among annotators and the way different labels contribute to the reported aggregates. Consequently the table cannot tell a reader whether the stronger overall result extends to a particular attribute such as legal provision or defendant. The paper’s explanation of the loss concerns confident and difficult predictions. A per-category analysis would address a different issue, namely whether the revised loss helps categories with different frequencies or kinds of context.
The evaluation terminology also limits interpretation. The authors name P as accuracy and give its relationship to R through F₁. The report leaves the matching criterion for a successful extraction implicit. Depending on the level of evaluation, recognizing words within an attribute, extracting its complete span and attaching it to the right case are distinct successes. An aggregate score for the reported experiment supports a comparison among its rows. The exact unit scored, and how partial and complete attributes were treated, would determine what those percentages imply for the graph.
The test table supplies point values. Variability over random splits, training runs or alternative focus settings is unreported. This matters particularly when reading the ordering of the revised Bi-GRU and Bi-LSTM+CRF, whose reported scores are close. The result establishes their ordering in this comparison. Stability under reruns would require further measurements. The paper also leaves implementation choices such as the embedding configuration, the recurrent dimensions and key training details unspecified. The formulas and pipeline explain the design, while those missing settings limit exact reproduction.
There is a related ambiguity in the loss notation. The paper defines disagreement using a category index, describes predictions for words and writes the full objective with a summation indexed over sentences. An implementation needs a rule that ties those levels together. For instance, a weight attached to a whole classification decision must be derived from the class scores available at that decision. The displayed equations give the ingredients and the intended emphasis. They do not fully determine how the weights and ordinary losses are aggregated across the words and sentences of the training set.
What the graph demonstration leaves open
The graph fragment and extraction counts establish that material from the website can be organized into classification and attribute relationships. Checking the assembled graph would involve judging whether those links are correct together. A classification link can accurately follow the website while an attribute from prose is attached to the wrong case or role. Conversely, an attribute can be extracted correctly even when the case’s position in the graph is incomplete. The reported evaluation of prose extraction does not make those graph-level distinctions or give a common score for all three routes.
The paper gives few details about turning token predictions into graph entries. A role can span multiple words, and an attribute value may occur in both a designated section and the judgment prose. Construction then depends on deciding which words make up a value, how to link that value to the case, and how to handle repeated or differing reports of the same attribute. The authors describe the input sources, the classification procedure and the stored examples. The rules for assembling spans and reconciling source outputs remain unspecified. The reported counts therefore support statements about extracted material by route, while the number of distinct graph facts and the treatment of conflicting values remain open.
The particular case category used for the construction illustrates the approach at a scale larger than the fragment shown. Its relationship counts and reported extraction accuracy describe illegal preservation compensation cases. The source as a whole contains a much larger collection spanning other classifications. The demonstration leaves coverage across that collection, accuracy for categories with different language and party structures, and the completeness of the category traversal unmeasured.
Finally, the authors describe how an evolving graph could accommodate additions and revisions. An operational evaluation of that claim would need observations over successive versions of the source, including how soon new cases become available in the graph and whether revisions to existing cases are reflected correctly. The paper instead establishes procedures for gathering data and representing the results in a form that supports graph edits. It supplies no timing or longitudinal measurements. Timeliness is a stated design objective and a proposed property of the update process.
What came after
The paper’s conclusion sets out a continuation of the project. The authors plan to develop extraction procedures for additional material from China Judgments Online and to investigate knowledge management beyond the legal domain. Those plans concern expanding the range of evidence the graph can capture and testing whether the construction approach can be adapted to other sources. No subsequent citing studies are documented here, so there is no basis for saying which parts of the approach later researchers adopted, revised or evaluated.
Cite
Cite as Biao Dong*, Haoze Yu and Haisheng Li. 2021. A Knowledge Graph Construction Approach for Legal Domain. Tehnicki vjesnik - Technical Gazette.
@inproceedings{biao2021knowledge,
title = {{A Knowledge Graph Construction Approach for Legal Domain}},
author = {Biao Dong*, Haoze Yu and Haisheng Li},
booktitle = {Tehnicki vjesnik - Technical Gazette},
year = {2021},
doi = {10.17559/tv-20201119084338},
url = {https://doi.org/10.17559/tv-20201119084338}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/biao-2021-knowledge-graph-construction-approach-legal/