Abstract
The Annals of the Joseon Dynasty (AJD) and the Diaries of the Royal Secretariat (DRS) represent 500 years of meticulously recorded history, yet much remains untranslated due to the complexity of archaic Hanja and physical document damage. This paper introduces a multi-task Transformer-based framework that simultaneously restores missing characters and translates text into modern Korean. By utilizing a shared encoder and massive historical corpora, the model achieves a BLEU score of 0.5410 and a restoration HITS@10 of 89.09%. This automated pipeline allowed for the translation of the remaining corpus in just five days, facilitating new discoveries in historical climatology and political science.
Introduction
The Joseon Dynasty records are among the most voluminous historical documents in the world, yet they remain largely inaccessible to modern readers. Written in Hanja—archaic Chinese characters adapted for the Korean language—these documents require specialized expertise to interpret. Furthermore, centuries of physical decay have left many records with missing or illegible characters. Human experts have translated only a small fraction of these works; at the current pace, completing the translation of the DRS alone would take several more decades.
Methodology
The researchers proposed a multi-task learning framework based on the Transformer architecture. Unlike sequential pipelines that treat restoration and translation as separate steps, this model integrates them into a single process to leverage linguistic synergies.
As shown in the architecture diagram, the system consists of three main components:
- Shared Encoder: Learns the contextual representations and "grammar" of Hanja from both paired and unpaired datasets.
- Restoration Encoder: Performs a "Cloze-style" task (Masked Language Modeling) to predict missing or damaged characters.
- Translation Decoder: Generates modern Korean text from the encoded representations.
To maintain computational efficiency, the model employs cross-layer parameter sharing, resulting in a model with approximately 168.8 million parameters that can learn deep representations without excessive memory requirements.
Datasets
The study utilized two primary corpora: the AJD (~250,000 documents) and the DRS (~1.4 million documents). The training set included 239,226 paired Hanja-Korean sentences and a much larger "unpaired" Hanja dataset of over 1.3 million sentences to strengthen the encoder's performance. This large-scale data approach is critical because standard pre-trained Chinese models perform poorly on Korean Hanja due to distinct grammatical structures.
Results and Historical Insights
The multi-task approach proved highly effective. The model achieved a Top-10 restoration accuracy (HITS@10) of 89.09%. In translation tasks, the multi-task model reached a BLEU score of 0.5410, significantly outperforming the 0.3536 achieved by a translation-only baseline. This suggests that the auxiliary task of character restoration provides the encoder with a deeper understanding of context that directly benefits translation quality.
Beyond linguistic metrics, the model enabled large-scale "retro-science." By translating the entire remaining corpus in just five days using 20 V100 GPUs, researchers could apply automated topic modeling (via Non-negative Matrix Factorization). This uncovered historical patterns in astronomical phenomena, such as meteor showers and auroras, which correspond to known long-term solar cycles like the Maunder Minimum.
Conclusion
While the model is highly effective for general text, it currently struggles with proper nouns, such as obscure names and locations, which often require external historical knowledge rather than linguistic context alone. Future work aims to integrate Knowledge Graphs to address these gaps and expand translation capabilities to other languages, making Korean history more accessible to a global audience. This research demonstrates the power of AI to preserve and unlock centuries of human heritage.
Summary updated