Introduction
The generation of Chinese fonts has traditionally focused on Standard Print Font Generation (SPFG), where characters maintain stable shapes and distinct stroke separations. However, Brush Handwriting Font Generation (BHFG) presents a significantly more complex challenge. In calligraphic styles—particularly cursive and semi-cursive—characters undergo holistic structural transformations and extreme geometric distortions. Traditional pixel-to-pixel style transfer models often fail in this domain, resulting in "broken" characters, missing strokes, or unrecognizable artifacts.
To address these issues, we present SE-GAN (Skeleton Enhanced GAN), a novel generative framework that prioritizes the "skeleton" of a character—its basic composition and stroke direction—as the fundamental invariant across artistic styles. By integrating structural skeleton information with advanced attention mechanisms, SE-GAN preserves legibility and structural integrity even in highly stylized outputs.
The Challenge of Brush Calligraphy
In calligraphy, artistic expression often leads to strokes that merge or deform in ways that standard font generation models cannot predict. Most existing models treat font generation as a simple image translation task. While effective for rigid fonts, this approach loses the topological essence of the character when applied to the fluid nature of brushwork. The authors argue that the skeleton is the key to maintaining character identity. If the model can respect the underlying skeletal structure, it can apply varied artistic styles without compromising the character's recognizability.
Methodology: The SE-GAN Architecture
SE-GAN is a one-stage model designed with three primary architectural innovations:
Dual Encoders
The model utilizes a dual-encoder system to decouple content and structure. The first encoder ($E_i$) extracts content and style features from the source image. The second encoder ($E_s$) focuses exclusively on the extracted skeleton of the character. This separation allows the model to process the "what" (the character's identity) and the "how" (the structural framework) independently before fusion.
Self-attentive Refined Attention Module (SAttRAM)
Standard attention mechanisms frequently suffer from "over-activation," where the model assigns weight to irrelevant spatial regions. SE-GAN introduces SAttRAM to refine this process. It consists of two variants:
- Self-Refined Attention Module (SRAM): Captures spatial dependencies within a single modality.
- Cross-Refined Attention Module (CRAM): Fuses features across the image and skeleton modalities.
This dual-pronged attention ensures that the model learns distinctive style features while strictly adhering to the structural map provided by the skeleton.
Skeleton Discriminator and Consistency
To ensure structural correctness, SE-GAN employs a specialized Skeleton Discriminator ($D_s$). Because traditional skeletonization (thinning) is a non-differentiable process, the authors utilize a pre-trained auxiliary network called SkeletonGAN. This network extracts the skeleton from the generated image, allowing the system to compare it against the target skeleton. This acts as a powerful regularizer, penalizing the generator for any structural deviations or "melting" of strokes.
Experimental Evaluation
The authors introduced a new benchmark, the Brush Handwriting Font Dataset, featuring over 15,000 high-resolution images across six distinct calligraphic styles (S1–S6). Using "Liukai" as the source font, SE-GAN was compared against several state-of-the-art baselines, including zi2zi, CycleGAN, StarGAN, and DF-Font.
Quantitative Results
SE-GAN consistently outperformed baselines across two primary metrics: Content Accuracy (Acc) and Fréchet Inception Distance (FID). For example, in Style 3, SE-GAN achieved an FID of 50.40, significantly better than zi2zi (70.79) and DF-Font (80.75). These results indicate that SE-GAN produces images that are both higher in quality and more stylistically diverse.
Qualitative and Human Evaluation
Visual analysis confirms that SE-GAN avoids common pitfalls such as missing or extraneous strokes. In a blind user study involving 60 fine arts students, SE-GAN’s generated characters were preferred 57% of the time. In comparison, the next best model, StarGAN, received only a 35% preference rate.
Conclusion
SE-GAN demonstrates that incorporating topological skeletons is a highly effective strategy for complex font generation tasks. By moving beyond simple pixel-to-pixel translation and focusing on structural invariants, the model achieves a new level of fidelity in brush calligraphy. Future research may involve simplifying the training pipeline by integrating large-scale pre-trained models and expanding the system to encompass the vast array of historical calligraphic styles.
Summary updated