FlowTranslator:基于流编辑的免训练图像内机器翻译

·

研究论文 · 2026/11/04

图像内机器翻译(IIMT)旨在将图像中的文字替换为译文,同时保持周围视觉上下文。现有任务专用模型性能优异,但需要大量翻译前后的配对训练图像。鉴于先进的文本到图像(T2I)模型已具备可用的多语言文本生成能力,作者认为该能力可迁移至IIMT,并提出FlowTranslator——一种无需训练的IIMT框架。它首先利用OCR模型和LLM生成翻译提示,并注入基于T2I的扩散模型。为优化译文的准确自然生成,作者引入两种轨迹控制:区域耦合释放(RCR)在轨迹早期部分解耦文本区域内的目标分支噪声,耦合扩展(CE)在轨迹中期放大新出现的编辑位移。在EasyOCR回读协议下,FlowTranslator的平均PRIM BLEU和COMET得分分别为20.6和57.2,大幅优于强训练基线UniTranslator。在更具挑战性和真实性的整图ScenePair照片翻译为中文任务上,其精确匹配准确率达40.1%,超越现有编辑系统(其中一些仅处理文本渲染阶段而非完整IIMT任务)。这些结果确立了基于流的编辑作为IIMT的强大且完全无需训练的基线。

该工作提出了一种完全无需训练的IIMT方法,利用预训练T2I模型的多语言生成能力,避免了昂贵的大规模配对数据需求,并在多个基准上超越训练基线,为图像内机器翻译提供了新的高效范式。

In-image machine translation (IIMT) replaces text in an image with its translation while preserving the surrounding visual context. Existing task-specific models achieve convincing performance but require massive paired training images before and after translation. As advanced text-to-image (T2I) models have reached a practically usable level of multilingual text generation, we argue that this capability can be transferred to IIMT and present FlowTranslator. It is a training-free IIMT framework that first employs an OCR model and an LLM to generate the translation prompt, which is injected into the T2I-based diffusion model. To optimize the accurate and natural generation of translated text, we introduce two trajectory controls: Region Coupling Release (RCR) partially decorrelates target-branch noise inside the text region early in the trajectory, while Coupling Expansion (CE) amplifies the emerging edit displacement mid-trajectory. Under the EasyOCR read-back protocol, FlowTranslator achieves average PRIM BLEU and COMET scores of 20.6 and 57.2, respectively, substantially outperforming the strong training-based baseline UniTranslator. On the more challenging and realistic whole-image ScenePair photographs translated into Chinese, it reaches 40.1\% exact-match accuracy and surpasses existing editing systems, some of which only address the text-rendering stage rather than the complete IIMT task. These results establish flow-based editing as a strong, fully training-free baseline for IIMT.

阅读原文

参与讨论