Language-Agnostic Visual Embeddings for Cross-Script Handwriting Retrieval
Fangke Chen, Tianhao Dong, Sirry Chen, Guobin Zhang, Yishu Zhang, Yining Chen
TL;DR
The paper addresses cross-script handwriting retrieval under severe stylistic and cross-lingual variation by introducing a lightweight asymmetric dual-encoder that maps handwritten images into a language-agnostic semantic space anchored by a frozen multilingual text encoder. It jointly optimizes instance-level alignment with $ abla ext{L}_{ITC}$ and semantic consistency via $ abla ext{L}_{INV}$, ensuring invariance to language and writing styles within a shared embedding space $ abla ext{V}$ and using $ au$ for contrastive losses. The approach demonstrates state-of-the-art or competitive performance on within-language benchmarks with far fewer parameters than large visual-language models, and shows robust cross-lingual retrieval, transfer from synthetic to real handwriting, and hardware-aware efficiency suitable for edge devices. The practical impact lies in enabling accurate, resource-efficient cross-script handwriting retrieval for large archives and multilingual document systems, without relying on expensive VLLMs.
Abstract
Handwritten word retrieval is vital for digital archives but remains challenging due to large handwriting variability and cross-lingual semantic gaps. While large vision-language models offer potential solutions, their prohibitive computational costs hinder practical edge deployment. To address this, we propose a lightweight asymmetric dual-encoder framework that learns unified, style-invariant visual embeddings. By jointly optimizing instance-level alignment and class-level semantic consistency, our approach anchors visual embeddings to language-agnostic semantic prototypes, enforcing invariance across scripts and writing styles. Experiments show that our method outperforms 28 baselines and achieves state-of-the-art accuracy on within-language retrieval benchmarks. We further conduct explicit cross-lingual retrieval, where the query language differs from the target language, to validate the effectiveness of the learned cross-lingual representations. Achieving strong performance with only a fraction of the parameters required by existing models, our framework enables accurate and resource-efficient cross-script handwriting retrieval.
