Manuscript Offprint
arXiv:2611.04303FlowTranslator: Training-Free In-Image Machine Translation with Flow-Based Editing
Abstract
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.
Correspondence: zhinchen@fudan.edu.cn
1 Introduction
In-image machine translation (IIMT) translates the text embedded in an image and renders the translation back into the original text regions while keeping the rest of the image intact [15, 19]. The task underpins applications from mobile photo translation to localizing signage and product imagery, and has attracted dedicated benchmarks and models [18, 26, 27]. A dominant line of work approaches IIMT with a cascaded pipeline: an OCR model localizes and reads the source text, a translation model converts it, and a rendering module writes the translation back into the image [14, 47]. With the rapid advance of OCR and machine translation, the remaining bottleneck for this task is the rendering step.
Early rendering systems erase the source glyphs and paste separately rendered text, a procedure that leaves visible seams, mismatched typography, and destroyed textures. Subsequent work replaces the paste step with

Figure 1 Overview of the IIMT framework and editor paradigms. (a) The pipeline: OCR extracts text → a translator produces the translation → a scene text editor generates the output image. (b) Rule-based: remove, render, and paste separately. (c) Training-based: a learned GAN or diffusion editor (requires extra training). (d) FlowTranslator (ours): training-free flow editing with trajectory controls (CE and RCR) for text translation with background preservation.
a learned scene-text-editing (STE) generator, first GAN-based [23, 32] and then diffusion-based [3, 28, 36], trained to blend the translated glyphs into the surrounding texture. However, these generators need paired images for training. Such cross-lingual pairs are scarce beyond a handful of high-resource directions, so training pipelines fall back on synthetically rendered text [26], which narrows the fonts, layouts, and backgrounds the generator ever sees and leaves the fragile rendering step as the bottleneck of the cascade.
Text-to-image (T2I) generation has meanwhile progressed to a point where multilingual text rendering is usable in practice: recent flow-matching backbones render legible non-Latin and CJK (Chinese-Japanese-Korean) text directly from a caption [41]. This raises a natural question. Rather than training another dedicated STE generator on scarce cross-lingual pairs, can a frozen T2I model be repurposed, with no task-specific training, to perform the rendering step of an IIMT cascade?
Inversion-free flow editing offers exactly this machinery. FlowEdit [12] edits a real image with a frozen T2I flow model by integrating an ODE between a source-conditioned branch and a target-conditioned branch, and TextFlow [16] shows that such training-free editing can match trained scene-text editors in visual quality. Both operate on a single word or crop given a user-provided target string. Neither addresses the full IIMT problem of localizing, translating, and re-rendering every text region in an image automatically.
Therefore, we propose FlowTranslator, a novel IIMT system that requires no task-specific training. Every module is a frozen, publicly documented pretrained model, and no parameter is updated or fine-tuned for IIMT (the components themselves are, of course, products of large-scale pretraining). FlowTranslator keeps the modularity of a cascade. A general OCR model [4] finds text blocks, and a frozen LLM translates them. The pipeline replaces the training-based rendering stage with region-masked flow editing on a frozen T2I model [41]. The translation is generated into the original image rather than pasted onto it, so the diffusion prior handles perspective, lighting, and typography.
Making this transfer work requires solving a problem specific to cross-lingual, mask-confined editing: an ignition failure of the underlying flow editor. The FlowEdit update is driven by the velocity difference between the source-conditioned and target-conditioned branches, which share the same noise. The difference is meant to grow as the caption change propagates a semantic edit. FlowEdit is demonstrated on edits, such as swapping an object or changing a global style, that alter a substantial fraction of the image and so produce an early, sizeable velocity difference. IIMT edits invert this premise. The text region is typically a small minority of the frame, so the two branches barely differ at the outset and the edit never starts, no matter how the difference is subsequently amplified. This text-minority regime is intrinsic to cross-lingual scene-text editing rather than an artifact of our implementation, so a generic remedy such as increasing the velocity gain cannot repair it: there is no signal left to amplify. We introduce two trajectory controls confined to the text-region mask to force ignition: Region Coupling Release (RCR) replaces the target-branch noise inside the mask with a partially decorrelated sample early in the trajectory, giving the target branch room to diverge. Coupling Expansion (CE) amplifies the nascent edit displacement mid-phase, letting the target branch complete the edit it has started. Both add no forward passes and contribute zero latent update outside the mask.
We evaluate FlowTranslator on three benchmarks spanning synthetic and real imagery, seven languages, and nine translation directions. It achieves the highest average BLEU on Translatotron-V(ision) [15] and the highest average BLEU and COMET on PRIM [26] without any IIMT training data. On ScenePair photographs translated into Chinese [23], FlowTranslator reaches 40.1% exact-match accuracy and outperforms six released editing systems under a common evaluator. These results establish FlowTranslator as a strong training-free baseline across diverse IIMT settings.
In summary, our main contributions are:
-
We repurpose a frozen, training-free text-to-image flow model to replace the training-based rendering stage of IIMT cascades and remove its dependence on scarce cross-lingual training pairs.
-
We identify an edit-ignition failure of coupled flow editing and propose two mask-confined trajectory controls (RCR and CE) without additional forward passes to resolve it.
-
We report results on TTV, PRIM, and ScenePair competitive with trained systems, establishing a strong training-free baseline for IIMT.

Figure 2 Overview of FlowTranslator. OCR extracts the source text and forms a source caption, while a frozen LLM translates it to obtain the target caption. A frozen VAE encodes the source image into , from which noise initialization produces . At each editing step, the same frozen DiT predicts source- and target-conditioned velocities. Their difference updates the flow-editing latent. RCR perturbs the target-branch noise within the detected text region, and CE amplifies the accumulated displacement before it is fed back to the target branch. The final latent is decoded to produce the translated image.
Scene Text Editing. The rendering step of IIMT needs editors to replace words in images with GAN or diffusion models. Early systems transfer or regenerate text appearance with adaptive or stroke-level models [23, 25, 32, 35]. Recent diffusion editors [3, 13, 28, 39, 42, 44]. Recognition-aware editors further use text recognition to improve content fidelity, as in RS-STE [9]. For cross-lingual rendering, however, these editors need paired images showing the same scene rendered in both scripts. Such pairs are scarce beyond a few high-resource directions, so training pipelines fall back on synthetically composited text [26], narrowing the appearance diversity seen in training. TextFlow [16] shows that training-free flow editing can match trained editors on word crops. Our work lifts training-free editing to the full IIMT task with automatic localization and translation.
Training-free Flow Editing. Flow matching provides a simulation-free training objective for continuous generative flows [17]. FlowEdit [12] constructs an inversion-free ODE between source and target text conditions of a pretrained flow-matching model [2, 8] and is the foundation of our renderer. Other recent studies regularize rectified-flow trajectories or design training-free conditional samplers for image editing [11, 29, 45, 48], reflecting a shift from constructing new ODEs to controlling them. Our RCR and CE belong to this family as spatially masked controls designed specifically for the text-minority ignition setting.
3 Method
This section describes how FlowTranslator turns a frozen T2I model into a renderer for in-image machine translation, following the pipeline shown in Fig. 2. FlowTranslator takes FlowEdit [12], an inversion-free editing procedure for pretrained flow-matching models, as its starting point. It then adds two trajectory controls that overcome an ignition failure particular to cross-lingual, mask-confined editing, so that multilingual text is rendered accurately without task-specific training or extra inference cost. No component in the pipeline is trained or fine-tuned.
3.1 Overall Framework
Input Preparation. Given a source image , the OCR model returns text boxes and recognized strings. The LLM translates each string and places the source and target strings in two otherwise matched scene descriptions, yielding and . The image is encoded once by the frozen VAE ( ), and the detected boxes are rasterized at latent resolution after dilation to form the editable mask:
Here, M has value one in the text region and zero elsewhere. The same mask is used for the ordinary FlowEdit update and for both trajectory controls introduced below, so every intervention stays spatially confined to the detected text.
Region-masked Flow Editing. Let be with velocity field , and let be the source and target captions produced by the LLM. Starting from , our region-masked implementation integrates
(2)
where with , and the target branch is centered at the current edited latent while reusing the same noise realization: . The time variable runs from the noisy end toward the data end, so decreases from one to zero over the solver steps. The source branch is a reference path from the source latent toward Gaussian noise. The target branch carries the same stochastic residual but is centered at . The shared noise couples the two branches, while their caption-dependent difference supplies the semantic edit direction. In this view, is the only state that accumulates the edit, while the two DiT evaluations provide the local direction used to update it. The gain scales the velocity difference inside , and editing is restricted to the first of steps. Latents outside are never modified, so the background stays frozen in latent space.
Ignition Failure. The previous method relies on the source and target branches diverging enough for to carry a semantic edit signal. In IIMT, the two branches share noise and differ only in a small text region, so their inputs and conditional velocities stay nearly identical near . Consequently, and the displacement stay near zero, and the source text remains unchanged. Increasing cannot amplify a signal that is not there: zero displacement is a fixed point of the update, and escaping it requires modifying the coupling itself rather than the gain applied to it.
We address this fixed point with two trajectory controls confined to the mask , each targeting a distinct requirement for ignition. Region Coupling Release first loosens the noise coupling between the branches early in the trajectory, giving the target branch room to diverge from the source. Coupling Expansion then amplifies the resulting displacement in the middle of the trajectory, giving the target branch a direction to follow once it can move.
3.2 Region Coupling Release
Region Coupling Release (RCR) targets the root cause of the fixed point, the perfect noise correlation between the branches. Instead of feeding the target branch the source noise , RCR feeds it a partially decorrelated sample inside the mask. With a schedule ramping linearly from 1 (for ) to 0 (for ), we draw an independent , fresh at every step and every noise sample like , and form
Inside the text region the target branch now sees noise that is only -correlated with the source branch, so the two velocities are evaluated at genuinely different points and their difference stops vanishing. The edit has room to ignite.
Three design choices govern this mechanism. First, the decorrelation is partial, : Eq. (3) preserves the marginal distribution of while interpolating its coupling strength, whereas full decorrelation would sever the branches and degrade the edit into mask-region regeneration. Second, the perturbation in Eq. (4) is additive on top of the accumulated displacement rather than an attenuation of it, so it preserves existing edit progress instead of rescaling the update and shrinking the edit along with the noise, as ordinary guidance schemes do. Third, the release follows a schedule: it is widest early, for , where the trajectory is noise-dominated and divergence is cheap, and it closes completely for , restoring exact coupling so that late steps refine glyphs under the same conditions as vanilla FlowEdit. Together these choices let RCR open a controlled window for divergence without discarding the coupling that grounds the edit in the source image.
3.3 Coupling Expansion
RCR opens room to ignite but supplies no direction of its own, since a decorrelated branch may drift toward any content consistent with the target caption. The needed direction is already present in the trajectory: the accumulated displacement points from the source toward the emerging edit. Coupling Expansion (CE) feeds this displacement back into the target branch as positive feedback:
so the target branch is evaluated at a point where the nascent edit already appears more advanced than it is. The conditional velocity then responds by completing that edit, and the loop closes on itself.
The gate confines this feedback to the middle of the trajectory for a structural reason. Early on, there is no displacement to expand because , so CE stays inert on its own and cannot inject a spurious direction before RCR has created one. Late in the trajectory, the gate closes again to keep runaway amplification from distorting glyph shapes during refinement. The feedback is also self-limiting within the edit window, since and editing stops at , so the expansion never compounds without bound.
RCR and CE are complementary rather than redundant: RCR opens the door and CE walks the edit through it. Our subsequent ablation (§4.4) shows that CE alone carries most of the gain, while RCR adds a further increment on top and composes positively with CE across most translation directions.
4 Experiments
4.1 Evaluation and Implementation Details
Benchmarks. TTV (Translatotron-V(ision)) [15] contains synthetic text images built from IWSLT14/17. Following the official splits, we evaluate De→En (3,526), En→De (3,524), Fr→En (4,925), and Ro→En (1,008). PRIM [26] contains photographed real-world text strips. We evaluate all five directions En→{De, Fr, Cs, Ru, Ro} (340 each) against the official Google-translation references. ScenePair [23] provides 1,280 real scene photographs with English text. We translate every whole scene image into Chinese (En→Zh). For a controlled comparison, all methods use the same text boxes and target translations, with each method receiving them in its official input format. Fixing these upstream OCR and translation stages prevents their errors from confounding the comparison. The resulting protocol isolates the rendering stage and measures how reliably each method places the prescribed Chinese text within the specified image regions. Exact-match ACC is computed by the recognizer of PP-OCRv6 [43].
Protocol. Following Lyu et al. [18], translated text is read back from the edited image with EasyOCR v1.7. We use per-direction language packs, sort boxes by top-left coordinate, and join them with spaces as in
Table 1 TTV benchmark with EasyOCR read-back and lowercased sacreBLEU. "IIMT-tuned" marks systems trained or fine-tuned on IIMT data. GPT-Image-1 and Qwen-Image are zero-shot prompted unified models. "Masked FlowEdit" is our baseline with identical hyperparameters and the trajectory controls disabled. Average columns are unweighted means over the four directions. For each metric, best in bold, second underlined.
| Model | IIMT-tuned | BLEU↑ | Avg. | ||||
|---|---|---|---|---|---|---|---|
| De→En | En→De | Fr→En | Ro→En | BLEU↑ | SSIM↑ | ||
| GPT-Image-1 [20] | 20.75 | 19.61 | 27.38 | 24.50 | 23.06 | 0.734 | |
| Qwen-Image [31] | 0.23 | 0.21 | 0.20 | 0.22 | 0.22 | 0.785 | |
| OCR+MT+T2I [15] | ✓ | 15.37 | 13.22 | 21.60 | 18.34 | 17.13 | 0.771 |
| PEIT+T2I [47] | ✓ | 10.91 | 8.77 | 18.51 | 14.54 | 13.18 | 0.769 |
| Translatotron-V [15] | ✓ | 15.39 | 13.23 | 22.20 | 18.44 | 17.32 | 0.776 |
| UniTranslator [18] | ✓ | 25.03 | 13.41 | 27.77 | 18.45 | 21.17 | 0.805 |
| Masked FlowEdit [12] | 24.43 | 17.53 | 26.89 | 22.84 | 22.92 | 0.754 | |
| FlowTranslator (Ours) | 25.15 | 17.15 | 27.07 | 23.37 | 23.19 | 0.746 | |
the official PRIM script. We score the text with sacreBLEU using the 13a tokenizer. TTV is lowercased following the IWSLT convention, while PRIM uses both official reference sets. We also report COMET with wmt22-comet-da [24]. BLEU follows the standard machine-translation metric [21]. For TTV, image quality is measured by SSIM against the source, using the structural-similarity formulation of Wang et al. [30]. To reduce sensitivity to initialization, we evaluate our configurations with multiple random seeds and report the mean across seeds. For each seed, the Avg. columns are then computed as unweighted means across translation directions. OCR read-back systematically underestimates rendered-text quality, and reader errors are attributed to the system under test. We report EasyOCR numbers in all comparisons for protocol parity. An LLM-bridged alignment check also found ≈1.4% of TTV De→En reference lines locally misaligned by ±1 line, a shared defect of the reference files that shifts corpus BLEU on our outputs by well under one point.
Implementation. We use Z-Image-Turbo [41], a distilled 6B flow-matching T2I model, with T=50 steps and editing window . For all TTV and PRIM runs, we set RCR (, ), CE , velocity gain , and latent-mask dilation to 15%. Images are resized so the long side is 1024 using bicubic interpolation, with dimensions rounded to multiples of 16. PRIM strips are bicubic-upscaled to the same editing canvas () and downscaled to their original size after editing. Text regions and recognized strings come from the PP-OCRv5 [4]. Translations and captions come from one call per image to a commercial LLM (Doubao-Seed-2.0-lite). The LLM returns the translations embedded in a pair of descriptive captions. The source caption describes the scene with the original strings in quotes. The target caption is identical except that the quoted strings are replaced by their translations. The prompt contains the image and the numbered OCR text lines. It asks the LLM to translate each line into a concise target-language scene-text phrase and to return strict JSON with the translation pairs, a one-sentence English source caption that quotes every source line verbatim, and a target caption that changes only those quoted strings to their translations. The prompt also requires the original line order and all non-text scene descriptions to remain unchanged. All experiments are conducted on a single NVIDIA RTX 4090 GPU.
4.2 Main Results
TTV. Tab. 1 compares FlowTranslator with training-based and training-free IIMT systems. Qwen-Image performs poorly with an average BLEU of 0.22, whereas GPT-Image-1 reaches a competitive average of 23.06. FlowTranslator attains the best average BLEU, 23.19 versus 21.17 for UniTranslator, the strongest IIMT-tuned system. It exceeds UniTranslator on three of four directions: 25.15 versus 25.03 on De→En, 17.15 versus 13.41 on En→De, and 23.37 versus 18.45 on Ro→En. On Fr→En, it scores 27.07 versus 27.77. Against our own masked-FlowEdit baseline with the same hyperparameters, the controls are roughly neutral on TTV's large clean glyphs (-0.4 to +0.7 BLEU). En→De remains our weakest direction at 17.15. A plausible, though

Figure 3 Qualitative results on TTV. Each row shows the source image, the benchmark target image, and the FlowTranslator output for one translation direction. The examples cover EN→DE, FR→EN, DE→EN, and RO→EN.
unverified, contributor is reader fragility on umlauts and compounds. Our average SSIM (0.746) is below the IIMT-tuned systems' range of 0.77 to 0.80. Stronger edits deviate more from the reference renders. Fig. 3 provides representative examples from all four TTV directions. FlowTranslator renders the translated content with layouts and visual styles close to the target images while preserving the source background.
PRIM. On photographed real-world strips (Tab. 2), FlowTranslator obtains the highest reported scores on every direction except En→Ru. For example, it scores 35.2 / 63.0 on En→De versus 13.1 / 48.7 for UniTranslator. It also achieves the highest average BLEU, 20.6 versus 12.8, and COMET, 57.2 versus 50.7, despite UniTranslator being fine-tuned on 7M in-domain pairs. Over our own masked-FlowEdit baseline with the same hyperparameters, the controls add +2.4 to +5.3 BLEU per direction (average 16.9→20.6, COMET 53.3→57.2). Our failure direction is En→Ru. Z-Image-Turbo's prior renders Cyrillic unreliably, producing near-Latin glyph substitutions that OCR cannot read and resulting in 4.6 BLEU. Training-free operation inherits the script coverage of the frozen backbone.
4.3 Real-Scene Generalization
Under this rendering-focused protocol, Tab. 3 evaluates FlowTranslator against six existing editing systems. FlowTranslator reaches 40.08% exact-match ACC with an SSIM of 0.9509. Among the two trained editors with Chinese glyph support, it exceeds AnyText by 3.28 points and TextFlux by 25.78 points. The other four systems remain below 0.4% exact-match ACC in this heterogeneous stress test. DiffSTE has the highest SSIM at 0.9796 but near-zero ACC, while Kontext has the lowest SSIM at 0.4273. Against the Masked FlowEdit baseline in the same pipeline, the controls lift exact-match ACC from 33.44% to 40.08%, an increase of 6.64 points, while SSIM changes from 0.9533 to 0.9509 Fig. 4 shows qualitative outputs on ScenePair. FlowTranslator replaces the selected English text with the requested Chinese translation while retaining the surrounding scene and the local appearance of the text region.
Table 2 PRIM benchmark with EasyOCR read-back. BLEU uses both official reference sets, while COMET uses the Google references. Averages are computed from unrounded per-direction scores.
| Model | IIMT-tuned | BLEU↑ / COMET↑ | Avg. | |||||
|---|---|---|---|---|---|---|---|---|
| En-De | En-Fr | En-Cs | En-Ru | En-Ro | BLEU | COMET | ||
| PARSeq-mT-Render [26] | ✓ | 9.5 / 41.7 | 13.8 / 46.9 | 7.7 / 43.9 | 5.5 / 48.1 | 12.8 / 53.5 | 9.9 | 46.8 |
| PEIT-Render [47] | ✓ | 10.4 / 45.1 | 14.0 / 48.1 | 7.9 / 46.2 | 5.3 / 47.7 | 14.2 / 52.9 | 10.4 | 48.0 |
| Translatotron-V [15] | ✓ | 1.7 / 34.3 | 1.9 / 30.2 | 1.1 / 30.5 | 0.9 / 32.0 | 1.3 / 33.9 | 1.4 | 32.2 |
| VisTrans [26] | ✓ | 12.6 / 44.4 | 17.0 / 49.4 | 5.9 / 41.8 | 7.2 / 49.4 | 13.9 / 50.2 | 11.3 | 47.0 |
| UniTranslator [18] | ✓ | 13.1 / 48.7 | 21.6 / 58.5 | 7.4 / 43.3 | 8.4 / 50.2 | 13.5 / 52.8 | 12.8 | 50.7 |
| Masked FlowEdit [12] | 29.9 / 56.7 | 24.6 / 57.7 | 15.5 / 56.9 | 2.2 / 41.1 | 12.3 / 54.3 | 16.9 | 53.3 | |
| FlowTranslator (Ours) | 35.2 / 63.0 | 28.5 / 60.3 | 19.8 / 61.1 | 4.6 / 43.9 | 14.9 / 57.4 | 20.6 | 57.2 | |
Table 3 ScenePair En→Zh whole-image translation on 1,280 real scenes. All methods share the same text boxes and target translations. "STE-tr." marks scene-text-editing training and "Zh" native Chinese glyph support. Rows without "Zh" are capability diagnostics rather than head-to-head competitors.
| Model | STE-tr. | Zh | ACC↑ | SSIM↑ |
|---|---|---|---|---|
| TextDiffuser [3] | ✓ | 0.00 | 0.9434 | |
| DiffSTE [10] | ✓ | 0.23 | 0.9796 | |
| AnyText [28] | ✓ | ✓ | 36.80 | 0.8157 |
| TextFlux [34] | ✓ | ✓ | 14.30 | 0.9506 |
| FLUX.1-Fill [2] | 0.39 | 0.9231 | ||
| FLUX.1-Kontext [1] | 0.00 | 0.4273 | ||
| Masked FlowEdit [12] | ✓ | 33.44 | 0.9533 | |
| FlowTranslator (Ours) | ✓ | 40.08 | 0.9509 |
4.4 Ablations
Trajectory Controls. Holding the pipeline, masks, prompts, and all other hyperparameters fixed, adding RCR and CE raises average PRIM BLEU from 16.88 to 20.57, a relative gain of 22%. The two single-mechanism arms show where this gain comes from. CE alone already recovers 3.33 of the full 3.69-point improvement, roughly 90% of the total. RCR is nonetheless not redundant: it composes positively with CE on four of the five directions, and only on En→Ru does adding RCR on top of CE cost a small amount, lowering BLEU from 5.03 to 4.57. This division of labor matches the mechanism described in §3: CE supplies the direction that drives most of the edit, while RCR supplies the room for that direction to act.
Table 4 Component ablations. Control rows are full PRIM runs (340 images per direction, averaged over the five directions) sharing the same hyperparameters (, 15% dilation, RCR , CE ) and differing only in the mechanism switches.
| Component | Setting | BLEU↑ |
|---|---|---|
| Controls (PRIM avg.) | Masked FlowEdit (Baseline) | 16.88 |
| +RCR only | 17.40 | |
| +CE only | 20.21 | |
| +RCR+CE (Ours) | 20.57 | |
| Edit window | 43 | 18.95 |
| 45 (Default) | 20.57 | |
| 48 | 14.99 |
Edit Window. The edit window controls how many of the solver steps carry the edit. Tab. 4 shows a clear peak at : shrinking it to 43 leaves visible source text and drops BLEU to 18.95, while extending

Figure 4 Qualitative comparison on whole-image ScenePair En→Zh translation. For each example, we show the source image (with red boxes marking text to be translated), the requested target text, and outputs of existing open-source methods, followed by FlowTranslator. FlowTranslator renders the requested Chinese text within the original region. It preserves both the surrounding scene and the local text appearance.
it to 48 over-edits the region and destroys layout, dropping BLEU further to 14.99. We use for in all other experiments as the setting that balances these two failure modes. The trajectory controls and the edit window act on different benchmarks in a consistent direction. On ScenePair, adding the controls raises exact-match ACC from 33.44% to 40.08% (Tab. 3), the same pattern of improvement seen on PRIM.
Cross-benchmark Analysis. Across benchmarks, the relative gain from the trajectory controls tracks how hard the edit is to ignite. The gain is largest on PRIM, where the translated text occupies a small, photographic strip of the image (+22% relative average BLEU). But it is smallest on TTV, where the text is large, clean, and synthetic (+2% on Ro→En, its most affected direction). The benchmarks differ in more than text-area ratio, so this pattern is consistent with the ignition interpretation that hard-to-ignite, small-glyph regimes benefit most from explicit trajectory intervention. Importantly, the same control configuration is used across benchmarks, so the difference in gains does not arise from benchmark-specific tuning. The agreement between PRIM BLEU and ScenePair exact-match ACC further shows that the controls improve text completion under both strip-level and whole-image evaluation.
5 Conclusion
We presented FlowTranslator, a training-free IIMT framework. It replaced the trained rendering stage of an IIMT cascade with region-masked flow editing on a frozen text-to-image model. Two mask-confined trajectory controls, Region Coupling Release and Coupling Expansion, resolved an ignition failure specific to the text-minority regime of cross-lingual editing. Under the EasyOCR read-back protocol, FlowTranslator attained the highest reported average BLEU and COMET on PRIM. It also attained the highest average BLEU on Translatotron-V(ision), all without any IIMT training data. On real ScenePair photographs translated into Chinese, it reached 40.1% exact-match accuracy, exceeding six released editing systems. Once its branch coupling was corrected for the text-minority regime, a frozen T2I flow model could match or exceed systems trained on millions of IIMT pairs. This established flow-based editing as a strong training-free baseline for IIMT. The method still inherited the script coverage of its frozen backbone, and Cyrillic rendering failed in our experiments. Extending the trajectory controls to backbones with broader script support remains a direction for future work.
References
[1] Stephen Batifol, Andreas Blattmann, Frederic Boesel, Saksham Consul, Cyril Diagne, Tim Dockhorn, Jack English, Zion English, Patrick Esser, Sumith Kulal, et al. Flux.1 kontext: Flow matching for in-context image generation and editing in latent space. arXiv preprint arXiv:2506.15742, 2025.
[2] Black Forest Labs. FLUX. https://github.com/black-forest-labs/flux, 2024.
[3] Jingye Chen, Yupan Huang, Tengchao Lv, Lei Cui, Qifeng Chen, and Furu Wei. Textdiffuser: Diffusion models as text painters. In Advances in Neural Information Processing Systems, 2023.
[4] Cheng Cui, Ting Sun, Manhui Lyu, Tingquan Liu, Zelun Zhang, Yikang Ma, Shuangqing Ma, Zhihao Yu, Zhipeng Song, Jinhang Guo, et al. Paddleocr 3.0 technical report. arXiv preprint arXiv:2507.05595, 2025.
[5] Yongkun Du, Zhineng Chen, Caiyan Jia, Xiaoting Yin, Tianlun Zheng, Chenxia Li, Yuning Du, and Yu-Gang Jiang. Svtr: Scene text recognition with a single visual model. In IJCAI, pages 884–890, 2022.
[6] Yongkun Du, Zhineng Chen, Hongtao Xie, Caiyan Jia, and Yu-Gang Jiang. Svtrv2: Ctc beats encoder-decoder models in scene text recognition. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 20147–20156. IEEE, 2025.
[7] Yongkun Du, Zhineng Chen, Yazhen Xie, Weikang Bai, Hao Feng, Wei Shi, Yuchen Su, Can Huang, and Yu-Gang Jiang. Unirec-0.1 b: Unified text and formula recognition with 0.1 b parameters. In European Conference on Computer Vision, pages 36–55. Springer, 2026.
[8] Patrick Esser, Sumith Kulal, Andreas Blattmann, Rahim Entezari, Jonas Müller, Harry Saini, Yam Levi, Dominik Lorenz, Axel Sauer, Frederic Boesel, Dustin Podell, Tim Dockhorn, Zion English, Kyle Lacey, Alex Goodwin, Yannik Marek, and Robin Rombach. Scaling rectified flow transformers for high-resolution image synthesis. In International Conference on Machine Learning, 2024.
[9] Zhengyao Fang, Pengyuan Lyu, Jingjing Wu, Chengquan Zhang, Jun Yu, Guangming Lu, and Wenjie Pei. Recognition-synergistic scene text editing. arXiv preprint arXiv:2503.08387, 2025.
[10] Jiabao Ji, Guanhua Zhang, Zhaowen Wang, Bairu Hou, Zhifei Zhang, Brian Price, and Shiyu Chang. Improving diffusion models for scene text editing with dual encoders. Transactions on Machine Learning Research, 2023.
[11] Jeongsol Kim, Yeobin Hong, Jonghyun Park, and Jong Chul Ye. Flowalign: Trajectory-regularized, inversion-free flow-based image editing. arXiv preprint arXiv:2505.23145, 2025.
[12] Vladimir Kulikov, Matan Kleiner, Inbar Huberman-Spiegelglas, and Tomer Michaeli. Flowedit: Inversion-free text-based editing using pre-trained flow models. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 19721–19730, 2025.
[13] Rui Lan, Yancheng Bai, Xu Duan, Mingxing Li, Dongyang Jin, Ryan Xu, Dong Nie, Lei Sun, and Xiangxiang Chu. Flux-text: A simple and advanced diffusion transformer baseline for scene text editing. arXiv preprint arXiv:2505.03329, 2025.
[14] Zhibin Lan, Jiawei Yu, Xiang Li, Wen Zhang, Jian Luan, Bin Wang, Degen Huang, and Jinsong Su. Exploring better text image translation with multimodal codebook. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, pages 3479–3491, 2023.
[15] Zhibin Lan, Liqiang Niu, Fandong Meng, Jie Zhou, Min Zhang, and Jinsong Su. Translatotron-v(ision): An end-to-end model for in-image machine translation. In Findings of the Association for Computational Linguistics: ACL 2024, pages 5472–5485, 2024.
[16] Yubo Li, Xugong Qin, Peng Zhang, Hailun Lin, Gangyan Zeng, and Kexin Zhang. Towards training-free scene text editing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15291–15301, June 2026.
[17] Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. arXiv preprint arXiv:2210.02747, 2022.
[18] Jiahao Lyu, Pei Fu, Zhenhang Li, Shaojie Zhang, Jiahui Yang, Yu Zhou, Can Ma, Zhenbo Luo, and Jian Luan. Unittranslator: A unified multi-modal framework for end-to-end in-image machine translation. arXiv preprint arXiv:2606.24333, 2026.
[19] Elman Mansimov, Mitchell Stern, Mia Chen, Orhan Firat, Jakob Uszkoreit, and Puneet Jain. Towards end-to-end in-image neural machine translation. In Proceedings of the First International Workshop on Natural Language Processing Beyond Text, pages 70–74, 2020.
[20] OpenAI. Introducing our latest image generation model in the api. https://openai.com/index/image-generation-api/, April 2025.
[21] Kishore Papineni, Salim Roukos, Todd Ward, and Wei-Jing Zhu. Bleu: A method for automatic evaluation of machine translation. In Proceedings of the 40th Annual Meeting of the Association for Computational Linguistics, pages 311–318, 2002.
[22] Zhaoyang Qian, Peng Zhang, Bowen Yang, Kai Fan, Yiming Ma, Derek F. Wong, Xiang Sun, and Rongrong Ji. Anytrans: Translate anytext in the image with large scale models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 2432–2444, 2024.
[23] Yadong Qu, Qingfeng Tan, Hongtao Xie, Jianjun Xu, Yuxin Wang, and Yongdong Zhang. Exploring stroke-level modifications for scene text editing. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 37, pages 2119–2127, 2023.
[24] Ricardo Rei, Craig Stewart, Ana C Farinha, and Alon Lavie. COMET: A neural framework for MT evaluation. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, pages 2685–2702, 2020.
[25] Priyanka Roy, Saumik Bhattacharya, Subhankar Ghosh, and Umapada Pal. STEFANN: Scene text editor using font adaptive neural network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 13228–13237, 2020.
[26] Yanzhi Tian, Zeming Liu, Zhengyang Liu, Chong Feng, Xin Li, Heyan Huang, and Yuhang Guo. Prim: Towards practical in-image multilingual machine translation. arXiv preprint arXiv:2509.05146, 2025.
[27] Yanzhi Tian, Zeming Liu, Zhengyang Liu, and Yuhang Guo. Exploring in-image machine translation with real-world background. In Findings of the Association for Computational Linguistics: ACL 2025, 2025.
[28] Yuxiang Tuo, Wangmeng Xiang, Jun-Yan He, Yifeng Geng, and Xuansong Xie. Anytext: Multilingual visual text generation and editing. In International Conference on Learning Representations, 2024.
[29] Jiangshan Wang, Junfu Pu, Zhongang Qi, Jiayi Guo, Yue Ma, Nisha Huang, Yuxin Chen, Xiu Li, and Ying Shan. Taming rectified flow for inversion and editing. arXiv preprint arXiv:2411.04746, 2024.
[30] Zhou Wang, Alan C. Bovik, Hamid R. Sheikh, and Eero P. Simoncelli. Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing, 13(4):600–612, 2004.
[31] Chenfei Wu, Jiahao Li, Jingren Zhou, Junyang Lin, Kaiyuan Gao, Kun Yan, Shengming Yin, Shuai Bai, Xiao Xu, Yilei Chen, Yuxiang Chen, Zecheng Tang, Zekai Zhang, Zhengyi Wang, An Yang, Bowen Yu, Chen Cheng, Dayiheng Liu, Deqing Li, Hang Zhang, Hao Meng, Hu Wei, Jingyuan Ni, Kai Chen, Kuan Cao, Liang Peng, Lin Qu, Minggang Wu, Peng Wang, Shuting Yu, Tingkun Wen, Wensen Feng, Xiaoxiao Xu, Yi Wang, Yichang Zhang, Yongqiang Zhu, Yujia Wu, Yuxuan Cai, and Zenan Liu. Qwen-image technical report. arXiv preprint arXiv:2508.02324, 2025.
[32] Liheng Wu, Cheng Zhang, Jun Liu, Jing Han, Jun Liu, Errui Ding, and Xiang Bai. Editing text in the wild. In Proceedings of the 27th ACM International Conference on Multimedia, pages 1500–1508, 2019.
[33] Yazhen Xie, Xingsong Ye, and Zhineng Chen. Decompose radicals, then reward: Fine-grained inspection for accurate chinese text rendering. arXiv preprint arXiv:2609.37569, 2026.
[34] Yu Xie, Jielei Zhang, Pengyu Chen, Ziyue Wang, Weihang Wang, Longwen Gao, Peiyi Li, Huyang Sun, Qiang Zhang, Qian Qiao, Jiaqing Fan, and Zhouhui Lian. Textflux: An ocr-free dit model for high-fidelity multilingual scene text synthesis. arXiv preprint arXiv:2505.17778, 2025.
[35] Qiang Yang, Jing Huang, and Zhi Lin. Swaptext: Image based texts transfer in scenes. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 14700–14709, 2020.
[36] Xingsong Ye, Yongkun Du, Yunbo Tao, and Zhineng Chen. Textsrr: diffusion-based data synthesis for scene text recognition. In 2025 IEEE/CVF International Conference on Computer Vision (ICCV), pages 17464–17473. IEEE, 2025.
[37] Xingsong Ye, Yongkun Du, JiaXin Zhang, Chen Li, Jing LYU, and Zhineng Chen. What's wrong with synthetic data for scene text recognition? a strong synthetic engine with diverse simulations and self-evolution. In 2026 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 16645–16654. IEEE, 2026.
[38] Xingsong Ye, Yongkun Du, Jiaxin Zhang, Zhixian Li, Chong Sun, Chen Li, Jing Lyu, Lianwen Jin, and Zhineng Chen. All-in-one multilingual scene text recognition with script-aware mixture-of-experts. arXiv preprint arXiv:2609.24058, 2026.
[39] Xingsong Ye, Yongkun Du, Jiaxin Zhang, Chong Sun, and Zhineng Chen. Real in, real out: What if we only use real data for scene text editing? In Advances in Neural Information Processing Systems, 2026.
[40] Xingsong Ye, Yongkun Du, Jiaxin Zhang, Haojie Zhang, Chong Sun, Chen Li, Jing Lyu, and Zhineng Chen. Advancing wordart-oriented scene text recognition: Datasets and methods. In European Conference on Computer Vision, pages 77–94. Springer, 2026.
[41] Z-Image Team. Z-image: An efficient image generation foundation model with single-stream diffusion transformer. arXiv preprint arXiv:2511.22699, 2025.
[42] Weichao Zeng, Yan Shu, Zhenhang Li, Dongbao Yang, and Yu Zhou. Textctrl: Diffusion-based scene text editing with prior guidance control. Advances in Neural Information Processing Systems, 37:138569–138594, 2024.
[43] Yubo Zhang, Xueqing Wang, Manhui Lin, Yue Zhang, Penglongyi Deng, Ting Sun, Tingquan Gao, Zelun Zhang, Jiaxuan Liu, Changda Zhou, et al. Pp-ocrv6: From 1.5 m to 34.5 m parameters, surpassing billion-scale vlms on ocr tasks. arXiv preprint arXiv:2606.13108, 2026.
[44] Yiming Zhao and Zhouhui Lian. Udifftext: A unified framework for high-quality text synthesis in arbitrary images via character-aware diffusion models. In European Conference on Computer Vision, pages 217–233, 2024.
[45] Chen Zheng, Yuan Lan, and Yang Wang. Lanpaint: Training-free diffusion inpainting with asymptotically exact and fast conditional sampling. arXiv preprint arXiv:2502.03491, 2025.
[46] Tianlun Zheng, Zhineng Chen, Shancheng Fang, Hongtao Xie, and Yu-Gang Jiang. Cdistnet: Perceiving multi-domain character distance for robust text recognition. International Journal of Computer Vision, 132(2):300–318, 2024.
[47] Shaolin Zhu, Shangjie Li, Yikun Lei, and Deyi Xiong. PEIT: Bridging the modality gap with pre-trained models for end-to-end image translation. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, pages 13433–13447, 2023.
[48] Tianrui Zhu, Shiyi Zhang, Jiawei Shao, and Yansong Tang. Kv-edit: Training-free image editing for precise background preservation. arXiv preprint arXiv:2502.17363, 2025.
Appendix
This appendix provides trajectory-level diagnostics for the two mask-confined controls introduced in the main text. Using four matched arms (Masked FlowEdit (denoted as FlowEdit in the figures), +RCR, +CE, and +RCR+CE), we test whether RCR relaxes early branch coupling and whether CE amplifies the accumulated displacement without destabilizing the latent trajectory. All diagnostics use 12 paired images under the default setting (, , , and ).
A.1 Trajectory Diagnostics for Region Coupling Release
(a) velocity alignment

(b) edit signal
(c) RCR faithfulness
(d) first edit step

Figure S1 RCR diagnostics: dashed/solid pairs nearly overlap at plotting resolution (Masked FlowEdit with +CE, and +RCR with +RCR+CE). (a) In-mask velocity alignment. Bands show the min-max range over 12 images for Masked FlowEdit and +RCR. Dotted line: . (b) In-mask edit-signal concentration on a log scale. The first third of the edit window is shaded (+36%). (c) Prescribed versus realized noise correlation (mean absolute error 0.0032). (d) First-step RCR and CE perturbations by arm. Zeros are explicitly labeled.
Paired diagnostic protocol. We instrument the sampling loop with per-step probes and compare four arms on matched stochastic trajectories: Masked FlowEdit, +RCR, +CE, and +RCR + CE. The arms differ only in , set respectively to , , , and , with and . Each arm uses the same 12 images, boxes, prompts, and seed for 50 scheduler steps, of which 45 are edit steps, giving 540 per-step records per arm. Let be the binary region mask broadcast over the latent channels, the clean source latent, and the running edit latent at noise level . All probes use mask-normalized root-mean-square (RMS) values, making them comparable across region sizes: , and likewise over . Let and , and let . To diagnose RCR, we log the in-mask velocity alignment and the edit-signal concentration . RCR replaces the target-branch noise inside the mask with a -correlated sample, with and a linear ramp that is 1 for and 0 for , so
Table S1 Trajectory diagnostics over 12 images (45 edit steps each). Rows are means across images except the two "max" rows, which are maxima over images and steps. "Early" denotes the first third of the edit window. The ignition step uses a single absolute threshold shared by all arms. Dashes mark probes that are inactive in an arm by construction.
| Diagnostic | Masked FlowEdit | +RCR | +CE | +RCR+CE |
|---|---|---|---|---|
| early cosin | 0.740 | 0.481 | 0.738 | 0.480 |
| early signal ratio | 1.94 | 2.63 | 1.93 | 2.63 |
| ignition step ↓ | 9.50 | 7.75 | 9.42 | 7.67 |
| final | 0.440 | 0.443 | 0.533 | 0.513 |
| max rel. CE pert. | 0.000 | 0.000 | 0.267 | 0.246 |
| max | 3.991 | 4.052 | 3.991 | 4.053 |
| - | 0.0032 | - | 0.0032 | |
| RCR pert. at first step | - | 0.962 | - | 0.962 |
it injects . We log both the prescribed and the realized . The probes require no additional network evaluations and draw no random numbers, so enabling them does not perturb the trajectory being measured.
Paired-trajectory control. Drawing RCR's extra noise from the global generator would advance the random stream and desynchronize every subsequent , so the arms would follow different trajectories and no per-step difference could be attributed to the mechanism. We therefore draw from a dedicated fixed-seed generator, and we verify the result rather than assume it: at the first edit step, where CE is inactive because the accumulated displacement is zero, the Masked FlowEdit and +CE arms agree to the last logged digit on all 12 images, while +RCR differs on all 12. The update is also region-masked, so exactly at every step of every arm. With paired images, a unanimous direction in a sign test corresponds to a two-sided . All reported -values are exact two-sided paired sign tests with ties excluded.
In-mask edit-signal concentration. RCR lowers the early in-mask alignment of the two velocity fields from to 0.481, so the residual that drives the edit is subject to less cancellation inside the region. The concentration of that residual in the mask rises from 1.94 to 2.63, i.e. +36% (Fig. S1(a,b)). Both effects hold on 12/12 images ( each), and both originate at high noise: RCR stops injecting additional decorrelation once the schedule reaches , after which late glyph refinement proceeds under restored branch-noise coupling. The comparison also localizes the cause: +CE alone moves the alignment by only -0.002, so it is the branch-noise decorrelation, not the displacement amplification, that produces the stronger in-mask signal.
Realized noise coupling. The mean absolute difference between prescribed and measured is 0.0032 across all steps and images, including the linear ramp (Fig. S1(c)). This agreement confirms that the implemented correlation follows the prescribed schedule.
First-step activation. CE injects , which is identically zero while . RCR injects independently of the accumulated displacement and is therefore active at the noisy end: its first-step magnitude averages 0.962 over 12 images, versus 0.000 for CE (Fig. S1(d)). The two terms are thus active in complementary phases, RCR decaying as the branches recouple and CE peaking in mid-trajectory under its gate.
A.2 Trajectory Diagnostics for Coupling Expansion
Paired displacement probes. Using the same four paired arms, we measure the in-mask displacement from the source,
CE amplifies the accumulated displacement by , injecting . We log this perturbation relative to the target-branch latent it modifies, together with the per-step update magnitude and . The update is region-masked, and we verify at every step of every arm.
(a) departure from source

(b) ignition step
(c) CE remains self-limiting


(d) latent extreme
Figure S2 CE effectiveness and stability: pairing as in Fig. S1. (a) In-mask displacement normalized by the Masked FlowEdit final value. Dashed line: shared 10% ignition threshold. (b) Ignition step with per-image values. (c) Relative CE perturbation. CE-off arms lie at zero. (d) Paired per-step difference in the latent maximum relative to Masked FlowEdit. Global maxima for Masked FlowEdit and +RCR+CE differ by 1.6%.
Final edit displacement. CE raises the final in-mask displacement from 0.440 to 0.533, i.e. +21%, on 11/12 images ( ), and to 0.513 (+16%) alongside RCR on 10/12 images ( ). This division of labor matches the mechanism: RCR alone changes the final displacement by only +0.7% and primarily affects edit onset, whereas CE affects final magnitude. Using an ignition threshold shared by all arms (the first step at which reaches 10% of the Masked FlowEdit arm's final displacement on the same image), the edit departs from the source at step 9.50 for the baseline and 7.75 under RCR, i.e. 1.75 steps earlier, earlier on 9/12 images, later on 1/12 and tied on 2/12 ( ). +CE alone reaches 9.42 while +RCR+CE reaches 7.67, earlier on 10/12 ( ) (Fig. S2(a,b)). In this controlled comparison, the earlier ignition is therefore attributable to RCR, consistent with CE having nothing to amplify at the start.
Self-limiting feedback. Because CE amplifies the displacement it helps create, we measure the resulting perturbation. Its magnitude relative to the target-branch latent follows the intended profile, rising to a mean peak of 0.155 near and returning to nearly zero before glyph refinement (largest value over all images and steps 0.267). The per-step update grows smoothly rather than spiking. The latent maximum changes only 1.6%, from 3.991 for Masked FlowEdit to 4.053 with both controls, indicating little change in latent scale (Fig. S2(c,d)). All effects are mask-confined: out-of-mask displacement is zero at every logged step.

Figure S3 Additional qualitative examples of full-image scene text translation into Chinese. Each pair shows the source image on the left and the corresponding FlowTranslator output on the right.
A.3 Visualization and Discussion
Qualitative results. Fig. S3 provides six qualitative examples of full-image scene-text translation into Chinese. Across different source languages and text layouts, FlowTranslator replaces the selected source text with the requested Chinese translation while preserving the surrounding scene and the local appearance of the text region. These cases are consistent with the trajectory diagnostics above: the controls strengthen the edit within the detected text mask, while the background remains unchanged in latent space.