InImageTrans: Multimodal LLM-based Text Image Machine Translation

Fei Zuo, Kehai Chen, Yu Zhang, Zhengshan Xue, Min Zhang

Abstract

Text Image Machine Translation (TiMT) involves translating text embedded within images into a target language. Despite the advancements in Multimodal Large Language Models (MLLMs), they frequently suffer from "repetition" and "omission" hallucinations when processing complex visual text. This paper introduces InImageTrans, a specialized MLLM that employs a dual-encoder architecture and a novel multi-conditional preference optimization (mcDPO) strategy. Evaluated on the new MCiT benchmark, InImageTrans significantly reduces hallucinations and outperforms general-purpose models in translation quality.

Introduction: The Challenge of Visual Text Translation

General-purpose MLLMs like GPT-4o and Qwen-VL have shown remarkable capabilities in various vision-language tasks. However, in the context of TiMT, these models often fail in two distinct ways:

  1. Repetition Hallucinations: The model enters a loop, repeating specific words or phrases indefinitely (e.g., "sea sea sea...").
  2. Omission Hallucinations: The model overlooks smaller, stylized, or abstract text, focusing only on prominent visual elements.
Examples of repetition and omission hallucinations in existing MLLMs.

Existing benchmarks often lack the complexity required to test these failure modes, typically featuring simple subtitles or signs. To address this, the authors propose a more robust approach to both model architecture and training objectives.

Methodology: InImageTrans Architecture

To overcome the limitations of single-encoder systems, InImageTrans utilizes a Dual-Encoder Architecture. This design separates global context from local textual details to ensure both layout and fine-grained text are captured:

  • Coarse-grained Encoder: Captures the overall image layout and global context.
  • Fine-grained Encoder: Specifically optimized for high-resolution features and intricate textual details.

Features from both encoders are aligned through separate MLP layers and integrated into a Qwen-chat-7B backbone.

The InImageTrans architecture featuring dual visual encoders and a two-stage training pipeline.

Multi-Conditional Direct Preference Optimization (mcDPO)

The core innovation for mitigating hallucinations is mcDPO, which introduces two specific optimization conditions:

  • Repetition Preference Optimization (rPO): By training on automatically generated "rejected" labels that simulate loopy text, the model learns to avoid repetitive generation patterns. This is critical because the authors found that model confidence actually increases during a repetition loop.
  • Visual Preference Optimization (vPO): To combat omission, the model is trained to prefer translations based on full images over those based on "masked" images (where 20% of text is hidden). This forces the model to rely more heavily on all visual cues present in the image.

Experimental Setup and the MCiT Benchmark

The researchers introduced the MCiT (Multimodal Chinese-English Image Translation) benchmark to evaluate performance across diverse scenarios including dense Documents, real-world Scenes with complex backgrounds, and artistic Posters with abstract fonts. The training pipeline involved a two-stage process: pre-training on large-scale OCR and machine translation datasets, followed by fine-tuning on TiMT-specific tasks.

Results and Discussion

InImageTrans demonstrates superior performance compared to much larger open-source models. On the MCiT benchmark, it achieved an average BLEU score of 37.3, outperforming Qwen2-VL-8B (36.3) and InternVL2-8B (28.9).

Crucially, the model showed a dramatic reduction in hallucinations. In the "Novel" category, the repetition rate dropped from 9.5% to just 0.5% after applying rPO. Human evaluations also placed InImageTrans on par with commercial systems like Google Translate for tasks involving complex paragraph merging and layout understanding.

Conclusion

InImageTrans addresses the critical issues of repetition and omission in image-to-text translation through architectural innovation and targeted preference optimization. While it excels in general scenarios, future work will focus on expanding its capabilities to low-resource languages and highly specialized technical domains where domain-specific knowledge is required.

Summary updated

BibTeX
@inproceedings{zuo2025inimagetrans,
  author = {Fei Zuo and Kehai Chen and Yu Zhang and Zhengshan Xue and Min Zhang},
  title = {{InImageTrans: Multimodal LLM-based Text Image Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure