# TrInk: Ink Generation with Transformer Network

**Authors:** Zezhong Jin, Shubhang Desai, Xu Chen, Biyi Fang, Zhuoyi Huang, Zhe Li, Chong-Xin Gan, Xiao Tu, Man-Wai Mak, Yan Lu, Shujie Liu

arXiv: 2508.21098 · 2025-09-01

## TL;DR

TrInk is a Transformer-based model for ink generation that improves handwriting synthesis by capturing global dependencies and aligning input text with stroke points, achieving significant error rate reductions.

## Contribution

The paper introduces novel scaled positional embeddings and a Gaussian memory mask to enhance text-to-handwriting alignment in Transformer models.

## Key findings

- 35.56% reduction in character error rate (CER)
- 29.66% reduction in word error rate (WER)
- Effective global dependency modeling in handwriting generation

## 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/

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2508.21098/full.md

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/2508.21098/full.md

## References

19 references — full list in the complete paper: https://tomesphere.com/paper/2508.21098/full.md

---
Source: https://tomesphere.com/paper/2508.21098