Decoupling Layout from Glyph in Online Chinese Handwriting Generation

Min-Si Ren, Yan-Ming Zhang, Yi Chen
2/12/2026

No official code found. Best implementation: singularityrms/OLHWG (25 stars, last commit 2025-05-26).

Abstract

Text plays a crucial role in the transmission of human civilization, and teaching machines to generate online handwritten text in various styles presents an interesting and significant challenge. However, most prior work has concentrated on generating individual Chinese fonts, leaving {complete text line generation largely unexplored}. In this paper, we identify that text lines can naturally be divided into two components: layout and glyphs. Based on this division, we designed a text line layout generator coupled with a diffusion-based stylized font synthesizer to address this challenge hierarchically. More concretely, the layout generator performs in-context-like learning based on the text content and the provided style references to generate positions for each glyph autoregressively. Meanwhile, the font synthesizer which consists of a character embedding dictionary, a multi-scale calligraphy style encoder, and a 1D U-Net based diffusion denoiser will generate each font on its position while imitating the calligraphy style extracted from the given style references. Qualitative and quantitative experiments on the CASIA-OLHWDB demonstrate that our method is capable of generating structurally correct and indistinguishable imitation samples.

View on arXivView PDF

Code Implementations(1)

The implementation of Decoupling Layout from Glyph in Online Chinese Handwriting Generation (ICLR 2025)

252PythonAug 27, 20221 years ago
application-of-conditional-diffusion-modelonline-chinese-handwriting-generation

Similar Papers

Cite this paper

@article{ren2026decoupling,
  title  = {Decoupling Layout from Glyph in Online Chinese Handwriting Generation},
  author = {Min-Si Ren and Yan-Ming Zhang and Yi Chen},
  year   = {2026},
  eprint = {2410.02309},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.02309},
  journal = {ICLR 2024 2024}
}

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/2410.02309.svg)](https://codeofpaper.com/paper/2410.02309)

Discussion