Manuscript Offprint

arXiv:2610.38720

inkGround: Benchmarking Fine-grained Visual Grounding Capabilities of Vision-Language Models for Cursive Handwriting in the Wild

Sidra Hanif

Abstract

Human handwriting is produced as an ordered sequence of pen movements, but an offline image keeps only the final ink. Handwriting trajectory recovery aims to restore the ordered stroke points and their pen-up/pen-down transitions. Existing image–trajectory pair datasets are recorded with digitizing tablets under controlled conditions, which limits writer coverage and stylistic diversity. Moreover, there is no benchmark to measures the visual grounding capabilities of general-purpose Vision-Language Models (VLMs) for strokes trajectory recovery task. In this work, we introduce inkGround, a benchmark for stroke trajectory recovery from full-page, camera-captured handwriting. inkGround pairs 537 page images (≈18.7k words, ≈163k strokes) with reference trajectories produced by a pretrained offline-to-online model, filtered by OCR agreement, and verified by human raters. Because these references are pseudo-labels that represent one plausible pen trajectory, we also evaluate VLMs on IAM-online datasets, which provides recorded pen trajectories. We cast the task as text-conditioned point grounding: given a page image and a target word, the model must locate the word and output its ordered stroke points. Outputs are scored by trajectory fidelity (DTW, Chamfer distance), readability of the rendered strokes (Accurate Rate, Correct Rate), and style similarity. We benchmark four open-source and three frontier closed-source VLMs with a shared in-context prompt. Closed-source models, notably Gemini-3.1-Pro, produce legible trajectories close to the reference and this ranking also holds for IAM-online datasets.

1. Introduction

Handwriting trajectory recovery is a task of restoring the ordered pen movements behind an offline handwriting image, underpins downstream applications such as handwriting biometrics [9], pen order prediction [3, 13, 24], and handwriting style imitation [14, 21]. Unlike a static image, a

Figure

Figure 1. A sample handwriting image with the word “We” highlighted, together with its pen trajectory: start-of-stroke tokens, temporally ordered stroke points (the color gradient indicates writing progression), and the text label.

stroke trajectory encodes stroke order, pen-up/pen-down transitions and writing dynamics, revealing how characters and words are formed rather than only how they look. Existing recovery systems are specialized, consists of fully supervised networks trained end to end for a single script or dataset [3, 5, 13]. Related online generators [21, 25, 27] and character-level methods for Chinese script [32, 36] achieve strong results, but are likewise trained on curated inputs such as isolated characters or clean single-line crops [19, 20].

Meanwhile, Vision-Language Models (VLMs) have matured into general-purpose visual reasoners that follow natural-language instructions [2, 4, 10]. Beyond captioning and question answering, recent VLMs localize objects by returning bounding boxes or points, grounding language directly in the pixel grid. Similarly, document-oriented models [7, 31] read printed and handwritten text straight from images. Yet this progress targets what is written, not how it was written. We ask whether the grounding and in-context learning abilities of VLMs extend to the stroke level. We cast trajectory recovery as text-conditioned point grounding: given a full-page image, text prompt including an example image with its strokes, the model must locate the word on the page and output its ordered stroke points.

To fully explore the point grounding capabilities of VLMs for stroke trajectory recovery problem, we requires a bench-

Figure

Figure 2. (Sample handwriting images from inkGround and their rendered reference trajectories (best viewed zoomed in).

mark that pairs real-world handwriting images in the wild with stroke trajectories. Online datasets recorded with digitizing tablets [11, 19, 20, 28] provide such pairs, but only for controlled settings. Mostly as a single-line input from a limited set of writers. To our knowledge, no benchmark evaluates VLM's point grounding capability for stroke recovery on the full-page camera-captured cursive handwriting images.

We address this gap with inkGround, a benchmark of 537 camera-captured full-page images with reference stroke trajectories (Fig. 1). The references are pseudo-labels produced by a pretrained offline-to-online model [22] and retained only after OCR-based filtering and human validation. Because they represent one plausible trajectory rather than recorded pen movements, we complement them with IAM-OnDB [20], which provides recorded trajectories. We evaluate four open-source VLMs (Qwen3-VL-32B [4], Molmo-7B-D-0924 [8], InternVL3_5-8B [30], Phi-4-vision-15B [1]) and three closed-source VLMs (Gemini-3.1-Pro [10], Kimi-K3 [23], Claude-Opus-4.8 [2]) with the same prompt and in-context example, and score trajectory agreement, readability of the rendered strokes, and style similarity. Our contributions are as follows:

  • Benchmark. inkGround contains 537 full-page, camera-captured handwriting images (≈18.7k words, ≈163k strokes) with reference trajectories filtered by OCR agreement and validated by 85 human raters. Every pair is at least rated by two raters. To our knowledge, it is the first full-page image–trajectory benchmark for handwrit-

ing captured outside controlled conditions.

  • Task and protocol. We formulate stroke recovery as text-conditioned point grounding for VLMs and define an evaluation protocol that combines trajectory fidelity (DTW, Chamfer distance), readability (AR, CR), and style similarity.

  • Evaluation. We benchmark seven VLMs on inkGround and on IAM-Online datasets /citeonline. Closed-source models, led by Gemini-3.1-Pro, produce legible trajectories while open-source models largely fail, the ranking holds on recorded ground truth. Closed-source models also trade readability against style imitation.

References (32)