arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.32134cs.CV
收藏

EditText:面向细粒度文本编辑的结构感知生成与选择性视觉迁移

EditText: Structure-Aware Generation and Selective Visual Transport for Fine-Grained Text Editing

University of Science and Technology of China(中国科学技术大学);iFlytek(讯飞)

Zhaobin Chu, Guandong Li, Xin Lv, Zhiwei Zeng

AI总结:

本文提出EditText框架,结合目标字符生成与源图像视觉迁移,引入注意力迁移框架与TBench基准,在细粒度文本编辑任务中取得非编辑区域SSIM 0.9769、全图像LPIPS 0.0460的最优性能。

摘要:

细粒度文本编辑旨在准确替换指定区域内的文本,同时保留源文本的字体、颜色、纹理以及未编辑区域的视觉一致性。本文提出EditText,一种结合目标字符生成与源图像视觉迁移的细粒度文本编辑统一框架。该模型采用双条件填充输入:掩码图像与源文本风格参考,二者均与目标图像共享空间参考。掩码图像隐藏原始文本,保留未编辑内容作为源画布;风格参考提供外观线索,与目标文本共同引导新字符生成。本文引入注意力迁移框架,其中源权重描述分配给条件的注意力,空间聚合核描述其内部空间注意力分布。源细节的准确迁移依赖于注意力强度、条件特征中细节的保留以及空间准确的聚合。因此,对于选定的非编辑查询,本文保留分配给掩码图像的总注意力权重,同时将其注意力重新分配到空间对应的邻域,从而实现选择性视觉迁移。结合针对局部目标字符结构的字形感知结构损失的多阶段训练,使模型能够生成准确的文本、保留源文本外观并保留未编辑细节。本文还引入TBench,一种涵盖字母、表意文字和阿拉伯数字的细粒度文本编辑基准,用于评估字符更新、外观保留以及未编辑细节的保留。在TBench上,EditText实现了非编辑区域的SSIM(0.9769)和全图像的LPIPS(0.0460)的当前最佳性能。

英文摘要:

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).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑