AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generation

Hongxiang Huang, Daihui Yang, Gang Dai, Zhen Han, Yuyi Wang, Kin-Man Lam, Fan Yang, Shuangping Huang, Yongge Liu, Mengchao He · DOI

Abstract

The recognition of ancient scripts, such as Oracle Bone Inscriptions and Cuneiform, is hindered by a severe lack of annotated photographic data. While clean, simulated versions of these characters exist in dictionaries, real-world artifacts present complex textures and irregular lighting that existing image-to-image translation models struggle to replicate. This paper introduces AGTGAN (Associate Glyph-transformation and Texture-transfer GAN), an unsupervised framework that decouples shape transformation from texture transfer. By generating highly realistic synthetic training data, AGTGAN improves character recognition accuracy by over 16% and demonstrates significant zero-shot potential for rare character classes.

Introduction

Archaeologists and linguists rely on ancient writings like Oracle Bone Inscriptions and Cuneiform to reconstruct early civilizations. However, the transition from clean dictionary entries to the "noisy" reality of artifacts like bone or clay is a major bottleneck for automated recognition systems. Deep learning models require vast amounts of annotated data, which is unavailable for most ancient scripts. Existing image-to-image translation methods, such as CycleGAN, often fail to handle the extreme geometric warping and complex backgrounds simultaneously, leading to blurred strokes or unrealistic artifacts.

Clean simulated characters from dictionaries serve as the starting point for generation.

Methodology: The AGTGAN Framework

The authors propose AGTGAN (Associate Glyph-transformation and Texture-transfer GAN), which breaks the generation process into two specialized, cascaded stages to manage the complexity of ancient character synthesis.

Glyph-Transformation GAN (GTG)

The first stage focuses exclusively on geometry. It utilizes a Spatial Transformer Network (STN) combining Affine transformations for global changes (rotation, scaling) and Thin-Plate Spline (TPS) transformations for local distortions (stroke length, curvature). To ensure diversity without losing character identity, the authors implement a custom Signal-and-Noise Reconstruction (SNR) loss, balancing the injection of Gaussian noise with the preservation of the character's structural essence.

Texture-Transfer GAN (TTG)

Once the glyph is warped, the TTG stage applies the authentic texture of the artifact. A key innovation here is the Stroke-aware consistency loss. Unlike standard GANs that treat all pixels equally, this loss prioritizes the clarity of thin foreground strokes, preventing them from being swallowed by the background noise of the bone or clay surface.

Photographic characters on real artifacts exhibit complex textures and noise that AGTGAN aims to replicate.

The entire pipeline is trained end-to-end using an associate adversarial training mechanism, allowing the two stages to communicate through transitional domains to ensure the final output is both geometrically varied and texturally authentic.

Experimental Results

The model was evaluated on four primary datasets: SOC5519 and OBC306 for Oracle Bone Inscriptions, and HCCC and CSDD for Cuneiform.

Recognition Performance

Integrating AGTGAN-generated images into the training set for an Inception-v4 classifier led to a dramatic increase in Top-1 accuracy on the OBC306 dataset, rising from 69.02% to 85.36%. This 16.34% absolute improvement underscores the value of high-quality synthetic data in low-resource domains.

Qualitative and Quantitative Assessment

In human user studies, AGTGAN-generated images were preferred over state-of-the-art models like CycleGAN and DRIT++ by over 60%. Quantitatively, the model achieved superior scores in Fréchet Inception Distance (FID), Number of Statistically Different Bins (NDB), and Jensen-Shannon Divergence (JSD), confirming that its outputs are statistically closer to real-world photos than previous methods.

Conclusion

AGTGAN demonstrates that decoupling shape and texture is essential for unsupervised image translation in the domain of ancient scripts. By "hallucinating" realistic variations from clean dictionary drawings, the model provides a powerful tool for augmenting scarce archaeological datasets. Most impressively, the model can generate realistic versions of characters for which zero real-world photos exist in the training set, simply by learning the general style of the artifact surface. Future work will explore the generation of full text sequences and the application of these techniques to other complex writing systems.

Summary updated

BibTeX
@inproceedings{huang2022agtgan,
  author = {Hongxiang Huang and Daihui Yang and Gang Dai and Zhen Han and Yuyi Wang and Kin-Man Lam and Fan Yang and Shuangping Huang and Yongge Liu and Mengchao He},
  title = {{AGTGAN: Unpaired Image Translation for Photographic Ancient Character Generation}},
  booktitle = {ACM Multimedia},
  year = {2022},
  doi = {10.1145/3503161.3548338},
}
Figure