Disentangling Writer and Character Styles for Handwriting Generation

Gang Dai, Yifan Zhang, Qingfeng Wang, Qing Du, Zhu Liang Yu +2 more
2/14/2026

No official code found. Best implementation: dailenson/SDT (1,411 stars, MIT, last commit 2025-06-26).

Abstract

Training machines to synthesize diverse handwritings is an intriguing task. Recently, RNN-based methods have been proposed to generate stylized online Chinese characters. However, these methods mainly focus on capturing a person's overall writing style, neglecting subtle style inconsistencies between characters written by the same person. For example, while a person's handwriting typically exhibits general uniformity (e.g., glyph slant and aspect ratios), there are still small style variations in finer details (e.g., stroke length and curvature) of characters. In light of this, we propose to disentangle the style representations at both writer and character levels from individual handwritings to synthesize realistic stylized online handwritten characters. Specifically, we present the style-disentangled Transformer (SDT), which employs two complementary contrastive objectives to extract the style commonalities of reference samples and capture the detailed style patterns of each sample, respectively. Extensive experiments on various language scripts demonstrate the effectiveness of SDT. Notably, our empirical findings reveal that the two learned style representations provide information at different frequency magnitudes, underscoring the importance of separate style extraction. Our source code is public at: https://github.com/dailenson/SDT.

View on arXivView PDF

Code Implementations(1)

dailenson/SDTCommunity100%
MIT

This repository is the official implementation of Disentangling Writer and Character Styles for Handwriting Generation (CVPR 2023)

1,411114PythonMar 22, 20231 years agoMIT
computer-visioncontrastive-learningdeep-learninggenerative-modelsgmm+4 more

Similar Papers

Cite this paper

@article{dai2026disentangling,
  title  = {Disentangling Writer and Character Styles for Handwriting Generation},
  author = {Gang Dai and Yifan Zhang and Qingfeng Wang and Qing Du and Zhu Liang Yu and Zhuoman Liu and Shuangping Huang},
  year   = {2026},
  eprint = {2303.14736},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2303.14736},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.14736.svg)](https://codeofpaper.com/paper/2303.14736)

Discussion