EMNLP 2024finding6 citations

AnyTrans: Translate AnyText in the Image with Large Scale Models

Zhipeng Qian, Pei Zhang, Baosong Yang, Kai Fan, Yiwei Ma, Derek F. Wong, Xiaoshuai Sun, Rongrong Ji

Abstract

This paper introduces AnyText, an all-encompassing framework for the task–In-Image Machine Translation (IIMT), which includes multilingual text translation and text fusion within images. Our framework leverages the strengths of large-scale models, such as Large Language Models (LLMs) and text-guided diffusion models, to incorporate contextual cues from both textual and visual elements during translation. The few-shot learning capability of LLMs allows for the translation of fragmented texts by considering the overall context. Meanwhile, diffusion models’ advanced inpainting and editing abilities make it possible to fuse translated text seamlessly into the original image while preserving its style and realism. Our framework can be constructed entirely using open-source models and requires no training, making it highly accessible and easily expandable. To encourage advancement in the IIMT task, we have meticulously compiled a test dataset called MTIT6, which consists of multilingual text image translation data from six language pairs.

BibTeX
@inproceedings{qian-etal-2024-anytrans,
    title = "{A}ny{T}rans: Translate {A}ny{T}ext in the Image with Large Scale Models",
    author = "Qian, Zhipeng  and
      Zhang, Pei  and
      Yang, Baosong  and
      Fan, Kai  and
      Ma, Yiwei  and
      Wong, Derek F.  and
      Sun, Xiaoshuai  and
      Ji, Rongrong",
    editor = "Al-Onaizan, Yaser  and
      Bansal, Mohit  and
      Chen, Yun-Nung",
    booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2024",
    month = nov,
    year = "2024",
    address = "Miami, Florida, USA",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-emnlp.137/",
    doi = "10.18653/v1/2024.findings-emnlp.137",
    pages = "2432--2444"
}
AnyTrans: Translate AnyText in the Image with Large Scale Models · EMNLP 2024