PRIM: Towards Practical In-Image Multilingual Machine Translation

Yanzhi Tian, Zeming Liu, Zhengyang Liu, Chong Feng, Xin Li +2 more
9/5/2025
cs.CLcs.CV

Official code: BITHLP/PRIM (0 stars, MIT, last commit 2025-11-01).

Abstract

In-Image Machine Translation (IIMT) aims to translate images containing texts from one language to another. Current research of end-to-end IIMT mainly conducts on synthetic data, with simple background, single font, fixed text position, and bilingual translation, which can not fully reflect real world, causing a significant gap between the research and practical conditions. To facilitate research of IIMT in real-world scenarios, we explore Practical In-Image Multilingual Machine Translation (IIMMT). In order to convince the lack of publicly available data, we annotate the PRIM dataset, which contains real-world captured one-line text images with complex background, various fonts, diverse text positions, and supports multilingual translation directions. We propose an end-to-end model VisTrans to handle the challenge of practical conditions in PRIM, which processes visual text and background information in the image separately, ensuring the capability of multilingual translation while improving the visual quality. Experimental results indicate the VisTrans achieves a better translation quality and visual effect compared to other models. The code and dataset are available at: https://github.com/BITHLP/PRIM.

View on arXivView PDF

Code Implementations(1)

BITHLP/PRIMOfficial100%
MIT

[EMNLP 2025 Main] PRIM: Towards Practical In-Image Multilingual Machine Translation

00Shell, PythonAug 21, 202511 months agoMIT

Similar Papers

Cite this paper

@article{tian2025prim,
  title  = {PRIM: Towards Practical In-Image Multilingual Machine Translation},
  author = {Yanzhi Tian and Zeming Liu and Zhengyang Liu and Chong Feng and Xin Li and Heyan Huang and Yuhang Guo},
  year   = {2025},
  eprint = {2509.05146},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.05146v1}
}

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

Discussion