TL;DR
SE-GAN introduces a skeleton-enhanced generative adversarial network designed specifically for the challenging task of brush handwriting font generation. By explicitly encoding and discriminating character skeletons alongside standard image features, the model successfully preserves legibility and structural integrity despite the extreme geometric distortions typical of cursive calligraphy.
What Problem Does This Paper Address?
Most automated font generation methods excel at Standard Print Font Generation (SPFG), where character shapes are rigid, predictable, and strokes are cleanly separated. However, these methods fail when applied to Brush Handwriting Font Generation (BHFG).
Calligraphy and brush writing involve holistic structural transformations, fluid stroke connections, and dramatic geometric variations. In cursive or semi-cursive styles, characters become heavily distorted, causing standard image-to-image translation models to lose stroke information or generate illegible characters. The authors argue that the core "skeleton" (the underlying topological structure of the character) is the key to maintaining legibility across wildly different artistic styles, a feature largely ignored by existing SPFG models.
Methods
The authors propose SE-GAN (Skeleton Enhanced GAN), a one-stage, end-to-end framework consisting of the following core components:
- Dual Encoders: The network processes a standard print source character using an Image Encoder ($E_i$) to capture content and style, and a parallel Skeleton Encoder ($E_s$) to capture the character's structural backbone (extracted via an iterative erosion/dilation algorithm).
- Self-Attentive Refined Attention Module (SAttRAM): Traditional Class Activation Maps (CAM) help identify style-discriminative regions but often suffer from spatial over-activation. SAttRAM introduces self-attention to capture long-range spatial dependencies. It uses two variants: SRAM (Self-Refined Attention Module) for intra-modal image features, and CRAM (Cross-Refined Attention Module) to fuse image and skeleton features.
- Dual Discriminators: Alongside a standard pixel-level image discriminator ($D_i$), the architecture includes a unique Skeleton Discriminator ($D_s$). Because classical skeletonization algorithms are non-differentiable, the authors bypass this by pre-training an auxiliary SkeletonGAN (a simple CycleGAN) to predict the skeleton of the generated image, allowing gradients to flow back through $D_s$ to enforce structural accuracy.
Datasets
Due to a lack of public benchmarks for brush calligraphy, the authors introduced a new large-scale dataset:
- Content: Over 15,000 high-resolution images across 6 distinct calligraphic chirography styles (S1 to S6), ranging from semi-formal to highly cursive scripts.
- Setup: The standard print font Liukai was utilized as the source domain, with the dataset split into an 8:1:1 ratio for training, validation, and testing.
Key Insights and Ideas
- Decoupling Topology from Geometry: By treating the skeleton as a distinct modality, the network learns that while a stroke's thickness, texture, and curvature (geometry) change based on style, its connectivity and relative position (topology) must remain intact.
- Differentiable Skeleton Validation: The use of a pre-trained neural network (SkeletonGAN) to act as a differentiable proxy for a mathematical morphological operation (skeletonization) is a clever workaround for the non-differentiable constraints of deep learning architectures.
- Cross-Modal Attention: As visualized in the paper, standard CAM modules create blurry attention maps. Fusing the skeleton via CRAM sharpens the model's focus, ensuring attention maps tightly track the actual stroke trajectories.
Key Results
SE-GAN was evaluated against four prominent baselines: zi2zi, CycleGAN, StarGAN, and DGFont using Top-1 content accuracy (Acc) and Fréchet Inception Distance (FID).
- Quantitative Performance: SE-GAN outperformed all baselines across nearly all six styles. For instance, on Style 2, SE-GAN achieved a content accuracy of 0.486 and an FID of 60.43, compared to zi2zi (Acc: 0.291, FID: 84.01) and StarGAN (Acc: 0.222, FID: 93.74).
- Ablation Studies: Removing either the skeleton encoder ($E_s$) or the skeleton discriminator ($D_s$) led to noticeable drops in accuracy and higher FID scores, validating the necessity of both components.
- User Study: In a blind preference test conducted with 60 fine arts students specializing in calligraphy, SE-GAN achieved a 57% win rate and the highest preference score (4.2/5.0), significantly beating out the next best baseline, StarGAN (35% win rate).
Limitations and Future Work
While SE-GAN shows remarkable consistency, the authors note that the framework relies heavily on the quality of the initial skeleton extraction and the accuracy of the auxiliary SkeletonGAN. For future work, they plan to explore how large-scale, pre-trained image translation models can be adapted to further improve the zero-shot generalization of brush font generation.
Summary updated