arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.05706cs.CV
收藏

面向场景文本识别的仅文本解码器预训练

Decoder Pre-Training with only Text for Scene Text Recognition

School of Computer Science, Fudan University(复旦大学计算机科学学院)

Shuai Zhao, Yongkun Du, Zhineng Chen, Yu-Gang Jiang

AI总结:

针对场景文本识别预训练依赖合成数据、存在域差距的问题,提出仅用文本的解码器预训练方法DPTR,结合离线随机扰动策略与特征融合单元,实现了优异性能与广泛适用性。

摘要:

场景文本识别(STR)预训练方法已取得显著进展,这类方法主要依赖合成数据集。然而,合成图像与真实图像之间存在域差距,导致难以获取与真实场景图像高度对齐的特征表示,进而限制了这类方法的性能。我们注意到,CLIP等在大规模真实图文对上预训练的视觉语言模型,可在统一嵌入空间中有效对齐图像与文本,这意味着仅通过文本就有可能推导真实图像的表示。基于这一前提,我们提出了一种名为面向STR的仅文本解码器预训练(DPTR)的新方法。DPTR将CLIP文本编码器生成的文本嵌入作为伪视觉嵌入,并用其预训练解码器。我们还提出了离线随机扰动(ORP)策略,该策略通过融入CLIP图像编码器提取的自然图像嵌入来丰富文本嵌入的多样性,有效引导解码器学习真实图像的潜在表示。此外,我们引入了特征融合单元(FMU),引导提取的视觉嵌入聚焦于文本图像中的字符前景,从而让预训练后的解码器工作更高效、更准确。我们在多种STR解码器和语言识别任务上开展了大量实验,结果证明DPTR具有广泛适用性和优异性能,为STR预训练提供了新思路。代码可在https://github.com/Topdu/OpenOCR获取。

英文摘要:

Scene text recognition (STR) pre-training methods have achieved remarkable progress, primarily relying on synthetic datasets. However, the domain gap between synthetic and real images poses a challenge in acquiring feature representations that align well with images on real scenes, thereby limiting the performance of these methods. We note that vision-language models like CLIP, pre-trained on extensive real image-text pairs, effectively align images and text in a unified embedding space, suggesting the potential to derive the representations of real images from text alone. Building upon this premise, we introduce a novel method named Decoder Pre-training with only text for STR (DPTR). DPTR treats text embeddings produced by the CLIP text encoder as pseudo visual embeddings and uses them to pre-train the decoder. An Offline Randomized Perturbation (ORP) strategy is introduced. It enriches the diversity of text embeddings by incorporating natural image embeddings extracted from the CLIP image encoder, effectively directing the decoder to acquire the potential representations of real images. In addition, we introduce a Feature Merge Unit (FMU) that guides the extracted visual embeddings focusing on the character foreground within the text image, thereby enabling the pre-trained decoder to work more efficiently and accurately. Extensive experiments across various STR decoders and language recognition tasks underscore the broad applicability and remarkable performance of DPTR, providing a novel insight for STR pre-training. Code is available at https://github.com/Topdu/OpenOCR

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

↑