English

TrInk: Ink Generation with Transformer Network

Computation and Language 2025-09-01 v1 Artificial Intelligence

Abstract

In this paper, we propose TrInk, a Transformer-based model for ink generation, which effectively captures global dependencies. To better facilitate the alignment between the input text and generated stroke points, we introduce scaled positional embeddings and a Gaussian memory mask in the cross-attention module. Additionally, we design both subjective and objective evaluation pipelines to comprehensively assess the legibility and style consistency of the generated handwriting. Experiments demonstrate that our Transformer-based model achieves a 35.56\% reduction in character error rate (CER) and an 29.66% reduction in word error rate (WER) on the IAM-OnDB dataset compared to previous methods. We provide an demo page with handwriting samples from TrInk and baseline models at: https://akahello-a11y.github.io/trink-demo/

Keywords

Cite

@article{arxiv.2508.21098,
  title  = {TrInk: Ink Generation with Transformer Network},
  author = {Zezhong Jin and Shubhang Desai and Xu Chen and Biyi Fang and Zhuoyi Huang and Zhe Li and Chong-Xin Gan and Xiao Tu and Man-Wai Mak and Yan Lu and Shujie Liu},
  journal= {arXiv preprint arXiv:2508.21098},
  year   = {2025}
}

Comments

Accepted to EMNLP 2025 Main Conference

R2 v1 2026-07-01T05:10:55.417Z