Skip to main content
QUICK REVIEW

[论文解读] MaskOCR: Text Recognition with Masked Encoder-Decoder Pretraining

Pengyuan Lyu, Chengquan Zhang|arXiv (Cornell University)|Jun 1, 2022
Handwritten Text Recognition TechniquesComputer Science被引用 24
一句话总结

MaskOCR 将 vision 与 language 预训练在一个编码器-解码器文本识别框架中统一,通过对编码器使用 masked image modeling,在解码器使用 masked image-language modeling,在 Chinese 和 English 基准上取得强劲结果。

ABSTRACT

Text images contain both visual and linguistic information. However, existing pre-training techniques for text recognition mainly focus on either visual representation learning or linguistic knowledge learning. In this paper, we propose a novel approach MaskOCR to unify vision and language pre-training in the classical encoder-decoder recognition framework. We adopt the masked image modeling approach to pre-train the feature encoder using a large set of unlabeled real text images, which allows us to learn strong visual representations. In contrast to introducing linguistic knowledge with an additional language model, we directly pre-train the sequence decoder. Specifically, we transform text data into synthesized text images to unify the data modalities of vision and language, and enhance the language modeling capability of the sequence decoder using a proposed masked image-language modeling scheme. Significantly, the encoder is frozen during the pre-training phase of the sequence decoder. Experimental results demonstrate that our proposed method achieves superior performance on benchmark datasets, including Chinese and English text images.

研究动机与目标

  • 通过联合利用视觉先验和语言先验来推动文本识别的提升,而不是使用单独的语言模型或仅仅进行视觉预训练。
  • 提出一个统一的预训练方案,在未标注的真实文本图像上对编码器进行掩码图像建模的预训练,在合成文本图像上对解码器进行掩码图像-语言建模的预训练。
  • 证明在解码器预训练期间固定编码器可以缩小真实数据与合成数据之间的差距,同时提升解码器的语言建模能力。
  • 展示所提出的方法在中文和英文文本识别基准上达到最先进水平或具竞争力的性能。

提出的方法

  • 使用一个编码器-解码器 Transformer,其中编码器处理垂直分块的图像补丁以产生补丁表示。
  • 在真实文本图像上对编码器进行掩码图像建模(上下文自编码器风格)的预训练,以学习强大的视觉表示。
  • 通过将文本语料转换为合成文本图像并应用掩码图像-语言建模来对解码器进行预训练,在只更新解码器而保持编码器固定的情况下进行。
  • 在语言预训练期间,对某些字符及其对应的图像补丁进行掩码,让解码器从可见补丁预测被掩码的字符。
  • 采用顺序预训练策略以减小真实数据与合成数据之间的领域差异,从而在标准的编码器-解码器框架内实现联合的视觉-语言预训练。

实验结果

研究问题

  • RQ1在没有外部语言模型的情况下,单个编码器-解码器模型能否将视觉和语言预训练完全整合用于文本识别?
  • RQ2对编码器使用掩码图像建模、对解码器使用掩码图像-语言建模,是否相比以往仅视觉或仅语言预训练,在中文和英文文本图像上提升识别性能?
  • RQ3在解码器预训练过程中固定编码器以及掩码策略对下游文本识别性能有何影响?

主要发现

  • 视觉-语言预训练在性能上超越从头开始和单模态预训练,且对编码器和解码器有互补增益。
  • 在真实文本图像上对编码器进行掩码图像建模的预训练,相较于随机初始化的编码器,带来显著的准确率提升。
  • 对合成图像进行语言预训练,且固定编码器,进一步提升了解码器性能和整体准确度,验证了串行预训练设计。
  • 在中文文本行识别上,该方法达到最先进的结果,包括在如 BCTR 等基准上对先前方法的显著改进;该方法在英文文本识别任务上也取得了有竞争力的结果。
  • 该模型展示了跨解码策略(包括 CTC)的泛化性,并通过所提出的预训练方案对真实与合成数据具有鲁棒性。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。