EditText: Structure-Aware Generation and Selective Visual Transport for Fine-Grained Text Editing
Abstract
Fine-grained text editing aims to accurately replace text in a specified region while preserving the source text's font, color, and texture, as well as visual consistency in unedited regions. We present EditText, a unified framework for fine-grained text editing that combines target character generation with visual transport from the source image. The model uses dual-condition Fill inputs: a masked image and a source text style reference, both sharing a spatial reference with the target image. The masked image hides the original text and retains unedited content as a source canvas; the style reference supplies appearance cues that guide new character generation together with the target text. We introduce an Attention Transport framework in which Source Weight describes the attention allocated to a condition and the Spatial Aggregation Kernel describes its internal spatial attention distribution. Accurate transfer of source details depends on attention strength, the retention of details in condition features, and spatially accurate aggregation. For selected non-edit queries, we therefore preserve the total attention weight assigned to the masked image while redistributing its attention toward spatially corresponding neighborhoods, enabling selective visual transport. Multi-stage training, combined with a Glyph-aware Structural Loss on local target character structure, teaches the model to generate accurate text, preserve source text appearance, and retain unedited details. We also introduce TBench, a fine-grained text editing benchmark covering Alphabetic, Logographic, and Arabic numerals, to evaluate character updates, appearance preservation, and the preservation of unedited details. On TBench, EditText achieves state-of-the-art non-edit-region SSIM (0.9769) and full-image LPIPS (0.0460).
Create a lesson
Related papers
MinPair: Measured Minimal Pairs for Fine-Grained Control in Text-to-Motion Generation
Shared title terminologycs.CVLennart Schiweck, Cristóbal Curio
Describe, Don't Ask: Caption-Driven On-Policy Distillation for Fine-Grained Visual Perception
Shared title terminologycs.CVHaozhan Shen, Liangbo He, Jun Lan et al.
Back to Raw Motion: Latent-Free Diffusion Transformers for Text-to-Motion and Exact Conditional Generation
Shared title terminologycs.CVYun Chen, Jeonghyeok Do, Munchurl Kim
TESS: Query-Guided Temporal Event-Structured Frame Selection for Long-Video Understanding
Shared title terminologycs.CVQi Lu, Shiyan Tong, Shujie Li et al.
Improving Character Identity Consistency in Diffusion-Based Visual Story Generation through Identity Memory and Automatic Reranking
Shared title terminologycs.CVMaria-Emilia Grigore, Stelian Spînu
Query-Guided Visual Minimization for Selective Disclosure to Cloud VLMs
Shared title terminologycs.CVPedram Zaree, Kleomenis Katevas, Vandana Rajan et al.