Research
UM-Text: A Unified Multimodal Model for Image Understanding and Visual Text Editing
UM-Text: A Unified Multimodal Model for Image Understanding and Visual Text Editing Overview Research area: Computer Vision / multimodal generative modeling — specifically visual text generation and i
- arXiv
- 2601.08321
- Published
- 2026-01-13
- Authors
- Lichen Ma, Xiaolong Fu, Gaojing Zhou, Zipeng Guo, Ting Zhu, Yichun Liu, Yu Shi, Jason Li, Junshi Huang
AI summary
UM-Text: A Unified Multimodal Model for Image Understanding and Visual Text EditingOverview
- Research area: Computer Vision / multimodal generative modeling — specifically visual text generation and instruction-based image editing that renders readable, style-matched text.
- Technical level: Advanced (assumes familiarity with diffusion models, flow matching, vision-language models, and OCR-based evaluation metrics).
- Scope: The paper proposes UM-Text, a unified framework that couples a vision-language model with a flow-matching diffusion model to plan and render text inside images from natural-language instructions, supported by a new 200k-image dataset and a tailored training strategy.
What This Paper Is About
Editing or adding text to an image is hard because the model must simultaneously understand the instruction, understand the reference image, decide what the text should say and where it should go, and render it in a font, color, and style that matches the surrounding scene. Existing methods typically require a human to specify the text content, position, font size, and color, and they do not guarantee that the result looks stylistically consistent with the image. UM-Text's goal is to let a user simply give a natural-language instruction plus a reference image, and have the model automatically produce the text content, the layout, the implicit attributes, and a harmonious final image.
Key Contributions
- UM-Text framework: A unified multimodal model that combines multimodal understanding with image editing, supporting four different text generation/editing patterns, trained with a three-stage strategy and region-based losses to enable flexible visual text generation and editing from plain natural-language instructions.
- UM-Encoder: A condition-aggregation module that fuses T5 text embeddings, character-level visual embeddings (from an OCR model), and VLM-derived multimodal embeddings, so that text layout and implicit attributes (font size, color, and similar) are adaptively generated for the task.
- UM-DATA-200K dataset: A manually annotated, large-scale dataset for visual text generation and editing, built from a pipeline over 40 million crawled e-commerce product posters and filtered down to 200k images.
- Regional Consistency Loss (RC Loss): A dual-space (latent and RGB) supervision signal that constrains glyph structure, aimed at preserving stroke integrity for complex characters and mitigating the "dilution effect" in mask-based editing.
Main Findings
- AnyText-benchmark editing results: UM-Text reports the best scores among compared methods on the editing task for both languages — English Sen.ACC 0.8553, NED 0.9395, FID 10.15, LPIPS 0.0656; Chinese Sen.ACC 0.7988, NED 0.8866, FID 10.50, LPIPS 0.0481. For reference, FLUX-Text on the same editing task reports English 0.8175 / 0.9193 / 12.35 / 0.0674 and Chinese 0.7213 / 0.8555 / 12.41 / 0.0487.
- UDiffText benchmark — reconstruction: UM-Text achieves SeqAcc of 0.99 (ICDAR13 8-character), 0.98 (ICDAR13), 0.97 (TextSeg), and 0.96 (LAION-OCR), with FID 6.57 and LPIPS 0.0479. DreamText reports 0.95 / 0.94 / 0.96 / 0.93, FID 12.13, and LPIPS 0.0328. The paper notes UM-Text's LPIPS is lower than DreamText's on reconstruction, attributing it to producing colors and textures that better match the image style.
- UDiffText benchmark — editing: UM-Text reports SeqAcc of 0.93 (ICDAR13 8ch), 0.93 (ICDAR13), 0.95 (TextSeg), and 0.93 (LAION-OCR), versus DreamText's 0.87 / 0.89 / 0.91 / 0.88, UDiffText's 0.84 / 0.83 / 0.84 / 0.78, and AnyText's 0.81 / 0.79 / 0.80 / 0.72.
- UMT-benchmark: With UM-Designer supplying layout and text for all methods, UM-Text reaches English Sen.ACC 0.790 / NED 0.866 and Chinese Sen.ACC 0.956 / NED 0.981, ahead of AnyText-2 (0.693 / 0.723 English; 0.720 / 0.806 Chinese), AnyText (0.518 / 0.643; 0.557 / 0.706), OmniGen2 (0.371 / 0.541 English), Step1X-Edit (0.358 / 0.524), and Flux-Kontext (0.325 / 0.502). Chinese is not reported for OmniGen2, Step1X-Edit, or Flux-Kontext.
- Ablation — character-level visual encoder matters most: Starting from a FLUX-Fill baseline (English 0.309 / 0.469, Chinese 0.029 / 0.062), adding the character-level visual encoder raises scores to 0.759 / 0.887 (English) and 0.676 / 0.839 (Chinese). Adding VLM embeddings gives 0.782 / 0.901 and 0.698 / 0.848.
- Ablation — both regional losses help: Adding the latent-space loss (RCL) yields 0.799 / 0.915 (English) and 0.725 / 0.856 (Chinese); adding the RGB-space loss (RCI) yields 0.824 / 0.925 and 0.746 / 0.863. The paper reports improvements of 4.8% and 4.2% from RCL and RCI respectively.
- Qualitative behavior: Compared with AnyText, AnyText-2, and FLUX-Text on English and Chinese multi-line text, the authors report that competing methods produce blurred characters, duplicated text, incorrect glyphs, background inconsistency, and color distortion, especially in complex Chinese cases, while UM-Text maintains glyph integrity and background consistency. In a multi-turn comparison with ChatGPT-4o, the authors report that ChatGPT-4o often introduces unnecessary text modifications while UM-Text stays consistent.
- Data pipeline yield: From 40 million crawled product posters, OCR and aesthetic filtering kept five million images with detailed text layouts and contents, and the final selection was 200k images.
Methodology in Plain English
The system has three cooperating parts. First, a vision-language model called UM-Designer looks at the instruction and the reference image and decides what the text should say, where it should be placed, and what implicit styling it should have — producing a binary mask and side information. Second, the UM-Encoder gathers all the conditions into one combined embedding: T5 text embeddings of the instruction, character-level visual embeddings obtained by rendering the text content into glyph images and passing them through an OCR model, and the VLM's own output tokens as implicit attribute embeddings. Third, a flow-matching diffusion model (initialized from FLUX-Fill) generates the final image using that combined conditioning plus the latent representations of the input image, the mask, and the masked condition image.
Training proceeds in three stages: (1) pre-train UM-Designer from Qwen2.5-VL weights on UM-DATA-200K for layout planning, text content generation, text detection, and recognition; (2) pre-train the diffusion model from FLUX-Fill on public benchmarks; (3) semantic alignment, where the connector of the UM-Encoder and the diffusion model are trained to link condition representations to the generation task.
Supervision uses two losses: the standard flow-matching loss, plus a Regional Consistency Loss applied only inside the target text regions. One version of this loss operates on the predicted velocity field in latent space; the other decodes the image, runs a Canny edge detector, and compares edges between prediction and ground truth in RGB space. A small mask tells the loss where the target text is, whether that mask came from UM-Designer or from a human.
Why This Matters
- Research impact: The paper argues that prior text-rendering pipelines depend on manual specification of content and attributes such as font size, color, and layout, and that line-level OCR embeddings lose character-stroke detail and reference-image context. It reframes text generation and editing as a single instruction-driven multimodal problem, and contributes both a dataset (UM-DATA-200K) and an evaluation benchmark (UMT-benchmark) for instruction-based visual text editing.
- Real-world applications (as named in the paper):
- Poster design.
- Scene text editing.
- Cross-language image translation.
- Generating product posters from clean product images.
- Industry relevance: The work is affiliated with JD.COM and Sun Yat-sen University, and the dataset is built from 40 million crawled e-commerce product posters, pointing directly at commercial product-image and advertising workflows. The paper also demonstrates multi-turn natural-language editing of posters and images, which is the interaction pattern used in consumer design tools.
Future Directions
- Language coverage: Evaluation is limited to English and Chinese; the paper notes that most prior unified understanding-and-generation methods "only support English," so extending to further languages and to handwriting/artistic text is a natural open question.
- Reconstruction LPIPS gap: UM-Text reports a higher (worse) LPIPS than DreamText on UDiffText reconstruction (0.0479 vs 0.0328), which the paper attributes to style-matching colors and textures. Whether this trade-off can be resolved is unresolved.
- Resolution and glyph granularity: Images are generated at 512×512 and individual rendering glyphs at 80×80; scaling both, and testing whether the regional consistency loss keeps paying off at higher resolution, is an obvious next step.
- Dataset scope and reuse: UMT-DATA-200K is deliberately excluded from the visual text generation training in these experiments, so how far the 200k-image dataset can improve the generator itself, and how the UMT-benchmark compares against a broader set of editing models, remain open.
Target Audience
- Researchers working on diffusion-based image generation, text rendering, and unified multimodal understanding-generation models.
- Engineers building image editing, poster/creative design, and e-commerce product-image tooling.
- Readers interested in dataset construction pipelines that combine OCR, aesthetic filtering, segmentation, and inpainting at scale.
- Practitioners evaluating scene-text rendering quality, who will find the AnyText-benchmark, UDiffText, and UMT-benchmark comparisons and the Sen.ACC / NED / FID / LPIPS / SeqAcc metric definitions useful.
Authors’ abstract
With the rapid advancement of image generation, visual text editing using natural language instructions has received increasing attention. The main challenge of this task is to fully understand the instruction and reference image, and thus generate visual text that is style-consistent with the image. Previous methods often involve complex steps of specifying the text content and attributes, such as font size, color, and layout, without considering the stylistic consistency with the reference image. To address this, we propose UM-Text, a unified multimodal model for context understanding and visual text editing by natural language instructions. Specifically, we introduce a Visual Language Model (VLM) to process the instruction and reference image, so that the text content and layout can be elaborately designed according to the context information. To generate an accurate and harmonious visual text image, we further propose the UM-Encoder to combine the embeddings of various condition information, where the combination is automatically configured by VLM according to the input instruction. During training, we propose a regional consistency loss to offer more effective supervision for glyph generation on both latent and RGB space, and design a tailored three-stage training strategy to further enhance model performance. In addition, we contribute the UM-DATA-200K, a large-scale visual text image dataset on diverse scenes for model training. Extensive qualitative and quantitative results on multiple public benchmarks demonstrate that our method achieves state-of-the-art performance.