---
title: "Thunder-DeID — paper by Hahm et al. (2025)"
description: "Thunder-DeID learns to find and classify sensitive details in Korean court judgments using annotated public rulings and realistic replacement values."
canonical: "https://research.elamur.ai/free/en/papers/hahm-2025-thunder-deid-accurate-efficient-de/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/hahm-2025-thunder-deid-accurate-efficient-de/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2025](https://md.research.elamur.ai/free/en/papers/2025/) / Thunder-DeID: Accurate and Efficient De-identification Framework for Korean Court Judgments

# Thunder-DeID: Accurate and Efficient De-identification Framework for Korean Court Judgments

Paper · 2025 · Sungeun Hahm, Heejin Kim, Gyuseong Lee et al.

**Authors:** Sungeun Hahm, Heejin Kim, [Gyuseong Lee](https://md.research.elamur.ai/free/en/authors/gyuseong-lee/), Hyunji M. Park and [Jaejin Lee](https://md.research.elamur.ai/free/en/authors/jaejin-lee/) · **Year:** 2025 · **Venue:** Findings of the Association for Computational Linguistics: EMNLP 2025 · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**1** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W4416034772|W6891895666|W6979225639|W7106850399) · [Findings of the Association for Computational Linguistics: EMNLP 2025](https://aclanthology.org/volumes/2025.findings-emnlp/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2025.findings-emnlp.682/)
- [PDF](https://aclanthology.org/2025.findings-emnlp.682.pdf)
- [DOI 10.18653/v1/2025.findings-emnlp.682](https://doi.org/10.18653/v1/2025.findings-emnlp.682)
- [OpenAlex](https://openalex.org/W4416034772)

Citations: OpenAlex, 2026-10-14.

## Summary

Publishing a court judgment lets readers see what a court decided and how it reached its decision. The same document can reveal the names, addresses, workplaces, or other details of people involved in the case. South Korea requires courts to de-identify judgments before publication, and the authors describe a review process in which manual work delays release. Thunder-DeID tackles the part of that process that calls for finding sensitive text and deciding what kind of information it contains. A name can become a letter, for instance, while an account number calls for wording that tells the reader what was omitted. The task falls within [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/).

The researchers started with 6,700 publicly available judgments that courts had already anonymized. Annotators located the marks left by that process, such as a letter in place of a name, and inferred what each mark represented from the surrounding text. They annotated 48,306 mentions and organized the resulting labels into a hierarchy that distinguishes direct identifiers from details that can identify someone through their connection to a case. The released dataset pairs the annotated judgments with lists of replacement values. Inserting those values creates examples with readable names, addresses, and other identifiers while preserving the location and category of each annotation.

Thunder-DeID uses Korean morphological analysis to separate elements such as a name and the grammatical particle attached to it. It then divides the text into reusable units and predicts a label for each one. The authors compare training on a fixed set of replacement values with training that resamples those values every epoch. On the held-out judgments with inserted values, the strongest binary token-level F1 was 0.9808 for Thunder-DeID-1.5B. The strongest token-level micro F1, which requires the specific category to be correct, was 0.9105 for Thunder-DeID-800M. Both results came from training with fresh replacements each epoch and exceeded the corresponding scores of Polyglot-Ko and EXAONE-3.5.

The results measure how well the system finds and labels known target text in reconstructed judgments. The originals were unavailable under the rules that govern access to court records, so performance on the full, unedited judgments that court staff handle remains unmeasured. The case-type results also qualify the overall ranking. In compensation-for-damage cases, for example, Polyglot-Ko assigned the specific labels more accurately by micro F1 than any Thunder-DeID variant under either replacement schedule.

## Deep dive: Thunder-DeID: Accurate and Efficient De-identification Framework for Korean Court Judgments

Thunder-DeID learns to find and classify sensitive details in Korean court judgments using annotated public rulings and realistic replacement values. · about 34 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a public judgment needs to preserve

A judgment records the facts the court considered and the reasons those facts matter to the outcome. Its public version still needs to make that reasoning intelligible. A reader may need to know that a defendant worked at a restaurant or that a payment went to a bank account. In the examples discussed by the authors, the restaurant’s distinctive name and the digits of the account can be removed while the occupational and financial facts remain. That is the practical problem Thunder-DeID addresses within [legal AI](https://md.research.elamur.ai/free/en/topics/legal-ai/).

South Korean courts already have procedures for making these decisions. The National Court Administration combines manual and automatic work across four stages of processing and review. The authors describe the reliance on manual work as a bottleneck and identify it as a factor in the limited public availability of judgments. They also cite administrative reports covering 2019 to 2025 that put the existing automatic tool’s overall accuracy at 8 to 15%. Those figures characterize the process that motivated the study. The authors use a separate set of token-based measures for their own experiments.

The rules also determine how much information can be kept. Lower-level address details, including districts and streets, can identify the place of an incident or the residence of a party. At the same time, location can matter to a judgment because it helps establish which court has jurisdiction. A date can play a similar double role. It can be part of the account of events and, in context, help identify the people involved. The amount of identifying information conveyed by an expression depends partly on what the rest of the judgment says.

The paper illustrates that dependence with a correctional institution. Names of public bodies generally remain visible under the practice the authors describe. In their example, the defendant and the victim worked together at the institution, and the judgment also described their team. Its name therefore helped narrow down who they were. The public copy could retain the fact that the parties were colleagues at a correctional institution while masking its distinctive name. Recognizing the text as the name of a public body would address only part of the task. The relationship between the body and the people in the case explains the decision to mask it.

The same issue arises when the judgment concerns people whose roles are difficult to infer from the public copy. The authors discuss fraud cases with many victims and multiple participants who carried out different parts of the operation. In cases involving accomplices, a ruling may also identify witnesses, appraisers, or forensic experts. Protecting third parties matters because disclosure can expose them to retaliation. The text the annotators receive may already refer to these people by letters, and a letter gives little indication of the person’s role. The annotator has to work from the narrative around it.

#### How earlier work approached de-identification

The paper traces much of the technical literature to medical records. In its account of US practice, the Safe Harbor approach specifies 18 identifiers for removal, while Expert Determination uses statistical or scientific judgment to assess the risk that someone can be identified. The authors also mention European data protection law as a framework for handling personal information in medical data. These examples introduce a distinction that matters for court records as well. A policy can define categories that typically require attention, while individual cases still call for a decision about what the remaining details reveal.

Early medical systems used rules to identify text to remove. The work reviewed by the authors then moved toward systems trained on labeled examples, including recurrent networks paired with conditional random fields and later BERT-based recognition. More recent clinical work tested whether a general-purpose system could perform the task from instructions alone or with a few examples. The paper cites [Evaluating GPT Models for Clinical Note De-identification](https://md.research.elamur.ai/free/en/papers/altalla-2025-evaluating-gpt-models-clinical-note/).

Work on court records was already responding to practical demand for automation. The authors describe manual review as a cause of publication delays in Italy and Uruguay. They present the volume of Indian court decisions as a reason to automate and describe Swiss work as supporting the staff and legal experts who anonymize decisions. They also discuss work on Arabic judgments. These studies established that automatic detection could help with legal documents. Each evaluated the problem under its own language, annotation scheme, and publication practice.

Thunder-DeID’s authors give special attention to what should happen after a phrase has been found. A system might mark an account number and a person’s name as sensitive, satisfying the detection requirement in both cases. Producing a usable public judgment calls for different substitutions. In the paper’s account of prior legal research, most of the work focuses on recognition, with less discussion of the later editing step. The authors note that the Uruguayan study addresses it briefly. They connect this gap to the risk of removing more text than the rules require or applying substitutions that make the judgment harder to understand.

#### Why the system assigns labels to existing text

The authors examine examples in which a prompted system was asked to return an anonymized judgment. Some outputs changed a verb describing a bank deposit into one describing a wire transfer. Others omitted the qualification that a repayment occurred on time, shortened details about a fraud into a broad account of what the defendant did, or used the same letter for distinct financial institutions. In another example, the output changed the number of people involved. These are different failure modes, but all affect how the public version can be read as a legal record.

The examples motivate an interface that marks the text already there. A token is a unit into which the system divides the document. Thunder-DeID predicts a category for each token, including a category for leaving it outside an identifying span. Edits can then be confined to the selected text. The effect of that design is easiest to see when a number is part of a finding of fact. If classified as ordinary text, it can pass through exactly as written, and the classifier has no operation that substitutes another number. If wrongly selected, it can still be lost through masking. This is the paper’s use of [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/).

Use of a hosted service also raises a separate issue in the setting the authors study. They describe Korean government restrictions on sending sensitive internal information and personal data to services such as ChatGPT. The paper uses assistance from ChatGPT in a distinct part of dataset preparation, where the task is to suggest additional categories. The classifier itself learns from text paired with token labels. That distinction matters because suggesting categories and processing the original text of a judgment involve different inputs.

### The method, step by step

#### From public rulings to marked examples

The authors begin with a source that court officials have already edited. A published ruling can say that defendant A made a payment to B, for example, without revealing either party’s name. An annotator can often determine that A and B represent names because of the surrounding grammar and the roles described in the sentence. That inference supplies a category and a location in the text. A replacement list can then supply concrete names for the classifier to encounter during training. The court record supplies the prose and relationships, while the replacement lists supply the visible forms of the identifiers.

From public judgments to token-level de-identification The steps in order.

The judgments came from the Korean Ministry of Government Legislation, AI-hub, and a dataset published by Hwang and colleagues. The researchers removed duplicate judgments across sources and assembled a collection of 3,000 civil, 3,000 criminal, and 700 administrative documents. They concentrated on courts of first instance. In the Korean setting described in the paper, those courts devote substantial space to establishing facts from investigations and evidence. That part of a judgment can describe people, places, and events in enough detail to supply examples of both direct and contextual identifiers.

The civil material includes compensation for damage, disputes over security deposits, claims for payment of purchase prices, and eviction. The criminal material covers bodily injury, violence, sexual misconduct, property theft and deception, and drunk driving. Administrative litigation forms the remaining domain. The inclusion of different proceedings lets the authors observe a range of masking decisions. It also gives the category scheme examples that would be easy to overlook in a collection built entirely from judgments about a single kind of dispute.

The annotation process began with categories drawn from law and court practice. Annotators used these to label placeholders in the public documents. The authors then reviewed the assignments for consistency, used the cases that were difficult to fit into the initial categories to refine the scheme, and had annotators revise their work. Disagreements and uncertain cases were resolved after those revisions. The label inventory was thus shaped by the evidence the annotators encountered as well as the rules they had started from. This is an instance of [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

Seventeen external annotators contributed, and the authors took part in the annotation. The paper describes the annotators as fluent in Korean and familiar with natural language processing. Their initial training covered the stages of the project and how Korean courts decide what to mask and how to represent it. That preparation mattered because the same printed letter can stand in for many kinds of information. Grammatical cues may narrow the possibilities, while the facts of the case establish whether the replacement denotes a place, a person, an organization, or something else.

A resident registration number shows how the team distinguishes a visible placeholder from the information it represents. In the paper’s example, the public judgment uses a letter in place of the defendant’s name and indicates that a registration number has been removed. An ordinal distinguishes the omitted number from other numbers in the document. The annotators use separate categories for the name and the registration number. They bracket the relevant positions with category markers so that later processing can locate them. The label describes the missing identifier, even where the public version shows only a letter or an omission marker.

#### How the categories and boundaries work

The hierarchy begins with direct identifiers and quasi-identifiers. In the paper’s scheme, names, birth information, email addresses, and resident registration numbers appear on the direct side. Quasi-identifiers include things like incident-related locations, work details, institutions, and dates that can help establish someone’s identity in context. The hierarchy branches into 16 subcategories and 80 granular categories, with 729 labels used for annotation. A granular category can group several closely related labels. It gives the annotators somewhere to place a new distinction while preserving its relation to the larger class.

Some labels are much more specific than the categories used in everyday discussion of privacy. A business mention may refer to a restaurant, a manufacturer, a lender, or one of several specialized kinds of shop. Location labels include distinctions among parts of an address and various kinds of incident sites. The scheme also covers references to online services and their content. These distinctions reflect what the annotators found in the judgments. They allow the same annotation process to represent a highly structured identifier such as a registration number and a less predictable name such as the title of an online post.

The published rules and the annotation hierarchy play different roles. The rules give court officials grounds for deciding whether contextual information identifies someone. The hierarchy gives annotators a repeatable vocabulary for describing the decisions they see in the collection. For example, the category for a public institution can be used where the particular institution was masked in a judgment. The existence of that category leaves room for a judgment in which the same kind of name remains public. This is how the contextual decision enters the training record. The system sees instances in sentences with identifying spans marked and other text left outside those spans.

The annotators also need to choose exact boundaries. In one example, the distinctive part of a diner’s name can be masked while the ordinary word that tells readers it is a diner stays visible. The generic descriptor still conveys something about where the defendant worked. In another example, a restaurant is named by a brand that has no separate functional descriptor in the sentence. The public copy substitutes a letter for the whole brand name, and the annotators label that letter as standing for a restaurant. The semantic type is similar across the examples, while the boundaries follow the form of the mention.

This boundary decision frequently meets a grammatical boundary. A Korean particle can attach directly to a name and mark its role in the sentence. If the name is replaced by a letter, the particle can still carry that grammatical information in the public copy. The classification system therefore needs a representation in which the name and particle are separately addressable. The paper treats that problem as part of preparing examples and as part of recognizing identifying text. It motivates the use of Korean [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/).

#### How the replacement lists are built

The dataset has an annotated judgment component and an inventory of values indexed by annotation label. In the judgment component, the type and boundaries of a masked mention are explicit. In the inventory, the authors collect strings that can occupy the annotated positions. Together they let the researchers recover a supervised example from a judgment that had already been edited, with the original confidential values still unavailable.

For 691 of the 729 labels, the authors used manual collection. They chose entries from government licensing databases and public data portals, and they looked to more specialized sources where the categories called for them. Exhibition and convention venues, vessel names, and recycling businesses are examples of categories for which those sources helped. The paper gives an average of at least 100 items per label as a collection goal. That figure describes the intended breadth of the inventories. The lists are organized by kind of mention, so the available entries and the amount of judicial context can vary independently.

Rule-based generation covers values that follow recognizable forms. The authors use it to produce examples of Korean names, addresses, and numerical identifiers such as phone and account numbers. An inventory entry may therefore be a name found in an open source or a string assembled for training. In either case, once inserted into a judgment it represents the kind of value suppressed at that position. The inserted value supplies an example of the appropriate form, with the identity of the original person or organization still unknown.

The authors also address categories in the hierarchy that contain relatively few labels. They select underrepresented granular categories and ask a system such as ChatGPT to suggest additional label names. They then describe manually preparing example mentions for those labels. Sociocultural events are their example. If few kinds of events occur among the annotated places in the corpus, additional fine-grained labels can make the inventory broader. This procedure changes the types the authors can describe. Resampling a value for an existing annotation, by comparison, varies the expression that appears at a position where the type is already established.

#### How the system separates names from surrounding text

The custom tokenizer combines Mecab-ko with byte pair encoding, or BPE. Mecab-ko segments a Korean expression into grammatical units using a dictionary. In the paper’s example, a personal name has the subject particle 이 attached to it. The analyzer can isolate the name from the particle, allowing the replacement or classification to target the name and keep the grammatical ending visible. This is particularly useful when the original judgment has no annotation marks to indicate where the identifier stops.

A dictionary can have difficulty with unusual names and legal terms. BPE complements it by building a vocabulary from recurring character sequences. A word that is absent as a whole can be represented using smaller units that occur in the vocabulary. This gives the system a way to handle unseen written forms and gives the classifier units to which it can assign labels. The paper draws this part of the method from [Neural Machine Translation of Rare Words with Subword Units](https://md.research.elamur.ai/free/en/papers/sennrich-2016-neural-machine-translation-rare-words/).

The paper describes fitting the tokenizer on one million sampled sentences and identifies a bilingual web corpus as a source for tokenizer training and pretraining. In processing the annotated judgments, it extends the tokenizer with 1,458 reserved tokens for the opening and closing marks associated with 729 labels. Giving each marker its own token ID lets the replacement procedure locate the exact annotated span. The markers help separate a placeholder from an adjacent particle before the placeholder is removed. The eventual classification examples contain the replacement tokens, with the marker information transferred to the target labels.

The worked example uses L as the placeholder for a Korean name next to the word for defendant and a particle. After segmentation, the opening marker has ID 128003, L has ID 82, and the closing marker has ID 128004. The replacement procedure scans until it finds the opening marker and its matching end marker. It removes the marked segment and puts a tokenized name from the appropriate list in its place. In this example, the replacement name takes the token IDs 562 and 358. The following particle, with ID 39, stays in the input and receives the outside label.

The change in length is part of what the procedure has to handle. A short placeholder can become a name or address made up of several tokens. The system creates a corresponding target position for each inserted token and assigns the same entity type across the span. The paper calls the input sequence X and the aligned target sequence Y. An input position occupied by part of the inserted name has the Korean-name label at that position in Y. Ordinary prose and the particle have O, the outside label. The ID of an input token identifies a piece of text. Its matching entry in Y tells the classifier what to predict about that piece in the current sentence.

#### How training varies what the classifier sees

In Single Replacement, the researchers sample the values once and keep the resulting versions of the judgments fixed through fine-tuning. In Per-Epoch Entity Replacement, they draw fresh values from the lists at each epoch, a pass through the training documents. A position known to represent a personal name can therefore show different name forms as training progresses. The surrounding account of the case remains the same. This makes value variation possible even when the supply of different judgments is limited.

The authors describe the architecture as based on DeBERTa-v3. The Thunder-DeID variants have 370M, 800M, and 1.5B parameters according to the architecture description. The 370M and 800M variants each have a vocabulary of 32,000, while the 1.5B variant uses 128,000. The paper explains that smaller vocabularies keep the table of learned token representations from occupying a disproportionate share of the smaller systems. The variants also differ in hidden width, depth, and the number of attention heads, so the parameter labels summarize several architectural differences. The starting architecture is [DeBERTaV3](https://md.research.elamur.ai/free/en/papers/he-2021-debertav3-improving-deberta-using-electra/).

The researchers pretrain the Thunder-DeID variants from scratch on Korean and English web text. The 370M variant uses 14 billion tokens, split into 7 billion Korean and 7 billion English tokens. The 800M variant uses 30 billion, with 15 billion in each language. The 1.5B variant trains on the full 60 billion, comprising 22 billion Korean and 38 billion English tokens. Initial training uses sequences of up to 512 tokens. To prepare for longer inputs, a later training stage uses 2 million tokens and caps sequence length at 2048.

The authors also change the placement of layer normalization, which adjusts the scale of representations passed through the network. They apply it before the transformations in a layer. They report that normalization after those transformations failed to converge for larger variants, while the earlier placement converged under the same settings. The paper reports AdamW optimization and mixed precision for training. Its prose and configuration table differ on some optimizer settings, which matters when reconstructing the exact training recipe. AdamW is associated with [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/).

After pretraining, the authors train the system on the task of assigning the aligned labels in Y. Thunder-DeID and the comparison systems are trained for 30 epochs on the de-identification dataset. The same validation data are retained while replacements in the training set change. The fine-tuning description caps input at 2048 tokens and states that text beyond the cap is removed from the end. As a result, the classifier receives the beginning of a long judgment under this setup. Adapting a pretrained system to a supervised task in this way is [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

#### How the scores are defined

The paper first describes precision and recall for a target label. Precision looks at the tokens assigned the label and asks how many received it correctly. Recall looks at the tokens that should receive the label and asks how many the system found. In de-identification, an incorrect positive decision can remove useful text, while a missed positive decision can leave sensitive material visible. Reporting both measures lets the reader see which kind of error contributes to an F1 result.

```
Precision = TP / (TP + FP)
```

Precision is the share of predictions for the target label that are correct. TP counts true positives, where the predicted label matches the reference. FP counts false positives, where the system assigns the target label to tokens that belong elsewhere. The slash means division, and the parentheses group the counts in the denominator.

```
Recall = TP / (TP + FN)
```

Recall is the share of reference tokens for the target label that are found. TP again counts the correct predictions for that label. FN counts false negatives, where the reference has the target label and the prediction gives a different label. The denominator counts all tokens that should receive the label.

For binary scoring, the authors group all entity labels together. A token contributes a true positive if it needs de-identification and the prediction marks it for de-identification, even when the particular entity label is wrong. This is the scoring decision that makes binary F1 a measure of where the system would edit.

```
Binary Precision = TPᵦᵢₙ / (TPᵦᵢₙ + FPᵦᵢₙ)
```

Binary Precision is the share of tokens flagged for de-identification that were also flagged in the reference. The subscript bin indicates pooled binary counts. TPᵦᵢₙ counts tokens marked as sensitive by both the system and the reference. FPᵦᵢₙ counts reference outside tokens flagged by the system.

```
Binary Recall = TPᵦᵢₙ / (TPᵦᵢₙ + FNᵦᵢₙ)
```

Binary Recall is the share of reference sensitive tokens the system flags. TPᵦᵢₙ again counts agreement on marking a token for de-identification. FNᵦᵢₙ counts sensitive tokens that the system assigns to the outside category.

```
Binary Token-Level F1 = 2 · Binary Precision · Binary Recall / (Binary Precision + Binary Recall)
```

Binary Token-Level F1 is the harmonic mean of Binary Precision and Binary Recall. The middle dot denotes multiplication, and 2 is the factor in the F1 calculation. The denominator adds the two binary measures. Because the numerator depends on both, weakness in either precision or recall lowers the combined score.

The second evaluation uses the specific label of each token. Suppose a token within an account number is predicted to be part of a phone number. It counts as a successful detection in binary scoring. Here it contributes a false positive for the phone-number label and a false negative for the account-number label. That distinction is important when a later step chooses wording that tells the reader what was removed.

```
Micro Precision = (∑ c∈C TP꜀) / (∑ c∈C (TP꜀ + FP꜀))
```

Micro Precision is the fraction of predicted entity labels that match the reference after pooling the counts. C is the set of entity labels, excluding the outside label. The symbol c denotes a label in C, written c∈C, and ∑ adds the specified counts over those labels. TP꜀ counts correct predictions of c and FP꜀ counts incorrect assignments of c.

```
Micro Recall = (∑ c∈C TP꜀) / (∑ c∈C (TP꜀ + FN꜀))
```

Micro Recall is the fraction of reference entity labels that the system predicts correctly after pooling. C, c, ∈, and ∑ have the same meanings as in Micro Precision. TP꜀ counts correct predictions for label c. FN꜀ counts tokens whose reference label is c and whose prediction is a different label.

```
Token-Level Micro F1 = 2 · Micro Precision · Micro Recall / (Micro Precision + Micro Recall)
```

Token-Level Micro F1 combines Micro Precision and Micro Recall as their harmonic mean. The factor 2 and the multiplication dot work as in binary F1. Here the component scores come from counts that require the exact label. Pooling those counts gives labels with more token occurrences more influence on the reported result.

### Experiments and results

#### What the systems saw in training and testing

The authors report a split of 80% for training, 10% for validation, and 10% for testing. The training set contains 5,361 judgments, with 2,400 civil, 2,401 criminal, and 560 administrative documents. The validation set contains 668 judgments, split into 300 civil, 298 criminal, and 70 administrative documents. The test set contains 671, split into 300 civil, 301 criminal, and 70 administrative documents. Those are document counts. The scoring units are tokens from the labeled examples prepared from the documents.

The distinction between a held-out judgment and an inserted identifier matters here. A test document supplies legal language and an arrangement of masked mentions that are held out of training. The visible identifiers at the annotated positions are supplied through replacement. A system is therefore asked to recognize and classify values in held-out legal contexts with known target positions. The meaning of the result depends on that construction, since the authentic identifiers originally occupying those positions were unavailable.

The comparison systems are Polyglot-Ko, with 1.3B parameters, and EXAONE-3.5, with 2.4B. Both are Korean-specialized decoder architectures, and both are fine-tuned for the same labeling task under the fixed and resampled replacement schedules. This compares complete systems that can be trained from the annotated judgments. The paper uses **Exaone** in the results tables and **EXAONE-3.5** in its description of the baseline. The earlier work for the other baseline is the [Polyglot-Ko technical report](https://md.research.elamur.ai/free/en/papers/ko-2023-technical-report-polyglot-ko-open/).

The authors average the main table’s scores over runs with random seeds 1200, 1203, and 1205. These seeds specify the random settings used for repeated runs. The averages provide the basis for comparing systems and replacement schedules. In particular, they put the focus on the pattern across the reported runs when the strongest configurations give close average scores. The tables provide the averages for precision and recall alongside F1 so the two sources of error can be read separately.

#### Finding the text that needs attention

Under per-epoch replacement, the best overall binary F1 on the court-judgment test set comes from Thunder-DeID-1.5B, at 0.9808. Thunder-DeID-800M is close at 0.9791. The Polyglot-Ko and EXAONE-3.5 baselines score 0.9701 and 0.9677, respectively. The smallest Thunder-DeID variant scores 0.9654. Its position is worth noting because the strongest Thunder-DeID result and the performance of the full family are different statements. The results tables call the smallest variant 360M, while the architecture and training descriptions call it 370M. The charts use the architecture designation.

Binary token-level F1 on the Korean court-judgment test set with per-epoch replacement The largest Thunder-DeID variant leads on detection, followed by the middle variant.

**The numbers**

| System or setting | Binary token-level F1 |
| --- | --- |
| Thunder-DeID-370M | 0.9654 |
| EXAONE-3.5 | 0.9677 |
| Polyglot-Ko | 0.9701 |
| Thunder-DeID-800M | 0.9791 |
| Thunder-DeID-1.5B (this paper) | 0.9808 |

The per-epoch result for Thunder-DeID-1.5B combines binary precision of 0.9755 and binary recall of 0.9862. For Thunder-DeID-800M under the same schedule, those figures are 0.9757 and 0.9826. The larger variant leads in binary F1 with higher recall and slightly lower precision than the middle variant. In terms of the classification task, it picks up a larger share of the marked sensitive tokens, while the share of its flags that match the reference is slightly smaller.

With single replacement, Thunder-DeID-800M leads the aggregate binary F1 comparison at 0.9776. Thunder-DeID-1.5B reaches 0.9769. The corresponding scores are 0.9669 for Polyglot-Ko, 0.9656 for EXAONE-3.5, and 0.9509 for the smallest Thunder-DeID variant. The largest variant’s binary precision is 0.9855 and its recall is 0.9683 in this setting. The same variant’s stronger binary F1 under per-epoch training comes with a change in the balance between these measures, as well as a change in rank.

Binary F1 can credit a useful first decision even where the system would choose the wrong replacement category. A sensitive number may be correctly flagged while being mislabeled as a phone number, for example. Detecting it is still useful for screening. If the label is later used to write an omission notice, the output could describe the wrong kind of number. The finer score measures how frequently the classifier supplies that additional information correctly.

#### Assigning the category needed for replacement

Under per-epoch replacement, Thunder-DeID-800M has the best overall token-level micro F1, 0.9105. The 1.5B variant gives 0.9071. The smallest variant reaches 0.8871, ahead of Polyglot-Ko at 0.8765 and EXAONE-3.5 at 0.8752. This is the metric on which all Thunder-DeID variants beat both baselines under the resampled schedule. It is also the result that supports the authors’ claim that the system can discriminate among many fine-grained labels as well as identify positions that require editing.

Token-level micro F1 on the Korean court-judgment test set with per-epoch replacement The middle Thunder-DeID variant leads when predictions must identify the specific entity type.

**The numbers**

| System or setting | Token-level micro F1 |
| --- | --- |
| EXAONE-3.5 | 0.8752 |
| Polyglot-Ko | 0.8765 |
| Thunder-DeID-370M | 0.8871 |
| Thunder-DeID-1.5B | 0.9071 |
| Thunder-DeID-800M (this paper) | 0.9105 |

The precision and recall for the middle variant’s per-epoch typed result are 0.9073 and 0.9137, respectively. The largest variant has typed precision of 0.9021 and recall of 0.9120 in the same setting. Under single replacement, the middle variant again leads on the typed measure with F1 of 0.9090. The largest scores 0.9011. Polyglot-Ko reaches 0.8723, EXAONE-3.5 reaches 0.8679, and the smallest Thunder-DeID variant reaches 0.8660. For the smallest variant, the training schedule makes a difference to whether it surpasses those baselines on exact label assignment.

An application that uses the category to produce a public version has a reason to consider both results. The binary measure reflects which tokens would be selected for removal, including selections made with the wrong category. The typed measure asks whether the editing stage could use the predicted category to choose the appropriate wording. The overall lead of the largest variant on the former and of the middle variant on the latter shows that the preferred variant depends on which decision is being assessed.

The administrative accuracy figures that motivated the paper have a different basis. The authors cite 8 to 15% as the overall accuracy reported for the judiciary’s existing tool. The controlled baseline scores presented here come from systems trained and tested on the authors’ constructed corpus. Those scores support a comparison with Polyglot-Ko and EXAONE-3.5 on that corpus. A direct estimate of improvement over the deployed tool would require the systems to process the same material under the same scoring rule.

#### How results differ by case type

The authors give precision, recall, and F1 by type of proceeding. The subgroup scores expose where the aggregate rankings hold and where they change. One example is compensation for damage. Under per-epoch replacement, Thunder-DeID-1.5B reaches binary token-level F1 of 0.9843, compared with Polyglot-Ko’s 0.9732. On the typed measure in that same case group and schedule, the ranking reverses. Polyglot-Ko reaches micro F1 of 0.8730, and Thunder-DeID-1.5B reaches 0.8179. Thunder-DeID-800M reaches 0.8159. The specialized systems are comparatively strong at locating sensitive tokens there, while the baseline is stronger when the exact labels determine success.

Other groups show how the strongest Thunder-DeID variant changes with what the judgment is about. For per-epoch training on bodily-injury judgments, Thunder-DeID-1.5B reaches 0.9532 typed micro F1, compared with 0.9517 for Thunder-DeID-800M. In fraud judgments the middle variant reaches 0.9397 on the typed measure, compared with 0.9225 for the largest variant. On binary F1 for fraud the largest variant leads the middle one, with 0.9873 compared with 0.9841. Even within a domain, a ranking based on whether the system finds an identifier can differ from one based on how the system categorizes it.

Administrative litigation shows both systems doing well on exact labels under per-epoch replacement. Thunder-DeID-800M records typed micro F1 of 0.9377 and Thunder-DeID-1.5B records 0.9372. The latter has higher typed recall, at 0.9448 compared with 0.9384, while the former has higher typed precision, at 0.9372 compared with 0.9297. These subgroup results make the paper’s aggregate leadership claims more specific. They show strong performance across several kinds of cases, with variation in the balance between extra flags, missed tokens, and wrong categories.

### What the ablations show

#### Fresh values are useful even with the same judgments

The main controlled comparison changes when the training examples are filled with replacement values. In one setting, each annotated judgment receives a set of substitutions that stays fixed. In the other, the classifier sees fresh values at the same annotated positions as the epochs progress. The authors use the same training task and run both schedules for each of the Thunder-DeID variants and for each baseline. The comparison tests whether repeated exposure to different written forms helps in the document contexts the researchers already have.

All systems improve on both reported aggregate F1 measures with per-epoch replacement. The smallest Thunder-DeID variant moves from 0.9509 to 0.9654 in binary token-level F1 and from 0.8660 to 0.8871 in typed token-level F1. Polyglot-Ko moves from 0.9669 to 0.9701 on the binary measure and from 0.8723 to 0.8765 on the typed measure. The fact that a Korean decoder baseline benefits as well makes the gain evidence for the data procedure across the systems in the experiment. It supports the authors’ explanation that changing the values broadens training exposure while preserving the context and the target type.

The precision and recall rows show how that benefit comes about. In the aggregate binary test for the smallest Thunder-DeID variant, precision goes from 0.9767 under single replacement to 0.9628 under per-epoch replacement. Recall moves from 0.9264 to 0.9679. The higher F1 reflects a greater share of sensitive tokens found, alongside more flags that fall on text outside the target spans. In the aggregate typed test for Thunder-DeID-800M, precision goes from 0.9099 to 0.9073, while recall goes from 0.9082 to 0.9137. Here too the new balance produces a higher F1. Exact precision and recall matter when judging the consequences for a public document, even when the headline score improves.

Subgroup comparisons give a further qualification. Thunder-DeID-1.5B’s binary F1 for administrative litigation is 0.9827 under single replacement and 0.9818 under per-epoch replacement. Its typed micro F1 for sexual misconduct is 0.8834 under single replacement and 0.8797 under per-epoch replacement. Thunder-DeID-800M’s typed micro F1 for violence is 0.9217 under single replacement and 0.9120 under per-epoch replacement. The paper’s general improvement is an aggregate finding, and the detailed scores show that some case groups and measures favor the fixed schedule.

Repeated substitutions leave the event descriptions, roles, and other unmarked context largely fixed. So the comparison gives evidence about variation in the values placed in familiar kinds of contexts. A workplace name can take several written forms in these examples, but each resampling of a particular judgment still relates that workplace to the same people and events. Additional kinds of cases would create a different source of variation. This distinction helps explain what the augmentation result establishes without taking it as evidence about adaptation to unfamiliar legal scenarios.

#### Size and the errors behind the average

The variant comparison gives a view of how detection and label assignment respond to the configurations the authors tried. Under per-epoch replacement, the largest variant leads on binary F1 and the middle one leads on typed micro F1. Under single replacement, the middle variant leads on both. The paper suggests that the middle variant may suit the amount of labeled material available and that the largest could overfit rare labels. In that explanation, overfitting would mean learning patterns tied too closely to the available examples to recover the right label as reliably on the test set.

This remains an interpretation of the rankings. The variants also differ in vocabulary size, layer configuration, and pretraining volume. Comparing their results therefore compares complete configurations, with parameter count only one part of the change. The case-type breakdown gives additional evidence that the middle variant’s aggregate typed lead can coexist with advantages for the largest variant in particular groups. The authors also suggest that more training data for rare labels or stronger regularization could change the ordering. Those suggestions are hypotheses about the source of the result.

The paper shows a rare-label error by describing a buffet restaurant assigned to the label for a machinery and equipment company. Both labels concern businesses, but they fall in different branches of the annotation scheme. This matters because the classifier can flag a business reference successfully while losing the distinction that the annotation was designed to preserve. A score pooled over all sensitive tokens can conceal how often errors of this sort occur for types with few examples.

A separate error concerns an entity that the reference labels as an unspecified product. The system instead treats it as an unspecified company. The authors connect this kind of confusion to examples where the published context made the exact category difficult for annotators to recover. The two cases illustrate different potential sources of poor fine-grained performance. A rare label can have few supervised examples, while a heavily masked judgment can provide weak evidence about what the label should be. Either issue can affect typed scoring even where the identifying span is correctly detected.

#### Which components the comparisons isolate

The normalization change is supported by a training observation. The authors report that the larger configurations converged with normalization before the layer transformations and failed to converge when it followed those transformations under the same settings. This comparison addresses whether training was viable. The paper gives no corresponding pair of test scores that would measure an F1 advantage attributable to the normalization placement.

The tokenization discussion explains why splitting a name from a particle is useful and works through an example where the category markers lead to the intended boundaries. The reported performance comparisons use the full Thunder-DeID pipeline. A separate test-set effect for Mecab-ko, for the special marker tokens, or for the extra labels suggested during augmentation remains unmeasured. The per-epoch comparison has a narrower interpretation because it changes a specific part of training for each system. The other design choices are supported by the examples and by results for the assembled framework.

The prompted de-identification examples show how an approach that generates revised prose can introduce edits outside the intended spans and merge distinct entities into the same placeholder. They give a reason to constrain the output to labels and use the original text for any public version. The paper presents these examples qualitatively. They document types of failures that arose, while the controlled numerical comparison is among systems fine-tuned to classify tokens in the reconstructed judgments.

### Limitations

#### Limits the authors state

The authors identify access to original judgments as the central limitation. The corpus consists of documents that courts had already anonymized and reviewed. The training strategy supplies replacement values, and the test has reference labels for the positions identified in those public documents. This lets the authors evaluate the system consistently on held-out cases. Performance on untouched judgments, where all of the original wording and identifying details would be present together, remains unknown. The authors propose developing more realistic synthetic judgments to expand the variety of data available for training and testing.

The authors also limit the scope of their evidence to the civil, criminal, and administrative case material they gathered. They expect some direct identifiers to have similar forms across legal disputes, and the varied label inventory gives the approach possible uses beyond the cases studied. Their expectation about transfer is distinct from an observed result. Quasi-identifiers can depend on facts and institutions that feature in one line of cases and are uncommon in another. How confidently the system handles those situations requires evaluation in the additional fields.

A sequence-length limit creates another practical constraint. The fine-tuning procedure keeps the beginning of an input and drops the end when it exceeds 2048 tokens. The authors identify particularly long civil and administrative judgments as cases where this may leave part of the document uncovered. Published court opinions can place identifying material throughout the text, and the token scores characterize the text represented in the evaluation. Performance at the beginning of a judgment cannot stand in for the supervision and processing needed at its end.

The paper also describes privacy safeguards in constructing the dataset. The authors say the underlying judgments were publicly available and already anonymized, that they used open materials for replacement lists, and that their procedures followed principles of Korean personal information protection law. The safeguards describe this experiment’s data sources. Processing original court documents would involve a different input and the constraints that motivated those choices in the first place.

#### What the experimental setup leaves open

The study starts with the marks that prior human anonymization left behind. An annotator can infer a label for a visible placeholder when enough surrounding text remains. The same approach has little evidence to work with where sensitive wording was deleted without a recoverable mark. It also takes the prior editing decisions as the starting point for identifying what to label. This makes agreement with the annotated public copies an observable outcome. The completeness of those earlier decisions, or of the resulting benchmark as a representation of original judgments, is a separate question.

Replacement produces realistic written forms in real legal prose, with limits on what the combination can reproduce. The list supplies candidate names and other values by category. In a real judgment, relationships among names, addresses, dates, workplaces, and institutions may themselves be what makes the people identifiable. Inserting plausible values establishes the positions and categories needed for supervised evaluation. The reported scores leave open how well the system can recognize a sensitive combination of facts that differs from the patterns reflected in the annotated cases.

The paper reports training and validation on distinct judgments and a test set of held-out judgments. It describes the split at document level. A separate assessment with every test replacement value held out from the training inventory is unspecified. Thus the evidence is about the reported test documents under the replacement procedure. Generalization to unseen forms drawn from different sources, or to rare values with unfamiliar spellings, is a further question even when the surrounding legal prose is recognizable.

The difference between token-level performance and successful anonymization of a whole case is particularly important. A partial miss on a multi-token name can reveal some of it. A judgment that contains numerous correctly labeled entities can still disclose an identifying detail. The reverse also matters. Marking an ordinary detail as sensitive can strip a fact from the reasoning even if all actual identifiers are masked. Precision, recall, and F1 account for such decisions as token counts. The paper leaves whole-document disclosure risk, complete-span recovery, and the readability of the final published version unmeasured.

The examples about replacement wording explain why a correct type is valuable. Yet the typed scores assess the classifier’s inputs to post-processing. The experiments give limited evidence on the production of consistent placeholder letters across repeated mentions or the way an edited judgment distinguishes several people with similar roles. The prompted examples show how distinct institutions can collapse into the same letter. Assessing whether a finished pipeline avoids that outcome would call for looking at the resulting document and checking the references through it.

Micro F1 also leaves coverage of the least frequent labels uncertain. The score pools tokens, so frequently occurring labels have a larger effect on it. A rare business type or unusual identifying detail could remain difficult while the aggregate score stays high. The subgroup tables help reveal variation by case type, and the error examples illustrate specific mistakes. The paper gives less evidence about reliability for every label in the hierarchy or about which mistakes would carry the greatest risk in a particular judgment.

The paper’s evidence about efficiency is strongest where it describes training and the administrative problem that motivates automation. It gives pretraining durations of 2 hours for the 370M variant, 9 hours for the 800M variant, and 19 hours for the 1.5B variant, each using 32 NVIDIA H100 80GB GPUs. These figures describe the authors’ training runs. Inference throughput on original court workloads, review time after automatic labeling, and time saved across the full publication process remain unmeasured. Those measures would be needed to connect the classification results to the delays described in the introduction.

Finally, some details needed for reproducing training vary within the paper. The architecture description uses 370M for the smallest variant, while the result tables use 360M. The optimizer coefficients in the training prose are 0.9 and 0.999, while the configuration table reports 0.9 and 0.98. For pretraining the larger variants, the prose gives a peak learning rate of 5e-5, while the table lists 7.5e-5. The results can be read as reported comparisons, with the precise settings behind those runs remaining uncertain where the descriptions differ.

### What came after

No subsequent work is documented as building on Thunder-DeID. The paper itself identifies more realistic synthetic judgments and evaluation across additional kinds of legal disputes as directions for future research. These are proposals from the authors. Evidence of a later implementation or evaluation remains unavailable.

## Cite

Cite as Sungeun Hahm, Heejin Kim, Gyuseong Lee, Hyunji M. Park and Jaejin Lee. 2025. Thunder-DeID: Accurate and Efficient De-identification Framework for Korean Court Judgments. Findings of the Association for Computational Linguistics: EMNLP 2025.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2025.findings-emnlp.682](https://doi.org/10.18653/v1/2025.findings-emnlp.682)

```bibtex
@inproceedings{hahm2025thunder,
  title = {{Thunder-DeID: Accurate and Efficient De-identification Framework for Korean Court Judgments}},
  author = {Sungeun Hahm, Heejin Kim, Gyuseong Lee, Hyunji M. Park and Jaejin Lee},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2025},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.682},
  url = {https://doi.org/10.18653/v1/2025.findings-emnlp.682}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
