DNA: Dual-branch Network with Adaptation for Open-Set Online Handwriting Generation
Tsai-Ling Huang, Nhat-Tuong Do-Tran, Ngoc-Hoang-Lam Le, Hong-Han Shuai, Ching-Chun Huang
TL;DR
The paper tackles unseen online handwriting generation by introducing DNA, a Dual-branch Network with Adaptation that separately handles writer style and character content. The adaptive style branch extracts stroke-driven style patterns, while the adaptive content branch uses local (structure/components) and global (texture) encoders with cross-attention to generalize to unseen characters. A two-stage training strategy, including a spacing loss for inter-stroke alignment and content-guiding losses, yields state-of-the-art results on Traditional Chinese and Japanese OHG benchmarks and improves downstream recognition. This approach offers practical benefits for data synthesis and HTR generalization in glyph-rich languages and demonstrates efficient generation compared to diffusion-based methods.
Abstract
Online handwriting generation (OHG) enhances handwriting recognition models by synthesizing diverse, human-like samples. However, existing OHG methods struggle to generate unseen characters, particularly in glyph-based languages like Chinese, limiting their real-world applicability. In this paper, we introduce our method for OHG, where the writer's style and the characters generated during testing are unseen during training. To tackle this challenge, we propose a Dual-branch Network with Adaptation (DNA), which comprises an adaptive style branch and an adaptive content branch. The style branch learns stroke attributes such as writing direction, spacing, placement, and flow to generate realistic handwriting. Meanwhile, the content branch is designed to generalize effectively to unseen characters by decomposing character content into structural information and texture details, extracted via local and global encoders, respectively. Extensive experiments demonstrate that our DNA model is well-suited for the unseen OHG setting, achieving state-of-the-art performance.
